Similar Posts
Playing with data structures in Ruby
Sorting I’ve been trying to sort a mixed array in Ruby the shortest way. Each element of the array by itself is a mixed array of a number and and a hash: a = [ [0, {:a=>”31″, :b=>”21″}], [1, {:a=>”32″, :b=>”11″}], [1, {:a=>”25″, :b=>”19″}], [0, {:a=>”12″, :b=>”10″}] ] #sort by first item of each row (number) a.sort{|x,y|…
Reloading Rails console without exiting
In my journey to hopefully master Ruby on Rails, I’m amazed to see that many authors (in blogs or in books) most of whom are pretty expert in the field, choose to exit the Rails console completely (using CTRL+D) when they need to restart the environment (to clear up the objects in the memory, for…
- Archive | Mac | Productivity
7 reasons to buy your laptop an external keyboard and a mouse
This is an unusual topic to be discussed in my software-oriented blog, but this morning I was staring at my wireless keyboard and I just thought how it (along with its companion mouse) made my life easier. I use a wireless keyboard and a wired mighty mouse (broken 3 wireless mice already and I can’t…
Snow Leopard to Lion; The painless way
Conclusion first! Let me save you a few minutes (and perhaps hours of suffering on your Mac) and tell you the end of the story in the beginning. Upgrading has been always a tricky way of installing a new operating system. Granted it is smooth enough on a Mac but it comes with its own…
Archive | Business | Cloud Computing | MacCloud is better off without Flash
With the emergence of the iPad, there are many trends changing and many ideas developing around an old but finally well-developed phenomenon: the tablet computer. Although I am somehow late giving my opinion on the subject, I think it is worth the try. One of the areas cloud computing can be very useful and extremely…
Renaming files in bulk with Excel
So you have a bunch of files (read thousands) that you need to rename. If you deal with documents/records in the workplace and you don’t have access to fancy EDRMS, EDMS, then you most probably resort to physical files (Word, PDF, etc.) on shared drives and some in-house classification systems. In a real case scenario (where I work as a…