intarstudents.lv

Pile of Stuff

keySharky Going to API Land

After fun, interesting and frustrating day of development, testing and debugging, I can proudly announce keySharky 1.4b for Firefox (where b stands for beta). With this release I hoping to give everyone, easy access to Grooveshark player, that’s sitting inside Firefox with little, neat API hack.

So for now, you can test it by downloading and installing this custom (with debugging enabled) package and reading throw API server wiki page. And if you build “add-on” for keySharky, don’t forget to tell me ;)

Terminator - Really Hide Titlebar

You all know Terminator, that who brings multiple terminals in one window. But I found one annoying feature. To be processes - titlebar hide feature. What’s wrong with it? Well, it doesn’t hide that damn thing!

See? Yeah right, it sucks and looks ugly (if you don’t use titlebar at all). To solve that, you will have to get dirty with patch I wrote, but promise, nothing hard at all. Just follow these steps.

First you need Terminator source and cooked patch.

1
2
3
cd ~
wget http://launchpad.net/terminator/trunk/0.93/+download/terminator-0.93.tar.gz
git clone git://gist.github.com/421135.git

Great, now some hardcore extracting part.

1
tar zxvf terminator-0.93.tar.gz

Now everything in place. We finaly can apply patch and install patched version of Terminator.

1
2
3
cd terminator-0.93
patch terminatorlib/titlebar.py < ../421135/terminator-really-hide-titlebar.patch
sudo ./setup.py install

If no errors accrue, then you should have patched version installed. Success! :)

Note before install: be sure you have all dependencies to install Terminator: cdbs (>= 0.4.49), debhelper (>= 5.0.62), intltool, python.

P.S. Almost forgot, you can toggle hide option in Right Click (anywhere in terminal) > Preferences > Profiles > Show titlebar.

P.S.S. Yeah, lazy me, didn’t do search in launchpad and those missed this, but I had fun building patch so, no hard feelings.

Reaction Test With HTML5 Audio

Yesterday friend asked if I could build reaction test with sound (he till now was using graphical) and I of course couldn’t crush his dreams (and because I really haven’t build anything interesting using audio tag).

So after while, falstart was made (online demo for those who aren’t interested in source code). It of course isn’t perfect (no fallback for unsupported browsers), but with Firefox 3.6.3 and Google Chrome 6.0.408.1 dev works good (Google Chrome better then Firefox, because of faster JavaScript engine).

And there was one interesting bug that I encountered during writing it, that Google Chrome was very slow with seeking audio file to beginning and made big gasp (well ~900 ms) before started playing it again (and those added it to user reaction time). Fast fix for it, was setting it by myself.

1
2
audioObject.pause();
audioObject.currentTime = 0;

That’s all, what was on my mind. Happy, your reaction testing!

gEdit Toggle Menu Bar Plugin

I know that vim is cool and so, but I just can’t push myself to use it in daily basis, because I like gedit more. It just feels good in hands. But like all good stuff, there are some scratches when you dig dipper. Luckily, it has easy plugin building, so I was able to smooth scratches.

I guess, the most annoying thing is menu bar, because there are slim chance that you will use it daily, so why to fill unneeded space? Toggle Menu does that really easy with keyboard combo CTRL + ALT + M

Good News Everyone!

Hi, my name is Intars and I will take you to the journey of a lifetime. Well, maybe not, but it’s pretty close. I come from unknown country inside Europe - Latvia. Stuff happening here are damn funny and interesting, but that’s not what was on my mind.

I’m very geeky fella and on my free time - programmer, who likes to put his body to the limit, by writing stuff for self and open source community (yes, that’s most action I ever get). But sadly it isn’t inaf. and there must be way to spread the word around the glob. So here in scene comes intarstudents.lv.

I will be posting here some interesting and geeky stuff, that I have worked on, found, buried, lost, cached and loved. So buckle up, this will be geeky ride.