[Scala] Implicit Manifest tip

Posted by Ktoso under coding, english, scala (No Respond)

Hello again! Today I’d like to show a nice little trick you can do in Scala to make your methods look more “like Scala”, and require less typing :-) Let’s take a look at the two methods bellow: // before: val cookie = unmarshall(classOf[Cookie], jsonRepresentingACookie)   // which is the same as the bellow sample [...]

Tags: , , , ,

[JDK7] java.util.Objects – forgotten feature?

Posted by Ktoso under coding, java (1 Respond)

This time just a quick post about something I’d really want to share with you all, and that’s been kind of forgotten during the release of JDK7 – java.util.Objects! Be sure to check out it’s javadoc to see what this small helper class can do for you :-) We’ll focus on two of it’s methods. [...]

Tags: , , , , , ,

[terminal heroes] Display git branch in shell prompt (PS1)

Posted by Ktoso under english, fun, guide, terminal heroes (2 Responds)

I don’t think I’ve blogged about this but I’ve seen this sometime ago and now decided to add it to my .bashrc for good. It’s a simple trick to make an awesome PS1 shell prompt, displaying the branch you are currently on (if you’re in a git versioned directory). Not that I’m forgetting what branch [...]

Tags: , , , , , , , ,

Setup git on windows to use kdiff3 as it’s mergetool

Posted by Ktoso under coding, english, guide (1 Respond)

As I’ll be leading BOTH a presentation and a workshop about git at the upcomming Academic It Festival I’m preparing myselffor the most problematic of all problems… MS Windows! Just kidding ;-) But it’s highly probable that most users will have Windows installed on their notebooks so I’ll better be prepared :-) One of the [...]

Tags: , , , , , , , ,

[release] maven-git-commit-id-plugin

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

Yup, today I’m releasing yet another piece of cool free software! It solves a problem we’ve had at our company, the tester tometimes tested stuff that wasn’t deployed yet, and the developers thought it was deployed and this caused some weird situations sometimes. Using the plugin I’ve written, we’re able to expose “which version is [...]

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

git: “befriend” an existing and a remote branch

Posted by Ktoso under null (No Respond)

Ok, time for another quick post about git. By “befriend” in the title I mean “make them track the same changes” or something like “tell git that it’s the same branch”* (not the “same” but you can get the idea from that sentence). Bellow is an quick flow over why you might need such an [...]

Tags: , , ,

Tweets in WordPress; same timeline but skip in rss feed

Posted by Ktoso under coding, english, fun, guide, Project13 (No Respond)

Hi guys, todays post is about yet another fun and small hack, namely: Having twitter posts (tweets) to be displayed right along all wordpress blog posts (posts) in the same timeline (wordpress main view). しかし!!! As my blog is being listed on http://www.dworld.pl/Blogsfera (and for other obvious reasons) I didn’t want all my tweets to [...]

Tags: , , , , ,

props2xls – GWT i18n Properties to Google Spreadsheet uploader

Posted by Ktoso under coding, english, java (No Respond)

!UPDATED POST – see bellow! As I’ve been recently given a task to “copy & paste” all our properties into an specific document on google docs – that the client wanted to use in order to translate these properties into other languages. Of course I decided NOT to do this by hand – but script [...]

Tags: , , , , , , ,

[Diff] context.getBean(); Spring 3.0 vs. 2.5.6

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

I just found an nice thing in Spring 3.0. I was using it in one of mu current projects, but the client wanted us to use 2.5.6 as it would be provided on the server. Switching back was really easy, no problems there ;-) One interesting thing I found was that while in Spring 3.0 [...]

Tags: , , , ,

[Repost] Enabeling touch screen input in J2ME WTK emulator

Posted by Ktoso under english, gaming, java (1 Respond)

This is a repost from my kenai forum, posted while I was developing my Xplode J2ME game :-) I thought I’ll repost in on my blog, since it may be quite usefull and my blog is more easily found thank just one usefull post on my kenai account :-) Thought this might be useful for [...]

Tags: , , , ,