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
Remember the ol’ days with Maven where you had to create a project for just about anything if you wanted to keep your depencencies clean and separated? We’ve encountered such a problem with a current project, and started to tackle it “the maven way”. It wasn’t too long that we’ve realized that we’re in scala [...]
Tags:
#maven,
compile,
dependencies,
project management,
sbt,
scala
Today I have presented yet another *new* Android Talk at the Cracow.Mobi conference. This time I focused on RoboGuice, and Guice in general. As from what I’ve seen a lot of android apps still get written without dependency injection – which saddens me – static global variables or weird helpers still come up in apps [...]
Tags:
android,
conference,
di,
fun,
guice,
ioc,
java,
jsr330,
presentation,
slides,
tweets
I’ve been featured in the JRebel Blog for my killer tweeting skillz… ;-) Thanks guys for the cool tool and for being so cool to the community! :-) http://zeroturnaround.com/blog/bazinga-rebellions-on-twitter-on-the-road-and-some-more-exciting-news/
Tags:
deploy,
glassfish,
jboss,
jee,
jrebel,
spring,
tomcat
Just a quick tip if you ever happen to run into such an error: Launching application: pl.project13.kanbanery/pl.project13.kanbanery .ui.activities.InitActivity. DEVICE SHELL COMMAND: am start -D -n “pl.project13.kanbanery/pl.proj ect13.kanbanery.ui.activities.InitActivity” Starting: Intent { cmp=pl.project13.kanbanery/.ui.activities.InitAct ivity } java.lang.SecurityException: Permission Denial: starting Intent { flg =0×10000000 cmp=pl.project13.kanbanery/.ui.activities.InitActivity } from null (pid=13301, uid=2000) not exported from uid 10061 The error is [...]
God is a nice “framework” and daemon to watch Linux processes and restart them if necessary. As I’ve configured it today to work on an ubuntu machine here’s a quick howto: First install ruby, gem and god. apt-get install ruby, rubygems gem install god Then paste this initscript into /etc/init.d/god: got init script. Configure it [...]
Tags:
admin,
centos,
devops,
fedora,
god,
keep alive,
process watch,
ruby,
ubuntu
This Saturday we’ve (the Software Craftsmanship in Cracow guys) organized a Code Retreat, right after AgileCE. We’ve invited Corey Haines to join us and facilitate this meetup, and later on even Alexandru Bolboaca AND Maria Diaconu joined us in facilitating the event and so it got even better :-) Before we start, just a quick reminder [...]
Tags:
clean code,
clojure,
coderetreat,
coding,
java,
meeting,
objective-c,
python,
review,
ruby,
scala,
TDD
Hey there guys. I hope some you enjoyed my presentation on SFI last weekend. The workshop was kinda chaotic (network problems mailny) but I’m sure some of you got convinced to use, or begin with trying out, git in yout next projects… :-) Well, that was all nice and cool but git (other DVCS have [...]
Tags:
#maven,
bisect,
coding,
git,
java,
runner,
SCM,
TDD,
testing
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