Sunday, October 17, 2010

java pdf reader for mobile phones

Most most modern Cell Phones support Java standard for mobile applications (J2ME).
  • AnyView free ebook reader for J2ME phones
  • Libris: An eBook reader for Java MIDP 2.0 phones.
  • Foliant is a library-reader for mobile phones with support for Java. Its main function is to organize your collection of books and comfortable reading. It supports TXT and FB2 formats and has Unicode capability.
  • MobiBook: A free, open source J2ME reader.
  • ReadManiac: A free, open source, high quality reader for any Java (J2ME MIDP 2) phone.
  • Tequilacat BookReader Excellent bookreader with touchscreen support.
  • tx2ph: This is a WAP-based reader that can read TXTs, PDFs. Works with any Internet-connected mobile device, including BlackBerries and Palms of course.
  • Wattpad: is a Java app that can retrieve and read eBooks. These are uploaded to the site by writers or PD text.
  • Unyverse: Read Wikipedia and any RSS news Feed on any Java (J2ME MIDP 2) phone (freeware).

Tuesday, October 12, 2010

installing turbo gears on ubuntu

http://www.turbogears.org/2.0/docs/main/DownloadInstall.html


wget http://www.turbogears.org/2.0/downloads/current/tg2-bootstrap.py
--2010-10-12 20:29:11-- http://www.turbogears.org/2.0/downloads/current/tg2-bootstrap.py
Resolving www.turbogears.org... 67.15.84.19
Connecting to www.turbogears.org|67.15.84.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55083 (54K) [text/plain]
Saving to: `tg2-bootstrap.py'

100%[======================================>] 55,083 32.1K/s in 1.7s

2010-10-12 20:29:14 (32.1 KB/s) - `tg2-bootstrap.py' saved [55083/55083]

foldername@foldername-desktop:~$ python tg2-bootstrap.py --no-site-packages tg2env
New python executable in tg2env/bin/python
Installing setuptools............................done.
Installing turbogears....
Running command....
tg2env/bin/easy_install -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools
Searching for tg.devtools
Reading http://www.turbogears.org/2.0/downloads/current/index/tg.devtools/
Best match: tg.devtools 2.0.2
Downloading http://www.turbogears.org/2.0/downloads/current/tg.devtools-2.0.2.tar.gz
Processing tg.devtools-2.0.2.tar.gz
Running tg.devtools-2.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-BsihXb/tg.devtools-2.0.2/egg-dist-tmp-E3sJAV
Adding tg.devtools 2.0.2 to easy-install.pth file

Installed /home/foldername/tg2env/lib/python2.6/site-packages/tg.devtools-2.0.2-py2.6.egg
Processing dependencies for tg.devtools
Searching for repoze.who>=1.0.10
Reading http://www.turbogears.org/2.0/downloads/current/index/repoze.who/
Best match: repoze.who 1.0.15
Downloading http://www.turbogears.org/2.0/downloads/current/repoze.who-1.0.15.tar.gz
Processing repoze.who-1.0.15.tar.gz
Running repoze.who-1.0.15/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ptyaJ3/repoze.who-1.0.15/egg-dist-tmp-cxHHl0
Adding repoze.who 1.0.15 to easy-install.pth file

Installed /home/foldername/tg2env/lib/python2.6/site-packages/repoze.who-1.0.15-py2.6.egg
Searching for repoze.what-quickstart>=1.0
Reading http://www.turbogears.org/2.0/downloads/current/index/repoze.what-quickstart/
Best match: repoze.what-quickstart 1.0
Downloading http://www.turbogears.org/2.0/downloads/current/repoze.what-quickstart-1.0.tar.gz
Processing repoze.what-quickstart-1.0.tar.gz
Running repoze.what-quickstart-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-yWZLxV/repoze.what-quickstart-1.0/egg-dist-tmp-zAcLI_
no previously-included directories found matching 'docs/build'
warning: no previously-included files matching '*' found under directory 'tests'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.egg' found anywhere in distribution
warning: no previously-included files matching '.directory' found anywhere in distribution
Adding repoze.what-quickstart 1.0 to easy-install.pth file

