I have index.php which uploads a file to server and sets several PHP variables (like $target_folder_and_file_name).
index.php also has the following line (it was originally index.html):
<script language="JavaScript" src="main.js.php"></script>
After index.php returned to the browser, the browsers asks for main.js.php from the server (right?).
Can I access somehow $target_folder_and_file_name from the PHP code in main.js.php ?
I want to use the performance counter output in my program. How can I access the performance counter in code without using the perfmon.exe. I want to create my own performance counter app.
New here guys but have got a genuine problem. I have an iPhone app that was developed using SDK4. With apple introducing the new iOS version 6, does my code need to be recompiled on the new SDK to make it compatible with version 6?
Right now it crashes on iOS6. Also, do I need to do that everytime apple brings out a new version? I wonder every other app on earth already does that ?!
Thanks,
Raghav
I tried the tool wsdl2java from axis2, but looks something wrong with the XML Java class binding, so when making the call, a ADBException (adb binding used) will be thrown out.
can someone kindly tell the bet tool/way to generate can-work client code from such style of wsdl file (standard .net style:document literal wrapped)?
Thanks.
Given the following code sample:
uint8_t i, in, ni;
i = in = 2; ni = 1;
while (2 == i > ni) in++;
How can I replace i, in, and ni, respectively with either in, ni, and i or inni, inin, and nini using emacs, vi, *nix commands, or anything else?
I want to add some VBA code when the value in a cell changes.
I've already tried Worksheet_Change(), as described at http://www.contextures.com/xlfaqmac.html#WSChange
However, this won't work: it only fires when the user changes the value. I want to fire it whenever the value changes, i.e. whenever the spreadsheet recalculates.
Any ideas?
I want to create chat application using Servlets & JSP. May I know how can I create chat application as I have never created before?
How much knowledge I need to have to create chat application?
Is there any need of networking API to create chat application?
What's the design pattern I need to follow to create that application?
Is there any need of database?
to learn a library/framework i think the best way would be to use a class method and then see what code is executing in live.
then you see the method chain (input and output of each) and can also read the comments.
is there a such feature in any IDE or external application for php?
Say I want to create a source code editor for ocaml programming language, where do I start? I am looking to create an editor for the Windows platform as a hobby project. My primary skill is in web development. I have developed windows apps long time ago. I have no clue how it is done with todays available tools. I have visual studio 2008 and C# is my language of choice.
Should I create private static final String = "Some exception message" or leave it inside the code? Is there any performance issues? I have a lot of exception cases. Texts are mostly different in any particular case. Wary about performance and memory issues
Is there any way to change indentation style for automatically generated code in Eclipse?
I'd like to change from
class Test {
blah blah
}
to
class Test
{
blah blah
}
I am very new in bash and never coded in before but this task is stuck so need to get rid of it .
I need to make bash script to make a single compressed file with several dirs.
Like -
/home/code/bots/
/var/config/
.
.
.
/var/system/
and all will be compressed to single file /var/file/bkup.[zip][tar.gz]
Thanks in advance
Legalese can be considered an extremely inefficient language, and it certainly has ambiguities. What attempts exist out there to use programming languages (or any symbolic logic approaches, for that matter) to model legal code (such as laws and contracts)?
You always read in changelogs when your system or browser or any program updates that they fixed a bug that made possible that an attacker can execute any code in your computer with a forged website, or attacking your computer with carefully forged packets, etc...
Because you read it so often that means any program can have similar vulnerabilites... What causes this? how to design our programs to prevent similar issues?
I was told this a few times in this very site, but I wanted to make sure this is really the case.
I was expecting to be able to sprinkle NSLog function calls throughout my code, and that Xcode/gcc would automatically strip those calls out when building my Release/Distribution builds.
Should I avoid using this? If so, what alternatives are most common between experienced Objective-C programmers?
I've been pondering over this question for a long time already.
On the one hand, Interface Builder offers a really easy way to design the interface and wire the elements up with objects in code.
On the other hand, in larger projects, Interface Builder becomes a hassle to maintain.
Any suggestions would be greatly appreciated.
The PHP function oci_connect (which connects to an Oracle database) just returns false if it fails, which at the moment I handle like this:
$connection = oci_connect($username, $password, $database);
if (!$connection){
return $result = "Trouble connecting to the Oracle Database";
}
But really I'd like to have the actual ORA error code, so I can be more informative. Is this possible?
Hi, This file
String.h
i found while searching about string.h.
Where i can find functions implementation of functions defined in string.h
i.e [say] source code of "void *memcpy(void *, const void *, size_t);
"
Also i want to ask how to make ur functions as an interface with its implmentation hidden from developer as string.h functions has.
I'm using ECJ with Java. I have an army of individuals who I all want to have the same brain. Basically, I'd like to evolve the brains using GP. I want things like "if-on-enemy-territory" and "if-sense-target" for if statements and "go-home" or "move-randomly" or "shoot" for terminals. However, these statements need to be full executable Java code. How can I do this with ECJ?
Both ideone.com and codepad.org 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,
What will work faster - using PEAR package or require Some_Library.php files in code?
For example, what is faster - using Smarty as PEAR module or using require_once("Smarty.php")? Have anyone tested this?
Thank you
I do not have many kinds of Exceptions in my project.
Right now,(we use MVC) I have the try catch encompassing my entire code:
try{
fronController::dispatch($somthing...);
}catch(Exception $E){
//handle errors
}
I wonder if there is a good reason to use the try-catch block in as specific as possible way as I can or just keep it general as it is now?
I have been using IAR so far, but it crashes sometimes and doesn't have code completion.
Also, the other dev environments I use are eclipse based.
Which one should I buy?