Scribbles

Scribbles

Bibek Paudel  //  I'm a twenty-something working in technology
and interested in all sorts of subjects unrelated to my work.
I try to focus and aim to contribute on the areas where these two intersect
My Public GPG Key
How to Reach Me

Nov 26 / 11:38am

Solved: Plone installation Strange Error

Problem:

After installing Plone 3.3.2 as a standalone server from the Unified Installer in Ubuntu 9.04, adding a new plone-site (from the ZMI) produced strange error. I have been facing this for quite sometime now.

The Error Message:

Site Error

An error was encountered while publishing this resource.

Error Type: KeyError
Error Value: ''

Here's the error log taken from the file instance.log.

Solution:

In the instance section of the buildout.cfg file, add the following (replacing your own timezone if necessary):

zope-conf-additional =
    <environment>
        TZ Asia/Katmandu
    </environment>

Run the buildout again, start the Zope Server and the problem will be gone.

What happened:

For some strange reason, Python couldn't pick up the timezone of my machine. We fixed that by explicitely providing one in the buildout.cfg file.

Matthew Wilkes told me on IRC, "when Zope creates a date object it uses the timezone of the local machine, if not otherwise specified. Every object gets a creation date, which is then stored in the portal catalog so it can be searched for. The catalog tries to normalise the timezones so searches don't have to take account of the fact that 1pm EST is the same time as 6pm GMT. Zope couldn't find my machine's timezone for whatever reason, so used the timezone '', which caused a key-error when the date-time machinery tried to look up what the offset from GMT is." He said that they will have to work on making the installation process adress this strange problem.

Matthew has added a ticket for this bug: #9857.

Thanks, also to cbess (I guess he is Christopher Bess) of the #plone IRC channel.

More Help:

How to install Plone with the Unified Installer and managing projects with buildout. The later link also explains how to install Plone using paster, which I'm told is the 'advanced' way to do the thing :)

I'd prefer installing from my Package Manager. But there also seems to be some problem in Jaunty's plone3-site package as attempting to install plone3-site from synaptic gave this error:

Setting up plone3-site (3.1.7-1) ...
dpkg: error processing plone3-site (--configure): subprocess post-installation script returned error exit status 10
Errors were encountered while processing: plone3-site

Filed under  //  bug   foss   linux   plone   python  
Aug 15 / 11:47pm

Has the SRK detention story been overblown?

Recently, bollywood superstar ShahRukh Khan (SRK) was detained for a little over 1 hour (according to the US authorities, 2 hours according to Indian news sources) in an American airport when he was travelling to perform in a show. It has been attributed to his Muslim name and is said that the Indian government had to apply diplomatic measures to release him. A lot of furor has been created since and heated comments from SRK and his supporters have been coming.

Profiling people based on their names, religion, country of origin, race etc is totally wrong. Worse is the unlawful detention, extra-judicial powers to law authorities, surveillance and the increasing attack on freedoms and civil liberties. This escalated after 9/11 and has been continuing unabated since. Many other countries have joined the league and freedom of people all over the world is being restricted day by day.

SRK isn't an isolated case. On 15th August, a similar fate met Bob Dylan. Though SRK mighet be more popular than Hollywood actors, Dylan's personality and role in the rights-movement some decases ago and in the protest of Vietnam war are stuffs legends are made of. A few years ago, a famous singer Cat Stevens who is a Islam-convert was deported after being denied entry to the US, also because of his Muslim name. Unlike SRK, he's one of "them", the western world. Studies by civil liberty groups claim that more than 5% of the American population itself is kept on a possible terrorist-suspect list and are subjected to harrassment at airports. A foreign minister of Hugo Chavez was "threatened and shoved" by airport officials, even after informing them of his identity. Even Nelson Mandela was (there have been reports that his name has since been removed) on a terrorist watch list prepared by the FBI which contiues to grow longer and longer every day. Similarly, names of many American leaders and people are also there. Forget America, former Indian president Abdul Kalam was also frisked in April at an Indian airport.  "But I admired the calmness with which Abdul Kalam dealt with the issue himself and displayed so much humility. I expect Shah Rukh to do the same as I am sure he will. Only he can defuse the situation," Times of India quotes Shekhar Kapur.

IndiaTimes blog has an entry that requests not to make a big deal over the SRK case. In my experience, South Asia in itself is a very racist place with the North-Indians in India and the residents of Kathmandu being the most frequent offenders I've seen. Sometime ago, a racist slur was made on an Indian Idol from North-Eastern India belonging to a Nepali-speaking community by a Mumbai FM RJ. In my observation, such behaviour is common, especially in the Indian capital, to North-Eastern Indians, Bhutanis and Nepalese of mongolian origin. Dinesh Wagle echoes my observations in a recent article. Kathmandu-residents are very intolerant of anybody from outside the valley and especially the Terai.

In my opinion, racism in any form, any where is deplorable. Such activities remind of colonial days. It is a good thing that India has risen to the capacity of defending its citizens even at the world's sole superpower - maybe this reckons of days when it will stop being the sole-superpower. However, the basic flaw is in the state of civil liberties worldwide. Unless this realisation dawns, getting emotional over SRK issue may be benefitial to his upcoming movie that is said to be based on similar issues, but it will make no significant change on the way things are. They were never different. Just because SRK is SRK, expecting them to change is only stupid. The issue has been overblown.

Edited: The last two lines of the third paragraph were added later.

Filed under  //  india   media   movies   society   south-asia  
Aug 10 / 11:51pm

About day jobs and startup owners

Whether or not to keep a day job while venturing out on a startup is a key question for many entrepreneurs. Startup owners, in my opinion, should find/keep a day-job until investors are found or the startup starts becoming expectedly profitable. Some good reads on the web:

Filed under  //  entrepreneurship   links   self-help   startup   tips