Archive for the Programming Category

Google H4x0r
I've been doing a lot of work with complex search queries on Google lately. I have a script that grabs all the URLs returned for a given query. The problem is that although there are hundreds of thousands of results for most queries, Google will give you this notice if you try to get more than the first 1,000 results: "Sorry, Google does not serve more than 1000 results for any query."

This restriction became a problem for me. After doing some research, I ran across an interesting workaround that allows you to access twice as many results. Simply include and remove a common word in your queries. For example, if you are searching for proxy and want to get 2,000 results, use these two queries:

Now you have 2,000 unique results.

(more...)

Nerdiness

I have been a nerd my entire life. I started designing websites in grade school and I have only been sucked further and further down the rabbit hole since. I have been part of the online nerdy community for quite a while, but it's not too often that I get to interact with my geeky brethren in person. This past weekend was my first excursion into that community and I must say that I had a blast.

My boss, Jon Steinhart, has a party at his house every summer and invites all of his friends, coworkers, etc. Little did I know, Jon has built up quite a list of contacts in the tech world in his time.

(more...)

Facebook Platform LogoFacebook recently released the Facebook Platform which allows developers to write applications and tools that run inside users' profiles and within Facebook itself. So far, the Platform has been a huge success. Dozens of useful applications are coming out every day and most users are very excited for the extra functionality.

I am in the process of writing an application that brings together Flickr sets and Facebook photo albums. Unfortunately, the current implementation of the Facebook Platform lacks the ability to easily upload photos to a user's account.

To remedy this situation, Paul Wells and I decided to writing our own addition to the Facebook PHP5 Client Library. Using it is as simple as uploading the file to your server and changing two lines of code in your existing applications. The best part is that our class does not involve code hacks at all. Our classes simply extend the current ones and add the functionality we want. The advantage to this approach is that the code will still work if Facebook updates the API.

To download the code and see an example of it's use, visit the project page.

I was pleasantly surprised with how easy it was to install a WordPress blog to my server. I use GoDaddy for hosting. The only problem I encountered during the installation was when I wanted to change my permalink structure.

The problem arose when I switched from "ugly permalinks" (http://example.com/?p=N) to "pretty permalinks" (http://example.com/year/month/day/post-name). I already had a .htaccess file in my root directory, but when switching permalink stuctures, WordPress attempts to write it's own .htaccess file. Since mine was already in place, it failed and I started getting 404 errors on every pages except the home page.

(more...)

Socialized through Gregarious 42