May 2013
1 post
6 tags
May 10th
April 2013
1 post
5 tags
RPM Packages: Compilation flags
Since October last year I took over the server management tasks in my project. Unfortunately, those machines are loaded not with Debian but with Scientific Linux (Why SL is one of the great mysteries of universe).  One of these days I needed to know which were the compilation flags of a package.  TL;DR: rpm -q --queryformat="%{NAME}: %{OPTFLAGS}\n" PACKAGE_NAME Long Version: -q or...
Apr 25th
October 2012
9 posts
8 tags
Exchanging your notebook LCD screen in Japan
This is the second time I break the screen of a notebook. First time was with this this Asus Eee PC 1000HE I had for a 1 year and a half. The little boy was on beside my bed and so it had an encounter with my foot, long enough just to crack the LCD screen. The second time was a few weeks ago. I was doing some work on the bed before sleeping but I actually fell asleep. The notebook just fell. Here...
Oct 31st
1 note
4 tags
Dynamically adding attribute accessors in Ruby
A simple way for adding attribute accessors to a class dynamically: class MyClass   def add_attr(name, value)     self.class.send(:attr_accessor, name)     instance_variable_set("@#{name}", value)   end end just call the add_attr method passing the name of the accessor (as a string) and a value that will be assigned to the variable. You can also turn this in to a module so that you can easily...
Oct 24th
3 tags
Oct 23rd
20 notes
6 tags
Fixing garbage text on terminal on Linux and Mac
Sometimes you just happen to cat a binary file and it just messes up your terminal output and all can see and type is garbage. Normally here you’d just give up and reopen your terminal but here’s another solution: Just type the command below: echo -e \\033c All you’re doing is sending an ESC(033 is the octal version of the ASCII control key “ESC”) + a letter...
Oct 21st
1 note
6 tags
Fibonnaci closure in Go
I’m trying to finish the Go Tour and one of the exercises was to write a Fibonnaci closure, that is, a closure that generates the Fibonnaci sequence. It was a cool exercise to learn on closure works in Go, so to remind myself of this later, I’ll share it here: ]]>
Oct 10th
1 note
2 tags
Oct 10th
1 note
5 tags
Oct 10th
1 note
3 tags
Oct 8th
1 note
11 tags
plist2ota - Generate OTA Manifests from plists
A friend of mine was in need of a script to automatically generate the OTA Manifests needed to distribute iOS apps internally through the iOS Developer Enterprise License.  So I wrote a little Ruby script that uses the plist gem for creating a Ruby Array from the plists information. One limitation I found in the plist gem is that it can’t parse binary plists. Right now I’m working on...
Oct 4th
September 2012
2 posts
6 tags
CommandT and Ctrl+S on Mac OS X
One of the best plugins I’ve found for vim is CommandT.  It lets you open files in a very speedy and intuitive way, making it very simple to search files and open them in tabs, splits or vertical splits. Or so it should be. On OS X, opening a file on a new split doesn’t really work. You should be able to do it using the Ctrl-S shorcut but it just doesn’t work. Today I decided to...
Sep 11th
3 tags
In the end, it's all about DNA
Today, I want to talk about company culture, and the best analogy I could find was a child. So bear with me until the end and let’s us not deviate into the field of children psychology. They way a child is raised by its parents is very important and decisive in its future. Children tend to take in account their parents tastes and way of thinking when molding their own and most of the we can...
Sep 5th
August 2012
3 posts
4 tags
“You get a billion people doing something, there’s lots of ways to make...”
– http://online.wsj.com/article/SB10001424052748704901104575423294099527212.html
Aug 27th
7 tags
Code of the day: Circular shift for integers...
“x” is the number you want to rotate. “n” is the number of rotations you want to apply. While writing this I actually felt how slow python’s math lib is. I’ve wrote this a while ago, but iirc a version I wrote using string operations was actually faster than this. I managed to get to a pretty fast version later on but it involves caching all functions in local...
Aug 27th
3 tags
I'm back! and Let's talk about Rails
For some reason lately I don’t feel as productive as before. For some reason I don’t feel as motivated as before. I’ve been giving some thought to that and I guess it’s because I haven’t spoken out loud about the stuff I’ve been doi.ng.  I’m gonna keep this rant short so I get to the point.  I plan on writing something on this blog every day.Yes. Every...
Aug 23rd
June 2012
1 post
6 tags
A new resolution: No more 32 bit software for me.
10 years ago, when I started dabbling with linux and later decided to make it my main environment, there were things from the Windows world that I couldn’t let go. Be it games, tools, services. I would spend hours and hours trying to get Wine to work and to run those things I could’nt live without. Until one day I realized that…I could live without them. Since that day I decided...
Jun 16th
April 2012
1 post
4 tags
Ruby is accepted as an International Standard
Ruby, the language created by Yuhikiro “Matz” Matsumoto in 1993 has been accepted as and International by the International Standards Organization (ISO) as the ISO/IEC 30170 standard. The Information technology Promotion Agency (IPA) has developed the draft standard specification document of Ruby and it was registered as the  JIS (Japanese Industrial Standard) X 3017 on 2011. Since...
Apr 1st
4 notes
March 2012
7 posts
6 tags
Mar 29th
2 notes
7 tags
Maximizing and restoring panes in tmux
Recently I gave up on screen for tmux. From the tmux homepage: tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached. Tmux is screen on steroids. You can customize just...
Mar 24th
6 tags
“vi is like drug dealing, you make the money and then the ladies like the money....”
– Noah Evans
Mar 21st
1 note
8 tags
“Do you know what Pico stands for? It’s an acronym for “Don’t Know How To Use...”
– http://www.terminally-incoherent.com/blog/2012/03/21/why-vim/
Mar 21st
6 tags
Mar 20th
9 tags
Fixing no sound in browser problem on Linux
On my last post I talked about fixing and tweaking stuff on my Linux machine and about the things that still need fixing. Right after I posted that I actually found the solution to my problem of having no sound in the browser and I’d like to share that with you. [[MORE]] Let’s start from where I was wrong. I thought my problem was with the fact I was using a 64 bit Linux...
Mar 20th
15 tags
Fixing and tweaking
After a very very long time, I’ve decided to take some time to fix and tweak stuff on my machine. For those who don’t know I’m a Slackware user. I’ve been using Slackware as my main system for almost 10 years now and I’m very happy with the distribution. It’s very lean and stable and it has the right mix between stability and recent packages apart from giving...
Mar 19th
February 2012
1 post
7 tags
GAE finally adds numpy support
Updates:        Status: Fixed Comment by bquin…@google.com: (No comment was entered for this change.) Affected issues:  issue 190: Please add NumPy    http://code.google.com/p/googleappengine/issues/detail?id=190 — You received this message because you are listed in the owner or CC fields of these issues, or because you starred them. You may adjust your issue notification...
Feb 27th
January 2012
1 post
6 tags
This is Android - for the best or the worst
The R.style reference, however, is not well documented and does not thoroughly describe the styles, so viewing the actual source code for these styles and themes will give you a better understanding of what style properties each one provides.
Jan 18th
54 notes
December 2011
5 posts
6 tags
Do we need a new QT based Desktop Environment?
I’ve been using linux for quite a while now (10 years that it has become my main OS and 9 as my only OS*) so I think I’ve had my share of Linux GUIs. Gnome, KDE, fvwm2, Xfce, fluxbox, blackbox, WMaker, Enlightenment… No matter what I try, though, I always end up going back to KDE. I kinda like how things work but mostly because I like Qt. However most wouldn’t say KDE is a...
Dec 30th
9 notes
Dec 25th
Christmas arrived a little early this year :) →
The Pandaboard has arrived!
Dec 11th
7 tags
Linux and Me
This post was written almost 2 years ago when I was trying to start yet another blog.  — Today, after getting my netbook reinstalled I decided to write about my history with linux and how things changed from back then. Hope you enjoy it. My first contact with linux was Slackware 3.6 by the end of 1999. A friend came with these disks for this very cool operating system, “hacker...
Dec 9th
6 notes
5 tags
Dec 4th
386 notes
November 2011
5 posts
8 tags
A tale of Japanese support on vim
TL;DR: add “set fileencodings=iso-2022-jp,euc-jp,cp932,utf8,default,latin1”  to your ~/.vimrc and use “:e ++enc=<encoding_name>” to reload a buffer with a specific encoding. The fun, instructive (and long) version: I work for a japanese company in Tokyo and working a japanese language environment, with japanese comments in the source code is something you get used...
Nov 24th
11 notes
7 tags
Donate to Wikipedia
From Wikipedia founder Jimmy Wales Google might have close to a million servers. Yahoo has something like 13,000 staff. We have 679 servers and 95 staff. Wikipedia is the #5 site on the web and serves 450 million different people every month – with billions of page views. Commerce is fine. Advertising is not evil. But it doesn’t belong here. Not in Wikipedia. Wikipedia is something...
Nov 23rd
75 notes
6 tags
Patching 802.11 Linux STA driver for Kernel 2.6.37
[UPDATE: Sent an email to Broadcom about it, including my patch, and the answer was that their internal version works fine but they’ll only release a patch if many people complain about it) (If you don’t want to read about the problem and just want the patched driver go to the end of this post) I’ve been using Linux, and particularly Slackware, for sometime and I’ve seen my...
Nov 17th
142 notes
Nov 15th
Nov 15th
October 2011
3 posts
Note to self: ADT Plugin and Platform-tools...
Google recently released  the SDK for Ice Cream Sandwich, the lastest version of Android (4.0) and with it a new set of tools for development. After upgrading the eclipse packages I was surprised that I couldn’t export an app to apk after the upgrade.The problem was that I hadn’t upgraded the SDK packages, including the platform tools. It’s seems that the new ADT plugin is...
Oct 20th
The Rule of Three →
Oct 17th
8 tags
Steve Jobs
Even though I never had the honor of meeting Steve Jobs in person, I’d like to think I’m blessed for having the opportunity of living in the time as a visionary as him. His influence was (and still is) not  restricted to those around him, his vision and his achievements inspire, instigate and push forward an unthinkable number of people who are also fighting for their dream, hoping...
Oct 5th
42 notes
September 2011
6 posts
5 tags
The Birth Of Qwikster →
parislemon: Netflix CEO Reed Hastings first apologizes for a lack of communication, and then gives his thoughts about the recent price changes and separation of DVDs and streaming (which is still the right move, as Hastings reiterates). The wording is good. Amazingly, it doesn’t sound like the total bullshit you usually read in such posts. But here’s my favorite part: For the past five years,...
Sep 18th
157 notes
3 tags
Break Google Search →
dustyprogrammer: I dont why this is happening. Check out bengl’s blog here.  Shortest way to produce issue is here — http://google.com/#q=${ Social Stuff Twitter - @myusuf3 and @bengl Facebook Likes — http://www.facebook.com/pages/The-Dusty-Programmer/142739272449856 WIN! Update It wasn’t my intention to be malicious. I swore to use my powers for good! I will update this post, as we hear...
Sep 15th
66 notes
Sep 14th
148 notes
6 tags
Something to be learned →
There’s actually something more important than your time (thanks @nicnocquee for sharing this)
Sep 9th
10 notes
4 tags
I've got an AOL mail account. omg
Got an email from About.me saying that they reserved an “About.me” email account for my user and that I could claim it “for free”  (Come on, is there an email account that isn’t free nowadays?) and that I could claim it on my dashboard. There I go, fill in a small form, annoying captcha and BAM! Got my Abou… uh oh… omg, I forgot! AOL bought About.me! Damn!...
Sep 9th
33 notes
6 tags
laptop
Even though it’s only been a couple months I gotta get a new laptop. I definitely need one of those new ultrabook things Intel is betting on or a Macbook Air. The one I have right now is nice and fast and the most important: it’s battery last centuries but I can’t deal with it’s size anymore. After getting used to my last 1.05Kg Acer I can’t deal with 1.5Kg Dell...
Sep 8th
148 notes