Ubuntu Day
Posted by: nico on
Sep 28th, 2009 |
Filed under: Uncategorized
Spanish only: GNU/Linux, Guía de Supervivencia – Versión Ubuntu Day
Released under WTFPL if you care to know. Source code to be available soon too.
Posted by: nico on
Sep 28th, 2009 |
Filed under: Uncategorized
Spanish only: GNU/Linux, Guía de Supervivencia – Versión Ubuntu Day
Released under WTFPL if you care to know. Source code to be available soon too.
Posted by: nico on
Sep 28th, 2009 |
Filed under: Uncategorized
Seen on a cablemodem’s configuration page:
Posted by: nico on
Sep 24th, 2009 |
Filed under: Console, Programming
Anyway, this is the part of the script I came up with to get the enum elements:
cat enum_definition.h | sed -n ‘/enum OID/,/\}\;/ s/\(.*\)/\1/p’
Nice voodoo, isn’t it? How the hell are you supposed to understand that? Well, you’re not, sed is write-only-code, but you can try reading http://www.grymoire.com/Unix/Sed.html#toc-uh-25, a great sed introduction.
Have fun!
Posted by: nico on
Sep 22nd, 2009 |
Filed under: C++, Linux, Programming
| A little known fact about gdb is that you can use it in graphics mode, called TUI. Yes, you can obviously use DDD or a similar front end but that’s not even nearly as cool as using a console based GUI (!), is it? | ![]() |
The easiest way is to start gdb like this:
gdb -tui
That will display the usual gdb console plus a code listing, similar to the code listing you get using the “list” command but shown in another window. Alternatively you can press C-X C-A (both, in that order) while in gdb to switch between TUI mode and back.
Don’t know enough about gdb? Read http://beej.us/guide/bggdb/, a great gdb intro.
On sat. 26 of september, this saturday, I’ll be on the first Ubuntu Day in Buenos Aires. Of course, I’ll be a speaker there, it’s time to undust the old GNU/Linux Survival Guide Again.
See you @ Ubuntu Day
Posted by: nico on
Sep 17th, 2009 |
Filed under: Vim Tips
![]() |
Are you still puzzled by last week’s C++ question, yet you are too lazy to actually search for a Rot13 decoder OR use gcc to check if it works? Well, Vim can do the trick, just use g? to convert text to Rot13 |
You may combine it with block selection or you can just convert the whole damn thing using “ggg?G”. gg goes to the beggining, g? converts to rot13, G goes to the end.
This is all very nice but I’m still trying to figure out a way to convert back from rot13 to normal text, can anyone provide a clue?
Posted by: nico on
Sep 15th, 2009 |
Filed under: Console
One last note: at will “remember” the current environment variables, so PWD, USER, OLD_DIR and all that will be the same. This means if you schedule a command with a relative path it’ll still work!
Posted by: nico on
Sep 10th, 2009 |
Filed under: C++, Programming
Would this compile? What does it do?
Answer in rot 13:
Posted by: nico on
Sep 8th, 2009 |
Filed under: Gnome, Linux, Programming, Vim, Vim Tips
Someone recommended me Inconsolata as a nice programming font (it’s monospaced). I’m using it right now and it’s not bad. Let’s see how can you install it:
Easy and it looks even better when used with gVim. You can go to Edit > Select font to change the font preference, however this won’t set a new default for the next time you start gVim. To do this we need to add it to the .vimrc, and again, to do this we need to know the font’s name.
Type “:set guifont?” to see the font’s name. In my case it’s “Inconsolata Medium 14″ (I changed size and type). Now add the following to your .vimrc:
Notice I added a backslash before the spaces, otherwise Vim will try to parse Medium and 14 as separated parameters to “Inconsolata”, which obviously won’t understand. Have fun with your new fonts.
Posted by: nico on
Sep 7th, 2009 |
Filed under: Meta-post
After some sick time, lots of work, prepearing my new blog (monosinfinitos.com.ar, go check it) and several other,personal stuff regular blog updates will resume tomorrow and continue at least for a week. That’s about the buffer size I’ve left, after that I’ll have to write something new or take a longer vacation… we’ll see.
In the meantime, enjoy a pretty picture.