phpfunk.com


Archive for the ‘Uncategorized’ Category

captcha is a catch 22

Wednesday, June 29th, 2011

I saw this as a captcha question on a website today: “Number of arms you have + the highest prime below 10″. The user is supposed to answer the question in order to submit the form. My point is this is too difficult. Unless everyone that will visit your site knows the definition of a [...]

burn cd images from the command line

Friday, May 27th, 2011

To burn cd images from the command line in Debian squeeze you need two packages: (1) genisoimage (2) wodim To make an ISO image of a directory simply type: genisoimage -o outfile_name some_directory To burn the image use wodim. First figure out which optical drive to use by asking wodim for a list: tom@osmium:~$ wodim [...]

networked HP all-in-one printer on Debian

Tuesday, April 5th, 2011

These are my notes for using an HP C7280 All-In-One printer as a network printer for use with Debian squeeze. Install the package hpli-gui for a fancy UI front-end. We need to execute /usr/bin/hp-toolbox to set up the printer. First however you need to add your user to lpadmin, otherwise you will not be able [...]

essential perl

Thursday, March 17th, 2011

This post summarizes fundamentals of the perl programming language such as using arrays and hashes. In perl an array is often called a list. Hashes are associative arrays. If you want to see much more detailed information checkout perldoc.perl.org. self defense Always use strict and use warnings either declared in the she-bang or later in [...]

how to get raw http request parameters from php

Wednesday, August 25th, 2010

Turns out php will tinker with names of HTTP request parameters in some circumstances. The reason is historical: register globals was a dumb idea that allowed request parameters to be converted into php variables. A request parameters is something like ?id=42 in a GET request, or the name of a form input in a POST [...]

site in transition

Tuesday, February 9th, 2010

Recently converted site to wordpress. Does about 90% of what is needed, but sometimes the layout isn’t compatible with the content (eg: text and images in the main column flow over into the right column). Really don’t have time to fix the layout at the moment, so it is what it is. And for what [...]

website redesign

Saturday, February 6th, 2010

It was time to redesign phpfunk.com so to better accomodate our expanding content. Solucija provides some excellent CSS templates and we selected one for the make-over of the website. However, rather than use the CSS template directly we carefully adapted the design to use our favorite CSS layout: ruthsarian 3-column skidoo too. In fact, just [...]

review of web hosting companies

Saturday, February 6th, 2010

Here find summarized our experiences with some hosting providers. In most cases we have worked on more than one site on each host, and maintained them over a period of a couple years. Hopefully this can help you find reliable hosting company for your site. Dreamhost.com Dreamhost.com is the best shared hosting web host. We [...]