Is there a way to take my C++ code and cross compile it to run on Windows, Mac OS, and Linux? Is there a tool to do this, or does it have to be manually compiled on each OS via Terminal/Cygwin?
For winforms applications I'm wondering what setup code should go in:
MainForm()
as opposed to
MainForm_Load(object sender, EventArgs e)
Are there any best practice guidelines here?
I was coding in NetBeans (PHP) today, and my hand slipped while I was typing a constructor. It must have hit a keyboard shortcut, because a constructor that was designed for a child class appeared on my screen (i.e. it called the parent constructor, so it's not the Insert Code -> Constructor, I don't think). Does anyone know what the shortcut is?
If I transfer data from a Access MDB into a SQL Server, will DAO code in a VB app work against the SQL Server.
I realise there will need to be changes to the initial connection calls but will anything else need to change?
Hello!
In MS Exam 70-536 .Net Foundation, Chapter 3 "Searching, Modifying, and Encoding Text" in Case Scenario 1 related to regex there is a question:
How can you constrain the input before you write any code?
I thought it's maybe a in-mind design of regex pattern but it will not really constrain the input, will it? I am not so good in psychokinesis yet!
Or maybe the is some other way?
Thanks for your time!
I have a picture in res/drawable directory: res/drawable/picture.jpeg.
Can I dynamically update this picture.jpeg from code? i.e. I want to use another picture to replace this picture in the drawable directory dynamically.
If I can, what path should I use to access the picture? Should I use "res/drawable/picture.jpeg"?
Thanks.
I am running a QTP script where a data is produced dynamically.I am retriving the data during runtime and then I need to paste that data in an excel sheet (in an column).Please suggest how to code it. Thanks for any help.
Dear All,
I am new to MySql database. I've large table(ID,...). I select ID frequently with java code and.And that make a heavy load on transaction
select from tableName where ID=someID
notes:
1.Database could be 100,000 records
2.I can't cache result
3.ID is a primary key
4.I try to optimize time needed to return result from query.
Any ideas for optimization ?
thanks in advance
We've all done them, the short fix that will get the system back up and running until we can Do The Right Thing.
What have you marked in your code with the dreaded //Hack comment?
Both Ideone and Codepad have Little endian architechtures.
I want to test my code on some machine with big-endian architechture (for example - Solaris - which I don't have). Is there some way that you know about?
Hello,
I am not sure if it's possible at all in HTML, but I would still ask it here:
Is there any HTML code that would stand for an ellipse or a rounded rectangle?
in this : http://stackoverflow.com/questions/2879146/is-there-a-twitter-user-login-framework-for-gae
i find some mistake when i download the framework, and it is not running ,
has any other easy code framework example ?
thanks
How to Improve performance of this chunk of code :
public static String concatStrings(Vector strings) {
String returnValue = "";
Iterator iter = strings.iterator();
while( iter.hasNext() ) {
returnValue += (String)iter.next();
}
return returnValue;
}
I'm referencing my JavaScript files before the closing body tag, hoping they will be parsed last (as they're not needed until last). However when I analyse activity with PageSpeed in Firebug, the images seem to be requested last.
How can I make the images higher priority than the JavaScript code?
A buddy of mine has been getting this error mesage when trying to run uninstall programs andor new program apps, windows just shows "ShellExecuteEx failed; code 18" and refuses to run the program.
Inserting (pasting from clipboard) of text constants in the Delphi code editor requires some manual "postprocessing" ...
split up long text into multiple lines (and insert the string concatenation symbol)
escape quotes (replace single quotes with double quotes)
enclose the string with quotes
keep original white space (leadinng blanks, line feeds)
Is there a IDE plugin available which helps to reduce these manual steps?
Where can I find code to parse URL queries in C++?
For example: "id=34&name=test&size=367"
And something like 'getvalue(parser_query, "name")' that returns 'test'.
Thanks.
I tried to find source code for this kind of ajax game:
http://www.pitstreet.com/cgi-bin/pitstreet/pitgame.pl?lang=en&game=6&level=5
Some info:
The objective is to swap image with another with 3 same images or more in row (vertical or horizontal)
Maybe someone willing help me?
It's trivial to make a program executable from shell - just put #!/usr/bin/ruby on top, chmod +x it and done. Unfortunately OSX won't let me associate file type with such scripts - it requires its .apps instead. This sort of distinction doesn't seem to exist on other operating systems.
What's the simplest way of making such .app, which would merely execute some arbitrary Ruby code?
Hi all.
At Project Properties Java Build Path Libraries tab
you click Add Jars button, you will see the JAR Selection dialog.
I like to open this JAR Selection dialog on my plugin code.
How to open this?
Hi there.
I have an existing webapp created in PHP and would like to embed some of the PHP code into some WordPress pages.
What's the best WordPress plugin for that?
I have a site that I'm optimizing using Google Website Optimizer where the goal is to have someone click on a link to download some software. But the google optimizer code that's provided will get triggered on any page where the link is on. Is there any way to have it execute only when someone actually clicks the download button? Thanks so much!
In Adobe Flash, I have a movie clip that is added to the stage when the keyboard is pressed. I want it to travel across the screen and disappear once it reaches the edge of the stage. At the moment I use this but the image appears and then stops. Here is my code:
addEventListener(Event.ADDED_TO_STAGE,runtime);
var c = 0
function runtime(){
while(this.x<800){
this.x += 12;
}
removeChild(this);
}
Thanks