One of the things I am most ashamed of on Quivi is its speed when opening large images (which are not uncommon nowadays, specially with digital photos). It’s embarrassing that the lame Windows Picture and Fax Viewer is lightning fast when opening those images! I’ve always wondered how the Viewer did that. I’ve searched about [...]
I’ve been hacking the mspsim (a simulator) source to add support for a couple of stuffs in its profiler. At a certain point I had a hash table mapping functions to how many times they were called, and I had to sort them by that number of times. How to do that? List<entry> list = [...]
The Sandbox WordPress theme is a nice bare bones theme which can be easily used as a base to your own themes (preferably with a style.css file only, following the zen). The only problem is that its development is kinda frozen and it does not support new WordPress 2.7 features like threaded and paged comments. [...]
I’ve just spent a few hours trying to solve this bug, so I’m publishing this so maybe it will help someone with this issue… Assume that you’re working with a DLL/.so library through ctypes in Python, and this library allows you to set a callback for some other function. In my case, I was working [...]
September 20, 2008 – 23:31
Joel Spolsky, popular software engineering, said in this blog: (…) They [Netscape] did it by making the single worst strategic mistake that any software company can make: They decided to rewrite the code from scratch. I agree, mostly. Many projects market that they’ve been “rewritten from scratch” as if it was something marvelous, and most [...]
Essa é nova: As primeiras versões para Java e Pytohn já estão disponíveis para download a partir do serviço Google Code. Não dá para entender a inabilidade geral das pessoas de escreverem “Python” direito.
Do you know what a closure is? Basically, it’s a function created at runtime that references variables defined in a outer scope. For example: def make_number_printer(n): def number_printer(): print n return number_printer printer = make_number_printer(5) printer() The function make_number_printer receives a number and returns a function which, when called, prints that same number. It’s not [...]