Eamonn O'Brien-Strain

LinkedIn


date: '2010-05-28 22:34:26' layout: post slug: new-beta-0-3-release-of-nrby-photos-a-palm-webos-app-to-display-nearby-photographs status: publish ref: https://web.archive.org/web/20141023104118/https://developer.palm.com/webChannel/index.php?packageid=org.eamonn.nrby title: New Beta 0.3 Release of Nrby Photos, A Palm WebOS App to Display Nearby Photographs wordpress_id: '861' categories: Product


Thanks to all the beta testers of the 0.2 release for your testing and reviews.

A much improved 0.3 version is now ready for installation from the Palm application web page.

Changes in 0.3:

  1. Display the photo title, which is also a hyperlink to the Flick photo page.

  2. Improve algorithm for selecting photographs to include closeness as well as interestingness, and to automatically adjust the radius of search depending on the density of nearby photos.

  3. Display a status message when communicating with Flickr so when you have a slow network connection you can tell what is happening.

  4. Display some dummy photos in case you have no network connection or if there are no photos within 32 km.

  5. Use photos to which I have copyright (my own) as the example photos and dummy photos.

  6. Fixed some bugs encountered when flicking through photos.

  7. Fixed some bugs accessing Flickr.

Please add any comments or questions below.

(Update: There is now an later release)

Displays photographs that people on the Flickr have taken close to your current location. Flick left and right to browse through the photographs. Automatically updates as you move. (All photographs are copyright of their owners.)

You can install the beta release from the Palm application web page.

This is a personal open-source project. The code is on GitHub.

(Update: there is now a new improved release.)

The meme of Christianity was in decline on the Western fringe of Europe as the Germanic tribes of the Angles and Saxons and Franks swept aside the lingering Celtic-Roman society left behind by the Roman Empire. But, some carriers of the meme, personified in legend as St Patrick, made it to Ireland where it proved stronger than the pre-existing polytheistic Druidism, and from its Atlantic fastness it ultimately spread back East and Christianized the invading Germanics. I celebrate this today not so much because of the Christianity but because of the technology of Writing that accompanied it, setting Ireland on a literary course that ultimately lead to Yeats and Joyce and Becket and Heaney. Happy St. Patrick's Day!


date: '2010-03-07 13:13:48' layout: post slug: don%e2%80%99t-read-this-if-you-plan-to-listen-to-the-pimsleur-mandarin-audio-course status: publish title: Don’t read this if you plan to listen to the Pimsleur Mandarin audio course! wordpress_id: '767' categories: Language


I like the Pimsleur courses a lot. They allow you to get to a very basic speaking level in a language very quickly.

The courses are audio-only — in fact, they expressly discourage you from reading the language while you are listening to the course.

Nevertheless, now that I am finished the first eight lessons I feel the need to actually see what the written Chinese (both pinyin and characters) looks like. So here is the vocabulary from Pimseur Quick and Simple Chinese Mandarin, Lesson 1. I show both the standard pinyin and in my own phonetic impression of how the words sound.

Words (with translations from Pimsleur)

对不起

dui4 bu5 qi3

dway boo chee

excuse me

英文

Ying1 wen2

een wen

English (language)

hui4

whey

can

shuo1

shwa

speak

ni3

nee

you

bu4

boo

not

ma5

ma

?

请问

qing3 wen4

chin wen

please let me ask

wo3

w'awe

I/me

普通话

pu3 tong1 hua4

poo tung hwah

common language / Mandarin Chinese (PRC)

一点

yi1 dian3

ee dyar

some / a little

美国

Mei3 guo2

may gw'awe

America

ren2

yren

person

shi4

shr

am/are/is

Characters (with translations from MDBG)

yi1

ee

one; a, an; alone

bu4

boo

no, not; un-; negative prefix

ren2

yren

man; people; mankind; someone else

hui4

whey

assemble, meet together; meeting

ni3

nee

you, second person pronoun

ma5

ma

(question tag)

guo2

gw'awe

nation, country, nation-state

dui4

dway

correct, right; facing, opposed

wo3

w'awe

our, us, i, me, my, we

wen2

wen

literature, culture, writing

shi4

shr

indeed, yes, right; to be; demonstrative pronoun, this, that

pu3

poo

