2015/07/29

It's getting better all the time

It's easy to feel gloomy these days about the geopolitical future. Terrorism,  surveillance states, economic crises, etc. But overall life is getting better. Placed behind a Rawlsian "veil of ignorance", I would chose the present over any point in the past.  If you consider the standard of living of the whole world, that should be obvious. 

MDG water info graphicBut it's still nice to stumble across a good reminder of things getting better, like the "millennium development goals". The water part in particular was a positive surprise.  But it's not just water. The percentages of people who suffer from malnutrition, or don't have shoes, etc. is decreasing dramatically.

The biggest factor in raising global standards of living, in my opinion, is not aid. It's not so much "giving back" as "not taking away in the first place". That is, not denying people the right to create, to own, to  trade what they want fairly. Hernando de Soto is right.

So yeah it's getting better. Of course, that doesn't mean we should take it for granted. In particular as I've posted about before, with asteroids and climate change, humanity is being pretty stupid with the odds.  When it comes to tail risks, let's hope we collectively don't continue to act like Taleb's turkey.
http://www.fooledbyrandomness.com

2015/05/04

Update on Ethiopic transliteration in Gmail, Google Docs, Blogger, etc.

ሰላም ዓለም!

Transliteration is is the conversion of a text from one script to another. For example,  typing  something in the Roman alphabet, like "selam alem", and having it show up in fidel (Ethiopic script) as ሰላም ዓለም.  This is a really convenient way for people who want to write in languages that use non-Roman scripts, to write on an ordinary computer which has a keyboard with roman letters.  

A few years ago (it's hard to believe it's already been that long!)  Ethiopic transliteration in Gmail, Google Docs, etc. was launched.   With several user interface changes in Google products, the instructions ain that post are a bit out of date. Here's a quick update so there's an easy reference somewhere.

Transliteration as a standalone tool

To use it as a standalone tool, where you can just type text to copy elsewhere, go to google.com/intl/am/inputtools/try/ or google.com/transliterate/amharic (similarly for tigrinya

How to write Amharic or Tigrinya in Gmail, and in Google Docs:

To use Amharic transliteration directly while writing inside Gmail, Docs, Blogger, Sites, etc. you need to set it as an "input method" (all of the following works with Tigrinya as well as Amharic.  Just select Tigrinya instead in the settings).
  1. Go to Gmail Settings (the little gear icon in the top right corner of the Gmail window) and click on Settings.
  2. In settings, under the "General" tab, in the "Language" section, click on "Show all language options" and then click on the checkbox to "Enable input tools".
  3. Click on the "Edit tools" link right next to it. A large window will pop-up with various languages on the left under Input Tools, select Amharic and move it over to the right column under "Selected input tools" using the big arrow, in the middle of the window, and click OK
  4. Save the settings: back on the settings page, make sure you scroll all the way down and click on Save
  5. Once you have done that, you will see the አ icon right next to the gear icon in the top right in Gmail. Just click on that icon whenever you want to switch to typing in Amharic 
  6. Then when you type phonetically in roman letters, and as you finish each word, the corresponding text in Ethiopic shows up.  
  7. You don't have to memorize any rules, just type naturally the words as they sound, and it will figure out the best transliteration. For example "negergn" becomes ነገርግን but "negeregn" becomes ነገረኝ.  Notice that "gn" gives different results in the two cases. The transliteration shows up as you type, showing multiple candidates, and when you hit space at the end of the word, the top one is automatically chosen.  You can also select the several other choices if the top one is not what you mean.
  8. This also works in Google Docs, Blogger,  Google Sites and most Google products that have text input.

P.S. Ethiopic font

Note that before you can use transliteration, your computer must have an Ethiopic (Ge'ez) font installed. Most recent versions of Windows or Mac have it pre-installed so you can skip this part. If you can see the following text "ሰላም ዓለም" (or read the text on this web page, then you have an Ethiopic font installed. If you can't see it, then you need to install a font like this one for example.

2014/10/18

Random matrix and phase shifts

I just stumbled across this great article on Tracy-Widom distribution. It talks about random matrices and phase shifts.  This reminded me of some work I did on resource allocation in network interconnection. We derived routing matrix conditions for "peering" and "dis-peering" (the latter a new term) to be equilibria in the decentralized resource allocation game. I wonder what a probablisitic approach with the routing matrix randomized would add to the game theoretic results. Large scale self organizing interconnections (or failure thereof).

2014/08/22

Don't buy the second item on the menu

Yesterday a door to door salesman from Time Warner Cable came to our door. He was a nice guy so I listened to him even though I've been avoiding cable for a long time. Anyway here are the current options for Internet access from Time Warner Cable:
"If Internet is all you need, however, TWC offers its “Everyday Low Price” plan for just $15 per month. This includes 2 Mbps download speeds, 5 emails accounts and 100 MB of email storage. Need to go faster? Try Basic (3 Mbps and $30 per month) or Standard ($35 per month with 15 Mbps). If you’re an online gamer or download large files on a regular basis, the 20Mpbs of TWC’s Turbo plan ($45 per month) may be the best option, while home business users may want to try out the Extreme plan, which offers 30 Mbps download speeds at $55 per month. Finally, if you have a large family or Internet users or connect multiple devices on a daily basis, you may need the Ultimate plan, which provides download speeds of 50 Mbps, 30 email accounts and 10 gigabytes (GB) of email storage for $65 each month."
OK now consider the slope or marginal prices:
  • The first 2 Mbps costs $7.50 per. Fair enough. 
  • But then the next 1Mbps costs $15!
  • The next 12Mbps cost  just $0.42 per!!!
  • Then the next 5Mbps cost $2, 
  • And the following 10Mpbs are $1,
  • And then 20Mbps more at $0.50 each.
The first and the last three are totally reasonable. But notice the second item on the list is a horrifically bad deal.  Why does it exist, who in their right mind would pick that? It's like  a trap. Maybe some people will just ignore the Mbps amidst all the verbiage about storage and email etc (extras which really are insignificant in terms of cost) and think to themselves: "Hey, I'm not poor and "Everyday Low Price" that sounds like the plan for poor people.  And I don't understand the high end stuff, so let me get Basic, that sounds reasonable." And boom, they are paying an astronomical price. Even if not many people fall for it, it's very profitable.  It's also kind of unethical in my opinion. (This is not the first time I'm finding fault with Time Warner in these pages, and I don't even use them. )

A more innocent version of the same thing is wine lists at restaurants. Never order the second item! It's for suckers. To see why, imagine a naive and status-conscious customer who doesn't know much about wine: he will skip the first one to avoid looking cheap, but will hesitate to go to far down the list because they can't justify buying the expensive ones. So he will settle for the second one. The restaurateur willing to exploit this can profit by putting the cheapest wine at the second cheapest price.  Thus gouging the suckers without affecting others. The moral of the story is, even if you don't know about wine, you can still have a wine list strategy.

2014/05/14

Net neutrality

"Net neutrality" a hot topic again these days. Plus ça change, plus ça reste pareil. Given the amount of confusion out there it seems like it won't be the last time.

When people say "neutrality" they could mean any combination of:
1) dominant access or backbone providers should not discriminate between customers, they should offer a similar prices to any buyer
2) all / most / many networks must exchange traffic free of charge with each other
3) all traffic must be treated the same regardless of application
4) all end users must pay a flat price for unlimited usage

