Author Archives: hac

Google Book Downloader Update: Page ranges

You can now specify a range of pages: Download here.

Posted in Uncategorized | Tagged , | Leave a comment

Google Book Downloader Update: High Quality

Until now, Google Book Downloader has used the default image resolution provided by Google, even though books.google.com allows you to zoom in on pages to see higher resolution. Version 2.1 fixes this, finding the highest resolution available for every book … Continue reading

Posted in Uncategorized | Tagged , , | 3 Comments

Google Book Downloader Update: Version 2.0

Google Book Downloader 2.0 is out! What’s new: much faster, fewer bugs, and less important things. To download, see the product page here. If you are into the technical details, maybe you are wondering what went on behind the scenes … Continue reading

Posted in Uncategorized | Tagged , , | 7 Comments

[OS X] Install Pwntcha

Pwntcha is an open source tool for breaking CAPTCHAs. While it is a few years old and only works for very simple CAPTCHAs, it’s still and interesting project and would be a good place to start if you wanted to … Continue reading

Posted in Uncategorized | Tagged , , , | 6 Comments

[Ruby] Automate Facebook

Using the Ruby Mechanize library, I have been writing a Ruby class to allow automation of parts of Facebook like friending, status updating, and messaging. You can get the class here and use it like so: #!/usr/bin/ruby # Require FacebookBot.rb … Continue reading

Posted in Uncategorized | Tagged , , | 5 Comments

[OS X] View MHTML Files

Using code from the UnMHT QuickLook project, I put together an app that renders MHTML files using WebKit on OS X. Features: print, export to PDF, and export to webarchive. Download App Source Code

Posted in Uncategorized | Tagged , | 3 Comments

Google Book Downloader Update: Download JPEGs

Google Book Downloader is my app that downloads Google Books/Book Previews in PDF format. The major problem with it so far has been that when it encodes JPEGs from Google’s servers into PDF format, there is a loss in quality … Continue reading

Posted in Uncategorized | Tagged , | 8 Comments

Replacing C Functions with Dynamic Linking in OS X

Say we wanted to make a command line program like date use a fake time instead of the current one. We could do this by supplying a time() function to replace the time() function in libSystem. How do we know … Continue reading

Posted in Uncategorized | Tagged , | 4 Comments

Upcoming OS X App: Music Player/Downloader

Here is a screenshot of an app I plan on releasing soon. As you can see, it has an iTunes-like interface, with some extra features for downloading music. You can search YouTube for songs, and download them from YouTube directly into … Continue reading

Posted in Uncategorized | Tagged , , , | 14 Comments

[PHP] Get Google’s Cache of a URL

This PHP function fetches the contents of a URL as it exists in Google’s cache: function cachedHTMLForURL($url) { // Request the cache from Google. $googleRequestURL = "http://webcache.googleusercontent.com/search?q=" . urlencode("cache:" . $url); $googleResponse = file_get_contents($googleRequestURL); // Return false if Google did … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment