Runninglog
As I have to do some ruby presentations in the upcoming weeks at university, I decided to play a little bit with Sinatra. Sinatra is a minimalistic web-framework, perfectly suited for 1-file web-apps dealing with requests in a REST-like way.
As I always wanted to have a simple "upload and forget"; storage for my GPX files (XML GPS-traces), I decided that I'd give it a shot.
I already had codec the whole GPX parsing and analyzing a while back and only had to refactor it and put it into a working web-app.
A little bit of caching using sinatra-cache and templating using haml later, it seems to work :)
It still is ugly as hell, but I'm pretty happy with what I've got for my personal use
Demo: http://fitness.marc-seeger.de/
GitHub Repository: http://github.com/rb2k/run-a-log/
UPDATE: changed name to "run-a-log"; and added some stuff
Deploying Rack Apps (e.g. Sinatra) on Dreamhost
To deploy a rack app on Dreamhost, you have to do the follwoing (this example is deploying an app which is using the sinatra framework):
- Enable the mod_passenger for your domain (it has to point to public/)
- gem install sinatra
- create a yourdomain.com/config.ru like this
1 2 3 4 5 6 7 8 9 10 |
require 'rubygems' require 'sinatra' Sinatra::Application.default_options.merge!( :views => '/path/to/your/views', :run => false, :env => :production ) require 'main.rb' run Sinatra.application |
create a directory structure like this:
/mydomain.com
/mydomain.com/tmp
/mydomain.com/views
/mydomain.com/public
create a /mydomain.com/main.rb file like this:
1 2 3 4 5 6 |
require "rubygems" require "sinatra" get '/' do "Hello World" end |
File Blocking: Something They Have to Fix in Windows 7
Review: Breckle 7-Zonen Matratze
M√ɬ∂max 329 Eypo (140 × 200):
Amazon: 140 Eypo (140 × 200)
Diesmal auf deutsch :)
Meine alte Matratze war bei dem günstigen Bett dabei welches beim Einziehen mal eben so auf die Schnelle (und möglichst günstig her musste). In die alte Matratze konnte man Kuhlen liegen und die blieben dann für 1-2 Stündchen nach dem Aufstehen drin :P
Die neue Matratze ist erstmal eine “Marken”; Matratze, mir pers√ɬ∂nlich ist das prinzipiell egal, aber nach allem was man so liest scheint Breckle einigermassen anst√§ndig verarbeitete Matratzen herzustellen, soll mir also recht sein.
Die Matratze kam per Post in einem ca 1,50 Meter hohem Paket innerhalb von 2 Tagen nach Bestellung. Sie war zusammengerollt und gut in Plastik eingeschweisst, deswegen sollte man sich auch erstmal versichern dass die Matratze WIRKLICH auf das Bett seiner Wahl passt, denn wenn die Matratze erstmal aus dem Plastik geschnibbelt wird geht sie da auch nichtmehr rein :)
Ich pers√ɬ∂nlich bin echt begeistert. Die H√§rte (“H3”;) sollte f√ºr Menschen bis 120 Kilo ausreichen, also mehr als genug. Die ersten 2 N√§chte f√ºhlte sich nach dem Aufwachen mein Kiefer noch etwas komsich an. Das sagt mir dass ich es wohl nicht gewohnt war dass die Matratze auch wirklich einen Weiderstand bietet und dass ich mein Gesicht nachts auf das Bett zu dr√ºcken scheine. Nach der zweiten Nacht hat sich das mit dem verspannten Kiefer jedoch erledigt, kam nichtmehr vor seither.
Mein Rücken hingegen hat sich von Anfang an wunderbar an die Matratze gewöhnt. Beim aufstehen fühl ich mich die letzten paar Tage über immer Wunderbar und das übliche Strecken und Dehnen entfällt. Ich fühl mich insgesamt recht entspannt und schieb es mal auf die Matratze.
Was ich beim H√§ndler “Matratzen Marquard”; positiv √ºberrascht hat: zum Versand gab es eine EMail mit passendem Tracking-Link. Wunderbare Sache, bekommt man oft leider nicht…
Noch ein bissl Copy-Pasta zu den Daten:
Modellname:
7 Zonen Luxus Marken Matratze H3 von Breckle
Artikelbezeichnung:
Breckle Luxus H3
Beschreibung:
14 cm 7 Zonen Konturen-Schnitt Schaum RG 30, Frotteebezug, mit Klimafaser versteppt, 4-seitiger Reißverschluß, 5-Zonen Pfeifensteppung, waschbar bis 60 Grad
ÖkoTex 100:
Zertifikat Nr. 94.0.8097
Textilkennzeichnung:
75 % BW, 25 % Polyester
Mein Fazit: Würd sie wieder kaufen!
Dear Alice: Get Your BGP Sorted!
>tracert upload.eweka.nl
Tracing route to upload.eweka.nl [81.171.88.18]
over a maximum of 30 hops:
1 1 ms 1 ms 2 ms XXXXXXXXXXXXX [10.0.1.1]
2 169 ms 148 ms 154 ms lo1.br01.str.de.hansenet.net [213.191.89.16]
3 ae1-102.cr02.str.de.hansenet.net [213.191.88.226] reports: Destination net unreachable.
Trace complete.
Oh c'mon! Not again!
Batch Rotate Images According to Exif Data
In case you have a bunch of image files you’d like to automatically (losslessly) rotate in the right direction, you should give “”;http://www.sentex.net/mwandel/jhead/“ target=”_blank">jhead“ a try:
jhead -autorot *.JPG
Works pretty much as expected :D
Social Media in Der Unternehmenskommunikation
Dell 5520 WWAN UMTS HSDPA MiniPCI Card
When T-Mobile decided to give away MultiSIM cards for free, I decided to get one and put it to use in my new Dell XPS 1530.
I ordered the MultiSIM and got myself a Dell 5520 WWAN card from ebay.co.uk (for approx 70 Euros). Today it arrived and I decided to give it a try.
Things that might be of interest to potential customers:
- The DELL 5520 is a rebrandet Novatel Expedite EU860D, here's part of the Linux driver:
{ USB_DEVICE(DELL_VENDOR_ID, 0×8136) }, /* Dell Wireless HSDPA 5520 == Novatel Expedite EU860D /
{ USB_DEVICE(DELL_VENDOR_ID, 0×8137) }, /</strong> Dell Wireless <span class="caps">HSDPA</span> 5520 <strong>/<br /> { USB_DEVICE(DELL_VENDOR_ID, 0×8138) }, /</strong> Dell Wireless <span class="caps">HSDPA</span> 5520 <span class="caps">XPS</span>-Laptop(<span class="caps">DIESE</span> <span class="caps">ZEILE</span> HINZUF√É≈ìGEN)*/</pre><br />
- The card currently only does HDSDPA up to 3,6 Mbit/s. Other rebranded cards support up to 7,2 MBit/s using the same hardware. Currently nobody that I know of was successfull in flashing the 7,2 mbit/s firmware to the Dell card
- One thing that really impressed me is that the card actually features a GPS receiver! Simply unlock it using a simple registry hack:
- Install the driver from the Dell Homepage (32 bit driver works fine on vista 64 bit)
- go to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Novatel Wireless\NextGenCommon
- change "GPSHWStatus"; from 0 to 1
- reboot
I was too lazy to actually go outside where I'd have GPS reception, but apparently it works :D
Here are some pics:
German Tax System: You're a Bitch
And here we go, another rant.
It all started when I got my bachelors degree some months ago. Usually people tend to be pretty happy about that and so was I. I even got a raise at the Fraunhofer Institute where I work to be able to pay my rent and all the neet gadgets I own.
I jumped up from about 400 Euros/month to 550 Euros/month. This resluted in my having to pay approx 9% of my money as annuity assurance. I personally think it's a good thing to to and I might even benefit from starting to pay early. So there I was, happily frolicking through the world with 500 euros of monthly income, hooray for me.
Today I recieved a letter from the AOK (my health insurance company) telling me that I'll have to pay 54,78 Euros health insurance and 11,26 Euros nursing insurance because I've got an income of more than 400 euros/month.
This results to the interesting situation that I could either keep working as long as I am now and earn 434 Euros OR I could work 10 hours/month less and earn 400 Euros.
The question is: do I really want to work for 3,40 Euros/hour with a university degree?
I don't think so…
They also mentioned that the BAf√ɬ∂G Amt will pay 59 euros which would be pretty nice… but they also will substract anything I earn over 400 euros from the amount they give me which will still make it suck.
So I could apply for BAföG, work less and make WAY more money than I would by simply continue working and paying my taxes as it is right now.
The Daily Show Full Episodes Online
Apparently, they finally got it :)
I'm just watching October 14th episode (without ads!) and I really like the fact that they don't have any stupid "only for the US"; limitations.
Now that Soutphark and TDS are available for free, I'm just waiting for the following shows to follow:
Stargate, Psych, Code.Monkeys. Everybody Hates Chris, Monk, The Simpsons, American Dad, Family Guy, Eureka, Flashpoint, Dexter, Scrubs, House, Boston Legal, Eli Stone, Generation Kill, Robot Chicken, Prison Break, Terminator The Sarah Connor Chronicles, Californication, Ross Kemp on Gangs, Louis Theroux, Til Death, True Blood, Fringe, How Not To Live Your Life, My Name Is Earl, Chuck, Greys Anatomy, Numb3rs, Everybody Hates Chris, The Big Bang Theory… (and others…)