universal, general, widespread

dian3

dyar

dot, speck, spot; point, degree

mei3

may

beautiful, pretty; pleasing

ying1

een

petal, flower, leaf; brave, a hero; England, English

hua4

hwah

speech, talk, language; dialect

shuo1

shwa

speak, say, talk; scold, upbraid

qing3

chin

ask, request; invite; please

qi3

chee

rise, stand up; go up; begin

tong1

tung

pass through, common, communicate

wen4

wen

ask about, inquire after


date: '2010-02-15 11:50:48' layout: post slug: decluttered-api-documentation-for-the-itext-pdf-manipulating-java-library status: publish ref: http://bit.ly/itextapi title: Decluttered API documentation for the iText PDF-manipulating Java library wordpress_id: '750' categories: Programming


The iText library is a great resource for generating and manipulating PDF files. However its API is very complex and there is a notable lack of good online tutorial material. So you often must resort to plowing through the Javadoc-generated API documentation trying to figure out how to use the library.

Doing that, you might be annoyed at the fact that the API available online does not just include the public and protected members, but also includes package-private and private members. While this would be useful to people working on the internals of iText, it is just a lot of useless clutter to most people who are just going to use the API.

So I regenerated the Javadoc from the 5.0.1 source, using the default settings which hides the private stuff. You can access this at:

http://eamonn.org/itextpdf-5.0.1-api/


date: '2010-02-14 13:05:58' layout: post slug: debunking-airnergy-with-some-back-of-the-envelope-calculations status: publish ref: http://www.engadget.com/2010/01/09/airnergy-wifi-power-system-gives-rca-a-reason-to-exist-video/ title: Debunking Airnergy with some back-of-the-envelope calculations wordpress_id: '738' categories: Science


I have seen several reverences to Airnergy device by RCA that claims to recharge a battery by harvesting WiFi signals from the air.

That sounded a bit fishy to me. Let's look at some numbers. First, how much power does a WiFi hotspot put out? According to moonblinkwifi.com a typical output is 200 mW.

Now say this device is 3 metres (10 feet) away from the hotspot. This 200 mW of power will be spread on the surface of a 3 metre-radius sphere with a surface area of about 110 square metres.

Now, this device looks to be about 10cm X 5cm which is about 1/22000 of the area of the sphere across which the 200 mW is spread. Which means the amount of power hitting the device is about 9.1 μW

Now according to the Wikipedia battery article a small AAA rechargeable battery stores about 6700 J of energy. How long would it take to recharge a AAA battery with our 9.1 μW of power, assuming you could miraculously capture 100% of the power?

The answer: 24 years.

OK, there are some approximations here. The WiFi antenna does not actually broadcast equally in all directions, and you might have the device closer to the antenna, and there might be multiple WiFi signals you could receive. On the other hand, you probably want to recharge a battery that has more capacity than a little AAA battery.

So I call bullshit. A battery charger that takes on the order of a decade to recharge a battery, is a useless device.

The sad thing is how many tech journalist sites reported uncritically on the Airnergy.


date: '2010-02-13 15:21:26' layout: post slug: 50-most-frequently-used-chinese-characters-presented-in-an-easy-to-learn-way status: publish title: 50 Most Frequently Used Chinese Characters Presented in an Easy-to-Learn Way wordpress_id: '722' categories: Language


I created this list of Chinese characters for my own benefit in trying to learn them. I took Jun Da's list of most frequently used characters and added a Google image search to provide some mnemonics. I added tone-color and exaggerated tone marks to the pinyin to help remind me of the the tones.

See this on a separate page with links to shorter and longer lists of characters.

(Note, this may look ugly if you are using Internet Explorer. It should look better on Firefox, Chrome, or Safari. I need to do a bit more CSS-hacking to make it work on IE.)

Loading ...

的 de di´di`

(possessive particle)/of, really and truly, aim/clear

Loading ...

一 yi¯

one/1/single/a(n)

Loading ...

是 shi`

is/are/am/yes/to be

Loading ...

不 bu`bu´

(negative prefix)/not/no

Loading ...

了 le liao˘liao`

(modal particle intensifying preceding clause)/(completed action marker), to know/to understand/to know, clear, look afar from a high place

Loading ...