Installed /home/foldername/tg2env/lib/python2.6/site-packages/repoze.what_quickstart-1.0-py2.6.egg
Searching for SQLAlchemy>=0.5
Reading http://www.turbogears.org/2.0/downloads/current/index/SQLAlchemy/
Best match: SQLAlchemy 0.5.1
Downloading http://www.turbogears.org/2.0/downloads/current/SQLAlchemy-0.5.1.tar.gz
Processing SQLAlchemy-0.5.1.tar.gz
Running SQLAlchemy-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Qp8Xcv/SQLAlchemy-0.5.1/egg-dist-tmp-rJLxbD
no previously-included directories found matching 'doc/build/output'
zip_safe flag not set; analyzing archive contents...
sqlalchemy.databases.mysql: module MAY be using inspect.stack
Adding SQLAlchemy 0.5.1 to easy-install.pth file

Installed /home/foldername/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.5.1-py2.6.egg
Searching for sqlalchemy-migrate>=0.5.1
Reading http://www.turbogears.org/2.0/downloads/current/index/sqlalchemy-migrate/
Best match: sqlalchemy-migrate 0.5.2
Downloading http://www.turbogears.org/2.0/downloads/current/sqlalchemy-migrate-0.5.2.tar.gz
Processing sqlalchemy-migrate-0.5.2.tar.gz
Running sqlalchemy-migrate-0.5.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7V1L01/sqlalchemy-migrate-0.5.2/egg-dist-tmp-Pb_t9g
zip_safe flag not set; analyzing archive contents...
migrate.versioning.api: module MAY be using inspect.getsource
Adding sqlalchemy-migrate 0.5.2 to easy-install.pth file
Installing migrate script to /home/foldername/tg2env/bin
Installing migrate-repository script to /home/foldername/tg2env/bin

Installed /home/foldername/tg2env/lib/python2.6/site-packages/sqlalchemy_migrate-0.5.2-py2.6.egg
Searching for TurboGears2>=2.0.2
Reading http://www.turbogears.org/2.0/downloads/current/index/TurboGears2/
Best match: TurboGears2 2.0.3
Downloading http://www.turbogears.org/2.0/downloads/current/TurboGears2-2.0.3.tar.gz
Processing TurboGears2-2.0.3.tar.gz
Running TurboGears2-2.0.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-V1mEKi/TurboGears2-2.0.3/egg-dist-tmp-9WBVdw
Adding TurboGears2 2.0.3 to easy-install.pth file

Installed /home/foldername/tg2env/lib/python2.6/site-packages/TurboGears2-2.0.3-py2.6.egg
Searching for zope.interface
Reading http://www.turbogears.org/2.0/downloads/current/index/zope.interface/
Best match: zope.interface 3.4.1
Downloading http://www.turbogears.org/2.0/downloads/current/zope.interface-3.4.1.tar.gz
Processing zope.interface-3.4.1.tar.gz
Running zope.interface-3.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-UQNfCO/zope.interface-3.4.1/egg-dist-tmp-QvlnLc
Traceback (most recent call last):
File "tg2env/bin/easy_install", line 8, in
load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1671, in main
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1675, in
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 211, in run
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 446, in easy_install
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 478, in install_item
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 519, in process_distribution
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 522, in resolve
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 758, in best_match
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 770, in obtain
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 446, in easy_install
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 476, in install_item
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 919, in run_setup
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 27, in run_setup
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 63, in run
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 29, in
File "setup.py", line 85, in

File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/bdist_egg.py", line 174, in run
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/bdist_egg.py", line 161, in call_command
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/install_lib.py", line 20, in run
File "/usr/lib/python2.6/distutils/command/install_lib.py", line 115, in build
self.run_command('build_ext')
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 46, in run
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 449, in build_extensions
self.build_extension(ext)
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 175, in build_extension
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 460, in build_extension
ext_path = self.get_ext_fullpath(ext.name)
File "/usr/lib/python2.6/distutils/command/build_ext.py", line 637, in get_ext_fullpath
filename = self.get_ext_filename(ext_name)
File "/home/foldername/tg2env/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py", line 85, in get_ext_filename
KeyError: '_zope_interface_coptimizations'

