December 2010
4 posts
5 tags
Acer Aspire One D255 review
I needed a cheap netbook to replace my old 7-inch Asus eeePc, already semi-broken, part of its display permanently dead, some keys not working anymore, others pulled out. It is our kitchen computer, used by wife and kid, and main criteria was to be as cheap as possible, so I wouldn’t have to despair if it gets its keys extruded, or milk spilled over.
Asus Aspire One D255 (single-core Atom)...
3 tags
Imate novi pasoš, a treba vam nova lična
Pre mesec-dva sam postavio pitanje na ES-u u vezi vađenja nove lične: interesovalo me je šta treba od dokumenata, pod uslovom da sam već vadio novi (biometrijski, crveni) pasoš.
Evo da odgovorim sam sebi: državljanstvo nije potrebno. Izvod iz matične knjige nije potreban, pod uslovom da ste prilikom vađenja pasoša prilagali novi, trajni izvod (roze boje). Ako ste pasoš vadili pomoću starog,...
4 tags
StackOverflow-style syntax highlight on Tumblr
There are several articles on how to enable (client-based) syntax highlighting on Tumblr. None of these solutions worked for me, as each requires setting class on pre or code tags manually for coloring JS snippet to recognize areas to colorize. This is not simple in my case, as I am using Markdown as markup language, and generating HTML tags (and their attributes, such as class) is out of control...
4 tags
"Each with previous" in Ruby
I often need a variant of Enumerable#each method, with a “twist”: sometimes I want to have previous element available along with the current one, most often for comparison between the two. Here’s a trivial example:
array = [
{name: 'foo', value: 15},
{name: 'foo', value: 6},
{name: 'bar', value: 2},
{name: 'bar', value: 7},
{name: 'bar', value: 14},
{name: 'baz',...