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: , , , , , , ,

The Grails way #0: Simple Twitter TagLib

Posted by Ktoso under coding, java (No Respond)

Let’s skip the introduction of taglibs, (since anyone knows what they are), and get to the code really quickly! If you’ve seen netbeans.edu.pl you probably noticed the twitter part on the right. As twitter’s API is really simple to use, one could implement this on ones own, but why do so if we’re in the [...]

Tags: , , , , , , ,

YES! Native Zen coding in Intellij IDEA EAP 9.0.2

Posted by Ktoso under coding, fun (No Respond)

Zen points directly to the human heart, see into your nature and become Buddha. – Hakuin Ekaku (1685–1768) For those who don’t know about zen coding (where have you been guys?) here’s a little sample: Instead of writing: <form class=”form-comment” id=”comment”> <fieldset> <input id=”myid” name=”name” type=”" /> <input onclick=”hideMe()” type=”" /> </fieldset> </form> You write [...]

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: , , , , , , , , , , , , , ,

Toggle Syntax Highlighting in vim

Posted by Ktoso under coding (No Respond)

Just a quick vim tip today… Have you been coding/fixing stuff on the server over ssh using vim? I sure have, but was always wondering why the vim on my server wouldn’t highlight php… The solution is: :syntax on Whoa, 2 words, not 2 letters like usually! Thats pretty long for vim ain’t it? ;-)

Tags: , , , , , ,

Terminal Heroes – 1 – mysql backup insert

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

Just a quick note while dumping a 70MB database… ;-) Let’s say i got my database backup from phpmyadmin, compressed with gz (zip’s also fine), while getting the backup,even if it’s BIG ain’t really a problem, putting it into the database can be troublesome becouse timeout’s etc, especially if it’s a BIG file ;-) My [...]

Tags: , , , ,