The Dude abides.

Posts Tagged PHP

foss.in schedules out!

So the foss.in schedules are out. Here is my pick of talks to attend:

OpenOffice + Fedora tracks on the project days
The FOSS.in inaugration talk
Ajunta DevStudio
How and Why You should be a Kernel Hacker
Meet Hadoop (Open Source Grid Computing)
GCC Internals: A Conceptual View into GCC
Plan 9 from Bell Labs
Union Mount: VFS based Filesystem Namespace Unification for [...]


FreeBSD pecl-shape, pecl-params ports; mini_httpd response timeout hack

Submitted pecl-shape and pecl-params ports. Finally got subscribed to freebsd-ports mailing list, will propose to take over tdb port (and with that, submit pecl-tdb).
For those using mini_httpd and wanting it to NOT timeout after 300 seconds, edit mini_httpd.c and comment out the following lines:

1
2
3
4
5
6
7
8
9
10
11
#ifdef HAVE_SIGSET
 
(void) sigset( SIGALRM, handle_write_timeout );
 
#else /* HAVE_SIGSET */
 
(void) signal( SIGALRM, handle_write_timeout [...]


Command Line Web Blogger (clib)

This post is dedicated to Colin Charles
This is an example of a first post using clib, a BSD licensed command line tool I wrote to blog directly from VIM (it posts to your blog using XML-RPC). clib supports:

Posting new blog entries
Updating blog entries
Deleting blog entries
Setting publish/draft status
Setting categories
VIM support

Enjoy!
Comments: Yes


Identify your files with confidence!

In a web application, allowing users to upload files is always a risky manevour. One way I have heard of to reduce the possibility that the user is not uploading invalid data is to verify the file type. This is of dubious usefulness as a sufficiently crafty attacker will do crazy things like embed PHP [...]


Some nifty Unix tricks for PHP devs

The Unix userland utilities have a startling number of cool tricks that can make a developer’s job easy as can be. This is a list of common tricks I use:
1. ssh-copy-id
ssh-copy-id is one of those cool tools that deserve more hype that it is currently receives. In essense, ssh-copy-id does all the hard work of [...]


← Before After →