Posts under english

[Scala] Implicit Manifest tip

Posted by Ktoso under coding, english, scala (1 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: , , , ,

Scala SBT and Test Dependencies

Posted by Ktoso under coding, english, scala (2 Responds)

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

[conference] Deep Dive Into RoboGuice @ Cracow.Mobi

Posted by Ktoso under android, coding, english, polish, Project13 (1 Respond)

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

[fun] “Holy turnaround, Batman!”

Posted by Ktoso under english, fun (No Respond)

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

[Android] java.lang.SecurityException: Permission Denial – when launching Activity

Posted by Ktoso under coding, english (No Respond)

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 [...]

Keeping processes alive using God’s power

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

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

[review] CodeRetreat.SCKRK.com

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

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

[git] bisect + maven = automate “breaking” commit search

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

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

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