Alice Miller and Children of Trauma

I’m currently reading several books by Alice Miller, an author and researcher whose focus is on child abuse and mistreatment.

When I was growing up, I’ve always felt that my parents were not like other people’s parents. I wish I had known about and had access to books like those written by Miller, who relate the stories of people like myself. I guess they must have always been available at the library, but I had never thought to look for such books until recent years.

It’s a tremendous relief to have someone explain what I have gone through… » [Expand post] [Permalink]

4 Comments

Albert Kwok-Wai Yeung 「楊國偉」 and Agnes Yuk-Lan Yu 「余玉蘭」 are child abusers

This post will not mean very much to anyone other than myself.

Albert Kwok-Wai Yeung 「楊國偉」 and Agnes Yuk-Lan Yu 「余玉蘭」 are child abusers. I just wanted to post this fact on the Internet so that it can be recorded for posterity… » [Expand post] [Permalink]

No related posts.

10 Comments

The Physics of Star Trek by Lawrence M. Krauss

The previous post advertising the Perimeter Institute‘s Master’s program reminded me of this book, which continues my series “a life in books”.

The Physics of Star Trek by Lawrence M. Krauss is geared more towards Star Trek fans than towards physicists… » [Expand post] [Permalink]

0 Comments

Glyph-shaping poster fail

Reposted from my Facebook:

This is a poster for a Christmas Party hosted by Campus for Christ which is found all over UW campus. The problem with it is that the Arabic writing at the top is wrong. As anyone with even a rudimentary knowledge of the Arabic script knows, the letters should be joined, and they change their shape according to position. Clearly, someone had typed the word “Christmas” into a translation program on a computer not equipped to handle Arabic glyph-shaping, and put it on the poster without actually bothering to check it with anyone who can actually read Arabic.

Lesson: If you’re going to plaster something all over campus in a foreign language, do yourself the favour of getting someone who actually knows the language to translate it for you so you don’t massively embarrass yourself. I’m sure there’s at least one Christian who knows Arabic on UW campus. Seriously.

In today’s world, it’s very important for computer software to be able to support multiple languages. You can’t assume that, just because your software is sold in a predominantly English-language market, your users won’t try to use it with other languages.

In a previous post, I noted the current lack of support for glyph-shaping and other aspects of complex text layout on the Android phone. I hope that this changes in the near future (and, if I have any say about it, it will).

– davinci 11859

No related posts.

2 Comments

Perimeter Scholars International — Master’s program in Theoretical Physics

I was asked to pass this information along to anyone who might be interested:

Canada’s Perimeter Institute for Theoretical Physics (PI), in partnership with the University of Waterloo, welcomes applications to the Masters level course, Perimeter Scholars International (PSI). Exceptional students with an undergraduate honours degree in Physics, Math, Engineering or Computer Science are encouraged to apply. Students require a minimum of 3 upper level undergraduate or graduate courses in physics. PSI recruits a diverse group of students and especially encourages applications from qualified women candidates. The due date for applications to PSI is February 1st, 2010. Complete details are available at www.perimeterscholars.org.

There’s also a downloadable poster with more information at this link.

– davinci 11855

0 Comments

Programming exercise: interweaved strings

I don’t quite remember where I saw this problem, but I’m sure it’s appeared in a number of places. Given two strings \(s\) and \(t\), determine whether a string \(u\) is formed by interweaving \(s\) and \(t\). That is, determine whether \(u\) can be formed by taking the first few characters of (say) \(s\), followed by the first few characters of \(t\), then the next few characters of \(s\), and so on. For example, the string “abccdcxey” can be formed by interweaving “abcde” with “ccxy”… » [Expand post] [Permalink]

3 Comments

Programming exercise: red-white-blue sorting

I’ve been practising coding on the whiteboard for job interviews. This is very different than coding in front of a computer which has a keyboard, a monitor, and a nice editing program that allows you to correct your mistakes and type repetitive text very quickly. I’m trying to keep my programs simple and short, and writing in a C-like pseudocode.

This exercise comes from Skiena’s The Algorithm Design Manual[1]\(\)… » [Expand post] [Permalink]

