When log shows a lot of Garbage Collection hits, what code change shall we need?
Do we need to free some objects?
Will we speed up the code with object reusal?
I recently had a hard drive crashed and lost all of my source code. Is it possible to pull/checkout the code that I have already uploaded to Google App Engine (like the most recent version)?
I am going to development a product related to security. It's my personal belief that any security related product should release it's source code for review. However, I also want to sell it as a commercial product and keep the code ownership to myself and don't expect deviated work.
Is there a software license for this purpose? Thanks.
I'm using Eclipse 3.3.2 and CVS. Is there a way for me to see the code only I have checked in since some date? I know how to use "Compare With..." to see all the changes (anyone's code) since a particular version or date. Our team doesn't use Task Tags, could those help?
I want to determine which compiler is better on 2 different platforms. First, I want to know whether sunCC or GCC generates fastest code in a Solaris system. Then, I'd like to know whether aCC or GCC generates fastest code in a HP/UX system.
Thanks.
How do we determine where the mistake is in our code that causes a segmentation fault?
After writing some code, to determine where I have a segmentation fault, can gcc show me my have a mistake (or typing error) in a particular line number -- because that line caused the segmentation fault?
In order to fully understand and take advantage of the new features and enhancements provided with the coming of the new .NET Framework 4.0, I would like to get an example of real-world application of the Code Contracts.
Anyone has a good example of application of this feature?
I would like to get a code sample with a brief explanation to help me get up and running with it.
Thanks! =)
I used to see any .net source code (like System.String) with ReSharper and Visual Studio 2008. since I migrated to Visual studio 2010, this option doesn't give the full source code but just the definitions of the class.
How can I fix this, to use the microsoft's symbols server again?
friends,
i want to set android:layout_centerVertical="true" property of layout
through java code of an image.
can any one guide me how to achieve this. here is my code.
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
params.height = (int)totalHeight;
img.setLayoutParams(params);
i have tried using setScaleType(ScaleType.FIT_CENTER) but no use.
any help would be appriciated.
We have several document libraries where users upload reports daily. I have to make a page that shows specific documents (getting them by their filename) from these document libraries with each documents last modified date.
What is the easiest way to do this?
I've had a big problem in some library code, which I've pinned down to a single statement:
System.out.println((String) null);
Ok, the code doesn't actually look like that, but it certainly calls println with a null argument. Doing this causes my whole applicaio to throw an unexpected NullPointerException.
In general, should println throw this exception under that circumstance, or is this non-standard behavior due to a poor implementation of the out instance?
I have an Objective-C iPad app I want to build an opaque static library from so I can give it to testers using X-code to test without giving them the source code. How can I do this?
I have a div container with 3 div elements inside (A, B, and C). I'll know the width of the container and the width of A and B) the problem is that in some cases B won't be there in which case I need C to expand to fill the rest of the container. How would I do this with straight css or am I going to need to use javascript to calculate the width?
Thanks.
I was wondering what happens to the code contained in an <mx:Script> tag. If I define a function tehre, it just becomes a member function of the generated class. But I noticed that it seems OK for the compiler if I just write some (static) method calls there (specifically, I call Font.registerFont()). I feel kind of guilty for doing this, because I have no idea what's really happening and when the code gets executed.
Real Example.
I have a closed source server-side program for "internal purposes only" (no distribution or selling).
I want to use "MYSQL C++ Connector" in my server application in my VPS (MYSQL C++ Connector is GPL).
Do I have to make my application "GPL" and distribute my source code?
Can I use the GPL Source Code in my closed source application. (There is no distribution or selling of my application — it is for internal purposes only.)
I have a checkboxes on my site that when unchecked, update their row in in the db as unchecked, and if checked,update their row in the db as checked. I am creating an ifstatement that will commence with its command if checked, and not if unchecked. I have echoed the variable and it is holding the proper value (checked or unchecked) but not sure if I am syntactically correct on displaying the state of the row in the db.
This is what I am trying and will not work. I am new at php still and thank you very much for any help.
if($auth->check_prof == 'checked'){// do the stuff in here}
I would like to customize my layout definition (declared in my_layout.xml file) from code.
Unfortunately I can use findViewById() function to find the specific views (defined in my_layout.xml file) and customize them from code only after I called setContentView(R.layout.my_layout).
But what if I want to customize my layout first, before calling setContentView()? How can I access the specific views before calling setContentView()?
I am using exec() inside a a script that runs as a daemon and forks child processes using the pear class Net_Server.
I am getting a strange issue whereby the return code (the third param of of exec) comes back as -1. When I run the command on the command line, or with exec in a normal php script the return code is 0 as it should be. Anyone have any idea why this is happening, and how to fix it?
This questions concerns mostly Unix/Linux style C++ development. I see that many C++ libraries store their header files in a "include" folder and source files in an "src" folder. For the sake of conformance I adopted this in my own code. But it is not clear to me whether this should be done for application code as well. I've seen a few cases where a flat directory structure is used for that. What would be the recommended approach?
hi
im looking at some external code and saw a line of ruby code that looks like this
string_name = string_name[3..-1]
what does the [n..-x] do or mean?
thanks
Is there a static code analyzer for PHP files? The binary itself can check for syntax errors, but I'm looking for something that does more, like unused variable assignments, arrays that are assigned into without being initialized first, and possibly code style warnings. Open-source programs would be preferred, but we might convince the company to pay for something if it's highly recommended.
Hi all,
Somehow the following code is very slow on another server, on my own server it works ok
http://www.bldd.nl/stackoverflow/test.php
How should i optimize this code??
Kind regards
Hey,
what i read on several help-pages, was, that getting jquery code completion to work, was just:
getting targeted browsers right (the
only one i choose was firefox 3.x or
later)
putting jquery file into project (it
is now visible in "source files")
adding the "script type"etc.-line (tried filename with and without / before )
Did this... but still no code completion. Any ideas? Got windows 7 and netbeans 7, 32bit system.
Wtf is wrong? :(
http://www.loaditup.de/files/615138.png
All the elements should have fixed position in the array after insertion until I explicitly delete them from there. Is there something like this in boost or wherever? Thanks