I have two asynchronous events that return some data, and I would like to use both pieces of data to call an API. Is there an accepted practice for making the synchronization happen?
Hello!
Studying MS Exam 70-536 .Net Foundation I've got to Chapter 11 Application Security and in the end of a lesson there is a practice to add code group with .Net Configuration Tool and change it with caspol.
After adding new code group with config tool I've tried to run
caspol -lg
but new group was not listed...
What are the best practices with respect to styling HTML elements using CSS? What's the preferred granularity for styling HTML elements? i.e., do you have lots of
div.searchbox input
div.searchbox p
div.searchbox p.help
OR
input.searchbox
p.searchbox
p.searchboxhelp
Which css code is considered easy to maintain? Is using grid frameworks and reset considered best practice?
Thanks
I'm working on a project in Flash CS4/AS3 and I have a document class set up but I am wondering about using that, as opposed to frame-based scripting. Most of what I have seen so far deals with how to create them, but doesn't offer much about why or when to use them.
I know I can also pull in other classes beyond the document class but, again, why and when?
Could I get some input from you fine people out there on usage/best practice, etc?
Thanks
Hello everyone,
was wondering if there is a way to make superfish using jquery ui theme framework, if that isn't possible right now, what practice can be applied to make superfish using jqueryui styles.
Thanks for your valuable input.
Michael
What is the best practice to set a background image centered and 100% (so that it fills the screen, but still retains the aspect ratio) in all browsers?
Hi all. I'm developing an application with Gtk and Glade. My impression is that it's commonpractice to create a subclass of GtkWindow for your main window, but I'm stuck on how I would construct my subclass from a GtkBuilder definition. Does anyone know how?
What is best practice to stream multiple files in one ASIHTTPRequest?
Right now, for one file I use:
....
ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:someUrl];
[request setShouldStreamPostDataFromDisk:YES];
[request appendPostDataFromFile:someFilePath];
[request startSynchronous];
How to stream multiple files without placing all files in memory before transmission?
Hi,
I think it is not mandatory to have a default constructor in a class (C#).
So in that situation shall I have a empty constructor in the class or I can skip it?
Is it a best practice to have a default empty constructor?
Class test
{
test()
{
}
......
}
or
Class test
{
......
}
Is there a difference between filter and exclude in django? If I have
self.get_query_set().filter(modelField=x)
and I want to add another criteria, is there a meaningful difference between to following two lines of code?
self.get_query_set().filter(user__isnull=False, modelField=x)
self.get_query_set().filter(modelField=x).exclude(user__isnull=True)
is one considered better practice or are they the same in both function and performance?
I really like to use static methods (especially for helpers classes). But as static methods are not stubbable, eventually they are a bad practice, aren't they? So I have to choose between static methods usage convenience and testability. Is there any compromise?
Hi,
I was wondering how to apply a custom render to a event... I want to be able to preppend the "patient" name of a practice agenda...
eventRender: function(event, element) {
console.log(element[0]);
}
This currently shows the HTML output in the console, but I don't know how can I access it (in a pretty jquery manner) in order to manipulate the data within.
Thanks
After processing form from POST I should redirect, to prevent user from hitting back. However, I am using form to determine search query on a database, so I need to either pass params to the redirected site or the result of a search. Or maybe there is some other good practice, how to solve this problem? Maybe in this situation I am allowed not to redirect (nothing happens, if user performs search again).
Hi,
The developer guide in my company says class comments should go before Package statements, i.e it sould be the very first thing in a java file.
I just find it a bit old. Isn't it normal practice to put class comments after import and above class declaration?
Puzzled Sarah
The jQuery.getJSON() method seems to ignore the normal rules of scoping within JavaScript.
Given code such as this...
someObject = {
someMethod: function(){
var foo;
$.getJSON('http://www.somewhere.com/some_resource', function(data){
foo = data.bar;
});
alert(foo); // undefined
}
}
someObject.someMethod();
Is there a best practice for accessing the value of the variable outside of the getJSON scope?
Is there any resources that how to create windows application especially for how to design the dll to wrap the api call or the similar?
It seems that people don't compile the entire project into a single exe for release and what is the best practice to architect the windows application component based on MVC pattern?
Is there any resources or any good book on this topic?
Thanks!
My team uses SVN for our software platform, and we create tags periodically to help keep module versions straight. Best practice, as I understand it, is not to modify a tag once it has been created. However, it seems that sometimes the temptation is too great and a modification is made to one of the tags.
Is there a way to prevent these kinds of checkins, or at least make them a complete pain so that we can discourage them automatically?
Thanks,
Joe
Currently I am working on flex using puremvc framework. Actually my question is related to where to register mediator in puremvc framework. One of my colleague is registering mediator in views(components) creationComplete method only (inside view). While my preference is send some notification from creationComplete method which could be handle by some command and command will register mediator. So which one is better approach in terms of best practice ?
I did a little GP (note:very little) work in college and have been playing around with it recently. My question is in regards to the intial run settings (population size, number of generations, min/max depth of trees, min/max depth of initial trees, percentages to use for different reproduction operations, etc.). What is the normal practice for setting these parameters? What papers/sites do people use as a good guide?
I just find this video about productivity for programmers by peepcode and I'm thinking to download and see it. Besides that, I have to tell you that I prefer to read a book and take notices about it, rather than seeing a video.
So, my question is: can you recommend me a good book about productivity for programmers with tips, advices, best practice, et?
ps: I'm new into this work field(because I'm still a student).
I'm trying to practice my F# by writing small console scripts in F# in place of my usual method of writing shell scripts/batch files. I currently run them using "fsi script.fsx [args]". Is there a way I can associate these fsx files with fsi so that I can run them directly like "script.fsx [args]"?
I've created some custom UITableViewCells in a nib file and would like to use that across multiple UIViewControllers.
Can anyone tell me the best practice way to do that? My limited knowledge around loading nibs seems to suggest that you have to specify a single owner class in Interface Builder.
Thanks.
What's the best way to asynchronously load an BitmapImage in C# using WPF? It seems like many solution exist, but does a standard pattern or best practice exist?
Thanks!