error installing mylyn and pydev in eclipse on ubuntu 10.04

An error occurred while installing the items
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]org.eclipse.cvs 1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found.


An error occurred while installing the items
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]org.eclipse.cvs 1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
Cannot connect to keystore.
This trust engine is read only.
The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found.


An error occurred while installing the items
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null --> [R]org.eclipse.cvs 1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found.


You have to install the eclipse-pde, jdt and plugin-cvs packages before installing subversive. If you installed eclipse from the SoftwareCentre, it has not included all of these packages. If you use synaptic and search you will see these missing packages and can install from there.

eclipse-pde plugin development environment
Hi! The installation by the Ubuntu Software Store does not include these packages for Eclipse.
Remove it, and install the Eclipse from Synaptic.
java development tools JDT

I installed Eclipse throught Software Center, installed:

sudo apt-get install eclipse-jdt
sudo apt-get install eclipse-plugin-cvs
sudo apt-get install eclipse-pde

http://www.eclipse.org/forums/index.php?t=msg&goto=531456&
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/454819



"Mylyn Task List (Required)" is not applicable to the current configuration and will not be installed.
"Mylyn Task-Focused Interface (Recommended)" is not applicable to the current configuration and will not be installed.
"Mylyn WikiText" is not applicable to the current configuration and will not be installed.
"Mylyn Connector: Bugzilla" is not applicable to the current configuration and will not be installed.
"Mylyn Bridge: Eclipse IDE" is not applicable to the current configuration and will not be installed.
"Mylyn Connector: Trac" is not applicable to the current configuration and will not be installed.
"Mylyn Bridge: Plug-in Development" is not applicable to the current configuration and will not be installed.
"Mylyn Bridge: Java Development" is not applicable to the current configuration and will not be installed.
"Mylyn Bridge: C/C++ Development" is not applicable to the current configuration and will not be installed.
"Mylyn Bridge: Team Support" is not applicable to the current configuration and will not be installed.
"Mylyn SDK" is not applicable to the current configuration and will not be installed.
"Mylyn WikiText SDK" is not applicable to the current configuration and will not be installed.
http://wiki.eclipse.org/Mylyn/User_Guide#Installation

Installation Troubleshooting on Eclipse 3.4 and later

Ensure that all required update sites are enabled under Help > Software Updates > Available Software > Manage Sites:

* http://download.eclipse.org/tools/mylyn/update/e3.4
* http://download.eclipse.org/tools/mylyn/update/extras
* http://download.eclipse.org/tools/mylyn/update/incubator

Then follow these steps:

1. Use Help > Software Update > Update to ensure that the latest version of all features is installed
2. Install again
3. If Install fails with a "No repository found containing..." message, remove and re-add the update site that hosts the feature for which the download is failing
4. Install again
5. If the update fails with a "Cannot complete the request..." message, uninstall Mylyn and all Mylyn dependencies
6. Install again

http://wiki.eclipse.org/Mylyn/FAQ#General_Installation_Troubleshooting


I’ve installed Mylyn ; why can’t I see anything different?

The two most likely possibilities are:

1. You don’t have any Mylyn views open. Select Window → Show View → Other, then select Mylyn and you should see the available Mylyn Views.
2. If you still don’t see anything, then perhaps you aren’t using the JDK1.5 VM (or later). See configuring Java.

starting a new pydev project
Choose File > New > Project. From there,
you can select Pydev > Pydev Project.

it will ask you to configure system PYTHONPATH

Use /usr/bin/python

when you do that it will give you an auto list which gets added to the system PYTHONPATH

and shows as name python path /usr/bin/python2.6 (even though you entered just python earlier)
http://pydev.org/manual_101_interpreter.html
http://pydev.blogspot.com/2006/09/configuring-pydev-to-work-with-django.html

