get/set code generator for PHP - all Java development environments allow you to do 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
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 - 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
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
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
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
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