Skip to main content

Posts

Showing posts from 2009

Replacing Plone Event Location field with a Google Map

Want Plone Event contenttype to have use a Google Map?

Use this : https://dev.inigo-tech.com/svn/base/inigo.eventlocationmap/trunk/

A Five product for replacing Location field in ATEvent to a Google Map field

Installing:

You will first need to deploy Products.Maps into your site first.

checkout the product into your buildout src directory::

cd $buildoutroot/src/
svn co \
https://dev.inigo-tech.com/svn/base/inigo.eventlocationmap/trunk/ \
inigo.eventlocationmap

In buildout.cfg::


[buildout]
....
eggs =
inigo.eventlocationmap

develop =
src/inigo.eventlocationmap

....

[instance]
....
zcml = inigo.eventlocationmap


The catch?

WARNING: this will break your existing event content, you need to migrate their location field to use longitude/latitude tuple

How to migrate? I'm still figuring it out myself.




Credits to Jarn AS for the excellent Products.Maps

Genius G-Pen 4500 and Fedora

Just bought a Genius G-Pen 4500 digitizer tablet for myself. Mainly for drawing simple sketches and diagrams. Got it for MYR160 (~=USD50), which is relatively cheap compared to other tablets (Wacom and Genius) I found at LowYat plaza which averages at MYR400-800 (~=USD115-230).



