git-hacking: pre-commit hook and custom command

Posted by Ktoso under coding, english, freedom, fun, java, terminal heroes (1 Respond)

As my team is using a kinda weird source eclipse code formatter setup, that other IDEs can’t emulate in 100% I sometimes found myself committing in a file with only a few changed spaces. Of course, I could use “external-formatter” plugins etc but that’s no good. Running eclipse’s formatter each time I want to format [...]

Tags: , , , , , , , , ,

Git@JavaCamp: fix-1: When does git “see” an rename explicitly?

Posted by Ktoso under coding, english, fun, guide, java (4 Responds)

Yup, it’s time for two follow ups to problems we encountered during my life examples. Why didn’t git see our “rename” as rename? Although yes it is true just as I said during the presentation that “git mv is just an alias” I’ve forgotten about that it’s an little bit bigger alias: git mv oldname [...]

Tags: , , , , , , ,

GitHub Diff in Gmail

Posted by Ktoso under coding, english, fun (3 Responds)

Hi there, below is the (horribly trashy and chaotic – as it was hacked up in about 2/3 hours) source for my Google Gmail Contextual Gadget. It extends Gmail by parsing all links passed in an email, and if an github commit link is found it displays the diff for this commit. With coloring etc [...]

Tags: , , , , , ,

MySQLIntegra: dbfiller & wiki

Posted by Ktoso under coding, null (No Respond)

I passed all my exams at my first attempt and should have now some time to relax, right? Well something like that, I’m actually doing quite a lot these days. We’re on the roll with MySQL Integra. Our server “Kopiec” is somewhat online (running CentOS off course) – we’re able to start/stop if thanks to [...]

Tags: , , , , , , , , , , , , , ,

(Almost) Automatically convert files into PDF

Posted by Ktoso under coding, freedom, fun, terminal heroes (No Respond)

I’m learning Numerical Analysis right now and a friend of mine found some really nice PS files by dr Marian Bubek ( http://www.icsr.agh.edu.pl/~mownit/mownit.html ). I was really happy to see some *.ps but some people from my fellow students started complaining that they’d rather have pdf’s and not ghostscript files (who knows why they’d do..?). [...]

Tags: , , , , , , , , , , , , , ,

Vim Hacking – 1 – vis

Posted by Ktoso under coding, terminal heroes (No Respond)

Vim is a really amazing text editor (though I’d like to learn Emacs too soon… :-)) and it can be easily expanded to be even more useful. One super cool extension I found is: vis — it allows powerful sed-like line modification (you could use sed from inside vim, but that’s not really “handy”). Vis [...]

Tags: , , , , , , ,

Terminal Heroes – 6 – Track X events

Posted by Ktoso under coding, fun, terminal heroes (No Respond)

Another Command Line Fu oneliner I’ve sumbited today: #show X window events in chosen window $ xev -id `xwininfo | grep 'Window id' | awk '{print $4}'` EnterNotify event, serial 13, synthetic NO, window 0×6400053,     root 0x13c, subw 0x640005b, time 42431610, (367,0), root:(369,63),     mode NotifyNormal, detail NotifyVirtual, same_screen YES,     [...]

Tags: , , , , , , , , ,

Terminal Heroes – 4 – regexpias lair

Posted by Ktoso under coding, freedom, fun, terminal heroes (2 Responds)

Let’s drop a little humor in this time… You, brave Terminal Hero, shall kill -9 the daemon that has hidden itself in one of those files! We don’t know in which file you can find it though! We’re running out of time! The kingdom of GNU will be rm -rf‘d if you won’t make it [...]

Tags: , , , , , , ,

Smart webpage migration

Posted by Ktoso under coding, freedom, guide (No Respond)

I recently had to migrate a big website – about 5GB – to a new server. That could take a while to do, right? Well, maybe if you did it like that (the not smart way): Thanks goodness I’m not really keen on doing stuff the slow “not_smart” way, and the new server is a [...]

Tags: , , , , , , ,

Google Analytics GUI fix

Posted by Ktoso under coding (No Respond)

I really like the google analytics tool, yet it doesn’t seem that all it’s styles where writen carefuly… Take a look at this: So… Which button is the confirm one…? Yup, the colors are screwed up! I guess that’s becouse they didn’t think that someone could have a dark OS skin that would also skin [...]

Tags: , , ,