For the Sake of Science

Articles, links, notes and news, all about software development

0 notes &

Changing the resolution of Ubuntu Server terminal (TTY)

After installing Ubuntu 12.04 Server, you get to log in using the TTY terminal. The resolution is fixed, but it can be changed. Use your favorite editor (e.g. vim or nano) to edit the file "/etc/default/grub" (you’ll need sudo permissions), and uncomment the line to set GRUB_GFXMODE to the resolution you prefer. For example:


The resolution must be one that is acceptable by your graphics card. For example, if you’re running a VM inside VirtualBox, you have to use a VESA-compliant resolution. Then run the following command to update GRUB and to reboot:

sudo update-grub2 && sudo reboot

Filed under linux ubuntu servers terminal resolution configuration

1 note &

Programming Exercises for Beginners

I was looking for some programming exercises to help a friend who is just starting to learn how to program. I came across this set of exercises from different sources, and I found them useful.

As a general note, I’d suggest that you read the description of each problem, and write a function that returns the requested output without formatting, and then write another function that formats the output as required. This is a much better way for learning programming. And whenever possible, try to use your solutions to previous problems as building blocks to the solution of the current problem you’re trying to solve (i.e. call your previously defined functions).

Some exercise sets would ask you to create a class for every problem. This is usually unnecessary; a function for each problem would suffice. Some would ask you to create a ‘main’ method; if you’re using a language that doesn’t need one (e.g. python or ruby) then just ignore this instruction. Don’t worry about the language of the exercise set; every problem can be solved with any programming language.

Filed under programming exercises beginners education

0 notes &

Technology Radar for October 2012

The Technology Radar for October 2012 is now ready. This is an analysis produced by ThoughtWorks twice a year. It is an assessment of the most important new technologies, which ones are ready to be used for production and which ones to wait for. It is a very useful guide for us to get to know about valuable new technologies. There are 107 technologies in this month’s report, out of which 23 are ready to be adopted, 47 should be tried to prepare for their adoption later, 23 can be assessed to see whether they are suitable for you, and 14 should be avoided for now.

I find this report a helpful guide to be aware of the important technologies all year round. It’s easy to get to know about all of them throughout the coming 6 months. Just learn about one technology every working day. That should take just 5-15 minutes as long as you don’t dive into the details (unless you find it really interesting).

Technology Radar 10/2012 Postcard

Filed under technology awareness publications

0 notes &


Initializr is an HTML5 templates generator to help you getting started with a new project based on HTML5 Boilerplate. It generates for you a clean customizable template with just what you need to start!

Filed under html5 web development

0 notes &

Finding the Version of a running OpenERP Server

One of my customers needed to find out which version of OpenERP Server they were running. I couldn’t find a way of knowing such information using the OpenERP GTK Client or the web client. But I found the version in two different ways according to the operating system:

  • On Linux, or if you are running from uncompiled source, you can find the current version of the server in the file bin/

    $ cat bin/ | grep version
    version = '6.0.3'
  • On Windows, check the version of the OpenERP executable, which is typically in the path C:\Program Files\Server\6.0\openerp-server.exe. Right-Click it and choose Properties, then open the Version tab.

Filed under openerp Administration