Do you worship bacon?

So as a joke, I registered the domain name worshipbacon.com and thew MediaWiki on to it. Little did I know that people would actually use it. It's funny that when I try to make a website that takes a lot of time and effort, it never gets popular, but when I make a website about the Holy Church of Bacon, people actually use it. I did, however, find out that MediaWiki websites do pretty well in search engines.

Click here to visit WorshipBacon.com

Lighttpd Directory Generator using mod_dirlisting With Sorting

I have put up a new script for those of you who are running Lighttpd. You can find it here. It is a dir-generator that is nearly identical to the default, but with the added bonus that you can sort by name, size, modification time, and file type. One downside is that it doesn't display mime type like the original does since to do that with PHP, it is required that an extension is insalled.

Vast Site Design to Come in Future

Well, I've decided that not only am I going to modify the color scheme of this site, but I'm also going to pull away from using Wordpress. Perhaps I'll design my own custom blog. I'd like to build it in Python, but I don't like working with frameworks like Django.

If I do decide to use Python, I'm going to investigate alternatives. Otherwise, I'm going to begin working on a PHP alternative.

All the while, I'm also rebuilding my parents' site, fosmarks.com.

I Before E, Except After C - Not a rule, but a joke

When I was in high school, I always had fun finding exceptions the "I before e, except after c" rule. I found over a hundred on my own back then just by searching around the Internet. It took me hours. Today I decided to take a better approach and wrote up a small script in to do the work for me. All in all, it found 533 exceptions to this rule.

Click here to view the list of exceptions.

Yeah, that's quite a few. If you're interested in how I did it, continue reading. Don't worry, I won't be sad if you came here just for the list.

Continue reading 'I Before E, Except After C - Not a rule, but a joke' »

Site Slightly Re-Designed

Well, I think that I'm finally done with the site design. As you can see, I've heavily modified it since when it started out as the fluid blue theme. I also got around to creating my own favicon/logo for the site. To make it, I actually used an online favicon.ico creator from http://favicon.cc/ that suited my needs rather well.

Beyond that, I also created the title image at the top in Adobe Photoshop. I just thought that the header needed some sprucing up and I wasn't a big fan of the horizontal gradient/line effect that was in place before.

I tried to make the site as easy to look at as possible. I hope everyone likes it!

Planet SEO, Great Resource to Web Developers

A friend of mine recently embarked on creating a new website centered around search engine optimization known as Planet SEO (www.planet-seo.org). I really have to hand it to him. He's made quite a site. He managed to write up the code to run the site in a very short amount of time and kept to a schedule very well. (That's something I have a problem with.)

The site's service is simple and incredibly useful: it reads multiple feeds from websites that all deal with search engine optimization (SEO) and provides all of them at once. Combine the fact that Planet SEO already has a fair number of website feeds that it reads from, it makes sense for it to be the first spot to look at regarding SEO news & techniques.

This seems to be a great resource for those of us who aren't skilled in SEO. I'm really hoping that it'll help me expand my knowledge enough to where evanfosmark.com gets higher traffic from search engines.

Simple Output Buffering in Python

Recently, I needed a quick and simple solution to buffer output of a few Python scripts. When I went to look for a module, I was astonished to find that one didn't exist. I quickly decided to change this. In this article, we'll discuss simple ways to buffer output using StringIO and I'll introduce my output buffering module that I constructed.

Continue reading 'Simple Output Buffering in Python' »

Near-Implicit String Interpolation in Python

A great thing about working in Python is that it provides you with numerous methods of string formatting and interpolation. Unfortunately, it isn't as implicit as it is in PHP, where just using double-quotes will parse the string. In Python at the very minimum string interpolation requires the use of the modulo operator (%) or a custom-built function. In this article, we'll discuss building a string interpolation function using the string.Template object and Python 3.0's format method.

Continue reading 'Near-Implicit String Interpolation in Python' »

XOR Encryption With Python

XOR encryption is a great solution to go with when a task requires that a piece of data is encrypted with a key when one doesn't have the means to use a more well-rounded algorithm. I've used it on a few occasions with great success. In this document, we'll discuss how to code the XOR cipher in Python and we'll cover the pros and cons of using it.

Continue reading 'XOR Encryption With Python' »

Ternary Operator in Python - People got Clever

The ternary operator can be incredibly useful in numerous situations in Python, which is why I'm surprised that prior to Python 2.5, there was no standard way of using one. In this article, we'll cover the ternary operator that was added in Python 2.5 along with the numerous ways that people emulated the operator before then.

Continue reading 'Ternary Operator in Python - People got Clever' »