This question is related to a previous post.
Is there something comparable to sqlsrv_query() on a linux server?
Or something extremely simple to parameterize queries for a LAMP(php)/SQL server?
I am used to developing in PHP/MySQL and have no experience developing with MSSQL. I've skimmed over the PHP MSSQL documentation and it looks similar to MySQLi in some of the methods I read about.
For example, with MySQL I utilize the function mysql_real_excape_string(). Is there a similar function with PHP/MSSQL?
What steps do I need to take…
I think HipHop for PHP is an interesting tool. It essentially converts PHP code into C++ code. Cross compiling in this manner seems like a great idea, but I have to wonder, how do they overcome the fundamental differences between the two type systems? One specific example of my general question is heterogeneous data structures. Statically typed…
Hi,
In old DOS script, I can run an R script with the following syntax:
Rterm.exe --quiet --slave --vanilla < "C:\some_script.R"
However, Powershell seems to have reserved "<" for future expansion. I am wondering if there is a direct way to run R script within another powershell script.
Thanks
Hi,
I am looking at the examples given at the XML_Serialize pear plugin manual.
I can't figure out what the option 'addDecl' does in this plugin.
What does this do?
How can I list all FRAMESET elements in an HTML document using JavaScript? I know it must be possible to select these elements in the DOM tree because the DOM Inspector plugin for Firefox is able to list all the FRAMESETS in a page.
Why is the Log4j rootLogger in my application not filtering log events according to level? In my log4j.properties, I have several loggers:
log4j.rootLogger=info,stdout
log4j.logger.com.name.myapp=debug,myapp
log4j.logger.org.castor=debug,castor
log4j.logger.org.exolab.castor=debug,castor
log4j.logger.org.hibernate=debug,hibernate…
I'm attempting to profile my code using the iPhone simulator. I've enabled Generate Test Coverage File and Instrument Program Flow and added -lgcov to the linker flags. According to everything I've read that should be all I need to do in terms of setup.
Executing the program I can see the .gcno files appearing along side the .o…
assuming I running Scala 2.8.0 RC1, the following scala code should print out the content of the file "c:/hello.txt"
for ( line<-Source.fromPath( "c:/hello.txt" ).getLines )
println( line )
However, when I run it, I get the following error
<console>:10: error: missing arguments for method getLines…
Hi,
I am getting really frustrated and I cant seem to check if the user has entered a valid url or not. This is what I have tried:
NSString *str = [NSString stringWithFormat:@"%@", [myurl.text stringByAddinPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSURL *aurl = [NSURL URLWithString:urlStr[;
if(aurl == nil){…
I have slightly adapted the custom behavior code that can be found here:
http://www.reflectionit.nl/blog/default.aspx?guid=d81a8cf8-0345-48ee-bbde-84c2e3f21a25
that controls a MediaElement.
I need to know how to go about testing this with Rhino Mocks e.g. how to instantiate a new ControlMediaElementAction in test code and…
My question is, is there a way to make this code more efficient or write it in a simple way? javascript by the way.
switch (tempvar1) {
case 1:
currentSlide = 'slide1';
showaslide('ppslide1');
break;
case 2:
currentSlide = 'slide2';
showaslide('ppslide2');
break;
case 3:
currentSlide =…
Hi all,
In my update form, I want the fields to recall the values that are already stored. This is very simple in a text field, but for my drop down () I'm having trouble with PHP reading the already stored name of user. Here is my query and code:
$sql = "SELECT users.user_id, users.name FROM users";
…
Hi all,
I have a structure defined like so:
typedef struct {
int n;
int *n_p;
void **list_pp;
size_t rec_size;
int n_buffs;
size_t buff_size
} fl_hdr_type;
and in my code I Have a function for initlialization that has the following
fl_hdr_type *fl_hdr;
fl_hdr = malloc(sizeof(fl_hdr_type) + (buff_size_n *…
I have a question about memory management when using the addObjectsFromArray method. Basically, I have 2 arrays defined in the appDelegate. I need these 2 arrays for the duration of my application's runtime. I therefore release them in my appDelegate's dealloc method.
When I go to use these two arrays in a class,…
Hi all, I am not a Java programmer really, so I am posting this question. The exception is being thrown java.lang.UnsupportedClassVersionError in my main class in an eclipse project. If I comment out the imports that this class has, it compiles and runs fine. If I put the imports back in, it does not work. Does…
I'm trying to find a good environment to building and maintain an existing website. Would Adobe's Dreamweaver be a good purchase as far as coding in PHP, html, jquery, with a mysql database?
Hi All,
I am trying to figure out how many clock cycles or total instructions it takes to access a pointer in C. I dont think I know how to figure out for example, p-x = d-a + f-b
i would assume two loads per pointer, just guessing that there would be a load for the pointer, and a load for the value. So in…
My output for my table in HTML has several columns such as userid, name, age, dob.
The table heading is simply the title of the column name, I want this to be a link, and when clicked, the selected column is sorted in order, ASC, and then DESC (on next click). I thought this was pretty straight forward but…
As the question states, I am using the MIPSPRo C compiler, and I have an operation that will return NaN for some data sets where both the numerator and denom are zero. How do I keep this from happening?
I'm assuming Mercurial is for having an updated website and it archiving the old stuff? Easy to test things and such?
My question is, how exactly should I get started and can somebody give me a crash course in using Mercurial and using the following techs below:
Notepad++ for coding
FTP
PHP/MySQL
Jquery…
How do I change the Castor mapping
<?xml version="1.0"?>
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
"http://castor.org/mapping.dtd">
<mapping>
<class name="java.util.ArrayList" auto-complete="true">
<map-to…
I would like to create an NSDictionary (or something similar) that has two keys per value. It will be for English/Spanish word look-up, where:
each value is an array containing all the conjugated verbs in English AND Spanish.
each (two) keys contains both an English infinitive (e.g. "to be", "to…