33 down, 66 to go

I’m 33 today.  Feels exactly the same as yesterday and a year ago.  But getting all those best wishes from people all around the world is, of course, super cool!  Thank you all so much.

And while we are on the subject of age, here is a screenshot of hilarious comment from this Linux Questions thread (kudos to Chris for the link):

Ultimate geek respect for Adrian Hands

Here is something that touched and moved every geek out there:

Adrian Hands was suffering from ALS and had lost motor skills when he used his legs to type in Morse code and fix a 9-year-old bug in Gnome. The patch was submitted three days before he passed away.

I think the following comment does the best job expressing the feeling:

There are so many who benefit from the community, and so relatively few who give back. So many people claim some excuse to not contribute anything to anybody without getting paid. Then there’s this guy. I am honored to have shared a planet with him.

 

chmod text modes

I came across this blog post which praises text modes for /bin/chmod.

There are two ways you can change file permissions in Unix – one is using chmod‘s symbolic (text) modes (like chmod ug+x file), the other is using the octal modes (like chmod 0660 file). It turns out that symbolic modes are more powerful because you can mask out the permission bits you want to change! Octal permission modes are absolute and can’t be used to change individual bits. Octal modes are also sometimes called absolute because of that.

I have to agree, they are superior.  However I feel like the article needs more examples.  So here we go.

Use “u” for user, “g” for group, “o” for others, and “a” for all, or you can use a combination of letters, similar to how you do for access rights:


$ chmod ug+rw *.php

This will make all .php files in current directory readable and writable by both user and group.

Use several permission changes within one command.  Just separate them by comma.


$ chmod a-rwx,ug+rw,o+r *.php

The above will reset permissions on all .php files to readable by all and writable only by user and group.

And my favorite and most used example, which would be tricky with octal permissions is the “X”.  In recursive change mode, “X” will affect executable bit only on directories.  Difference by illustration:


$ chmod -R a+x /some/path

The above will add executable bit to all files and folders under /some/path.


$ chmod -R a+X /some/path

But the above will add executable bit only to folders under /some/path.  The files will remain as they are.

Adding Google Apps GTalk account to Pidgin

Google Apps help page is a little bit outdated and I had to spend a few minutes working out the solution, hence this post.  Here is how you add your Google Apps GTalk account to Pidgin.

  1. In Pidgin, click on the Accounts menu.
  2. Select Manage Accounts.
  3. Click ‘Add…‘ button.
  4. Select XMPP protocol.
  5. Specify account’s local part in the Username field.  For [email protected] that would be joe.
  6. Specify account’s domain in the Domain field.  For [email protected] that would be examle.com.
  7. You can ignore the Resource field and leave it empty.
  8. Specify account’s password in the Password field.
  9. Switch to Advanced tab.
  10. Change Connection security to ‘Use old-style SSL’.
  11. Change Connect port to 443.
  12. Change Connect server to talk.google.com.
  13. Press Save.  You are done.

Screencasting in Linux

I came across an excellent tutorial on how to do screencasts in Linux.  The original article is in Russian, so I just grabbed the important bits and translated them below.

  • Install screencast recording application.  recordmydekstop is available via yum install recordmydesktop and comes with a simple and straight-forward interface for both KDE and Gnome.
  • Record a screencast.
  • If you want to edit the screencast (cut out mistakes, add music, etc), install a video editor.  These came recommended: Pitivi, Kino, Kdenlive.
  • Edit your screencast.
  • Convert to AVI if needed (recommended before uploading to video hosting services, such as YouTube, as they don’t always work well with Ogg).  ffmpeg -i screencast.ogv screencast.avi should do it.  ffmpeg is also available in most distributions.  You can play more with parameters, or prepare the video during the editing stage.
  • Upload the video and share.

This is the kind of a guide that I need once in a while, but which I can’t seem to find when I need it.  Hopefully now that I have it blogged, it’ll come handy.