Forum: Shell Scripting Jun 23rd, 2008 |
| Replies: 1 Views: 2,367 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 this one (http://suso.org/docs/shell/ssh.sdf)). Note that an... |
Forum: Shell Scripting May 14th, 2008 |
| Replies: 1 Views: 1,542 cat abc.txt | sed -e 's/^host=atlx3.*/#&\n&/' |
Forum: Shell Scripting May 12th, 2008 |
| Replies: 1 Views: 1,276 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:
#! /bin/sh
ssh 172.16.1.2 <<EOF... |
Forum: JavaScript / DHTML / AJAX May 12th, 2008 |
| Replies: 3 Views: 920 Check out the description of the IE box model bug (http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug). That article also has links to some workarounds. |
Forum: PHP May 12th, 2008 |
| Replies: 11 Views: 28,503 OK, if your mobile is attached to the COM port (i.e. rs232 serial port - *NOT* usb), then you should download the php_serial class.
Then look at this blog... |
Forum: PHP May 11th, 2008 |
| Replies: 11 Views: 28,503 There's a section on what AT commands to use at developershome.com (http://www.developershome.com/sms/howToSendSMSFromPC.asp), the site also has links to some software libraries ... |
Forum: JavaScript / DHTML / AJAX May 11th, 2008 |
| Replies: 2 Views: 1,862 You can either use a refresh meta-tag or you can set window.location in javascript.
Here is the javascript solution:
<html>
<head>
<script... |
Forum: PHP May 9th, 2008 |
| Replies: 1 Views: 777 Yes this is possible. The layout of the forum pages is controlled by whatever style you've decided to use, under the directory styles/style name/templates.
The one you're most likely going to want... |
Forum: PHP May 8th, 2008 |
| Replies: 3 Views: 839 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... |
Forum: Shell Scripting May 8th, 2008 |
| Replies: 3 Views: 4,121 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
date --date=yesterday +%y%m%d
See... |
Forum: JSP Apr 25th, 2008 |
| Replies: 11 Views: 1,903 You need to download the sql server 2005 jdbc driver (http://msdn2.microsoft.com/en-gb/data/aa937724.aspx) (sqljdbc.jar) and make sure it is on the application server/servlet container's CLASSPATH. ... |
Forum: JavaScript / DHTML / AJAX Apr 24th, 2008 |
| Replies: 3 Views: 1,570 The following doesn't work on the website you quoted, but seems to work on firefox (with the briefest of testing :) )...
var sRegexp = "so[0-9]+_[0-9]+\.write\\(\'.*\'\\)\;";
I've added... |
Forum: Database Design Apr 24th, 2008 |
| Replies: 7 Views: 1,052 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... |
Forum: Shell Scripting Apr 22nd, 2008 |
| Replies: 2 Views: 1,163 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). ... |
Forum: MySQL Apr 15th, 2008 |
| Replies: 4 Views: 700 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... |
Forum: MS SQL Apr 11th, 2008 |
| Replies: 4 Views: 1,912 Use an outer join.
e.g
SELECT
Main.ID,
Main.Name,
Contact.Name AS Contactname
FROM Main Left Join Contact on Contact.ID = Main.ContactID
This will include all rows in the Main table... |
Forum: Shell Scripting Apr 11th, 2008 |
| Replies: 1 Views: 1,004 The line
if [ "$i" -eq "$x" ]
should be
if [ "$i" = "$x" ]
The -eq operator is used for numeric comparisons, "=" is used for string comparisons. |
Forum: Database Design Apr 3rd, 2008 |
| Replies: 6 Views: 1,298 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"... |
Forum: MySQL Apr 1st, 2008 |
| Replies: 7 Views: 1,160 As you've probably found out, the trick to this one is that if you just join MEET to the query and group by MNAME, you'll get a list of the best time for the athlete at every different meet they've... |
Forum: Shell Scripting Mar 31st, 2008 |
| Replies: 1 Views: 736 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
if( letter == "," || letter == " ") {
j=m;
... |
Forum: MySQL Mar 31st, 2008 |
| Replies: 2 Views: 757 "order" is a reserved word so you need to quote it if you're going to use it for a table name. See here (http://dev.mysql.com/doc/refman/5.0/en/identifiers.html) for details. |
Forum: MySQL Mar 30th, 2008 |
| Replies: 4 Views: 764 It's a difficult problem, but if you limit the vocabulary that can be used it's doable. Check out http://www.markwatson.com/opensource/#nlbean for an example implementation in Java. |
Forum: C++ Mar 28th, 2008 |
| Replies: 34 Views: 2,579 He meant that
struct moto{
char gra[10];
rodzaj[10];
int rok_produkcji;
};
should be
struct moto{ |
Forum: MySQL Mar 28th, 2008 |
| Replies: 7 Views: 1,160 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.
... |
Forum: Database Design Mar 28th, 2008 |
| Replies: 3 Views: 1,808 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... |