0 Comments

Persian Soft Keyboard and Applications for Android

Update (July 25, 2010): Please read this before posting a comment, sending me an e-mail, or giving the software a rating on the Android Market. Also, note that the remarks below pertain to Android 2.2 and below, and may become obsolete in the future.

About the keyboard:

  • The app is a keyboard. Please do not say that “it doesn’t work” because “I see only squares”. A keyboard does not help you to render fonts or shape glyphs. This software is meant only for people who can already display Persian on their phones, but have no means of input. With that being said, I understand that many people who are looking for an input method for Persian are also looking for a way to display it. Just don’t confuse the two functionalities. (For information on how to display Persian, read on to the next section below.)
  • There is nothing sinister about the warning that the software may see sensitive information such as passwords and credit card numbers. It can see anything you type when it is the active keyboard — and so can every other soft keyboard. It does not do anything with this information except to use it to guess what you’re typing. If you don’t want your password or credit card number to be read by the app, just switch to the default Android keyboard when you need to type something secret. (Unless, of course, your password is actually in Persian.)
  • On most devices, you have to enable an input method after it’s installed by going into Settings, and to switch input methods you hold the trackball or long-tap with your finger in a text input field. These depend on the operating system, and are not things that I can change.

On installing a font and rooting your phone:

  • To display Persian on Android, it is not sufficient just to install a font. You also need to get the system to join the glyphs and to display them in right-to-left order.
  • To install a font, you will need to root your phone. Instructions can be found by using a search engine.
  • If you are unable to follow the instructions yourself, or cannot find someone who is physically present to take you through the steps, it is unlikely that anyone can help you online. It’s not a trivial task in most cases, and nobody wants to be responsible for accidentally bricking your phone. I will try to help, but please understand that your request is non-trivial. Furthermore, please see the remark above about it not being sufficient just to install a font. Even after a font is installed, there is still a lot of work to do to display Persian on Android. If you do not understand how to root a phone yourself, you will very likely not understand how to go through the rest of the process either.

About displaying Persian on your phone:

  • FarsiTel has just announced a Persianised version of Android. If you have a newer Android (2.1 and up) and want a completely Persian ROM, start your investigations there. Note that this solution includes a keyboard also (and it is a different one from mine).
  • You can also try Arabic Android for displaying Persian. Yes, it’s designed for Arabic, but it works for Persian also. You may have to pay to obtain right-to-left functionality. Look for the “Arabic Android” app in the market once you have the appropriate image from the site installed.
  • There is an app on the Android Market called “Persian Browser” that will enable font-shaping in the web browser only. If your browser displays Perso-Arabic glyphs but don’t join them or display them right-to-left, you can download this app to fix the problem.
  • To use these ROMs/apps, you may need to root your phone and/or install fonts. See the section above.
  • Disclaimer: I am not involved with these projects, and (to my knowledge) neither is my employer.

And, finally, I cannot make any comments about the state of official support for Persian on Android due to the terms of my employment. This is my personal web site, and is unaffiliated with my employer. Anything I write here about Persian support on Android reflects my personal opinion only.

The original post (from Nov. 16, 2009) follows.


I recently got a new smart phone — an Android-powered HTC Dream. As I wrote in a previous post, one of the first applications that I always look for is a multilingual dictionary, or at the very least a way to enter input in languages other than English… » [Expand post] [Permalink]

101 Comments

Lists of programming exercises

I’ve collected a number of web sites with lists of programming exercises, which I’m going through for practice.

In no particular order, these are… » [Expand post] [Permalink]

If you like this post, you might also like:

  1. Programming exercises and comparison of programming languages
0 Comments

It’s what the nuns wear when they go swimming

I happened upon this passage in a book called The Chinese Language: Its History and Current Usage by Daniel Kane, in a section on loanwords from Sanskrit:

In some words, only one part of the original has survived: the in 尼姑 ní​gū​ “Buddhist nun” is the last syllable of the Sanskrit bhikkini (sic)…

… » [Expand post] [Permalink]

No related posts.

0 Comments