mihai.ibanescu.net
Recovering data from one disk from a RAID1 array | mihai.ibanescu.net
http://mihai.ibanescu.net/recovering-data-from-one-disk-from-a-raid1-array
Mihai's few cents. Recovering data from one disk from a RAID1 array. Last night I helped a friend recover his data he had stored on an Iomega NAS. The disks were fine, the rest of the hardware had failed. Prior to me being involved in this, my friend had installed Ubuntu on an older machine and had installed both drives. Not having played with RAID for quite some time, I had to acquire some knowledge first – google to the rescue! Here is what I ended up doing:. Mount /dev/vg1 md9/lv1 /tmp/olddrive -o ro.
mihai.ibanescu.net
Programming | mihai.ibanescu.net
http://mihai.ibanescu.net/category/linux/programming
Mihai's few cents. Chunked encoding and python’s requests library. I’ve been investigating long polling. Solutions. This blog entry describes the technique I used on the client-side (I will probably change my mind a few more times before settling for a server-side implementation, and I may end up not using the code below on the client at all; but it may be useful to others who, for other obscure reasons, want to iterate over chunks as they got produced by the server). I hope this will be useful to others...
mihai.ibanescu.net
Babbling | mihai.ibanescu.net
http://mihai.ibanescu.net/category/babbling
Mihai's few cents. List comprehension (done bad) for everybody! As I was trying to fix a test, I found this masterpiece of Python code (edited a bit to highlight its resourcefulness):. Def getModuleHooks(self): ModuleHooks = [] for path, dirs, files in os.walk('/some/directory'): for file in [filename for filename in files]: if fnmatch.fnmatch(filename, '*.bar'): joined = os.path.join('hooks', file) ModuleHooks.append(joined) return ModuleHooks. Should be a candidate for thedailywtf.com. August 9, 2012.
mihai.ibanescu.net
Python and Meta-Programming | mihai.ibanescu.net
http://mihai.ibanescu.net/python-and-meta-programming
Mihai's few cents. Meta-programming is one of the lesser known features in Python that can simplify (and sometimes obscure) your code. This was initially intended to be a 5-minute lightning talk at PyCarolinas 2012. But it could not quite fit the timeframe. As described in the Python documentation. Meta-programming allows you to customize class creation. Why would you need that? Keep reading, for I will discuss 2 common use cases I encountered. This is how a normal class definition looks like:. To let Py...
mihai.ibanescu.net
Managing SSH keys with Conary | mihai.ibanescu.net
http://mihai.ibanescu.net/managing-ssh-keys-with-conary
Mihai's few cents. Managing SSH keys with Conary. Since we “eat your own dogfood” here at rPath, we do have IT using a Platform-as-a-Service model. They maintain their own platform that contains all the bits required on all the systems, like a baseline. As a consumer of the platform, all I have to do is add my own software. In this case, I was basing my Jira. Product on IT’s custom platform. Key removal is not yet done, although it would not be hard at all to implement. This entry was posted in Conary.
mihai.ibanescu.net
Setting orienteering course for Sunday May 6th | mihai.ibanescu.net
http://mihai.ibanescu.net/setting-orienteering-course-for-sunday-may-6th
Mihai's few cents. Setting orienteering course for Sunday May 6th. Just got back from setting the long course for Sunday. I waited for the rain to stop, but by 5:30 it was clear it wasn’t going to. So half of the time I was in the rain, and even though I had a plastic map cover, the water still got in. To the point where the top side of the map was so wet that the ink was getting smudged (yes, I only have a deskjet at home). This entry was posted in Orienteering. May 5, 2012. VMware Fusion and Fedora 16.
mihai.ibanescu.net
The beginning of a new Orienteering year | mihai.ibanescu.net
http://mihai.ibanescu.net/the-beginning-of-a-new-orienteering-year
Mihai's few cents. The beginning of a new Orienteering year. For Backwoods Orienteering Klub. The month of September is the beginning of a new year. In part because membership is paid from September till next year’s September. But also because during the summer the only events are advanced and sprint ones, so this month does mark the return of regular events. Group for giving me motivation to wake up early. This entry was posted in Orienteering. September 19, 2010. And the Oscar goes to…. Mud Run →.
mihai.ibanescu.net
Mud Run | mihai.ibanescu.net
http://mihai.ibanescu.net/me-fine-mud-run-201
Mihai's few cents. Today I ran my first first 5K mud run. I was part of a 4-person co-ed team from the Raleigh Trail Runners meetup group. The obstacles were numerous and challenging, but we all had a blast. It is definitely not your typical 5K run. The run itself was actually the easy part. I am very curious how long it took us to finish the course, I know the start time but none of us paid attention to the finish time. Results will probably be posted over the next few days. October 1, 2011. Also can...
mihai.ibanescu.net
Orienteering | mihai.ibanescu.net
http://mihai.ibanescu.net/category/orienteering
Mihai's few cents. Setting orienteering course for Sunday May 6th. Just got back from setting the long course for Sunday. I waited for the rain to stop, but by 5:30 it was clear it wasn’t going to. So half of the time I was in the rain, and even though I had a plastic map cover, the water still got in. To the point where the top side of the map was so wet that the ink was getting smudged (yes, I only have a deskjet at home). This entry was posted in Orienteering. May 5, 2012. September 19, 2010. Ie a nat...