My view, as regular readers... < crickets > ... can guess, is that 1) is the only good version.  2) I've written quite a bit about before, and I still think it's wrong,  but thankfully 2) is rapidly joining  3) which has been obsolete for years.  4) is fine when feasible but demanding it be a requirement of all forms of access is just silly.

But 1) is really important! I hope that somehow emerges as the dominant focus this time but I'm not holding my breath.

For example, in the US right now there's a real danger with Comcast: local access monopoly x continental scale + vertical integration with content. Huge issue. This is all about 1), but the general public thinks the issue is 4), which means "net neutrality" will be defeated as irrational whining.

2013/06/25

Optimism

A few months ago, I stumbled across a business card left behind on a table. Under the name of the company, it had three words, each followed by a period,  representing, I guess, the three pillars of their "corporate values".  One word struck me: Optimism.   I must have snickered,  because someone asked what was up. I instinctively thought "optimism" was a silly value, but it dawned on me that I had never thought about it explicitly. IMG_5158

Is optimism good?

The question sounds strange because Optimism, today, in American culture, is automatically assumed to be A Good Thing. Like "pro-active". People use that word as if it's synonymous with "good".  E.g. Person A: "Don't do this bad thing." Person B: "It's not bad, it's pro-active!"  Noooo....  Just like sometimes, being pro-active is evil, being optimistic is not automatically good.

Let's define optimism as follows: Having high expectations for a positive outcome. That is to say, compared to most "normal" people's probability distribution of outcomes, yours has more weight on the positive side. Say we both bet on the same horse, and one of us thinks we'll lose and one thinks we'll win.  So when is it good to be the optimist?  I would slice it on three levels:
  1. Of course if you turn out to be right, then great... But that just means you got lucky.
  2. What if you had to make the same choice over and over again, and on average the optimistic view is more accurate? Great, but that's not really optimism, it's having a better probabilistic model, better foresight.
  3. Now what if you believe the same probabilities as everyone else, but you are more willing to take the risky choices and eventually you're better off? You are good at taking the right amount of risk for reward, and if in the long run you are better off (technically i.e. if you are on the efficiency frontier in the risk, reward plane),  then ... well that's good judgement. 
But in all these forms, the optimism is situational! The are plenty of situations where the wise person would take the "pessimistic" position.   Thus, as a fundamental value to live by, "optimism" is actually orthogonal to the things we consider good, truthful etc.

People (including Corporations!) of the world, listen to me: Value luck, foresight or judgement.  Not optimism.  That's just silly.

 

2012/10/30

Time lapse #2

