By Randell on September 1, 2010
Yes, I’m still using Fedora 12 even though there’s already Fedora 13 and Fedora 14 alpha release. It’s not easy for me to upgrade my OS since a lot of my projects depend on my current environment. I’ll probably try out Fedora 13 or 14 when I already have a spare machine so I can gradually migrate my projects to that machine one by one.
Anyway, just a quick update on installing HandBrake on Fedora. The last time I installed HandBrake on Fedora 11, there were several steps that would discourage linux newbies from proceeding. This time, it’s as easy as downloading and double-clicking the installer (.rpm) from the HandBrake download page for Fedora. Make sure to download the GUI build.
HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder, available for MacOS X, Linux and Windows.
Posted in How-to | Tagged Fedora, Fedora 12, Handbrake, Linux |
By Randell on August 16, 2010
I have been getting this error from my Firebug’s console:
[Exception... "update.locale file doesn't exist in either the XCurProcD or GreD directories" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: file:///usr/lib64/xulrunner-1.9.1/components/nsUpdateService.js :: getLocale :: line 608" data: no]
file:///usr/lib64/xulrunner-1.9.1/components/nsUpdateService.js
Line 608
At first I thought it was some mysterious bug from one of my projects, but then I noticed that it appears on the simplest web pages that I’m working on, so I figured out that the problem is coming from either Firefox or Firebug. I found a solution here. The solution simply says to execute the following command (as root):
touch /usr/lib64/firefox-3.5/update.locale
True enough, my Firefox application directory is missing the file. I also checked my Firefox installation in Windows XP to check the contents of the file, which contains en-US so I appended the same content.
The error no longer appears so it probably solved the problem. I’ll just update this post if the error appears again.
Note: This error appeared in Firefox 3.5.11 on Fedora 12.
Posted in Random | Tagged Fedora, Firebug, Firefox, Linux |
By Randell on August 8, 2010
Ito ang ikatlong kabanata ng panahong napunta si randell sa Armenia noong 2006. Basahin ang mga sumusunod na links para maka-relate:
Ang pagpapatuloy…
~~~
Ang unang araw ni Randell sa Armenia ay naubos lang sa pagtambay sa Zvartnots International Airport. Bukod sa hindi dumating ang isa niyang bagahe na naglalaman ng napaka-importanteng mga cup noodles, ay nagkaroon pa ng problema ang kanyang Visa. Mabuti sana kung mayroong matinong waiting area sa airport. Kaso, wala. Kaya mahigit isang oras siyang palakad-lakad sa maliit na espasyo at paupo-upo sa dala niyang maleta.
Pagkaalis sa airport at pagkatapos kumain, mabilis na nakatulog si Randell sa apartment na tinuluyan nila ng kanyang boss. Nagising na lang si Randell kinaumagahan ng sumunod na araw para umattend ng kasal ng kanyang kasamahan sa trabaho na isang Iranian na ikakasal sa isang Armenian. Heto ang ilan sa mga larawan ng tinuluyan niyang apartment:

Bago ang kasal na nakapasyal muna si Randell sa Aznavour Square at sa Republic Square – mga limang minutong lakad mula sa kanilang apartment.

Ginanap ang kasal sa Saint Hripsime Church na nasa Echmiadzin Province. Pagkatapos ng kasal ay nakapunta din siya sa Etchmiadzin Cathedral na nasa parehong probinsya.

Pagkatapos maglakad-lakad ay dumiretso na si Randell at ang iba pa niyang mga kasamahan sa Niagara Restaurant sa Yerevan kung saan ang reception ng kasal. Medyo kakaiba ang napuntahang wedding reception ni Randell kumpara sa iba pa niyang napuntahan na wedding receptions sa Pilipinas. Puro sayawan at kantahan. Mas maraming sayawan. Napilitan pa ngang sumayaw si Randell ng kakaibang sayaw nila dahil kailangan daw sumali lahat. Heto ang videos: Part 1, Part 2, Part 3, Part 4, Part 5, Part 6, Part 7.
Marami ring kakaiba sa Armenia. Sumisikat ang araw ng bandang alas-siyete ng umaga at pasado alas-nuwebe naman ng gabi kung lumubog. Antok na antok ka na, may liwanag pa rin na nanggagaling sa araw. Kung may sinampay ka naman ay siguradong matutuyo ito sa haba ng maghapon at hindi na kailangang plantsahin dahil sa tindi at init ng araw. Hindi rin kailangang alalahanin kung uulan bigla dahil bihira umulan sa Armenia. Siguro isa o dalawang beses lang umulan sa buong taon.
Mataas ang temperatura sa Armenia. Siguro mas mataas pa sa Pilipinas. Pero hindi humid. Hindi maalinsangan kagaya sa Pilipinas. Malamig ang hangin dahil sa altitude ng Armenia, kaya hindi ka papawisan kahit maghapon ka pang palakad-lakad. Dahil dito, iitim ka rin ng hindi mo napapansin.
Hindi uso ang trapik sa Armenia. Siguro dahil na rin kaunti ang populasyon nila kaya kaunti rin ang mga sasakyan. Mabibilis magpatakbo ng sasakyan ang mga drayber pero sumusunod lahat sa batas trapiko. Kapag pula ang traffic light, talagang nakahinto ang mga sasakyan kahit na maluwag ang intersection – hindi kagaya dito sa Pilipinas na kapag maluwag ay binabalewala na ang traffic light. Wala ring kalat na makikita sa kalye. Wala ring nagkalat na mga pink na sign ng MMDA para paalalahanan pa ang mga tao. Lahat disiplinado. Wala ding mga jeep na hindi marunong sumignal na liliko na at mga jeep na kung saan-saan na lang hihinto. Wala ding mga tricycle na bigla na lang sisingit ng walang pasintabi. At wala nga palang jeep at tricycle sa kanila.
Mabagal ang paglipas ng unang linggo. Bawat araw, bawat oras at bawat minuto na nandoon siya ay naiisip niyang parang hindi na siya makakauwi. Pero gusto na niya agad makauwi. Siguro dahil na rin iyon ang unang beses na umalis ng bansa si Randell. Siguro dahil wala naman siyang ibang magagawa doon kung hindi magtrabaho, malakad-lakad pagkatapos ng trabaho, at magbasa ng libro kapag pagod na siyang maglakad-lakad pagkatapos ng trabaho. Siguro dahil na rin paulit-ulit niyang naiisip na matagal ang tatlong linggo pang natitira kaya lalong bumabagal ang bawat sandali.
Posted in Events, Travel, Work | Tagged Armenia, Aznavour Square, Echmiadzin Province, Etchmiadzin Cathedral, Government House No.1, Ministry of Foreign Affairs, Moscow Cinema, Niagara Restaurant, Republic Square, Saint Hripsime Church, Sevan, Stone Carpet, The Armenian History Museum and the Art Gallery of Armenia, Yerevan, Zvartnots International Airport |
By Randell on August 6, 2010
Here’s a quick list of the recently started and upcoming JavaPassion courses:
You can check out the other courses at JavaPassion.com.
Posted in Resources | Tagged Android, Grails, Groovy, Java, Java EE, Java EE 6, Java FX, Javapassion, JSF |
By Randell on August 2, 2010
The Django version I have in my machine is 1.2.1, while one of my apps running on Google App Engine utilizes use_library to use Django 1.1. Apparently, Django versions later than 1.1 is not included in the Google App Engine SDK. So everytime I try to access my app on my dev machine, I get this error:
UnacceptableVersionError: django 1.1 was requested, but 1.2.1.final.0 is already in use
I can probably downgrade the version of Django in my machine, but that would mean all my other apps will have to use the downgraded Django version as well. And I don’t want that, since I want to use the latest version whenever possible. So one possible solution is to use virtualenv for my Google App Engine app. Virtualenv allows the creation of isolated Python environment, which is exactly what I need.
First, we need to install virtualenv. In Fedora, we can install virtualenv by executing the following command as root:
yum install python-virtualenv
Next, we use virtualenv to create an environment that has its own installation directories, that doesn’t share libraries with other virtualenv environments. We can even choose to not use other globally installed libraries. To do that, execute the following command:
virtualenv --no-site-packages ENV
ENV here is the directory of our new environment. This also creates ENV/lib/python2.6/site-packages on Python 2.6, where any libraries that will be installed will go. This also creates ENV/bin/python, which is a Python interpreter that uses this environment. Anytime this interpreter is used, the libraries in this environment will be used. The command also installs Setuptools for the environment, and if ENV/bin/easy_install is used the packages will be installed into the environment.
The --no-packages option during the build causes the environment to not inherit any packages from /usr/lib/python2.6/site-packages. This is useful if we don’t want to depend on the packages there or simply want more isolation from the global system.
Next, we’ll use pip to install the necessary packages in our virtualenv environment. Of course, we need to have pip installed in our system first. In Fedora, we can install pip by executing the following command as root:
And then installed the Django version we need into the environment:
pip install -E ENV Django==1.1
To use our new environment, we need to activate it with the following command:
Copy the Google App Engine SDK to our new environment and then run our Google App Engine app from that environment like
~/ENV/google_appengine/dev_appserver.py ~/path/to/app
You can follow the same steps to create isolated environments for each of your Python projects.
Posted in Random | Tagged Django, easy_install, Fedora, Google App Engine, pip, Python, setuptools, virtualenv |