在 zai`

(located) at/in/exist

Loading ...

人 ren´

man/person/people

Loading ...

有 you˘

to have/there is/there are/to exist/to be

Loading ...

我 wo˘

I/me/myself

Loading ...

他 ta¯

he/him

Loading ...

这 zhezhei

this/these, this/these/(sometimes used before a measure word, especially in Beijing)

Loading ...

个 ge`

(a measure word)/individual

Loading ...

们 men

(plural marker for pronouns and a few animate nouns)

Loading ...

中 zhong¯zhong`

within/among/in/middle/center/while (doing sth)/during/China/Chinese, hit (the mark)

Loading ...

来 lai´

to come

Loading ...

上 shang`

on/on top/upon/first (of two parts)/previous or last (week, etc.)/upper/higher/above/previous/to climb/to go into/above/to go up

Loading ...

大 dadai

big/huge/large/major/great/wide/deep/oldest/eldest, doctor

Loading ...

为 wei´wei`

act as/take...to be/to be/to do/to serve as/to become, because of/for/to

Loading ...

和 he´hehuo´huo

and/together with/with/peace/harmony/union, cap (a poem)/respond in singing, soft/warm, mix together/to blend

Loading ...

国 guo´

country/state/nation

Loading ...

地 de di`

(subor. part. adverbial)/-ly, earth/ground/field/place/land

Loading ...

到 dao`

to (a place)/until (a time)/up to/to go/to arrive

Loading ...

以 yi˘

to use/according to/so as to/in order to/by/with/because/Israel (abbrev.)

Loading ...

说 shui`shuo¯

persuade (politically), to speak/to say

Loading ...

时 shi´

o'clock/time/when/hour/season/period

Loading ...

要 yao¯yao`

demand/ask/request/coerce, important/vital/to want/to be going to/must

Loading ...

就 jiu`

at once/then/right away/only/(emphasis)/to approach/to move towards/to undertake

Loading ...

出 chu¯

to go out/to come out/to occur/to produce/to go beyond/to rise/to put forth/to occur/to happen/(a measure word for dramas, plays, or operas)

Loading ...

会 huikuai

can/be possible/be able to/to assemble/to meet/to gather/to see/union/group/association, to balance an account/accounting

Loading ...

可 ke˘

can/may/able to/certain(ly)/to suit/(particle used for emphasis)

Loading ...

也 ye˘

also/too

Loading ...

你 ni˘

you

Loading ...

对 dui`

couple/pair/to be opposite/to oppose/to face/for/to/correct (answer)/to answer/to reply/to direct (towards sth)/right

Loading ...

生 sheng¯

to be born/to give birth/life/to grow

Loading ...

能 neng´

can/may/capable/energy/able

Loading ...

而 er´

and/as well as/but (not)/yet (not)/(shows causal relation)/(shows change of state)/(shows contrast)

Loading ...

子 zi˘zi

11 p.m.-1 a.m./1st earthly branch/child/midnight/son/child/seed/egg/small thing, (noun suff.)

Loading ...

那 na˘nanei

how/which, that/those, that/those/(sometimes used before a measure word, especially in Beijing)

Loading ...

得 de´de dei˘

obtain/get/gain/proper/suitable/proud/contented/allow/permit/ready/finished, a sentence particle used after a verb to show effect/degree or possibility, to have to/must/ought to/to need to

Loading ...

于 yu´

(surname), in/at/to/from/by/than/out of

Loading ...

着 zhao¯zhao´zhe zhu`zhuo´

catch/receive/suffer, part. indicates the successful result of a verb/to touch/to come in contact with/to feel/to be affected by/to catch fire/to fall asleep/to burn, -ing part. (indicates an action in progress)/part. coverb-forming after some verbs, to make known/to show/to prove/to write/book/outstanding, to wear (clothes)/to contact/to use/to apply

Loading ...

下 xia`

under/second (of two parts)/next (week, etc.)/lower/below/underneath/down(wards)/to decline/to go down/latter

Loading ...

自 zi`

from/self/oneself/since

Loading ...

之 zhi¯

(literary equivalent of 的)/(subor. part.)/him/her/it

Loading ...

年 nian´

year

Loading ...

过 guo`

(experienced action marker)/to cross/to go over/to pass (time)/to celebrate (a holiday)/to live/to get along/(surname)/excessively/too-

Loading ...

发 fa¯fa`

to send out/to show (one's feeling)/to issue/to develop, hair

Loading ...

后 hou`

empress/queen/surname, back/behind/rear/afterwards/after/later

Loading ...

作 zuo`

to regard as/to take (somebody) for/to do/to make

Loading ...

里 li˘

inside/internal/interior, village/within/inside, Chinese mile/neighborhood/li, a Chinese unit of length = one-half kilometer/hometown


date: '2010-01-23 12:25:27' layout: post slug: see-real-example-results-of-website-optimization-ab-tests status: publish ref: https://web.archive.org/web/20121225101145/http://www.abtests.com:80/browse/ title: See real example results of website optimization A/B tests wordpress_id: '632' categories: Programming


One of the big advantages of creating Web products is that effectiveness can be immediately measured. One lucrative example of this is click-through web advertising.

Another example is A/B testing where you can put up two different versions of a web page, each visitor randomly seeing one version or the other. You can then measure the comparative effectiveness of each version of the web page, measured in terms that you care about, such as the percentage of visitors that buy your product.

Here is one example from the Firefox download page Try Firefox 3Download Now - Free

The only difference between these two versions is that the download button in the first has the text “Try Firefox 3” while in the second it has “Download Now – Free”. Over almost 300,000 trials the first one resulted in 9.7% of the visitors downloading Firefox, while the second one resulted in 10.1% downloads. By repeatedly doing A/B tests, changing one thing at a time, you can incrementally increase your conversion rate — using actual evidence rather than guesses or conventional wisdom.

This and many other examples are on the abtests.com web site, which provides a fascinating insight into this technique. Here people share the results of their A/B tests, rarely available because most companies regard them as proprietary.

What is particularly interesting is that these are not all good A/B tests. Some are badly designed, and some have such small sample size that the results are not statistically significant. By reading through the comments that people make you can learn best practices to follow and also bad practices to avoid.

All in all abtests.com is an interesting site, and I hope people keep on sharing tests there.


date: '2010-01-23 22:17:40' layout: post slug: add-a-button-to-your-browser-to-translate-selected-chinese-characters-from-a-web-page status: publish title: Add a button to your browser to translate selected Chinese characters from a web page wordpress_id: '643' categories: Futzing


You can now use Google to do some pretty readable translation of Chinese-language web sites.

However if you are trying to learn Chinese it would be better to be able to look at a page in its original Chinese, try to figure out the meaning and pronunciation of the characters, and to selectively translate the just ones you do not understand. Hopefully, just like using flashcards, you would eventually learn more and more characters.

As a first step I built a simple crude tool to do this. It is a little web-browser add-on button (a bookmarklet).

(So far, it seems to only work properly on Firefox. I have had some problems on Chrome and IE. I have not yet tested it on Safari.)

To install it, drag this button Explain Chinese;window.open('http://www.mdbg.net/chindict/chindict.php?page=worddict&wdrst=0&wdqb='+s,'b');})()) into your browser's links bar or bookmark bar. You should end up with an “Explain Chinese” button in your browser.

To use this button, highlight some Chinese characters, such as these ones 你好, and click the “Explain Chinese” button. It should open up two new pages with translations of the characters, one by Google which usually gives a fairly idiomatic translation of the text, and another one by the MDBG dictionary which breaks the translation down into the individual words and characters, and gives the pinyin and audio pronunciation.

Enjoy!

(Properly formatted version of this article is at http://www.eamonn.org/blog/?p=643 )


date: '2010-01-21 14:40:24' layout: post slug: learning-from-graphic-designers-grids-as-scaffolding-for-automatic-layout status: publish ref: http://www.slideshare.net/eobrain/learning-from-graphic-designers-grids-as-scaffolding-for-automatic-layout title: Learning from Graphic Designers — Grids as Scaffolding for Automatic Layout wordpress_id: '626' categories: Product


A presentation I gave yesterday at the “Imaging and Printing in a Web 2.0 World” conference (part of the broader Electronic Imaging Conference) in San Jose:

Learning from Graphic Designers — Grids as Scaffolding for Automatic Layout

View more presentations from Eamonn O'Brien-Strain.