The driver for the tablet is not available in the Fedora and RPMFusion repos, so I had to grab the sources from LinuxGenius GoogleCode page and compile it. (I've put together a RPM here : http://izhar.fedorapeople.org/wizardpen/).

After installation of the driver, a HAL FDI configuration is required for it to work. Here's the default one I'm using for this tablet. (Save it as /etc/hal/fdi/policy/99-wizardpen.fdi)


<?xml version="1.0" encoding="ISO-8859-1" ?>
<deviceinfo version="0.2">
<device>
<!-- This MUST match with the name of your tablet -->
<match key="info.product" contains="UC-LOGIC Tablet WP5540U">
<merge key="i…

"CSL G2" Android Phone ??? - New Toy in Town?

UPDATE: I have checked out this phone at a shop just recently, apparently, its only a UI imitation (which is not even close to the real thing, didnt see any tango icons). Guess I'll have to wait for LG or some company to release a low cost model, or until HTC reduce their pricing. (and note to anybody from CSL who might read this, Google Android is not just the UI .. its the WHOLE OS , and its Free/OpenSource, just grab it from http://source.android.com/)



CSL, a Malaysian phone brand looks like just had a new toy in town.



GEOGLE?? is that a typo or is that an immitation brand?

MYR 699 ~= USD 200.

Update: An anonymous commenter pointed to a page in CSL's own website regarding the phone. Price stated there is apparently cheaper, MYR499 ~= USD145



While the name is a straight copying of HTC Magic's original name, the product looks interesting. No info could be found at their website, probably they didn't realize where the people who looks for Android phones hang around at. Che…

Grokking Grok - II

Grok, like Plone uses the Zope way of storing data - Persistence, somewhat like 'pickling' in Python.

All instance of objects are treated not as tables like in frameworks such as TurboGears, but as normal runtime class instance objects. There are no need to think of SQL, neither designing a database. Just dump the objects into the ZODB.

Base Model Stereotype

The are 3 main model stereotype in Grok, grok.Model , grok.Container , grok.Application

grok.Model

This is the stereotype for a persistence class. Classes that inherits this stereotype are addable and can store persistent data.

grok.Container

This stereotype give a class a folder-like ability to store children. Inherit from this class if you want to create objects which can store another object.

grok.Application

This is the stereotype of a persistence class which can be added at the root of the Zope3 site.

Layout

Siteroot may contain Applications, Applications may contain both Containers and Models, Containers may contain both C…

Grokking Grok

*yawn*.. been a while since I last posted anything technical here. So some update.

I just started playing with Grok while trying to understand more on Zope3 stuff. So this post and the next few posts will focus mainly on Grok and how to do stuff on it (from my understanding).

Installing Grok

Using buildout, here's the buildout.cfg:

[buildout]
parts = grok
download-cache = downloads

[grok]
recipe = zc.recipe.egg
eggs =
grokproject


Using virtenv / normal python

easy_install-2.4 grokproject

Creating a Grok Project

grokproject --zopectl [projectname]

That command will create another buildout with grok and zope3.

FOSS.my 2009!

FOSS.my 2009 is back and is coming your way this 24th and 25th of October .
The registration page is up and accepting registrations now. Check out the pricing below.
Registration TypeClosing DatePrice (RM)Early Bird Price30th September 2009RM 88.00Early Bird Group Registration30th September 2009RM 440.00Regular Price23rd October 2009RM 127.00Walk-in Price24th/25th October 2009RM 150.00
The price is slightly more then last year’s RM50 but it’s worthwhile I feel. Check out what you get, check out the schedule.
32 Talks26 SpeakersDouble track sessions all day longBird-Of-Feather side sessionsA Tee ShirtLunch2 Tea breaks
Register for FOSS.my 2009 now!
Make sure to stay up to date with FOSS.my 2009 through either channels shown below;
FOSS.my 2009 Home
FOSS.my 2009 on Facebook
FOSS.my 2009 on Twitter

ODFPy - Python ODF manipulation library & tools

I was looking for some cli tools to convert odf to html, however, most ODF converters I found out there utilizes OpenOffice-Uno or OpenOffice macro for conversion of ODF documents - which means, they need a full blown openoffice to be installed and running before being able to convert the documents. Unoconv is one of them (available in Fedora repos). These type of tools are resource intensive, and can't really run without GUI, not quite what I want.

Searching for ODF through yum revealed a package which looks quite interesting to me:

odfpy.noarch : Python library for manipulating OpenDocument files

Being curious, I installed ODFPy, and to my surprise, the package also provide some scripts to automatically convert ODF to several text based formats - odf2xhtml,odf2mht,odf2xml and odf2war - just what I was looking for. Looking at the available libs, theres also odf2moinmoin.py.

While not perfect, the conversion works fairly ok, plus, if stuff does not work correctly, the scripts are in P…

T400 & Fedora 11

synergy(R51,dualscreen(T400,E228WFP)) = Geek Haven!!

My old R51 performance have been bugging me for this past several months, overheating processor, limited dualscreen resolution, dying harddisk, broken keyboard key, etc. I needed a new machine that able to keep in pace with my current job in Inigo and for other stuff (such as watching HD animes, and experimenting with resource intensive stuff). So, I bought a new Thinkpad T400. Bought it last Tuesday but didn't manage to blog about it due to a bit too occupied with stuff. Got a free 2GB DDR3 from the vendor (which increases my RAM to 4GB). It comes with Vista OEM, and naturally, I kicked that OS aside :P .



Installing Fedora 11 on it was not an adventure (not fun, but that shows Fedora and Linux is doing very well on the desktop), most stuff just works without the need for configuration and I'm able to get back to work in less than a day (including time to copy stuff from my old R51 to the new T400, and doing some reorganizatio…

Looking forward for tomorrow

Will be grabbing one of these tomorrow



Thinkpad T400 (2765R2A)


Processor :
Intel® Core™ 2 Duo processor P8700
(2.53GH, 1066MHz FSB, 3MB L2 Cache)

System graphics :
ATI Mobility Radeon 3470 power optimized 256MB
Intel GMA X4500
(Switchable graphics)

Chipset:
Mobile Intel GM45

Total memory :
2 GB PC3-8500 DDR3 SDRAM 1066MHz

Display type :
14.1 " WXGA+ TFT with integrated camera 1440x900

Hard drive device :
320GB (5400 rpm)

Network card :
Intel Wireless Wi-Fi Link 5300

Optical device :
Dual Layer Multiburner Drive (DVD-RW)

Battery : 6 Cell Lithium-Ion


Ran Fedora LiveUSB on it when at the shop, works well at first look. Looking forward to get it on my desk tomorrow :D

DaiCon 2009 Aftermath

Lost of words to describe the event ...



Entering the hall, DaiCon looks very much like Comic Fiesta, lots of cosplayers around, several booths selling merchandise and figurines, etc. But one difference, the other half of the hall, was the area where the real event, Chihara Minori's Live in Malaysia, took place.

I bought AWSM ticket for DaiCon more than 1 month ago, so I got access to the Q&A session, the concert and entitled for 1 autograph from Minorin !.



Around 3pm, the Q&A session with Minorin starts, the fans went cheering on her arrival!

みんな:

ちはら!みのり!ちはら!みのり!
ちはら!
みのり!
みのりん!
みのりん!
みのりん!!


みのりん:

アパカバー、ナマサヤちはらみのりです!

And everyone went crazy!!!

The session was done in Japanese, and that was one of the few times where my self-learned Japanese language skill comes in pretty handy. Relying to translators on live event is not quite a good idea :P.

We are only allowed to take pics from our seat, which end me up in a situation struggling to get a stable picture (which, erm, generally a fail…

EventReport : Fedora 11 Release Party KL at Saito College

Another late report .. >.<

On 4th July 2009, the Fedora Malaysia Team , in collaboration with Saito College held a Fedora 11 Release Event at Saito College, Petaling Jaya.



We had a large crowd, more than 90. The audience were mainly students and lecturers who are new or does not know about FOSS, so, like most of Malaysia Team event so far, we did several talks about FOSS and Fedora to give some introduction to them : "What Is FOSS", "What Is Fedora, Fedora Project, and how you can be part of it ", "FOSS artwork tools" (Saito College is mainly an art college), "Security in Fedora".

Before lunch, we played the Fedora 11 Release Video and Big Buck Bunny to the audience. Big Buck Bunny generated quite some interest from the designer crowd among the audience towards blender.



Besides sponsoring the venue for the event, Saito College also generously sponsored lunch for the attendees. On the afternoon, we held a workshop for installing Fedora11 and …

Web buttons

Created some Fedora web buttons to be put on Fedora-My website.



Icons taken from tango and gnome icon set. Font - MgOpen Modata

200x101 PNG set

Update #1: Changed background colour to follow Fedora guidelines
Update #2: Changed get-help link to help.fedoraproject.org

EventReport : FOSS Seminar at Mukah Polytechnic

I was at Mukah, Sarawak on the last 22nd and 23rd June 2009 for a FOSS Seminar organized by a Polytechnic college there. The polytechnic invited speakers from OSCC-MAMPU and Eric (an OSCC-MAMPU staff, an OpenSuSE Ambassador, and also a contributor in Fedora-My activities) invited me to tag along with him as a speaker. The event attendees were primarily lecturers and staff from Mukah Polytechnic itself, Kuching Polytechnic, and several nearby colleges.

First day talks attendees
Eric
Me!

It was a 2 days event where the first day was mainly filled with talks related several FOSS topics: "What is FOSS", "Trends in FOSS world", "GNU/Linux", "Security in FOSS", "Interoperability – Making FOSS and Windows play nice", and "FOSS development tools".

Second day workshop at the lab

The second day was an install workshop of Fedora and OpenSuSE and introduction of several GNOME features to the attendees. Me and Eric take turns on the talks and w…

Printed new cards

I've been using the old Fedora card until a few weeks ago. Now that they are done, finally, I print this new design :D.




This tool is neat

yum install fedora-business-cards
fedora-business-cards --pdf


(yup, my phone camera sucks)

Using NetworkManager and a WiFi enabled phone as your laptop's remote

Ok, I need a presentation clicker. But too lazy to find cheap ones out there. I have a Thinkpad R51 with Intel IPW2100 wireless card with no bluetooth, a Sony Ericsson P990i, and a Fedora installation. So, what I can do with them to get a presentation clicker?.

A little googling led me to this nice little tool : AnyRemote. It provides a Java client and a server tool which allows the user to control of various Linux apps using a phone with bluetooth or WiFi support (theres also infrared support, but i dont think it worth it due to the limitation of IR and requires more setup).

AnyRemote is in Fedora repository , so, Fedora users can just install it by yum install anyremote anyremote-data.

Now, I don't have a bluetooth dongle, neither internal bluetooth support, so my only option is through WiFi. Good thing in Fedora, the NetworkManager can create an AdHoc Internet Connection Sharing. Which basically gives me a quick way to make my phone to connect to my laptop (and the internet - with…

Fedora Activity Day Malaysia 2009 - MSC Malaysia Open Source Conference 2009 Event Report

A bit late for an event which happened last week,

Here goes..

31st May to 3rd June mark the date of the first MSC Malaysia Open Source Conference. The event gathered together a large number of local IT executives and developers in a packed 4 days event filled with lots of FOSS related talks and side events. Fedora Malaysia team was invited to get involved in the event, and naturally, we accepted and and 31st May mark the date of Fedora Malaysia team's first Fedora Activity Day!.

It all started as simply an event where Fedora-My will be getting a kiosk booth and a room space - shared with Ubuntu-My, OpenSuSE-My, MyBSD, and other local communities - for an install party. But the involvement by Red Hat APJ as a platinum sponsor of the event changed the direction for Fedora-My.




As a platinum sponsor, Red Hat was given a room on 31st May (which was an open / free-to-access day for the event) to do any activity they wished. Great thanks to Harish Pillay and crew from Red Hat APJ, that ro…

Adding simple popup to Plone frontpage

Here is a little guide for those who want to add a simple popup to the Plone frontpage for some purpose (eg: announcements, advertisements, etc).

Create a basic html file containing the content you want to appear in the popup. Upload it into $PLONE_SITE/portal_skins/custom (as Page Template) and for the sake of this example, name it popup.html

Afterward, create a Javascript file with your Pop-Up loader script. For example , this script:


function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=220,height=400,scrollbars=no');
return false;
};

popup('popup.html', 'My Popup');


Also upload this file into $PLONE_SITE/portal_skins/custom (as Page Template too). For this example, name it as popup.js

Afterward, in $PLONE_SITE/portal_javascripts , add popup.js as a new script into portal_javascripts…

Suzumiya Haruhi No Yuutsu 2nd Season is HERE!!!

キター!キター!キター!!!!!!

キターーーーーー(^v^)ーー!!!

At last, Suzumiya Haruhi No Yuutsu「涼宮ハルヒの憂鬱」 2nd season has aired!!. More Haruhism!!!.



ツンデレ萌え〜!ハルヒさま!!



有希!!懐かしい〜。

有希のせいゆう、茅原みのりさんは今年の7月11日から7月12日まで,DaiConにらいえんするよ。みんなきてね!
Yuuki's seiyuu, Chihara Minori, on this year's 11th to 12th July will be coming to perform at DaiCon. Bring everyone there!.



ワクワクするよ。すぎのエピソード、待ってます!!。

Update:
A re-broadcast of the first series began in April 2009. Following a comment by Teletama, one of the broadcasting stations, that the 2009 broadcast would be twenty-eight episodes long, there was speculation that the re-broadcast will be followed by the second season, though this has not been confirmed by Kadokawa. On May 17, 2009, TV Wakayama listed the eighth broadcasted episode of the re-broadcast as a new episode reported to air on May 24, 2009, though it was removed later. The new episode, "Bamboo Leaf Rhapsody" (笹の葉ラプソディ, Sasa no Ha Rapusodi?), was aired on May 21, 2009. Unlike the original run, the re-broadcast…

What Interesting In MSC Malaysia Open Source Conference 2009 ?

Date: 31st May until 3rd June 2009
Time: 9:00 to 17:00 (9:00 AM until 5:00 PM)

Location:
Berjaya Times Square Hotel & Convention Centre
Level 14, Berjaya Times Square, Kuala Lumpur, Malaysia

Website: http://www.mscmalaysia.my/osconf

MSC MALAYSIA Client Contact Centre (CLiC)
1-800-88-8338 (within Malaysia)
+603 8315 3000 Email : clic@mdec.com.my

Facebook Fan Page:
http://www.facebook.com/pages/Kuala-Lumpur-Malaysia/MSC-Malaysia-Open-Source-Conference-2009/97810422651

MSC Malaysia Open Source Conference 2009 gather together almost 87 local and international speakers which cover various topic in Information Communication Technology focusing on Free and Open Source Softwares (FOSS). FOSS is an option for ICT solutions which should be taken seriously by various parties in Malaysia.

Our speakers come from ICT giants such as Google, Red Hat, Novell, Microsoft, Sun Microsystem, Mimos, Canonical and several more which will share their experience and knowledge for FOSS development in Malaysia. So, wh…

When the Deen got polluted with idiots

Indonesian clerics want rules for Facebook
SURABAYA: Muslim clerics are seeking ways to regulate online behaviour in Indonesia, saying the exploding popularity of social networking sites like Facebook could encourage illicit sex.

Around 700 clerics, or imams, gathering in the world’s most populous Muslim nation on Thursday were considering guidelines forbidding their followers from going online to flirt or engage in practices they believe could encourage extramarital affairs.

Facebook says Indonesia, a nation of 235 million, was its fastest-growing country in South-East Asia in 2008, with a 645% increase to 831,000 users -- outpacing China and India. And with less than 0.5% of Indonesia’s citizens wired, there is a huge potential for growth.

"The clerics think it is necessary to set an edict on virtual networking, because this online relationship could lead to lust, which is forbidden in Islam," said Nabil Haroen, a spokesman for the Lirboyo Islamic boarding school that is hosti…

A day with Fedora 11 ( Leonidas )

I've upgraded my installation to Fedora 11 Preview last night. The installation went smooth as usual, except for a minor hiccup caused by broken ISO, running torrent to patch the ISO worked ok.

Upon booting Fedora 11, I was greeted by a plymouth screen which looks like the generic theme used during its early dev (unlike the one on F10, which is Solar). Bootup was faster as expected from 20 Seconds Boot feature.

After logging in, I was greeted with one nice popup from DeviceKit:



Dang~ , this machine is dying T_T. Clicking at the panel icon brought up Palimsest utility which shows that my laptop HDD failed the "reallocated sector count" test.



Must.. get .. new .... machine ... >.<


Yum and RPM got faster than ever!. Thanks to the upgrade to RPM4.7. PackageKit UI is not locking Yum as annoyingly like before, so another good point there. Firefox that included is Firefox 3.1b3 which is amazingly responsive.

The Input Method Editor used in Fedora before, SCIM, have been repla…