So I spend few hours playing with Linux Containers. Pretty interesting stuff. So here is small tutorial on how to create and use container on Arch Linux as host machine.
Clojure on Raspberry Pi: OpenJDK vs Oracle JRE (Java 8 Armhf Beta) Benchmark
Here you can download latest Java 8 preview for armhf. Lets benchmark it on Raspberry Pi!
Building RC Toy With Clojure
Bored and have free time? Lets build something. Lets build RC Toy. Hm, and lets use Clojure (because clojure is pure fun to use).
How I Cook Ctags in Vim
Ctags is great piece of software. And it took me some time to realize how I can use ctags with vim in optimal for me way. My solution is petty simle. I have few vim functions that vim runs when buffer write is done.
Blue Midnight Commander Color Scheme
I spend today few hours reading mc documentation about color scheme configuration. Came up with following color scheme. Enjoy :)
1 2 | |
For more information take look at mc wiki and run mc --help-color to see available color variables in your mc version.
Format of color configuration is what=foreground,background:. All configuration shoud be in one line (ofcourse you can write it in multiple lines and then use vim (or other cool editor) magic).
ClojureScript on BeagleBone: Simple Benchmark With Node.js
Benchmark is based on my previous experiments with BeagleBone and Clojure. Setup is the same. BeagleBone is running Ubuntu 12.04. Cpu is running on 500 Mhz. Node version is 0.6.12. ClojureScript is compiled with advanced and simple optimizations.
Easy HTML5 Validation Fallback for Older Browsers Using Modernizr and JQuery Validation Plugin
So I heard that you hate IE. Also I heard that you love HTML5. Is that true? Great, I feel the same about IE. So here is quick fallback script for html5 validation in older browsers (or crappy ones, like IE). You will need three things for that.
First is Modernizr javascript library. It allows you to detect which features are supported by your browser and which aren’t.
Second is JQuery. I think you are already familiar with it, so there is no need to tell you why it’s awesome and how to use it.
Third is JQuery Validation Plugin. It provides mechanism for form validation based on input classes.
So now only things you need to do is to convert html5 validation attributes to html classes and run validation plugin. Here is small CoffeeScript snippet:
1 2 3 4 5 6 7 8 9 10 11 | |
And as always, Have a nice day! :)
Note on Privacy #1
Today I removed from my blog all staff that can track users. I removed Twitter follow and tweet buttons, Google +1 button, Google Analytics script, Facebook related crap.
Why? Because it’s just unfair. Why would you provide any information about yourself by just being curious? I actually not interested in how many people are reading my blog, anything about traffic sources. Only thing that I am interested in is feedback from users. That is why I left Disqus unchanged. Maybe later I will find something more open and replace Disqus with it. But for now if privacy is issue for you check out Ghostery exstension for Google Chrome (Chromium).
Programmer Dvorak and Switching Workspaces in XMonad
Recently I migarted from awesome to xmonad. I’m Programmer Dvorak freak, so I stuck with controlling current workspace from numbers row. First hack was to use functional keys [F1..F12] like so:
1 2 3 4 5 6 | |
But after some research I found that I can detect key symbol using xev command. Here is my latest solution:
1 2 3 4 5 6 7 8 | |
Hooray! It works!
Clojure on BeagleBone: OpenJDK vs Oracle Embedded JRE Benchmark
After installing Embedded JRE on BeagleBone I decided to benchmark it against OpenJDK.