This one had a couple of adjustments.
  1. To get maximum depth of focus: set the aperture to be as small as possible (f/22) and let the shutter speed be automatically determined. By the last few frames, the exposure time is up to 3-4 secs. 
  2. To compensate for the lack of trains: added a hurricane!

2012/10/29

Time lapse

Here's a little experiment I did this weekend. My first ever time-lapse video:

It consists of:
  • one photo every 5 minutes, 
  • 101 images which become
  • a movie of 10 frames per second, 
  • for a speedup of 3000 x real life.  
Setup: 
  1. Plug camera into laptop via USB. 
  2. To remotely control camera: a program called EOS Utility which comes included with most Canon DSLRs. I'd never even looked at those discs that came with the camera, which is more than 3 years old.  Good thing I never threw them away! 
  3. To make the HD movie out of the JPEG images: Movie Maker tool in Picasa.
IMG_4427I'd assumed it was all going to be much more complicated but as soon as I started looking into it, it became obvious that everything I needed was already right here at my fingertips.  This reminds me of a previous little weekend project -- 100% wireless...   There ought to be a word for this, when things turn out delightfully easier than expected. The opposite of a bug. Let's call it a butterfly.

2012/09/29

Defending America?


Here are three facts every American should know:
  1. Americans pay $1 Trillion a year for War and ‘Security’.   In fact, that understates it a bit, for 2012 the US is spending over a trillion dollars on national security. 
  2. The US spends more than the next 10 biggest military spending countries... combined! Taking #2 China and #3 Russia together, the US still spends 3 times more. 
  3. Military spending doubled in the last decade. The US spends more today than it ever did during the "arms race" of the cold war against the Soviet Union, and that's adjusted for inflation.  More than at the peak of the cold war!
Now regardless of your opinion, if you live in the US, simply test a few friends on any one of these facts. I bet most of them are not even close. In the mainstream debate on military spending, reducing it is considered the crazy thing!  The above facts rarely get mentioned, neither by the politicians nor the reporters. 

Defending America? From what or whom? Military-industrial complex anyone? If you're feeling courageous, here's a fascinating piece entitled Stormtroopin' USA

2012/02/16

Five books: Non-fiction

A few months ago, the New York Times had an article on the greatest non-fiction books. They asked 33 people to list their top 5.  (To my dismay, Kapuscinski's "The Emperor", one of the worst books of all time in my opinion, came out tied for the best of the best. That book is so bad that, when I tried reading it, I couldn't help but physically throw it away in disgust. My hatred for that book deserves a whole blog post of it's own. But this is not that post.)  Inspired by that article, I thought I'd try to remember my some of my favorite non-fiction books of all time. It wouldn't be fair to call it a "top 5", since I am not being that thorough.  If I sat down to do this ten times, I'd probably end up with ten slightly different lists.

Rather here are 5 non-fiction books I really enjoyed, that had a deep influence on my world view, and that just happen to bubble to the surface at the moment:

  • Gödel, Escher, Bach: An Eternal Golden Braid, by Douglas Hofstadter. Absolutely brilliant exploration of logic.  Recursion is just so... fundamental. The human mind must be an instrument of God. Made me love J.S. Bach (and "Alice in Wonderland").  And a proof of Gödel's incompleteness theorem. 
  • Guns, Germs and Steel: The Fates of Human Societies, by Jared Diamond. Very ambitious, basically the history of civilization organized around a few very compelling ideas. Geography is very very important. Innovation diffuses latitudinally.
  • Seven Pillars of Wisdom, by T. E. Lawrence. Supremely elegant writing. Story of the middle east during the first world war. Essential reading if you want to understand a lot of international politics today.
  • Life is long if you know how to use it, by Seneca. Beautifully concise stoic philosophy. Don't sweat status. 
  • An Autobiography, or The Story of My Experiments with Truth, by M. K. Gandhi. The great man's early life and journey to satyagraha, truth through non-violence.
Hmm, clearly 5 is not enough. Here are a few more that would be included in different iterations of the "top 5".
  • The Discoverers, by Daniel Boorstin. A masterful, sweeping history of science. Extremely educational.
  • An anthropologist on Mars, by Oliver Sacks. The human brain is really really interesting.  It's easy to not realize how amazing our vision, memory, etc. are ....  until something goes wrong.
  • The Autobiography of Malcolm X as told to Alex Haley, by Malcolm X and Alex Haley. Powerful life story. I learned a lot about the USA in this one.
Oh what the hell, let's make it an even 10:
  • Zen and the Art of Motorcycle Maintenance, by Robert Pirsig.  Not the best writer of the bunch, but this book had a profound influence on me. Key word: Quality. What is good? What is not good? Also, I'm not sure if I learned it in this book, but I believe that you should never get upset by something that was predictable.
  • Titan: The Life of John D. Rockefeller, by Ron Chernow. Very thorough biography of a fascinating man in a fascinating time. Very relevant today. If you are thinking of pursuing an MBA, don't. Instead, read books like this one.