The Road to Elysium

September 15, 2010

Python password generator

Filed under: Snippets — Tags: , , — jorge @ 17:07
#!/usr/bin/env python
# Filename: passgen.py
 
import random, string
 
mystr = string.ascii_letters+string.digits
random_string = []
 
while len(random_string) <= 8:
    random_string.append(random.choice(mystr))
print "".join(random_string)

September 14, 2010

Acer Aspire One USB Rescue Image

Filed under: Linux — Tags: , , , , , , , — jorge @ 09:10

A lot of people have been asking about where to find a rescue USB image for the Acer Aspire One. A long time ago someone with the nick gouki volunteered to host the file on a private server, but unfortunately, this is not so anymore.

I have placed the file on a new server, so you can now find it at http://jorge.fbarr.net/files/aa1_usb_recovery_image.gz. Right on the link and select Save link as to download it.

As for instructions on how to use it, I’ll repost a snippet of what I’ve written previously in the article Acer Aspire One Tips and Tricks:

I had to use an external USB drive for this, as I don’t have a USB-pen that’s above 125MB, but it works just the same. Besides the Acer One Aspire, I’ve another machine with Fedora 9 on it. Once the external drive was plugged in, this is what dmesg came up with:

usb 2-2.1: New USB device found, idVendor=1058, idProduct=0702
usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-2.1: Product: External HDD
usb 2-2.1: Manufacturer: Western Digital
usb 2-2.1: SerialNumber: 575845363037433636303733
usb-storage: device found at 14
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 16:0:0:0: Direct-Access     WD       1200BEVExternal  1.02 PQ: 0 ANSI: 0
sd 16:0:0:0: [sdb] 234441648 512-byte hardware sectors (120034 MB)
sd 16:0:0:0: [sdb] Write Protect is off
sd 16:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 16:0:0:0: [sdb] Assuming drive cache: write through
sd 16:0:0:0: [sdb] 234441648 512-byte hardware sectors (120034 MB)
sd 16:0:0:0: [sdb] Write Protect is off
sd 16:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 16:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 16:0:0:0: [sdb] Attached SCSI disk
sd 16:0:0:0: Attached scsi generic sg2 type 0

So now we know that the drive has been assigned /dev/sdb. Let’s make the recovery usb drive then.

WARNING: This next command will end up erasing your WHOLE drive, so be cautious when you type it. As root, type:

# zcat aa1_usb_recovery_image.gz > /dev/sdb

Notice that it’s /dev/sdb and NOT /dev/sdb1, as we’re overwriting the whole disk, and not just a partition of the disk.

That did the trick for me. Once the command was completed, remount the external drive and you’ll see that the new contents is there. Unmount it again, plug it into your Acer Aspire One, boot the machine, and press F12 during boot to select the USB-pen/external harddrive as the device to boot. You should be on your way towards recovery. :)

If someone happens to know how to do this in Windows, please give me a shout so that I can add it to this post. :)

A big thanks to Mithrandir for providing the file. :)

September 8, 2010

Spotify for Linux rpm

Filed under: Linux — Tags: , , , , — jorge @ 11:00

I’ve taken the liberty of converting the “Spotify for Linux”-files located at http://www.spotify.com/no/download/previews/ from .deb to .rpm. For now it can only be used if you have a Premium account.

To install it on Fedora 13, do the following:

su -
rpm --nodeps -Uvh http://jorge.fbarr.net/files/spotify-client-gnome-support.noarch.rpm http://jorge.fbarr.net/files/spotify-client-qt.i386.rpm

And that’s it. Now you can run Spotify as a Linux-application instead of through Wine. :)

August 27, 2010

Recommended Firefox addons

This post never gets old. I constantly keep finding new and useful addons for Firefox. Here’s the list of what I consider to be some of the best Firefox addons out there.

  • Adblock Plus
    • Ever been annoyed by all those ads and banners on the internet that often take longer to download than everything else on the page? Install Adblock Plus now and get rid of them.
  • MediaplayerConnectivity
    • Allow you to launch embed video of website in an external application with a simple click.
  • StartupMaster
    • Asks for the master password at startup (fixes multiple password prompt).
  • Tab Mix Plus
    • Tab Mix Plus enhances Firefox’s tab browsing capabilities. It includes such features as duplicating tabs, controlling tab focus, tab clicking options, undo closed tabs and windows, plus much more. It also includes a full-featured session manager.
  • Tiny Menu
    • Replace the standard menu bar with a tiny menu popup.
  • Xmarks
    • Xmarks is the #1 bookmarking add-on. Install it on all your computers to keep your bookmarks and (optionally) passwords backed up and synchronized. Xmarks also helps you uncover the best of the web based on what millions of people are bookmarking.
  • It’s all Text!
    • Right click on a text area, select “It’s All Text!” and edit the text in the editor of your choice.
  • Web Developer
    • The Web Developer extension adds a menu and a toolbar with various web developer tools.
  • BarTab
    • BarTab can intercept when tabs are loaded in the background or restored after a browser restart and will only load the content when the tab is actually visited. It also allows you to free memory by unloading already loaded tabs, either manually or automatically.

August 13, 2010

Hoping for a change

Filed under: Day to day — jorge @ 09:46

Time to write a little about what has happened I guess. If you’ve read my blog before, you’ve probably noticed that I sometimes go into hibernation mode, and nothing is written. It’s just that really, not that I’ve forgotten the blog, just that what I have to write isn’t that important. Not that this is either. But hey, I have to vent sometimes, right. :P

The last real thing I posted I guess was that I got married! My wife and I are really happy together, along with our two kids, which are growing fast! Noah got his first tooth not long ago, and Michael seems to be discovering more and more about himself. And things he can do. Boy has he discovered things. Let me just say that he need a chain and lock around his diapers so he can’t take them off during the night.

Being parents for two kids is really hard, and time consuming, but it really is worth it. Both our boys are starting to play with each other, so that’s always fun to see. :)

Work is going great as well, lots of challenges, and lots of opportunities to develop. So I’m glad on that department.

With me, well, things seem to be going in a new direction. Wednesday the 18th I start Taekwondo, and I’m really excited. Bit scared though, at 26 I feel kind of stupid, but I’m hoping that it’ll pass, and that I’ll be able to appreciate the training and discipline it requires. I’m really really hoping that it’ll be life-changing, and just the thing I need to get in shape. Time will tell I guess.

So here’s hoping for a change.

« Newer PostsOlder Posts »

Powered by WordPress