HOW-to: PHP Multiple Select List Box quick and easy..

On December 30, 2009, in How-to, Scripting, by Cubert aka (Cube Dweller)

Sometimes you find that it requires a little looping to get data from a form when using PHP and Multiple select list boxes. Here is a quick and easy way to loop through select data sent from a form in html. We also show you here how to use a Array of data to create the options. This is great if your doing a database query and need to use Continue reading

Tagged with:
 

Keeping Time on Linux using ntpdate and hwclock

On December 23, 2009, in How-to, by Cubert aka (Cube Dweller)

If you want a quick way to keep your linux system up to current time then just pop in our little script and your stay on time.

You can also use the following script to run every hour from your cronjob or create a file and copy the following to it. Place file in /etc/cron.hourly
#!/bin/sh
#Quick script to update time and push time to hardware clock
#Created Continue reading

Tagged with:
 

ELGG Plugin:AdBrite -> BritePics patch for TidyPics

On December 17, 2009, in How-to, Projects, Scripting, by Cubert aka (Cube Dweller)

As part of Squidworks community involvement in Open source software we have added another code enhancement to the ELGG community.

This patch adds the BritePics Advertising feature to TidyPics plugin for ELGG.
Now when your images are viewed in full size your Adbrite account will post a quick ad over image. It also helps protect your images as the images is now wrapped in a flash player Continue reading

Tagged with:
 

Hobbit / XYMON undefined reference to `clock_gettime’

On December 8, 2009, in How-to, by Cubert aka (Cube Dweller)

Hobbit / XYMON does not compile on CentOS 5 and complains about clock_gettime issues.

Here is how to fix this issue.
Download Hobbit-4.2.3.tar.gz
#1 make sure pcre-devel is installed (#~yum install pcre-devel)
#2 add xymon user (#~useradd xymon)
#3 set varible for “ltr” (#~LIBRTDEF=-lrt)
#4 export varible (#~export LIBRTDEF)
#5 Configure Hobbit inside hobbit src directory (#~./configure –client)
#6 Compile program (#~make)
#7 Install program (#~make install)
#8 Start Continue reading

Tagged with: