Flex: Unable To Open Locale

When you’re working with locales in Flex, you would put in the following code in you ant build file:

<mxmlc>
<locale>it_IT</locale>
<source-path path-element=”locale/it_IT”/>
<include-resource-bundles>formlabels</include-resource-bundles> <source-path path-element=”${FLEX_HOME}/frameworks”/> <output>bin/formlabels_it_IT.swf</output>
</mxmlc>

Then when you get a puzzling error:

[mxmlc] C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\flex-config.xml(75): Error: unable to open ‘locale/it_IT’

But don’t you have that exact directory? Well, apparently Flex is actually looking for the it_IT folder in its locale folder. The solutions is to just create an empty it_IT folder:

<macrodef name=”compileLocale” description=”Compiles the Resource package for the given locale”>
<attribute name=”locale” default=”en_US”/>
<attribute name=”outputdir” default=”bin-debug”/>
<sequential>
<!– Create the Flex Home directory for the language in question. This is necessary to compensate for a bug in pre-3.2 releases of mxmlc. –>
<mkdir dir=”${FLEX_HOME}/frameworks/locale/@{locale}”/>

<!– Invoke MXMLC –> <mxmlc> <locale>@{locale}</locale> <source-path path-element=”locale/{locale}”/> <include-resource-bundles>formlabels</include-resource-bundles> <source-path path-element=”${FLEX_HOME}/frameworks”/> <output>@{outputdir}/formlabels_@{locale}.swf</output>
</mxmlc>
</sequential>
</macrodef>

Thanks to Adobe Cookbooks for the solution!

 

Buffalo LinkStation Live

I finally got my LinkStation back from the shop. Only, it’s now a Linkstation Live. Here’s how it happened: A few months ago my CD-R King HDD enclosure died when it suffered a workplace accident. To replace it, I bought a Buffalo LinkStation Pro. But after a only few months, it conked out (Lesson Learned: Do not store important data in these unreliable drives!).

Fortunately,  it was still under warranty so I asked James to return it to the shop for repairs. After a few weeks, the shop told us it can no longer be repaired and that they’re sourcing a replacement unit. After a few more weeks, they still couldn’t find a replacement unit. After repeated phone calls by James, they eventually decided to replace with the newer LinkStation Live.

Read More

Assassin’s Creed II

Assassin’s Creed II is the sequel to the love-it-or-hate-it Assassin’s Creed. I myself haven’t played the first game but from what I see one group loved it because of the huge, detailed, and history-based game world and storyline. While the other group hated it because of the dreary repetitive missions and bland cutscenes.

Read More

Sony Playstation 3 Slim

I was a gamer not too long ago. I played a whole gamut of games from classic arcade games like Pac-man, Space Invaders to classic PC games like King’s Quest, Karateka, Prince of Persia, to the modern FPS, RPG, and RTS like Doom I/II, Duke Nukem, Quake I/II/III, Unreal, Command and Conquer I/II, Red Alert I/II, Warcraft I/II/III (and DOTA), Diablo I/II, Starcraft, I even played an MMORPG: Ragnarok (yesh!). But I guess work and studies plus an underpowered laptop put all that to rest.

With the series of holidays coming up, I wanted to have something to while away the time during the occasional respites from attending to Jeanne (and to a certain extent Michelle). Aside from watching movies, what’s better than being part of those movies, in an interactive way i.e. games, right?

Read More

Certified True Copy vs Certified Xerox Copy

Here’s a puzzle. Michelle was following up with their HR regarding the requirements for claiming SSS maternity benefits and they responded with this one interesting item: Certified true copy of child’s birth certificate (Please take note: It should certified true copy and not certified xerox copy from the original).

So how do you make a true copy (by itself already an oxymoron) prior to it being certified? Apparently not by photocopying. But how else can you make a  copy? Laser printer? Doesn’t that use the same toner and drum technology? Offset printing? By hand? Really beats me. The sad thing is that this stupid bureaucratic mumbo jumbo probably have some twisted meaning somewhere.