October 18th, 2010 | Tags: , , , ,

If you mount a Windows 7 share using Samba/CIFS you may run into “mount error(12): Cannot allocate memory” if you are using very large files on the Windows machine. Looks like in certain situations Windows needs to be told to run as a file server and to expect large files. You can read more details at Large Files are locking up Windows 7 32 bit and 64 bit, but the solution is to make two registry edits and then restart a service: Read more…

October 5th, 2010 | Tags: , , , , , ,

When using Doctrine query caching, if your DQL contains “IN ?” the query cache may return a query that will result in an “Invalid parameter number: number of bound variables does not match number of tokens” exception.

The reason for this is because the index to the query cache is a hash of the DQL before the “IN ?” is expanded to something like “IN (?, ?, ?)” (the number of ? will vary depending on the number of elements in the array passed as the parameter for that spot), but the actual query being stored in the cache is the expanded form. Read more…

March 23rd, 2009 | Tags: , ,

I’ve written a tutorial on installing WordPress onto a shared hosting account. The tutorial takes you step-by-step through the entire process with a screen shot for every step. The account I used was a Windows/IIS hosting account with the Helm control panel, but the steps should translate to most other hosts as well.

Read the Tutorial: How to Install WordPress onto Shared Hosting

March 18th, 2009 | Tags: ,

To have Apache mod_rewrite skip processing all rules during a sub-request you could add a NS (no sub-request) flag to each rule. Or, you could just make this the first rule:

RewriteCond %{IS_SUBREQ} true
RewriteRule .* - [L]
March 16th, 2009 | Tags: ,

This is a mortgage payment calculator that I created because I was unsatisfied with the ones I have found elsewhere, which were slow and plain—why do an entire round-trip to the server for a simple calculation that can be done with javascript? With that in mind I developed the site using jQuery

This is my first venture. My initial investment in it is $1.19 for the domain registration and a weekend to create the site. I’ll likely put a bit more time into it, but no more money for the rest of the year.

Please visit http://www.easymortgagecalculator.info/ and let me know what you think. How could I improve the usability or the design?

Note: This is currently only tested in FF3. I will complete testing and solve any compatibility issues for IE6, IE7, Safari, and Chrome by the end of the week.

Screenshot of Easy Mortgage Calculator

March 16th, 2009 | Tags: ,

Ever wonder why the theme preview for some themes shows up blank in WordPress even though upon activation the theme works as just fine? This is because using spaces and/or dashes in WordPress theme folder names breaks WordPress’ theme preview functionality, so you should only use underscores.

March 8th, 2009 | Tags: , , , ,

I finally got around to converting my photo blog to WordPress. I decided to go with the Yet Another Photo Blog plugin and a customized version of the Grain theme. Take a look:

Screenshot of Photo Blog

March 7th, 2009 | Tags: ,

This code validates credit card numbers based on prefix, length, and the Luhn Algorithm.

Read more…

February 3rd, 2009 | Tags:

It has come to my attention that my first (and only—thus far) published work is no longer available where it was originally published. It is a paper I wrote for an English course in college. My professor submitted it to the authors of the course’s textbook, Writing and Reading Across the Curriculum, and it was selected to be a student model paper on the book’s companion website. Read more…

February 2nd, 2009 | Tags: ,

Note: If you are using Symfony 1.0, follow these instructions instead.

A commenter from my prior post on this subject noted that those instructions only worked for Symfony 1.0 so I have updated the instructions to work for Symfony 1.2 (the current release as of this writing). Read more…

TOP