Thiago Bellini's homepage Free software development, Open source, Linux – by Thiago Bellini

25Oct/102

PPA for the latest and greatest Vim

Want to run the latest and greatest Vim on your Ubuntu installation without having to "configure;make;make install" ? Use my Vim PPA: https://launchpad.net/~hackedbellini/+archive/vim

If you don't know how to proceed, take a look at the instructions here: Vim PPA instrictions.

 

Hope you enjoy!

Update 10/26: If you wish to remove my PPA and return to the official repository version, use ppa-purge.

Tagged as: , , , 2 Comments
20Oct/100

A simple script to help with simple “Test Cases”

Just here to share a simple script I wrote to help with some test cases on university.

  • What it does:

1- It takes all ".in" files it finds recursively on the folder and show how much time your algorithm takes to process each one.

2- For each ".in" file, it tries to find another one with the same name but with the ".out" extension. If it finds, it'll diff both that file and the output of the ".in" file and show if your algorithm is correct. If not, it shows the diff.

  • The script:

Download it at: http://gist.github.com/631593. Name it as you wish! (In the explanations bellow I'll assume the default name "TestCases")

  • How to use:

You can put the script anywhere and call it using it's absolute/relative path. If you want to call it just by it's name, make sure it's on your $PATH. To do so, add this to the end of your .bashrc:

export PATH="PATH/TO/SCRIPT":"${PATH}"

Make sure the ".in" and ".out" (if any) files are in the same folder (or in a sub-folder) of the executable you will test. Lets suppose the executable is called "EXECUTABLE" and you are on it's working directory...you can run the script like this:

TestCases EXECUTABLE

Watch the output and enjoy! ;D

The script is a Gist, so, if you want to improve the script, fork it! After you made the changes don't forget to tell me so I can pull your changes.

17Oct/104

My first tatoo is a Debian tatoo!

I just wanted to share this with you! A photo of my first tatoo! (on my right calf) It's the Debian Swirl.

Debian Tatoo 06 375x500 My first tatoo is a Debian tatoo!

And yes, I'm that kind of "Linux Addicted". Next ones: Tux and the Glider (Hacker Culture symbol)

Tagged as: , 4 Comments
10Oct/101

Ubuntu 10.10 Maverick Meerkat is out!

Today is the big day! Today is the Perfect 10 day!

Ubuntu 10.10 Maverick Meerkat has been released. You can download it from here: Download Ubuntu (prefer the use of Torrent links. It's better for you and for the community ;D)

If you are already an Ubuntu User and want to upgrade it, press ALT+F2 and type "update-manager -d". The Update Manager will pop-up with a button "Upgrade to 10.10". Just click it and the upgrade will begin! This is the official and the recommended way of doing the upgrade, as you can see here Upgrade Ubuntu and here Help Upgrade Ubuntu.

Take a look too at the Maverick Meerkat Technical Overview.

After doing a fresh install, or upgrading, if you want to have things like Flash, Java, Multimedia Codecs installed, just go to the Software Center and install the "ubuntu-restricted-extras" package.

Also, find the LoCo Team next to you and go celebrate the Ubuntu 10.10 Releasy Party!

Update 10/11/10: Found an excelente article at OMGubuntu about news in 10.10. Take a look: Ubuntu 10.10 News