Index ¦ Archives  ¦ Atom  ¦ RSS

Nanorc for Python

Fri 10 September 2010

I use nano all the time because it's the first UNIX editor I've ever used thanks to the Gentoo documentation (long, separate story). Therefore, when I write code I like to have some syntax highlighting, but nano's syntax highlighting is pretty whack since it's all just regex's and nobody likes …continue

Continue reading →


Browser-Based Javascript Libraries

Sun 29 August 2010

Today I want to talk about another idea I had regarding increasing both browser and server efficiency regarding javascript libraries.

There are a few major players in this realm including jQuery, mootools, prototype, and a few others. These libraries spend a considerable amount of processing time just checking the browser …continue

Continue reading →


Random math observation

Sun 22 August 2010

(x*y)%10=x%10 if (x%10)%2=0 and (y%10)=6

In words: numbers multiplied by other numbers starting with 6 have the same least-significant digit as before they were multiplied, but only if that digit is a multiple of 2. This is probably due to some …continue

Continue reading →


Django debug toolbar Profiling

Sat 21 August 2010

I spent the past half-hour trying to debug a problem that turned out to be from debugging, profiling to be exact. If you're doing a quick google for profiling with django-debug-toolbar, you may be tempted to use adurdin's Profiling Panel. I'm writing this to tell you to WATCH OUT!!

Now …continue

Continue reading →


Native and Cross-Compiling Pidgin on Linux (Debian)

Mon 16 August 2010

Recently I've been working a little on my plugin for Pidgin (Google Talk Invisible) but my Windows computer has been formatted since I last worked on it so I no longer had my Windows compiling environment. So I spent some time and created two working environments (one for libpurple 2 …continue

Continue reading →


Brother Ali - Uncle Sam Goddamn

Mon 19 July 2010

So I'm tired of these lyrics websites having such bad lyrics for good artists. Every once in a while I'll try to post some real lyrics for songs that I listen to with inadequate lyrics elsewhere. Here's my latest in the series:
Ah,
The name of this song is Uncle …continue

Continue reading →


Django and Stored Procedures

Sun 27 June 2010

There is no code to go along with this post because I haven't had the time or use-case to develop it yet, but it was an idea spawned from the ORM of Django and some maintenance I was doing in a PHP project.

Basically, Django's built-in ORM is awesome, but …continue

Continue reading →


Windows 7 Jump Lists and PuTTY

Sun 21 March 2010

Putty update to 0.61 which includes JumpLists builtin, so this will no longer be maintained. I encourage you to use the official client when possible.

Recently I had the good fortune to upgrade my hard drive to 120GB and felt that while I'm reinstalling my OS anyway, I should …continue

Continue reading →


Berkeley Restaurant Hours

Mon 14 December 2009

As a college student who eats out frequently (my cooking skills aren't good enough for crunch time eating) and who is always up late, I'm always wondering what restaurants are still open in the area. In order to reduce crime, the City of Berkeley decided to make business close for …continue

Continue reading →


Flatten scanned PDF

Mon 14 December 2009

Recently I've been working for a website that has a lot of scanned PDFs. They need to make sure that they don't have the same problem as the redacted PDFs of the FBI/CIA. You know, where you could copy-paste the words out from behind black boxes?

Yeah, we had …continue

Continue reading →

© Fahrzin Hemmati. Built using Pelican. Theme by Giulio Fidente on github.