icurtain - tail lights

PHP Get/Set Generator

2008-07-23 15:28:19 digg this!


get/set code generator for PHP - all Java development environments allow you to do this

enter comma seperated variable names: size, length, width, etc


Projects for July 2008

2008-07-13 21:06:27 digg this!


Finish ORM classes for database and XML
Work on existing systems to implement full XML output from logic classes to display classes

PHP Variable Variables..

2008-07-01 18:41:15 digg this!


$var = "value";
$value = "some value";
echo $$var;

For some insane reason PHP allows you to have variable variables.. if you ever use these you should probably be prohibited from using a computer again


Session Manager class for cookies in PHP

2008-06-27 20:15:40 digg this!


Here is a little class I've written to make handling cookie sessions a little nicer in PHP. I'm not a big fan of cookies but PHP makes a real mess of 'transparent' session ids with search engines - making it think you have infinite web pages.. so here goes

remember cookies arn't nice and create privicy issues so only use them when necessary


PHP ArrayList Class

2008-06-25 13:16:47 digg this!


PHP ArrayList Class - Having spent the last year working in Java, working with PHP now makes me cry and weep in anguish.. for many reasons, one of the main ones being its' complete inability to store more than 1 thing in anything other than an array

I have attempted to create a class that handles data in a marginally more friendly manner allowing you to interate through etc.. it's still a bit BETA but it speeds up my development times.. so here it is

With it you can while($arrayList->hasNext()){} and do all kinds of other crazy things that will bring endless listing joy to your life - mail me if you have any improvement suggestions


whois on linux

2008-06-19 07:21:08 digg this!


installing whois on a linux box

# sudo apt-get install jwhois

# yum install jwhois

or

browse to: http://packages.qa.debian.org/j/jwhois.html

find the latest version and

# wget http://ftp.debian.org/debian/pool/main/j/jwhois/jwhois_4.0.orig.tar.gz

tar xf jwhois_4.0.orig.tar.gz

# cd jwhois_4.0/

# ./configure

# make install

get your environment variables / path with:

# env
:: PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

# cd /usr/local/bin

create a symbolic link so you can call whois url

# ln -s jwhois whois

then put the link in the path

# mv whois /usr/local/bin


Firefox 3 - Http/1.1 Service Unavailable

2008-06-17 12:08:12 digg this!


Http/1.1 Service Unavailable - Mozilla's 'download' party seems to be a bit of a flop - the Microsoft moles in the marketing department really screwed them on that one ;)

search for DHCP servers on a network - dhclient

2008-06-16 09:33:26 digg this!


If you wish to search for DHCP servers on a network just type:
dhclient [interface]
and it will bring back information on all running DHCP servers on your subnet


compile kernel in gentoo

2008-06-10 08:40:34 digg this!


compile kernel in gentoo

cd /usr/src/linux/

make menuconfig

Linux Kernel v2.6.*-gentoo Configuration

make

make modules_install

cp arch/i386/boot/bzImage /boot/kernal-2.6.*-gentoo


Open Office - Unsatisfied Link Error

2008-06-09 09:55:04 digg this!


when running open office from a bootstrap routine or in headless mode for batch processing make sure the following settings to avoid an unsatisfied link error

soffice -accept="pipe,name=my_app;urp;"
java -Djava.library.path=/opt/openoffice.org/program java.app.class

useful reference on Oo: http://www.oooforum.org/forum/viewtopic.phtml?t=40263


design by bluemedia | Site Search page generated 2008-07-23 23:18:27