Same Shit, Different Blog

I decided three years ago that I needed a blog. Prior to this, I had written several “articles” in HTML and published them to a section of the old site entitled “(r)Ant”. The reason I wanted a blog was to take advantage of the built-in archiving and categorization that blog software affords. I wanted to spend less time “coding” and more time writing.

I chose an open source package called bBlog. I hacked away at it until it looked and behaved the way I wanted, then started blogging. Subsequently, bBlog went tits up (sorry to get technical), and no one was writing bug fixes or adding new features. I knew that migrating from one blog package to another was going to be a huge pain in the ass, so I put it off. Recent problems compelled me to bite the bullet and invest the effort to switch from bBlog to WordPress and, as of this post, you’re soaking in it.

Cosmetically, you will notice few changes. I went from a three column layout (date, content, sidebar) to a two column layout (date + content, sidebar), which buys me a little more real estate in the content column. Everything else looks and behaves pretty much the same as it did before, except now I’m using software backed by a thriving developer community.

Doing the migration was an interesting exercise. Pretty much every web-related skill I’ve learned (HTML, PHP, SQL, Regex, Apache) was brought to bear, and the whole thing probably took 30 hours. If I had to do it again it would probably take half the time, eliminating the effort I expended going down blind alleys, and the like. So it goes.

If you access the blog via the RSS feed, please update the feed URL to the following, at your convenience:

https://www.mrpikes.com/blog/?feed=rss2

The old feed, however, will continue to work for a period of time.

Thank you, kindly.

Shit, It’s My 100th Post

After spending a couple of weeks thinking about a suitable entry for my 100th blog post, I ended up deciding just to play to my base and go with scatological humor. This weekend I saw the bottle depicted below:

Baby Faces

At a glance, I swore that it said “Baby Feces” (previously). And I’m starting to think it’s a new marketing strategy. Double Take Advertising.

GET vs. POST

I promise, this gets funnier.

When one develops a web form, like the MrPikes Contact Form, one chooses the means by which the form data will get from the user’s browser to the program on the web server that *does* things with that data – like sends an email, or writes a record to a database. One’s choices are GET or POST.

The GET method encodes the form data into the URL. If the MrPikes Contact Form used the GET method, the resulting URL would look something like this:

https://www.mrpikes.com/contact.php?name=Max%20Mosley
&email=max.mosley%40fia.com&subject=Stop%20Heckling%20Me
&message=You’re%20hurting%20my%20feelings.
&human=20&submit=Send+Form

You tend to see long, ugly URLs like this on sites that dynamically nail their pages together based on database queries.

The POST method passes the form data to the web server in a way that is invisible to the user, i.e., the values are not encoded in the URL.

Each method has its advantages and disadvantages, but the rule that I always follow is that if a user input the data, always use POST.

This is to prevent URL hacking, which amounts to replacing values in the URL manually, with potentially devastating security implications.

It can also be hilarious.

CNN has a beta program which enables visitors to create t-shirts from headlines, available for purchase. The developers went with GET, meaning that users can hack the URL and make t-shirts that say whatever the hell they like. Since the program is still in beta, you cannot actually order the t-shirts, but that hasn’t stopped Gawker, Fark and numerous other sites from having a field day with the program.

My own contribution:

It's Raining Men. Hallelujah.

The Doomsday Algorithm

Okay, so this is my new favorite thing. John Horton Conway is a renowned mathematician who came to my attention for his Doomsday Algorithm.

The algorithm allows one, with the memorization of a few rules and some basic arithmetic, to determine the day of the week for any day, month and year specified. Conway himself can consistently provide the answer in under two seconds. Arthur Benjamin can also do it very quickly, as he demonstrates in this performance (starting at 7:54). I’ve been practicing for about an hour and can do the calculation in about half a minute…

The essential concept is that each year has a Doomsday (a day of the week), and that day is always the last day of February. For example, 2008’s Doomsday (February 29th) is Friday. Once you know a given year’s Doomsday, the day of the week for the date specified can be inferred from its offset to Doomsday, with the application of a few simple rules.

For example, let’s say that the date given is December 18th, 2008. 2008’s Doomsday is Friday. Based on the way that the Gregorian calendar works, December 12th (12/12, easy to remember) always falls on the same day of the week as the last day of February (the count of the days between the two is evenly divisible by 7). From there, all you do is calculate the offset from December 12th to the target date December 18th (6 days). So, December 18th is a Thursday.

The rules are different for different months. For example, take March 28th, 2008, the date that Max Mosley engaged in a five hour Nazi-themed orgy with five prostitutes (previously, previously). March 7th is always the same day of the week as Doomsday, so March 28th (offset by 21 days) is a Friday as well.

For me, the time-consuming part is determining a given year’s Doomsday, because of leap year rules (a leap year occurs every four years, except for years that are evenly divisible by 100, unless they are also evenly divisible by 400). The only method that I’ve located involves using a century offset. For example, if I want to know the Doomsday of the year 1967, I calculate it as an offset of 1900’s Doomsday.

1900’s Doomsday is Wednesday (which has to be memorized). To determine 1967’s Doomsday, you do three calculations and sum the results of each:

1) How many times does 12 go into 67 (as in 1967)? The answer is 5.
2) What is the remainder? The answer is 7.
3) How many times does 4 go into the remainder? The answer is 1.

5 + 7 + 1 = 13, which is the number of days that 1967’s Doomsday is offset from 1900’s Doomsday. So, 1967’s Doomsday is Tuesday.

I hope to get a lot faster, because it seems like a fun way to play with someone else’s mind. I’m not overly worried about this post spoiling the trick, because my legion readership is still dwarfed by Famous Jewish Sports Legends.

