Warning: ereg() [function.ereg]: REG_BADRPT in /home/chris/http/access.php on line 23
Krhis’s Journal » Source Code

Archive for the ‘Source Code’ Category

Wordpress SVN /trunk

Thursday, June 28th, 2007

No more tarballs for me, following papmech this blog is now running Wordpress 2.3-alpha revision 5773 via Subversion (SVN). I have set up a cron job to run every 8 hours to automate the process, so I will always be running the latest development code.

The trunk contains the latest development code, which is currently tagged as 2.3-alpha. The major versions of WordPress (1.5, 2.0, 2.1, and 2.2) that are still maintained by developers and are split into branches.

Trying to run beta (let alone pre-beta) software in a stable environment is never suggested, especially when it changes every 8 hours. From personal experience I can say that living on the bleeding edge has its benefits but they are easily outweighed. This results in a small handful of errors from time to time, or the entire database disappearing altogether.

If absolutely necessary; my fall-back plan is to drop back from /trunk to the stable /branches/2.2 revisions.

Wordpress Maintenance

Monday, November 27th, 2006

Why would I be happy that my blog is getting comment spam? Because it’s gaining some popularity… too bad it’s automated.

I discovered that there is already a plugin designed to take care of this problem included with every Wordpress install, it’s called Akismet. But I would need a WordPress.com API key to use this service, which is understandable as it checks comments against the Akismet database to see if they look like spam or not. I signed up for Wordpress account using my Spam Motel email address, got my API key, and activated the plugin a minute later. Painless, unlike some other things I’ve done in the past.

In other news I added some things to the quotes page and have been working on a pastebin. For those of you who don’t know; a pastebin is a web application which allows users to upload snippets of text, usually samples of source code, for public viewing. And as with most of my projects you can download the sourcecode here.

Source Code Is Up

Sunday, August 20th, 2006

My new sub-domain source.krhis.net is up, there’s not much right now but give me time to clean out my ~/sourcecode. I plain on licensing my work under the GPL so you are encouraged to improve any of the current code.

I currently have a NATO Phonetic Alphabet generator up, have fun messing with its demo page.

Kernel, FOSS with humor

Sunday, July 23rd, 2006

Programming for FOSS (Free Open Source Software) is a hobby for some kernel developers, donating there time doing what they like to do best. One thing I’ve noticed in this community is that language can be very relaxed. I downloaded the latest Linux kernel (2.6.17) and egrep‘ed some swear words. It returned about 290 humorous results, you can egrep your own copy of the source code or read the entire output here. Some of my personal favorites:

Documentation/ManagementStyle:guy who lost his whole 36GB porn-collection because of your incompetence

arch/sparc/kernel/process.c: /* fuck me plenty */

arch/sparc64/kernel/binfmt_aout32.c: /* Fuck me plenty… */

drivers/net/sunhme.c: /* This card is _fucking_ hot… */

arch/mips/pci/pci-ip27.c: * IOC3 is fucked fucked beyond believe … Don’t try to access

net/ipv4/netfilter/ip_nat_snmp_basic.c: * (And this is the fucking ‘basic’ method).

drivers/parisc/superio.c: DBG_INIT(”superio_probe: WTF? Fire Extinguisher?\n”);

lib/vsprintf.c: * Wirzenius wrote this portably, Torvalds fucked it up :-)

sound/oss/maestro3.c: * port to sexy 2.4 interfaces

arch/sparc64/solaris/socksys.c: * Dave, _please_ give me specifications on this fscking mess so that I