this kind of project is associated with the python perspective

Monday, October 11, 2010

setting up pydev ide for django dev under ubuntu

This manual assumes that you have already have Python and/or Jython and/or IronPython installed in your machine, as well as Eclipse, Aptana Studio 2 or Aptana Studio 3 (Beta).

Pydev is now preinstalled in Aptana Studio 3 (in the download from http://aptana.com/products/studio3/download it doesn't need to be installed separately).
/linux/Aptana_Studio_3_Setup_Linux_x86_3.0.0.zip

/linux/Aptana_Studio_Setup_Linux_x86_2.0.5.zip


http://aptana.com/
Aptana Studio 2.0.5
Linux, x86
Aptana Studio is the industry leading web development environment that combines powerful authoring tools for HTML, CSS, and JavaScript, along with thousands of additional plugins created by the community

Operating System

*
Mac OS X
*
Windows
*
Linux

Architecture

*
64-Bit
*
32-Bit


how to install eclipse ide on ubuntu

http://devianture.wordpress.com/2010/04/10/installing-eclipse-on-ubuntu/ best


Dont install eclipse via apt get. Goto the link https://wiki.ubuntu.com/EclipseIDE
and install it manually by downloading the latest eclipse build from the eclipse website. I have installed Eclipse as a global installation and is working fine.
https://help.ubuntu.com/community/EclipseIDE
https://help.ubuntu.com/community/EclipseWebTools

Ubuntu 10.04 LTS: Eclipse 3.5.2 * Ubuntu 9.10: Eclipse 3.5.1

Note: to install plugins not available in Package Manager, you'll need to install them in user mode. Do not run Eclipse as root to install plugins.

How to install Eclipse in Ubuntu.
http://flurdy.com/docs/eclipse/install.html


http://wiki.eclipse.org/Main_Page

irc channel on free node
#eclipse - questions from plug-in developers and users


*

Ivar Abrahamsen's original howto http://flurdy.com/docs/eclipse/install.html
*

Java http://java.sun.com
*

Eclipse http://www.eclipse.org
*

Web Tools http://www.eclipse.org/webtools
*

Eclipse Callisto http://www.eclipse.org/callisto/java.php
*

Ubuntu Eclipse http://wiki.ubuntu.com/EclipseIDE
*

Apache Tomcat http://tomcat.apache.org

Sunday, October 10, 2010

Free node commands and registration help

NickServ: ***** NickServ Help *****
NickServ: NickServ allows users to 'register' a nickname, and stop
NickServ: others from using that nick. NickServ allows the owner of a
NickServ: nickname to disconnect a user from the network that is using
NickServ: their nickname.
NickServ:
NickServ: For more information on a command, type:
NickServ: /msg NickServ help
NickServ: For a verbose listing of all commands, type:
NickServ: /msg NickServ help commands
NickServ:
NickServ: The following commands are available:
NickServ: GHOST Reclaims use of a nickname.
NickServ: GROUP Adds a nickname to your account.
NickServ: UNGROUP Removes a nickname from your account.
NickServ: IDENTIFY Identifies to services for a nickname.
NickServ: INFO Displays information on registrations.
NickServ: LISTCHANS Lists channels that you have access to.
NickServ: REGISTER Registers a nickname.
NickServ: SET Sets various control flags.
NickServ: RELEASE Releases a services enforcer.
NickServ:
NickServ: Other commands: ACCESS, DROP, HELP, LISTOWNMAIL, LOGOUT,
NickServ: SETPASS, ACC, STATUS, TAXONOMY, VERIFY,
NickServ: VACATION
NickServ: ***** End of Help *****


ChanServ: ***** ChanServ Help *****
ChanServ: ChanServ gives normal users the ability to maintain control
ChanServ: of a channel, without the need of a bot. Channel takeovers are
ChanServ: virtually impossible when a channel is registered with ChanServ.
ChanServ: Registration is a quick and painless process. Once registered,
ChanServ: the founder can maintain complete and total control over the channel.
ChanServ: Please note that channels will expire if there are no eligible channel successors.
ChanServ: Successors are primarily those who have the +R flag
ChanServ: set on their account in the channel, although other
ChanServ: people may be chosen depending on their access
ChanServ: level and activity.
ChanServ:
ChanServ: For more information on a command, type:
ChanServ: /msg ChanServ help
ChanServ: For a verbose listing of all commands, type:
ChanServ: /msg ChanServ help commands
ChanServ:
ChanServ: The following commands are available:
ChanServ: UNBAN Unbans you on a channel.
ChanServ: FLAGS Manipulates specific permissions on a channel.
ChanServ: INVITE Invites you to a channel.
ChanServ: OP Gives channel ops to a user.
ChanServ: RECOVER Regain control of your channel.
ChanServ: REGISTER Registers a channel.
ChanServ: SET Sets various control flags.
ChanServ:
ChanServ: Other commands: AKICK, CLEAR, COUNT, DROP, GETKEY, HELP,
ChanServ: INFO, DEOP, QUIET, UNQUIET, STATUS, TAXONOMY,
ChanServ: TEMPLATE, TOPIC, TOPICAPPEND, TOPICPREPEND,
ChanServ: VOICE, DEVOICE, WHY, ACCESS
ChanServ: ***** End of Help *****


NickServ:
NickServ: freenode is a service of Peer-Directed Projects Center, a
NickServ: not-for-profit organisation registered in England and Wales.
NickServ: For frequently-asked questions about the network, please see the
NickServ: FAQ page (http://freenode.net/faq.shtml). Should you wish to
NickServ: support the PDPC you can contribute to our current fundraiser at
NickServ: http://freenode.net/pdpc_donations.shtml.

to register you nick name you need to goto the nickserv

to get a nickserv window in pidgin type

/msg nickserv help

then to register the nick name

register password emailaddress

then open up your email address and you will find a message

/msg NickServ VERIFY REGISTER nickname somecode

you need to paste then into nickserv

Easy Install is a python module

Easy Install is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages.

http://peak.telecommunity.com/DevCenter/EasyInstall

setuptools 0.6c11

Download, build, install, upgrade, and uninstall Python packages -- easily!

http://pypi.python.org/pypi/setuptools/


error when trying to install setuptools

sh setuptools-0.6c11-py2.6.egg
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/test-easy-install-4679.pth'
This error is because i did not use sudo before sh



The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python2.6/dist-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.


when using sudo
sudo sh setuptools-0.6c11-py2.6.egg

Processing setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /usr/local/lib/python2.6/dist-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.6 script to /usr/local/bin

Installed /usr/local/lib/python2.6/dist-packages/setuptools-0.6c11-py2.6.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11


http://peak.telecommunity.com/DevCenter/setuptools

http://peak.telecommunity.com/DevCenter/EasyInstall

easy_install SQLAlchemy
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/test-easy-install-4798.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python2.6/dist-packages/

Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.

with sudo

sudo easy_install SQLAlchemy
Searching for SQLAlchemy
Reading http://pypi.python.org/simple/SQLAlchemy/
Reading http://www.sqlalchemy.org
Best match: SQLAlchemy 0.6.4
Downloading http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.6.4.tar.gz#md5=f1e553e73ca989c162ea039b55bd93f5
Processing SQLAlchemy-0.6.4.tar.gz
Running SQLAlchemy-0.6.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-S4Xwlp/SQLAlchemy-0.6.4/egg-dist-tmp-FFZ3wR
no previously-included directories found matching 'doc/build/output'
zip_safe flag not set; analyzing archive contents...
sqlalchemy.dialects.mysql.base: module MAY be using inspect.stack
sqlalchemy.test.orm: module MAY be using inspect.getframeinfo
sqlalchemy.test.orm: module MAY be using inspect.stack
Adding SQLAlchemy 0.6.4 to easy-install.pth file

Installed /usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.4-py2.6.egg
Processing dependencies for SQLAlchemy
Finished processing dependencies for SQLAlchemy


>>> import sqlalchemy
>>> sqlalchemy._version_
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute '_version_'
>>> sqlalchemy_version_
Traceback (most recent call last):
File "", line 1, in
NameError: name 'sqlalchemy_version_' is not defined

this error is because there is two _ before and after versions __ not _


>>> sqlalchemy.__version__
'0.6.4'
>>>

Python eggs are a way of bundling additional information with a Python project, that allows the project's dependencies to be checked and satisfied at runtime, as well as allowing projects to provide plugins for other projects. There are several binary formats that embody eggs, but the most common is '.egg' zipfile format, because it's a convenient one for distributing projects. All of the formats support including package-specific data, project-wide metadata, C extensions, and Python code.
http://peak.telecommunity.com/DevCenter/PythonEggs

database programming perl vs python vs ruby vs php

i am really confused to what to learn . php is terrible boring to learn . i was happy with c . perl is like c. google uses python.


after reading some links its python or ruby

some perl tutorials
http://perl.about.com/od/perltutorials/a/perlmysql_3.htm
http://perl.about.com/od/workingwithdatabases/Working_With_Databases.htm */

http://www.linuxjournal.com/article/3882
http://www.ruby-lang.org/en/
http://www.filemaker.com/products/filemaker-server/?nav=products-server

Tuesday, October 5, 2010

installing ffmpeg on Ubuntu Lucid Lynx 10.04

sudo apt-get install libavcodec-unstripped-52

Ubuntu Lucid Lynx 10.04
sudo apt-get install ffmpeg libavcodec-extra-52

./configure --enable-gpl --enable-pp --enable-libvorbis --enable-liba52 --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-pthreads --enable-libx264 -enable-libxvid --enable-shared

So, what have we done here......

* gpl - allow use of GPL code, the resulting libav* and ffmpeg will be under GPL
* pp - enable GPLed postprocessing support
* libvorbis - enable Vorbis encoding via libvorbis (http://www.vorbis.com/)
* liba52 - enable GPLed liba52 support (http://liba52.sourceforge.net/)
* libdc1394 - enable IIDC-1394 grabbing using libdc1394 and libraw1394 (http://sourceforge.net/projects/libdc1394/)
* libgsm - enable GSM support via libgsm (http://packages.debian.org/testing/sound/libgsm-tools)
* libmp3lame - enable MP3 encoding via libmp3lame (http://lame.sourceforge.net/download.php)
* libfaad - enable FAAD support via libfaad (http://www.audiocoding.com/faad2.html)
* libfaac - enable FAAC support via libfaac (http://www.audiocoding.com/faac.html)
* pthreads - use pthreads (http://en.wikipedia.org/wiki/POSIX_Threads)
* libx264 - enable H.264 encoding via x264 (http://www.videolan.org/developers/x264.html)
* libxvid - enable Xvid encoding via xvidcore, native MPEG-4/Xvid encoder exists (http://www.xvid.org/)

http://ffmpeg.org/ffmpeg-doc.html
http://ubuntuforums.org/showthread.php?t=1117283

Saturday, October 2, 2010

ftp localhost xampp

Status: Resolving address of localhost
Status: Connecting to [::1]:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.2c Server (ProFTPD) [::1]
Command: USER nobody
Response: 331 Password required for nobody
Command: PASS *****
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server
Status: Resolving address of localhost
Status: Connecting to [::1]:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.2c Server (ProFTPD) [::1]
Command: USER nobody
Response: 331 Password required for nobody
Command: PASS ********
Response: 230 User nobody logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: MFMT
Response: MFF modify;UNIX.group;UNIX.mode;
Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response: REST STREAM
Response: SIZE
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: EPSV
Response: 229 Entering Extended Passive Mode (|||65089|)
Command: MLSD
Response: 150 Opening ASCII mode data connection for MLSD
Response: 226 Transfer complete
Status: Directory listing successful