betabug... Sascha Welter

home english | home deutsch | Site Map | Sascha | Kontakt | Pro | Weblog | Wiki

11 June 2014

The site is coming back

Not all those who wander are lost

On the 24th of February my server had crashed hard. At first all was gone. Then some backups turned out to be well and kicking... but another important backup turned out to be an emtpy shell of a tarball. Years of data were gone. Nothing too important, nothing too personal.

I got the server's hard disk back, but with the information that it spins up, but the controller doesn't answer. I put it in a drawer and tried to forget about it. I put off fully restoring my site for a while, because I was busy and because it just wasn't a feel-good task.

Last saturday I hooked up the disk with an adapter to my laptop. The controller answered just fine, I could "see" the partitions. I still needed a PowerPC machine to boot the OpenBSD/macppc on the disk. I remembered that there was such a box in the hackerspace in Athens. Went there, booted the disk (worked just fine). It took me a while to get the data off it, because the system wouldn't let me log in from the console. Booting into single user worked, and getting minimal networking up worked too.

I now have my stuff on the laptop, and I'll be restoring more and more stuff as I get to it. You alreayd see the pictures are back at this weblog and the imagelog works again too. Plenty busy at work, so it still might take some time. But it's all there, and that lets me take a big sigh.

Posted by betabug at 14:17 | Comments (0) | Trackbacks (0)
13 June 2014

Getting into the Ruby Debugger

The missing fin

I was trying to debug a ruby script yesterday, so I searched the docs and the web for how to do this. Part one of the problem: various older versions had different ways to do this, having to install some gem or not, etc. Ruby 2.1 has something built in, so there I was. Put this in your code:

require "debug"

Simple enough (in Python it's "import pdb; pdb.set_trace()"). But then I got stuck, because the debugger was somewhere in the debugging code, not in my code. No mention of that in the docs or in the tutorials I'd found.

The solution was to step up from the current frame, with the debugger command:


which is short for fin[ish] - return to outer frame. The h command gives all the help you need - as long as you are used to command line debuggers like Python's pdb. But that fin thing had me searching and wondering for a while.

Posted by betabug at 13:36 | Comments (2) | Trackbacks (0)
26 June 2014

Danakos Climbing Gym

Time to get back into shape
The smaller part of the Danakos Climbing Gym

After my trip to Austria I stayed off the bike for some more, to a total of 3 weeks, since my bike was on Naxos and I was in Athens. So when I hopped on the bike again back on Naxos I felt totally out of shape. In my experience, after an intense training period, taking one week off the bike is great, after two weeks I feel totally relaxed, but three weeks was too much. Something else that might have played part was that it has become summer for real now, and the heat doesn't make things easier.

So I had to devise a plan to get back in shape. The first part was easy to decide on: I had to build back the "base", which means to just put in the hours in the saddle, without trying to go too hard. This took a lot of patience, as I felt like things didn't improve at all, nothing moved. Patience was the keyword though, it just took time, to go out again and again.

I'm still not at the level that I was before, so I'm slowly starting into the next phase, to actually start to train again. Last year, what brought me the most progress were "hill climbing repeats", or as I named them "climbing gym" rides. Going up a tough climbing section three times in a row. I did that in Athens on the Kremastos Lagos climb.

Here on Naxos I found another candidate, the Danakos Climbing Gym. There is a small road that turns off from the road to Apeirantho, goes up steep for some hairpin turns (0.8km at average 7%, the one shown in the photo), then down to the village of Danakos. There I turn and head back up, for about 1.8km at an average of 8%. There are many sections of more than 10%, which is what makes this thing interesting. Another good aspect is that in the late afternoon the road is in the shade of the mountain, so less heat.

The point is that I have to go out of my comfort zone to go up here. I've done it once, going all out. Yesterday evening I went again, doing two runs, limiting myself to a Zone 4 effort. I did feel my legs afterwards, but I also felt good from the effort. My goal is to go and do three runs in a line.

Posted by betabug at 18:40 | Comments (0) | Trackbacks (0)