• Jekyll add RSS Autodiscovery
  • If you are missing the RSS icon in your browsers addressbar for feeds in Jekyll your head lacks the RSS Autodiscovery statement. Adding it is easy. Just edit _includes/head.html and add this line: <link rel="alternate" type="application/rss+xml" title="RSS" href="http://claw.triple6.org/feed.xml">




  • What makes my disk spinning?
  • Awnser: sysctl vm.block_dump=1 dmesg Every application will be loged to dmesg if it is causing my disk to spin up like so: [329233.397849] postgres(3606): WRITE block 383517144 on dm-0 (8 sectors) Very handy if you want to know your system better.




  • Update Postgres major version using pg_upgrade on Debian
  • In Postgresql world you need to upgrade your database to a new major version on your own. Postgres provides the pg_upgrade executable to do so: (I am going to upgrade from 9.3 to 9.4) Easy way: pg_dropcluster 9.4 main pg_upgradecluster 9.3 main That’s it. There is also an other way descried in the postgresql wiki Harder way: cd /tmp sudo -H -u postgres /usr/lib/postgresql/9.4/bin/pg_upgrade \ -b /usr/lib/postgresql/9.3/bin \ -B /usr/lib/postgresql/9.4/bin \ -d /var/lib/postgresql/9.3/mai...




  • Mailing with Ruby
  • Get the mail gem from here. And add require 'mail' to your ruby application of course! Configuration Remote/Local SMTP options = { :address => "claw.triple6.org", :port => 25, :domain => 'claw.triple6.org', :user_name => 'username', :password => 'securepassword', :authentication => 'plain', :enable_starttls_auto => true, # Enables starttls :...




  • Notable things on ruby's syntax
  • Hey there, Lets have a look at nice ruby styles: One line if something=true puts "Hello" if something==true # => Hello puts "Hello" if something # => Hello One line unless something=true puts "Hello" unless something==true # => nil puts "Hello" unless something # => nil One line if else (Ternary Operator) something=true puts something ? "something is true" : "something is NOT true" # => something is true Beauti...




  • APT unmet dependencies for libgdm3
  • Debian rolled libgdbm3 version 1.8.3-12+b1 to testing and i was facing an error about unmet depencies. [21:08:52]root@claw-t430:claw# LANG=C apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libgdbm-dev : Depends: libgdbm3 (= 1.8.3-12+b1) but 1.8.3-12 is installed libgdbm3 : Breaks: libgdbm3:i386 (!= 1.8.3-12) but 1.8.3-12+b1 is ...




  • Emacs as a Ruby IDE
  • Robe is a code assistance tool that uses a Ruby REPL subprocess with your application or gem code loaded, to provide information about loaded classes and modules, and where each method is defined. Therefore it can be used to extend Emacs to an Ruby IDE with code completion. Install the Robe package with emacs Add this to your init.el or .emacs (add-hook 'ruby-mode-hook 'robe-mode) If you are using auto-complete or company-mode either add (add-hook 'robe-mode-hook &#...




  • Hanvon Artmaster driver for Linux
  • I own a Hanvon ArtMaster. Sadly the Linux Kernel has no native support for that device. I worked with Havel on an driver for these kind of tablets. Download the module Get it from here Build and load it tar xavf hanvon-* cd hanvon-* make insmod hanvon.ko Now the tablet should work Load it every boot cp hanvon.ko /lib/modules/$(uname -r)/kernel/drivers/input/tablet/ depmod echo "hanvon" >> /etc/modules This will load the module every time you boot




  • Charts with Ruby
  • Hey there, Have you ever heard about gruff ? Its a nice library for making beautiful graphs out of data from ruby. Install The name of the gem is gruff so add gem 'gruff' to your Gemfile and execute bundle install Use it I am going to build a line chart of counted data. The Data is managed by DataMapper The Table looks like this: Counter Date 250 2014-06-01 200 2014-05-01 … … require '...




  • On Jekyll now
  • Hey Guys! I am running jekyll now. Old content wont be ported to the new engine i guess.




subscribe via RSS