im trying to interface a Gramin usb GPS to get the coordinates in a visual basic project, but i dont have an idea how to accomplish this, anyone point me out in the right direction please?
Basically i record / import video , it saves to the docs folder and im trying to figure out how to get the length (time) so i can display it for each individual video..
I have a column in the database for it and the neccessary code to display it, just not sure how to get it..
Any help is greatly appreciated
For my forms, I'm using pg_escape_string on every field before I insert them into the database. So I get something like firstname='O''reilly'. But when I try to print that out, I get O''reily, 2 apostrophes. Shouldn't it only 1 apostrophe, O'reilly?
This isnt a debugging problem, im just wondering if you have firstname='O''reilly', how do you print that so it is just O'reilly instead of O''reilly?
I want to test how priorities are working in the delayed_job plugin. Im using the mailit app from railscasts. I think i want to send 100 messages with a high priority and 100 with a lower priority. And i want to see if the messages with a lower priority will be delivered on time or they will be put aside.
How can i do a test like this.
hi implementing an wcf service that executes scripts (C# code) saved in a specific folder.
but i have a problem it crashes in all pcs except the pc that im developing in all are the same edition of win7 . How ican see why it's crashing ?
the WCf service is hosted in a windows service
currently im able to play .wmv videos from my application using shell execute which plays it in the windowsmedia player. However I need to be able to play .3gp videos which unfortunately the windows meadia player does not support. Is it possible via api etc to play 3gp videos on win mobile 5 and 6 devices?
I am learning HTML and I have a good book to learn with but my cousin told me that I should pick a fun project to learn how to program but im not sure what I should do.
what is the most fun project to do when you are learning HTML?
hi all,
i've been reinstalling my oracle and somehow when im trying to start them, it says that apphelp.dll is missing. when i lookup in c:/window/systems32 the apphelp.dll was there. i also download new from internet and try to replace them in case it crash but it said that i cannot delete the file coz it's still running.
my question is, if i was doing the right thing by replacing the apphelp.dll can solve my problem, how can i stop this apphelp.dll?
thanks
Is there a way to access ruby variables in sass or do i have to make a custom function for it?
What im trying to do is to generate a stylesheet for each user so in the controller, i do something like:
def show
respond_to do |format|
format.css{render :partial => "styles"}
end
end
then in the view name _styles.haml i do this:
:sass
#header
:background url(user.banner.url)
is this possible at all?
Hey guys, was wondering how do i use the NSXML parser.
so lets say given i have a simple xml file with elements like
1/1/1000
14:15:16
How could i use the NSXMLParser to parse the XML File(Its on locally btw, desktop), check through each element and store each of them in an array either to be displayed/used later?
I was looking through some documentation about it and i absolutely have no idea on how to use the parser
i know that there are 3 methods(or more ,please correct me if im wrong) that can be overridden
-..etc didStartElement
-..etc didEndElement
-..etc foundCharacters
I have a script im writing. Here is whats happening. There is a while loop. In the while loop is a variable which is constant to X. How do i make X change from line one, line two, etc for each cycle of the while loop and pull X from a .txt file. Everything is in root. Thanks
I would like to include libQtGui.so.4 libQtNetwork.so.4 and libQtCore.so.4 in the same directory as where my app resides. How would I make Qt understand this? y purpose is to have a standalone app that uses shared libraries
update: im gonna try to first remove them with QT-=gui etc and seeif I can add mine back after
So i have a SQL table setup as such
CREATE TABLE IF NOT EXISTS `points` (
`id` int(11) NOT NULL auto_increment,
`lat` float(10,6) NOT NULL,
`lng` float(10,6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
And im inserting stuff like
INSERT INTO `points` (`lat`, `lng`) VALUES ('89.123456','-12.123456');
Gives me a row with lat and lng being 89.123459 and -12.123455
Whats up?
Hello,
I am a seasoned Delphi developer and would like to create something like seamless terminal services where an application is executed on a server but appears on the the desktop of the client.
To someone working on the server i don't want them to see the remote application running (except if they looked in at the list of running processes).
Im lost as to how to go about this, where to start, how to get an application to render to a surface other than the servers desktop.
Any suggestions would be most appreciated.
int userHP = 100;
int enemyHP = rand() % ((userHP - 50) - (userHP - 75)) + 1;
okay, for some reason this doesnt seem to work right, im trying to get 50 -25 hp for enemys.
also id rather it be a percentage... like
int enemyHP = rand() % ((userHP / 50%) - (userHP / 75%)) + 1;
but id like to stick with integers and not mess with floats or doubles... can someone help me?
i am submitting a from using jQuery ajax, and server is returning json response. but instead of the script, parsing the json result, the browser is prompting me to download the json response.
I have had this problem before, where i forgot to return false at the end of the event handler. But this time im clueless why this is happening.
anyone has experienced this problem..
thanks
Im building an automatic refreshing comment section for my website using jQuery .load. So I am using a javascript 'setTimeout' timer to check for new comments.
But after doing some stuff like changing comment pages or deleting (all using ajax), a few old timers keep running, even though I used clearTimeout before loading new ajax content.
Is there some way to clear ALL javascript timers when I load new ajax content?
I'm a seasoned PHP programmer and I really like the way it works and find it very fun to work with (performance could be improved and some functions renamed, but nothing too serious).
However, I took a java seminar and now Im very interested in using GWT for upcomming projects, although I think the learning curve can be steep.
Should I really go through with this change (PHP JAVA)? Where to begin?
Hi
this is probably something really simple but I cant see what!
Any images I have in a masterpage aint showing in child pages,
all i get is the box with the red cross in it.
Dont think Ive done anything different from usual and its not something thats
happened in other sites so im kinda scratchin my head with it.
Any ideas appreciated!
thanks
DD
Hello,
I'm basically looking to simply print out each of the allowed values in a CCK field..
i know the allowed values are stored inside a text field within the table: 'content_node_field'.
the values are then stored within 'global_settings'
I'm looking to somehow print out each individual allowed value using a PHP loop.
however with all values being stored within one text field.. im finding it hard to print out each value individually.
Hi,
Im making a game in xna where a tank has to move over a landscape.
I need to be able find the bottom of the tank when it is rotated so I can make it move up and down as the player goes over the landscape.
for example if i have a sprite at with its top left corner at 400,300 and i rotate it around its center by 45 degrees around its center, how do i find the new locations of the bottom track.
Thanks
Hi all,
I was working on a application with Zend Framework and PDO_MYSQL Adapter.
But my client server doesnt support PDO_MYSQL
I changed the adapter to Mysqli and im getting
Invalid bind-variable name
error.
How to resolve it thanks in advance.
Regards
Nizam
I want to make it so that anytime the db is queried for an sfGuardUserProfile it is autmoatically joined and hydrated with its related sfGuardUser.
If i was using propel i would normally override the doSelectStmt method of the sfGuardUserProfilePeer class to inspect the Criteria and modify it as necessary as well as modifying the hydrate method of the sfGuardUserProfile class. Im not sure how to go about doing this in Doctrine though.