Are there any reasons, apart from subjective visual perception and cases where you have multiple statements on the same line, to use semicolon at the end of statements in Javascript?
I was reading the C# entry on Wikipedia, and came across:
Managed memory cannot be explicitly freed; instead, it is automatically garbage collected.
Why is it that in languages with automatic memory management, manual management isn't even allowed? I can see that in most cases it wouldn't be necessary, but wouldn't it come in handy where you are tight on memory and don't want to rely on the GC being smart?
I have a .NET C# winforms application which works great on my machine, but if I try to run it on another machine, it doesn't start up. No error message, no crash message, no window - nothing.
I've found that this always happens when a referenced assembly is missing. I guess this is .NET's general behavior and not specific to my app, is it?
Is there any way to configure .NET or my application such that it spits out a "referenced assembly missing" like error message in such cases?
Hi,
I am writing a custom installer in C#.
Can you tell me an easy way to check if the machine has .NET version installed [even 2.0].
In cases where it is not installed, my app doesn't even start.
Thanks
I'm using the Handsoap gem with Httpclient gem as the driver in a Rails app.
How can I prevent network calls from Handsaop/Httpclient gems in test cases?
FakeWeb doesn't support Httpclient.
On my Ubuntu 9.10 I have NetBeans 6.8 running. Now when I press the Enter key (to confirm a dialog box, return a line, etc) in some cases it just crashes. The application just quits unexpectedly. Anyone has a clou on where to start searching for error loggings?
I am learning Java and just found that the Interface can have fields, which are public static and final. I haven't seen any examples of these so far. What are some of the usecases of these Interface Constants and can I see some in the Java Standard Library?
I have asp.net mvc 2 application.
Now I'm reimplementing it for working with Ninject. All is fine except one thing: where should I store Ninject.dll??
I've created lib directory inside my appdir and made reference to lib/Ninject.dll.
But may be there are some general conventions on how to act in such cases?
Working with iPhone SDK 3.2 --
I have a complex custom UIControl that handles touches on the child controls. In certain cases, I want the parent UIControl to pass an event to the UIViewController, which will then take action outside the control. How do I do this cleanly? Thank you!
Is there any way to know if you program has undefined behavior in C++ (or even C), short of memorizing the entire spec?
The reason I ask is that I've noticed a lot of cases of programs working in debug but not release being due to undefined behavior. It would be nice if there were a tool to at least help spot UB, so we know there's the potential for problems.
The Vb.Net application creates a bitmap from scratch and either converts to a tiff or sends it to a printer. In both cases, the quality of the image (in this case the font) is not good at all. The sample code listed below creates the graphics object that I use to write to the image.
Dim gr2 As Graphics = Graphics.FromImage(New Bitmap(800, 1000), Imaging.PixelFormat.Format32bppPArgb))
Seems like every C# static analyzer wants to complain when it sees a public field. But why? Surely there are cases where a public (or internal) field is enough, and there is no point in having a property with its get_ and set_ methods? What if I know for sure that I won't be redefining the field or adding to it (side effects are bad, right?) - shouldn't a simple field suffice?
C#'s switch statement can compile to a CIL switch instruction, or if/else's, depending on the cases in the statement as mentioned here. Is there a way to force the compiler to always generate the if/else variant in a block of code?
I don't quite understand how the patent system works in the US and in much respect to Europe.
I have heard that a pattern of operation can be patented. what are the implications, has anyone been taken to court yet over a software patent based on pattern of usage.
I have seen the cases with nokia, palm and Apple. If I write something based on these patterns of operation, will I need a licence?
I have been reading forums and so, but found not a clear answer or nor conclusive, about the strategic decission of using domain-with-dash.com or notusingdashes.com
Is there a problem or disadvantage in ranking for those key words?
Is it better having the-domain-with-dash.com than shortdomain.net? many cases you dont have the dot.com available for that specific key word.
what are your opinions, please prove facts, or add links to the source.
What Google has to say?
If I see an email returned due to a hard bounce, after how many days is it acceptable to resend to that email address. It is possible for emails to be reactivated or for temporary outages, so it doesn't make sense to keep an email in my hard bounce email list forever. I've already seen cases where I receive emails from addresses that were put in my hard bounce email list months ago.
Any recommendations? Are there specific recommendations from ISPs?
We're developing a program that generates search feeds for Google Search Appliance. We would like to use icons that would be associated with Google Search Appliance in the program interface.
Is there a list of icons Google officially allows to use in such cases?
Hi,
I wrote multiple scripts in perl & shell and I had compared the real execution time. In all the cases - Perl script is more than 10 times faster than shell script.
So i wondered if it possible to write a Shell script which is faster to the same script in perl? and why perl faster than shell although I use the 'system' function in perl script.
Thanks for your help,
Regards,
JohnJohnGa
I need to run slot only on doubleClick with left button mouse, instead of both.
connect(this -> myComponent, SIGNAL (doubleClicked (const QModelIndex & )), this,
SLOT (performSomeAction(const QModelIndex & )));
With this event, double click works in both cases, but needed only with left button click.
How I can do it?
this - myComponent = QTableView
I have an android service that connects to remote server by TCP/IP and waits for notifications from it. Should I care about PowerManagement? Can sleep mode affect me some how?
If no, than what are the "usecases" to care about wake locks?
Should a professional programmer allow themselves to write code without completely understanding the requirements?
In my 30+ years as a programmer I must have written many thousands of lines of code without completely understanding what is required of me at the time. In most cases the results were rubbish that should have been discarded.
Every other industry that employs professionals has systems to root out such behavior. Ours does not. Is this right?
Hi
I have written two test cases in a package com.app.myapp.test
When I try to run them both of them are not getting executed, only one test case gets executed and stops.
I have written the following testsuite in the same package
AllTests.java
public class AllTests extends TestSuite {
public static Test suite() {
return new TestSuiteBuilder(AllTests.class).includePackages("./src/com.ni.mypaint.test","./src/com.ni.mpaint.test").build();
/* .includeAllPackagesUnderHere()
.build();*/
}
Is the code and location for this testsuite is correct?
Hello,
Gobby/Sobby is an open source client/server for collaborative edition of plain text file (source code).
My question is 4-fold :
Can you share any real-life usage of Gobby/Sobby for development among a group of physically separated developers ?
Is the project mature enough as a productivity tool ?
What are the working usecases ?
What versions should be used ? (It seems 'undo' feature is not yet officially packaged)
Thanks
Jerome