• Contributing back – InfluxData.Net NuGet

    Contributing back – InfluxData.Net NuGet

    On project that I currently work on in Dovetail, we’re using the InfluxDb time-series database. And it’s a really cool thing to be working with.

    Recently we had to move to a newer version of InfluxDb and the library that we were using at the time became a bit stale and didn’t support the newest version of InfluxDb (v0.9.6) which we had to move to. So, partially out of necessity, and partially “because I can” and wan to, I decided to update the currently existing library and then re-release it as a NuGet package under a slightly different name.

    *drumroll* – the code for the InfluxData.Net NuGet is available on Github. It already had a few code contributions which is quite exciting. The whole codebase has been refactored, additional tests written and I believe that the codebase is now quite stable. I plan on expanding the library API to support most of the stuff that InfluxDb provides, and I also plan on implementing the API’s for other InfluxData products such as Kapacitor and Telegraf.

    If people keep using it in the future, I’ll consider it a success and it will make me happy. :)

  • Global day of code retreat – Dublin, 2015

    Global day of code retreat – Dublin, 2015

    Yesterday I went to a very fine event organized by folks from Intercom here in Dublin. It was the global day of code retreat which is organized in many cities around the world. Initially I got interested because the topic of this years code retreat was Conway’s Game of Life which I had my eye on for some time now but the whole event turned out to be a really pleasant experience.

    The idea is very simple:

    • try to solve a simple problem – Game of Life in this case
    • do it with a partner for 45 minutes
    • add some kind of restrictions to make it more interesting and consider different approaches
    • you don’t really need to implement the whole thing
    • reflect on the session and wipe your code at the end of each one

    We ended up doing 5 or 6 sessions, each with a different person. What’s interesting is that the whole event wasn’t really about the Game of Life but the Test Driven Development approach. Usually one person would write unit tests, and the other one would work on the implementation of Game of Life rules. The restrictions that were placed on us were: use only primitive types, use only objects, do not talk to your partner (apparently everyone’s favourite)… It ended up being funny that my “silent session” partner didn’t really think it through nicely so he wrote his first unit test in such a way that I basically had to make the whole thing work before the first test passed. He realized it and later on added tests with smaller increments. :)

    What I really liked about the coding sessions was pair programming. This was my first real exposure to it and I loved it, I think it’s a great approach to coding. I felt like my concentration was boosted and that I was somehow more motivated because I was coding with someone else on the same thing at the same time. It also felt a bit more safe/secure because both people get to complement each others ideas and code. In general is timply felt more productive than programming on your own.

    It seems that everyone ended up doing all their stuff in Javascript because it turned out to be the most common language between the participants. I believe we all used tryjasmine which makes it really easy to write both the implementation and unit tests (in Jasmine JS testing framework) in browser with literally zero configuration. That’s quite handy for an event such as this.

    We got treated very well – organizers fed us, shoved coffee down our systems and even invited us for pints in a nearby pub afterwards. I got to meet some new, interesting people which was nice. Considering all of this, I was a bit surprised that only 7-8 people actually showed up for the event although it was a stay-late-in-bed kind of Saturday.. But whatever!

    I enjoyed it. Would come again. :D

    Thanks organizers!

  • KatKiss >> Cyanogenmod (Asus TF300T)

    KatKiss >> Cyanogenmod (Asus TF300T)

    Ever since my little TF300T rooting/flashing adventure I have had nothing but trouble with Cyanogenmod on my TF300T. I flashed 3 new versions throughout 3 months, but none of them were stable or fast enough. I have been a long time Cyanogenmod user and I like it a lot so that was my obvious choice. But the tablet would often become very, very slow, couldn’t connect to Wi-Fi or wouldn’t even be able to run certain apps. There are also other issues people reported and it seemed that things wouldn’t change in future.. I guess the device is simply not popular enough to have enough people care about and it maintain it’s CM version. Lately I started thinking I would either have to flash an older version of Android (perhaps even Asus stock crap) or retire the device to a dark corner of a drawer..

    Hopefully, I remembered seeing everyone giving praise to the KatKiss ROM so I decided to give it one last try and try KatKiss out. Man was this a pleasant surprise. The device is now bursting with speed! It’s really responsive, I haven’t noticed any bugs so far, it looks nice and I have the latest Android 5.1 features. It’s even faster than what it was with the old 4.x stock Android, it can now run anything (including Hearthstone! :D). I’m really happy as this means I will now be able to use the device with joy again.

    If you’re looking for a fresh rom for your TF300T – avoid CM and give KatKiss a try, it will save you time.

    Mad props to timduru! :)

  • Codealike bug squashing

    Codealike bug squashing

    I stumbled upon codealike a bit more than a month ago and decided to give it a try. I was interested in programming language usage percentages and coding vs. debugging vs. building statistics as well as some additional stuff that they track. After a while I even decided to get a premium for a month to see what the differences are and whether it would be worth for me personally to pay the fee.

    Today I discovered a potential bug in their system that I thought could probably lose them some money so I submitted a bug ticket. In 10 minutes, I got a response from their team. After that, we exchanged a few emails – they were happy that I notified them and in the end they even awarded me with one year of VIP subscription. Which is even better as it means I can now use their staging environment to experience the latest features they’re working on. That was quite cool of them and I guess it pays off to be a good guy. :)

  • Secret Arcade Jam – FireWallCade

    Secret Arcade Jam – FireWallCade

    So, last weekend a Secret Arcade Jam was held, organized by Erik Svedäng for his else Heart.break() game. The goal was to create a mini-game that can be run on computer terminals inside the game. Erik created a simple Ruby-inspired programming language called Sprak which is used to code the mini-games. What you get inside the game is a terminal with an editor (it even has syntax-highlighting and everything!), compiler and runner to try your code out..

    This all sounded like a whole lot of awesomesauce to my friend Dalibor and me, so we decided to give it a go and try and make something. After two days of (haaard) work, we had our own mini game – *drumroll* FireWallCade. It’s a very simple game. You have good and bad “network packets” (green and red blocks) falling down from the top of the screen at increasing speed. Then there are two “ports” at the bottom which can be opened and closed by using left and right keys. The goal here is to block the bad packets and to let the good ones pass through. We even created a splash screen in ASCII, a menu and a GameOver screen. Here are a few screenshots..

    else Heart.break() shell

    ehb-screenshot-1

    code editor (very cool!)

    ehb-screenshot-2

    ASCIIIIIII splash

    ehb-screenshot-3

    about (SPACE handlers eveeerywheeereee)

    ehb-screenshot-4

    gameplay :)

    ehb-screenshot-5

    Well anyway, we won! :D People were able to vote on their favorite game and apparently we got over 40% of the votes. Thanks everyone! :)

    The prize for the first place was – your game ends up in the else Heart.break() itself. That means we now actually need to make it even better! Optimize it a bit, perhaps make it look a bit nicer as well, we’ll see.. I hope Eriks game ends up a good and interesting.

    Bye-bye-bye-bye-bye-byeeeeeee

    ehb-screenshot-6

  • Automatic Wake-on-Lan (Android)

    Automatic Wake-on-Lan (Android)

    I just released this simple Android Wake-on-Lan app which lets you turn on your devices automatically over Wi-Fi upon obtaining network connectivity. The app features quiet-hours which let you suppress auto-wake during a period of time of your choosing. You can also set an “idle-time” value which can be used to suppress auto-wake for a period of time since your device has last been disconnected from Wi-Fi to prevent random wakes in case your Android device looses Wi-Fi connectivity.

    The app is released under GPLv3 over at github.

    Special thanks go to my good friend Marko Iličić for his help and guidance through the Android SDK. :)

    It was a fun ride, enjoy!

Back to top