Backup your del.icio.us
Since del.icio.us decided to have a bit of downtime this past week I have decided to update my del.icio.us backup script a bit more. Before it would just grab all the posts and overwrite the old file. Issue is when they were bringing the system back up my script happily wrote an http error to that file, thus making my backup useless.
So here is my new script, it will make a file called ‘DeliciousYYYY-MM-DD.xml’ with the year filled in.
#!/bin/bash # Grab the del.icio.us bookmarks into an # xml file... ick I know but it works! curl --user user:pass -o /path/to/backup/Delicious`date +%Y-%m-%d`.xml \ -O 'http://del.icio.us/api/posts/all'
To use, fill in the user and pass with your login name and password for del.icio.us and the /path/to/backup. Then run bash delicious.sh
or
chmod +x delicious.sh
./delicious.sh
If it works you can add it to your crontab and have it run everyday, and feel comfortable knowing your posts are safe.
Eric Davis
Busy Week
Just wanted to post that I am still here. This week has been hectic, from my job just piling up work, getting sick, to my main server biting the dust (yes this is running on the last of the servers that I have).
On a positive note though, I am now engaged to my wonderful girlfriend. We have been together for over four years and I finally popped the question. We have not had much time to discuss anything yet but are looking at a wedding in Jan 2007. Even with everything else turning to shit this week, I have to say this is one of the happiest weeks in my life.
Eric Davis
Graph your life in Ruby
I been wanted to keep a log my life a bit better than just my completed TODO list but have not found an easy way to do it until now. I saw Erik Benson’s Website the other day and notice his “Morale-O-Meter” that was generated using Gruff.
Since I just started to play with Gruff and RMagick recently, I decided to try to create a low maintenance easy to use “Ruby”:http://ruby-lang.org/en/ script to generate my own graph.
It took only an hour or so to hack after I got my development environment setup again, so it is pretty simple. It just uses a yaml file where you would enter the data and then the script would generate your graph from that data. So every night before bed I take three minutes to add in more data, run the script, and sftp it to my webserver.
Here is a small example:
!http://www.theadmin.org/files/life_small.jpg(Small Image of my Life Graph)!:http://dropbox.theadmin.org/media/life.png
If you would like to download the code to use or just to look at, it is available here. I have released it under the MIT License, so feel free to take and use as you want.
Post your links to your life graphs.
Eric Davis
#USER ERROR
I once wrote this error dialog after the users annoyed me: “USER ERROR: Replace user and press a key to continue”