Posts under coding

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

[release] Kanbanery for IntelliJ (and Android!)

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

After not even one day of hacking, I’m releasing my first IntelliJ IDEA plugin. It enables “Tasks” (that default plugin in IntelliJ) to see tasks on the Kanbanery.com board. Thanks to this you’re able to commit always “refering to” some specific task. Using GitHub and Kanbanery such commits are linked back to the task on [...]

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

[release] Sidewinder X6 MacroKeys on GNU/Linux

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

I’ve released my keyboard event mapper for the Microsoft Sidewinder X6 in an quite usable state right now. Take a look at sidewinder-x6-linux-macro-key-events on github. Here’s a quick description what it does: As the Sidewinder is an Microsoft keyboard, it obviously does all it can to not work at it’s full potential on GNU/Linux systems [...]

Tags: , , , , ,

[alpha][release] ProtoDoc v1.0 (not production ready)

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

I’ve finished a one could say major stepstone in my student project yesterday. I’ll be implementing this tool to be production ready over the next few months so keep your fingers crossed. But what is it actually? ProtoDoc, is for Google Protocol Buffers what JavaDoc is for Java. As simple as that. In order to [...]

Tags: , , , , , ,

[Me] Git @ Academic IT Festival (SFI) 2011

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

It’s been a long time since the Academic IT Festival 2011 but I didn’t have the time to post about it somehow. Anyways, now just a quick recap about it :-) Aparently some people did really like it, see tweets bellow :-) I also got feedback that “not yet real programmers”, that is students, didn’t [...]

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