Upgrade armel to armhf

I’m doing this in my chroot on my OUYA:

sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install debootstrap

sudo debootstrap --arch=armhf --download-only --include=openssh-client,openssh-server jessie ./bootstrap-armhf http://ftp.debian.org/debian/

sudo dpkg --add-architecture armhf

mkdir -p archives-apt/partial
mkdir -p archives-dpkg/partial
rm archives-*/*deb

sudo apt-get install -d -y -o Dir::Cache::Archives=./archives-apt apt:armhf
sudo apt-get install -d -y -o Dir::Cache::Archives=./archives-dpkg dpkg:armhf

ls archives-dpkg/*deb | grep -v ^archives-dpkg/dpkg | xargs sudo dpkg -i
ls archives-dpkg/*deb | grep ^archives-dpkg/dpkg | xargs sudo dpkg -i
sudo dpkg -i archives-apt/*.deb

sudo dpkg -i ./bootstrap-armhf/var/cache/apt/archives/*deb

aptitude search -F "%p" --disable-columns '~i!~M' | sed -e 's/:armel//g' | xargs sudo apt-get install

sudo apt-get -f install

sudo apt-get update && sudo apt-get dist-upgrade

dpkg -l | grep -i armel | grep -v :armel | grep -v ^rc | awk '{print $2}' | xargs sudo apt-get install -y

sudo apt-get autoremove

think about reinstalling these programs:
dpkg -l | grep ^rc | awk '{print $2}' | grep -v :armel

dpkg -l | grep -i ^rc | awk '{print $2 ":" $4}' | xargs echo sudo apt-get purge

Bulgarian Internet vs US Internet

I’m upgrading my remote Ubuntu boxen to the latest release, Saucy Salamander. A little comparison on data transfer rates:

In Bulgaria (<$20/month Internet connection): 5438 kB/s In Boston (>$50/month Internet connection:
895 kB/s

Pitiful America, pitiful.

Gmail IMAP Folders in Different Languages

I had a project where I needed to retrieve messages from my IMAP mailbox of my Bulgarian gmail.  The problem is that I didn’t know what to call it or how to figure out what to call it.  I tried the equivilent in English “All Mail”, folder not found.  I tried the name of the mailbox in Bulgarian in UTF-8 “Цялата поща”, that just gave an error.  I found out that there is some sort of encoding for IMAP for international boxes from a bug report for Thunderbird, a great open-source email client.  It said that I needed to look at RFC3501 to see the standard for how the mailbox should be encoded.  It turns out that it’s a variant of UTF-7, the 7-bit universal format. Continue reading “Gmail IMAP Folders in Different Languages”

Internet Speed

UPDATE: I think that one of the problems was a USB 1.1 port on my computer.  Does everybody know that some of the ports on their computer are USB 1.1 and some are USB 2.0 and you can usually get better performance from one or the other? It’s a good thing to know if you use flash drives and usb hard drives.

My phone’s memory card erased itself the other day so I’ve been restoring some files from a backup.

I’m at work, my backup is at home, and my phone is plugged into my work computer.

I started the restore and then went to look at other things on my TODO list.

It’s a big file so I didn’t give it much thought until I looked at my computer status: 

Yellow is network activity and orange is disk activity.  The yellow says that the internet can take a break every once in a while while the orange says that the disk is working at a constant rate.  This means that my phone’s memory card is the bottle neck.  This means that if I were to want to choose the fastest method of listening to music or watching a movie on my phone, it would be better to play it directly from the internet than to save to my memory card and play it back from the file.  This would be the same as comparing purchasing a movie from iTunes or watching it from Netflix.  It would be faster to watch the same movie from Netflix than to purchase it from iTunes, sync, and watch it.

A couple rough numbers.  The peek numbers on the internet are very roughly 1.9 MB/s (big B means bytes).  The average throughput including my card is 989 kB/s.  That’s less than half my actual download speed and much less than if the disk wasn’t the bottleneck.  With this same transfer going, I tried out the same files to make sure that something wans’t going on with my backup server.  I saw peak transfers of around 2.3 MB/s.

Some technical notes:

The transfer chain was like this: backup server’s hard drive -> backup server -> ethernet -> home router -> internet -> work router -> ethernet -> work computer -> USB port -> Eye-Fi SD card converter -> SD to MicroSD converter -> Wintech Class 10 MicroSD card.

The card I have has some bad reviews on throughput: http://www.newegg.com/Product/Product.aspx?Item=20-161-411, maybe I just need a new card.

I’ll probably update later on what’s the deal with this.


I think there is one amazing thing about Facebook.  It makes it so that the entry cost for sharing is cheap.  It makes it easy to produce and to share ideas.  I think it is a great to reduce the cost of sharing, of producing.  When the cost of sharing is too low, people share things that are not interesting.  Facebook has helped with this by using algorithms to filter the popular and good ideas to the top, instead of just ordering it by time.  Reddit does this using a great mathematical equation that bases the weight on time, votes up, and votes down.  Many other sites have different ways to filter out bad content from good content. Continue reading “Sharing?”

Non-work/school Time

Everybody has things that they do in their spare time. I am usually listening to music if it doesn’t conflict with other things that I’m doing. This is important for me.  Parallel with that, I’m usually with Joy, my beautiful wife.  We are best friends and are always in the same place.  During those times with Joy and music, I will usually be learning something new, via Wikipedia or something, or I will be programming something for my computers. Computers are quite demanding pets.
Continue reading “Non-work/school Time”