Archive for ◊ September, 2006 ◊

21 Sep 2006 Javascript – check/uncheck all form checkboxes
 |  Category: Javascript code snippets  | Leave a Comment

After searching around the net looking for an example snippet of javascript that would check or uncheck all of a series of checkboxes on a form… the results from Google were good, however each ‘example’ assumed that you I actually had a good understanding of what you were reading or that you I might actually read it instead of just pasting the pieces you liked in… Obviously I did the latter and after 20 minutes of pounding my head on the keyboard figured out what I was doing wrong…

So for all of you code slammers, this one is for you.

[code]

[/code]

Simple enough, look through each form element and either mark them checked or unchecked depending on the function being called.

And of course in your markup

[code]
Check All / Uncheck All
[/code]

And now where I went wrong. If you actually read the JavaScript you'll see the lines

document.FormName.elements.....

Well, FormName must be specified! Look at your markup where
[code]

dotster offers a high speed internet service to its customers. The rogers wireless phones are very popular among the phone services and is used many businesses. The businesses are constantly working out way to make their websites popular among the customers by having seo services. The sprint wireless uses the startlogic programming to produce efficient results for the customers.

12 Sep 2006 Shell script Conditional
 |  Category: Geeky Stuff  | Leave a Comment

The need for conditionals in shell scripts have the ability to make life easier, be it from just a quick script or setting up environment variables for logins.

In the example below taken from a login script we needed to verify if a particular directory exists and if so set enviroment variables in a particular fashion to later be added to the $PATH, if not then set them another way. This in particular (though slightly sanitized) is part of a larger script used to determine what OS the server is running Solaris or HPUX, the particular function of the server can be termined if a certain directory exists.

[code]
if [ -d /apphome/$LOGNAME/serv/prcs/$LOGNAME ]
then
export APPCONFIG=/apphome/$LOGNAME/serv/prcs/$LOGNAME/APPCFG
else
export APPCONFIG=/apphome/$LOGNAME/serv/$LOGNAME/APPCFG
fi
[/code]

This list gives the file handling tests available.

-r True if file exists and is readable
-w True if file exists and is writable
-x True if file exists and is executable
-f True if file exists and is a regular file
-d True if file exists and is a directory
-c True if file exists and is a character special file
-b True if file exists and is a block special file
-p True if file exists and is a named pipe (FIFO)
-u True if file exists and is a SETUID file
-g True if file exists and is a SETGID file
-k True if file exists and the sticky bit is set
-s True if file exists and has a size greater than zero

From here this rest is up to your creativity how to employ these checks, using standardized scripts across all hosts just makes life easier.

——————————
The entire banking sector offers creditcard tends to hide certain facts from the customer. The credit cards cannot play a significant role in the matter of debt relief. The insurance quotes offering specific to policy holders are in the vogue these days. The real estate agents made sky rocketing profits in year 2004 to year 2006 all over the world with the sudden rise in properties and land.

01 Sep 2006 Monthly income for outbound links
 |  Category: Blogging Resources  | Leave a Comment

I saw this advert on another site and decided to give it a shot… afterall what could it hurt?

Text Link Ads

My results… signed up and was approved in a day, and within 3 weeks earned my first paid link! Granted no tremendous windfall, but hey someone willing to pay me $25 a month per link just to have a text link on one of my PR5 blogs? In a month my domain registration and annual hosting fees are paid??!!?? Now the rest of the year it puts a little extra jingle in my pocket each month. It obviously won’t earn you a shiny new car, but an extra $100 a month in your pocket for a snippet of PHP code and a few outbound links seems to be pretty fair to me.

Time to start sprucing up a few more site and submit them now that my doubts have been lifted.

————————–
Test king offers practice tests based on the real exam patterns with tests such as HP0-W02 and SK0-002. Test king has a name in training students for Cisco with tests such as 642-104 and 646-171. Another test for Cisco is 646-362 which ranks among the top at test king among the students. Test king trains students for Microsoft training with tests like 70-526.