Discrete vs. Discreet

Shopping for midget porn the other day, I came across an e-commerce site offering “Discrete Shipping”.

Discrete Shipping

A Google search on “Discrete Shipping” (over 63,000 results) suggests the problem is not isolated (but hilarious).

As a committed pedant, I thought I would take this opportunity to explain the difference between “discreet” and “discrete”, and even offer a mnemonic trick for remembering the difference.

Discreet – having or showing discernment or good judgment in conduct and especially in speech (Merriam-Webster Online), as in, “Max Mosley failed to keep his Nazi-themed orgy discreet.”

Discrete – constituting a separate entity; individually distinct (Merriam-Webster Online), as in, The five prostitutes that Max Mosley engaged for his Nazi-themed orgy were from five discrete agencies.”

So, taken literally, “discrete shipping” would mean that if I ordered three midget porn DVDs, they would arrive in three separate packages.

I’m glad that I didn’t order jelly beans.

The mnemonic trick is simple. Look at the “e”s in each spelling. Notice how the “e”s in “discrete” are separate, or discrete.

Isn’t learning fun?

Compare Stuff

My pal Gokmop recently published a post about Compare Stuff, a site that allows you to correlate a user-defined keyword axis against an axis of predefined collections (such as emotions, days of the week, etc,), using web search results as the data set:

God and Satan

Click to embiggen

What we learn here is that both God and Satan are extremely bored (which will probably clear up once the Wii shortage abates) and not very satisfied (perhaps they should go back to some good Old Testament jacking around with the likes of Job and Abraham), and that, annoyance aside, God seems generally more upbeat about the future.

Print *This*, Pal

I decided to try out Yaakov’s sweet Perl hack on printers that use the HP Printer Job Language (HPPJL), in honor of April Fool’s Day.

The script connects via TCP to the printer’s (standard) port 9100 and changes the LCD “Ready” message to one of your choosing (with space limitations). Below are a few of the messages that our area’s network printer displayed today.

They ranged from the controversial:

HAIL SATAN

FREE TIBET

To the confusing, but plausible:

JIGGLE TRAY 1

REVERSE TRAY 1

To the bizarre:

REMOVE PANTS

WTF?

REPLACE GERBIL

Beer Me

Mmm, minty.

ICE TRAY LOW

To the confessional:

April Fools!

What Does Schadenfreude Mean? Ask Max Mosley. He Speaks German.

Max Mosley is the President of the Fédération Internationale de l’ Automobile and is, as such, arguably the most powerful person in motor racing worldwide.

The News of the World (a British tabloid) published an investigative piece yesterday (with video) that appears to show Mr. Mosley participating in a Nazi-themed, sadomasochistic orgy with five prostitutes.

Or, as we call it at my house, “Thursday.”

While Mr. Mosley has not made a statement denying the article’s claims, a spokesperson for the FIA stated:

This is a matter between Mr. Mosley and the paper in question. We understand that Mr. Mosley’s lawyers are now in contact with that newspaper and the FIA has no comment.

Predictably, the hue and cry for Mosley’s resignation came immediately from organizations such as Holocaust Educational Trust and the Holocaust Centre. I say “predictably” because Max Mosley is a prominent figure in the public eye, whose family has direct Nazi associations. Max’s father Oswald Mosley was the founder of the British Union of Fascists, and he and Max’s mother were married in the drawing room of Joseph Goebbels, with Adolf Hitler in attendance.

The timing is also unfortunate, coming as it does less than a month before the debut of a FIA-sponsored anti-racism initiative at the Barcelona Grand Prix.

Now, I don’t like Max Mosley. He has used his position to carry out personal attacks in the media against Formula 1 legends like Sir Jackie Stewart (“He goes round dressed up as a 1930s music hall man. He’s a certified halfwit.”), and I have a personal grudge over his breathtaking failure of leadership in the debacle that was the 2005 United States Grand Prix.

That said, I don’t want to see Max forced to resign over this. While the whole episode is decidedly unsavory if true, I think it falls firmly in the realm of private life, and it was a victimless crime. While Max may have shown questionable personal judgment (public figures should really make more an effort not to get caught on video engaged in this sort of behavior), I would rather see him lose his position as President of the FIA based solely for his actions in that role.

Heikki Kovalainen

Given that I have a whole page of this site dedicated to it, I am obviously a huge Formula 1 fan. Since I started following the series in 2000, I have been an unwavering McLaren supporter. This year’s McLaren driver lineup is phenomenal. Lewis Hamilton and Heikki Kovalainen are both beginning their second seasons in Formula 1. They’re both extremely talented, and it appears that they have the right equipment under them to put that talent to good use.

That said (and I apologize profusely, in advance, Heikki, my dear, wee, little puppet man):

thunderbirds.JPG

kovalainen.JPG

The Thunderbirds called. They want their marionette back.

Do Not Reply

Okay, so this is my new favorite thing. Surely my gentle readers have received email from “donotreply@somecompany.com”. It turns out that some institutions (several major banks, the TSA, Halliburton) do not want to deal with the email replies sent to these addresses themselves, so they instead use an address like “donotreply@donotreply.com”. The problem (if by “problem” you mean “hilarious fuckup”) is that “donotreply.com” is a registered domain, and the fellow who owns it (Chet Faliszek) reads the email replies and publishes redacted versions of the more amusing ones to his blog.

Apparently Mr. Faliszek receives legal threats more frequently than I change my underwear, but has never once been sued. If the entity contacting him is civil about it, he will remove posts from his blog in exchange for the requester making a donation to hus local pound or animal protection organization.