- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
23 Posted Topics
Re: The gnu version of the "date" command (as used in linux/cygwin) has this functionality built in already. If you are using linux you can simply use [CODE] date --date=yesterday +%y%m%d [/CODE] See man date for more details. | |
Re: There's a section on what AT commands to use at [URL="http://www.developershome.com/sms/howToSendSMSFromPC.asp"]developershome.com[/URL], the site also has links to some [URL="http://www.developershome.com/sms/freeLibForSMS.asp"]software libraries [/URL]. A search on [URL="http://sourceforge.net/search/?type_of_search=soft&type_of_search=soft&words=sms"]sourceforge[/URL] also lists a lot of sms related software. Do you want to send sms from a local application running on your pc? Php wouldn't be … | |
Re: Use an outer join. e.g [code=sql]SELECT Main.ID, Main.Name, Contact.Name AS Contactname FROM Main Left Join Contact on Contact.ID = Main.ContactID[/code] This will include all rows in the Main table whether they match to a Contact row or not. | |
Re: rsh or ssh. rsh is insecure but very easy to setup. ssh is secure and there are many tutorials available on how to set it up (such as [URL="http://suso.org/docs/shell/ssh.sdf"]this one [/URL]). Note that an ssh server needs to be running on the remote machine you want to run the commands … | |
Re: cat abc.txt | sed -e 's/^host=atlx3.*/#&\n&/' | |
Re: Check out the description of the [URL="http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug"]IE box model bug[/URL]. That article also has links to some workarounds. | |
Re: You can either use a refresh meta-tag or you can set window.location in javascript. Here is the javascript solution: [CODE] <html> <head> <script type="text/javascript">window.location="http://msm.com";</script> </head> </html> [/CODE] Here is the REFRESH solution: [CODE] <html> <head> <META http-equiv="refresh" content="1;URL=http://msm.com"> </head> <body> REDIRECTING YOU.... </body> </html> [/CODE] | |
Re: At the moment you are throwing away the output from running /etc/sbin/alternatives because it gets filtered through grep before you print the value of $sa. Try: [CODE] #! /bin/sh ssh 172.16.1.2 <<EOF sa=`/usr/sbin/alternatives --config java 2>&1` echo "Result:" echo "$sa" echo echo "Will I find anything when I look in … | |
Re: Yes this is possible. The layout of the forum pages is controlled by whatever style you've decided to use, under the directory styles/[I]style name[/I]/templates. The one you're most likely going to want to customize is overall_template.php. The best way might be to find a style thats similar to what you … | |
Re: If you want to add the input boxes dynamically then you should use javascript to add them into the innerHTML of a div on your page. The example below should do what you want, it adds new input boxes into the inner HTML of the div called "inputBoxes" whenever you … | |
Re: You need to download the [URL="http://msdn2.microsoft.com/en-gb/data/aa937724.aspx"]sql server 2005 jdbc driver[/URL] (sqljdbc.jar) and make sure it is on the application server/servlet container's CLASSPATH. An easy way of doing this is to put sqljdbc.jar in your webapps WEB-INF/lib directory. There is plenty of documentation on MSDN on how to use it. A … | |
Re: I wouldn't recommend seperate tables for each of the flavor types. Here are two possible methods.... 1) Your first choice - put then into one table. This is relationally correct as the flavor-specific attributes have the flavor as the determinant (i.e they really do belong to the flavor). i.e [CODE] … ![]() | |
Re: The following doesn't work on the website you quoted, but seems to work on firefox (with the briefest of testing :) )... [CODE] var sRegexp = "so[0-9]+_[0-9]+\.write\\('.*'\\)\;"; [/CODE] I've added escaping for the "." before "write", the single quotes, the semicolon, and the parenthesis. | |
Re: Your sort is doing a sort by native byte values (space is ascii 32, which is less than the ascii codes for the other characters). If you can, use the gnu sort (this is the default for linux). It sorts the same way as excel does because it uses your … | |
Re: I assume form_id in the form table is AUTO_INCREMENT'ed. After inserting into form, you need to retrieve the form_id from the newly inserted row and use this in the insert statement to insert into the register table. It won't happen automatically. Luckily mysql has the "LAST_INSERT_ID()" function to make this … | |
Re: The line if [ "$i" -eq "$x" ] should be if [ "$i" = "$x" ] The -eq operator is used for numeric comparisons, "=" is used for string comparisons. | |
Re: The normal way to do this is to have a logicallyDeleted flag on the main table. You would normally have a trigger fire when this flag is set to true to copy the row to your "logicallyDeleted" table for you. Deleting a row can then be done by simply setting … | |
Re: The query below should do what you want; It will always be a fairly chunky query and won't be lightening fast, no getting around that for the information you want, but should run reasonably. [CODE] select b.first, b.last, min(score) as bestTime -- assuming that the lowest score is the best … | |
Re: "order" is a reserved word so you need to quote it if you're going to use it for a table name. See [URL="http://dev.mysql.com/doc/refman/5.0/en/identifiers.html"]here[/URL] for details. | |
Re: He meant that struct moto{ char gra[10]; rodzaj[10]; int rok_produkcji; }; should be struct moto{ char gra[10]; [B]char[/B] rodzaj[10]; int rok_produkcji; }; | |
Re: awk doesn't have "then" and "fi" like shell does. It uses a c/java like syntax where || means "or", && means "and", "==" means equals. e.g [CODE] if( letter == "," || letter == " ") { j=m; } [/CODE] | |
Re: It's a difficult problem, but if you limit the vocabulary that can be used it's doable. Check out [URL="http://www.markwatson.com/opensource/#nlbean"]http://www.markwatson.com/opensource/#nlbean[/URL] for an example implementation in Java. | |
Re: You need a table to record the results of each event (If you are only interested in the winner, not second place, third place etc then you could just put a pupilId in the event table to record just the winning pupil). You need the eventId against the equipment table … |
The End.