check out my new blog at

Thursday, April 02, 2009

moved to

This blog will stay but won't be updated.

I've moved to

Update your bookmarks! :)

 check out my new blog at

Friday, January 02, 2009

Code snippets - gists

If you collaborate and share code snippets you may like


Bash script for getting/posting code snippets (gists) to/from


* Getting

$ curl > && chmod 755 && sudo mv /usr/local/bin/

* Posting to GitHub:

$ cat file |


$ < fileĀ·

* Getting from GitHub:

$ 1234

Labels: , , , , , , ,

 check out my new blog at

Monday, December 22, 2008

Moved to

Since now this blog is accessible at !


  1. registered a domain with google apps
  2. Disabled both Sites and Start Page services using google apps Service settings (to avoid nasty Another blog is already hosted at this address error)
  3. used as domain name for custom domain name (advanced mode in blog's Settings/Publishing )


PS: access google apps domain managing dashboard at

Labels: , ,

 check out my new blog at

Tuesday, November 25, 2008

Linux howto: Enable Java runtime in Firefox

You need to
1) have jre installed
2) Edit > Preferences / [ Content ] tab: [ ] Enable Java checkbox checked
$ cd /path/to/firefox/plugins
$ ln -s /path/to/java/jre/plugin/i386/ns7/ ./
4) test


running .jnlp apps:
$ $JAVA_HOME/bin/javaws ./app.jnlp

Labels: , , , ,

 check out my new blog at

Monday, November 10, 2008

Ubuntu: sysv-rc-conf - missing admin tool

I'm coming from RedHat school.
After switching to Ubuntu I missed chkconfig tool for managing services.

But Ubuntu provides same managing interface with sysv-rc-conf instead.

$sudo apt-get install sysv-rc-conf


Labels: , ,

 check out my new blog at

Wednesday, October 29, 2008

Peoplenet on Ubuntu Linux

I've got CCU-550(3G/UMTS) modem.
I've never installed modems on Linux before so I just hoped that newest distros have right tools to do that.

I wanted to start using it quickly therefore began with NetworkManager's PointToPoint connection option. But it didn't want to work...

Then I looked at pppd stcripts. But it didn't work for me either...

At that point I didn't have internet access so the only option i could progress with was reading man pages for wvdial.

Interesting what man page says about wvdial - PPP dialer with built-in intelligence.
And it turned out to be true :)

So i launched
$man 5 wvdial.conf

copied sample configuration to /etc/wvdial.conf and modified to look like:
[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init = ATZ
Phone = #777
Username =
Password = 111111

To get the proper Modem location i did:
$dmesg |grep tty
[ 164.384650] cdc_acm 2-1:1.0: ttyACM0: USB ACM device

Then launching:

I got it working:

$ ifconfig |\grep -A 1 ppp
ppp0 Link encap:Point-to-Point Protocol
inet addr:my.ip.addr.ess P-t-P:pp.ip.addr.ess Mask:

Wow! Nice! :)

Labels: , , , , , , ,

 check out my new blog at

Saturday, October 25, 2008

using rake with sudo

I was installing datamapper gems like:
gmarik@gm:master\dm-more.git$ sudo rake install
sudo: rake: command not found

sudo restricts environment settins:
$ sudo env|\grep PATH

As you can see rake path is not included:
$ which rake

You can edit sudo PATH to include /usr/local/lib/ruby/gems/bin.
=== UPDATED AT 2008.12.04 =====
or run rake with PATH set like:
sudo env PATH=$PATH rake

Bu i just symlinked rake:
$sudo ln -s `which rake` /usr/local/bin/

Now it works:
$ sudo rake --version
rake, version 0.8.3

Labels: , ,