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:
manifest,
marshalling,
scala,
tips,
tricks
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:
java,
jdk7,
lang,
oop,
release,
tips,
tricks
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:
bash,
branch,
git,
prompt,
ps1,
shell,
terminal heroes,
tips,
tricks
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:
diff,
git,
guide,
mergetool,
Project13,
SCM,
tips,
training,
windows
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:
#maven,
build,
free software,
freedom,
git,
java,
opensource,
plugin,
release,
tips,
tricks
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:
git,
terminal heroes,
tips,
tricks
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:
coding,
guide,
php,
tips,
twitter,
wordpress
!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:
coding,
fun,
groovy,
gwt,
java,
jee,
project,
tips
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:
coding,
java,
jee,
spring,
tips
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:
coding,
J2ME,
java,
tips,
wtk