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
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.
What kind of aviary do you live in? Are you a summer penguin, a winter duck? I’m personally more nocturnal and I love all dry or snowy seasons. Continue reading Night Owl!
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?
Yes, chocolate. Except that most chocolate boxes now have a nice diagram with what you can get. This way I can avoid all of the chocolate with cherries.
Continue reading Life is like a box of…
When I was a kid, my family time-shared a sailboat in Haiti. We didn’t get a chance to use it very often, but it was awesome experiencing it.
Continue reading Sailboat in Haiti
I just did the most recent Programming Praxis, Hailstones
Here’s my solution in Erlang.
Continue reading Hailstone Numbers
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
Sarcasm, oh how we love you! It’s a great way to banter if somebody receives it well, but it is also a way to lose all of your friends.
Continue reading Sarcasm
I do love flavor. There are many individual ingredients that I would have trouble living without, but maybe I can choose five foods that, combined, would end up giving me all my ingredients. I would say my first food would be a green chili smothered burrito. I love those things and it gives me a bunch of the spices, like cumin, coriander, and cilantro, and staples, like beans, beef, and flour.
Continue reading Five Foods