Tareq Alam

i have promises to keep and miles to go before i sleep – Robert Frost

If you forget password of ZMI (zope management interface) … dont panic November 29, 2008

Filed under: Ubuntu, Zope, ploneCMS — tareqalam @ 6:19 am
Tags: , , , ,

here is a way to create a new user of zope

open terminal … go to zope instance directory.. (cd parts/instance in my case)

then type

bin/zopectl adduser user1 password1

then a user will be created with username user1 and password passord1

you can login with this
 

How to download and install plone subversion code November 28, 2008

Filed under: 1 — tareqalam @ 8:37 pm
Tags: , , ,

http://plone.org/development/info/participation

I wanted to took part in plone development (though I am a novice)

thats why tried to get the code as described in the link and install.

That is a good tutorial to use for any svn code download and install for plone.

Setup a fresh Zope instance with all dependencies for PsARAAS:

$ svn co https://svn.siteurl.com/path foldername
$ cd foldername
$ python bootstrap.py
$ bin/buildout

Start the zope instance:
$ bin/instance fg

 

Change the default python version in ubuntu November 28, 2008

Ubuntu automatically installs python 2.5 and uses it as the default python … I have crashed my system 2 times to solve this .. I wanted to make the default python to version 2.4.

This is the way

before begaining Thanks to (Luiz Rocha (lsdr) ) http://ubuntuforums.org/showthread.php?t=440358

and http://www.gossamer-threads.com/lists/python/python/685071

First,

edit the /usr/share/python/debian_defaults, changing the default version arg to python2.4

2nd,

$ sudo mv /usr/bin/python /usr/bin/python25
$ sudo ln -s /usr/bin/python2.4 /usr/bin/python

 

Access Linux drives from windows xp November 28, 2008

I have installed ubuntu in my machine and I have XP installed also .. I want to access data of ubuntu from XP

I found a way here http://ubuntuforums.org/showthread.php?t=324820

THe software link : http://www.fs-driver.org/index.html

Just download the software and read the instructions while installing and install in your machine

then you can read and write the linux partition from XP …

cheers

 

Install diffrent version of Plone in same machine on ubuntu and run in different port November 24, 2008

You can install different version of Plone in the same server. The question is how to run more than one zope server at the same time.. Below I am describing how I have installed Plone-2.5.5 and Plone-3.0.6 in same machine.

First we try to install Plone-2.5.5

1. Download the Plone-2.5.5-UnifiedInstaller.tgz frm Here

2. Extract the package.

3. Open terminal– change directory to the extracted folder and type

sudo ./install.sh

it will install the plone 2.5 in /opt/Plone-2.5.5

if you fail .. read the readme.txt file and try to install

4. Edit the file at INSTANCE_HOME/etc/zope.conf

There find this:

…………

<http-server>
# valid keys are “address” and “force-connection-close”
address 8080
# force-connection-close on
</http-server>

…………..

There you can set the address to any port you like ..

then restart zinstance

in browser you can test :

http://localhost:PORT_NUMBER/manage

if PORT_NUMBER IS 8080 then url will be

http://localhost:8080/manage

@@@@@@@@@@@@@##############

Now we will install Plone-3.0.6

1. Download the Plone-3.0.6-UnifiedInstaller.tgz frm here

2. Extract the package.

3. Open terminal– change directory to the extracted folder and type

./install.sh standalone

it will install the plone 3.0.6 in home/user/ folder

if you fail .. read the readme.txt file and try to install

4. Edit the file at INSTANCE_HOME/etc/zope.conf

There find this:

…………

<http-server>
# valid keys are “address” and “force-connection-close”
address 8080
# force-connection-close on
# You can also use the WSGI interface between ZServer and ZPublisher:
# use-wsgi on

</http-server>

…………..

There you can set the address to any port you like .. For example I have set it to 7575

Like this:

<http-server>
# valid keys are “address” and “force-connection-close”
address 7575
# force-connection-close on
# You can also use the WSGI interface between ZServer and ZPublisher:
# use-wsgi on

</http-server>

then restart zinstance

in browser you can test :

http://localhost:PORT_NUMBER/manage

if PORT_NUMBER IS 7575 then url will be

http://localhost:7575/manage

Now Both version of Plone is running in your machine..


 

python setlocale .. not working?make it work.. November 22, 2008

Filed under: Ubuntu, python — tareqalam @ 2:46 pm
Tags: , , , ,

when you are using the function in python:

locale.setlocale(locale.LC_ALL, ‘en_GB‘)

have you got this error message?

return _setlocale(category, locale)
locale.Error: unsupported locale setting

Then you should do what I have done in ubuntu..

This intelligent man helped me .. please go to this link and follow the steps to add the locale to the list of ’supported locales’

http://blog.andrewbeacock.com/2007/01/how-to-change-your-default-locale-on.html

Also I am writing it here for your convenience:

Edit /var/lib/locales/supported.d/local and add the following line:
en_GB ISO-8859-1

Then run the python script again .. hope it will not show error this time

THanks

 

Integrating gmail with other email accounts November 11, 2008

Isn’t it great that you dont have to check 3 or 4 email addresses daily. You may have a personal email account you may have an official mail account .. maybe one for friends .. and one for the family .. Life is fast .. so There is not enough time to check every email by logging in again and again..

What if all the mails comes to one account. I know many mail service has this facility but I know the process of gmail. In gmail there is a way to integrate other email accounts with gmail

just download the doc file from here. read that and follow the steps.

Download Link : gmail-integration-with-other-accounts

hope this helps all the multiple email users

cheers!!

 

create exe file of python application November 9, 2008

Filed under: 1 — tareqalam @ 6:46 am
Tags: , , , ,

you need py2exe to do this

down load from here : http://www.py2exe.org/

And example is shown here:

http://logix4u.net/Python/Tutorials/How_to_create_Windows_executable_exe_from_Python_script.html