Monday, April 30, 2012
Monday, April 23, 2012
important linux commands
tar zxvf watchdog-0.5.4.tar.gz
wget
sudo /etc/init.d/apache2 start
sudo a2ensite siteTobeActivated
sudo gedit /etc/apache2/sites-available/siteName
Python API library and shell utilities to monitor file system events.
5)WATCHDOG - http://packages.python.org/watchdog/installation.html#installation
Installation steps watchdog on windows
- download this file - https://raw.github.com/pypa/pip/master/contrib/get-pip.py
- And execute it through command prompt as - python get-pip.py install
- Then install watchdog on windows - pip install watchdog
Saturday, April 21, 2012
How to setup your development environment on linux??
If we look at the get installations of those packages are very easy. you have to use debian command called 'sudo apt-get install' for all of above packages first except for python. In linux 11.10 python 2.7 has been included, so you do not need to worry about that.
If you couldn't get installations from above command use following way,
1) wget ''
2) sudo tar xzvf '.tar.gz'
3) cd ''
4) python setup.py install or
./configure
sudo make
sudo make install
5)Then start to deploy your project into the apache server
6)If you have any problem regarding how to deploy the project in to server.... contact me via the blogger...
Thankxx
If you couldn't get installations from above command use following way,
1) wget '
2) sudo tar xzvf '
3) cd '
4) python setup.py install or
./configure
sudo make
sudo make install
5)Then start to deploy your project into the apache server
6)If you have any problem regarding how to deploy the project in to server.... contact me via the blogger...
Thankxx
Python 2.7 for web come up with linux 11.10
Needed followimg tools-
linux 11.10 (oneiric ocelot)
eclipse with pydev plugin
Django 1.3.1 framework
setuptools for python 2.7
mysqldb for python 2.7
PIL(Python imaging library) for python 2.7
apache2
mod_wsgi for apache
linux 11.10 (oneiric ocelot)
eclipse with pydev plugin
Django 1.3.1 framework
setuptools for python 2.7
mysqldb for python 2.7
PIL(Python imaging library) for python 2.7
apache2
mod_wsgi for apache
Thursday, March 22, 2012
what is __int__.py????
__init__.py helps to locate the python moudle location.
It's important when you are doing an import a module to another module.
It's important when you are doing an import a module to another module.
Speed of compiled python file.....
As an important speed-up of the start-up time for short programs that use a lot of standard modules, if a file called "spam.pyc" exists in the directory where "spam.py" is found, this is assumed to contain an already-``byte-compiled'' version of the module spam. The modification time of the version of "spam.py" used to create "spam.pyc" is recorded in "spam.pyc", and the file is ignored if these don't match.
Normally, you don't need to do anything to create the "spam.pyc" file. Whenever "spam.py" is successfully compiled, an attempt is made to write the compiled version to "spam.pyc". It is not an error if this attempt fails; if for any reason the file is not written completely, the resulting "spam.pyc" file will be recognized as invalid and thus ignored later. The contents of the "spam.pyc" file is platform independent, so a Python module directory can be shared by machines of different architectures.
When the Python interpreter is invoked with the -O flag, optimized code is generated and stored in ".pyo" files. The optimizer currently doesn't help much; it only removes assert statements and SET_LINENO instructions. When -O is used, all bytecode is optimized; .pyc files are ignored and .py files are compiled to optimized bytecode.
A program doesn't run any faster when it is read from a ".pyc" or ".pyo" file than when it is read from a ".py" file; the only thing that's faster about ".pyc" or ".pyo" files is the speed with which they are loaded.
When a script is run by giving its name on the command line, the bytecode for the script is never written to a ".pyc" or ".pyo" file. Thus, the startup time of a script may be reduced by moving most of its code to a module and having a small bootstrap script that imports that module.
It is possible to have a file called "spam.pyc" (or "spam.pyo" when -O is used) without a module "spam.py" in the same module. This can be used to distribute a library of Python code in a form that is moderately hard to reverse engineer.
The module compileall can create ".pyc" files (or ".pyo" files when -O is used) for all modules in a directory.
Normally, you don't need to do anything to create the "spam.pyc" file. Whenever "spam.py" is successfully compiled, an attempt is made to write the compiled version to "spam.pyc". It is not an error if this attempt fails; if for any reason the file is not written completely, the resulting "spam.pyc" file will be recognized as invalid and thus ignored later. The contents of the "spam.pyc" file is platform independent, so a Python module directory can be shared by machines of different architectures.
When the Python interpreter is invoked with the -O flag, optimized code is generated and stored in ".pyo" files. The optimizer currently doesn't help much; it only removes assert statements and SET_LINENO instructions. When -O is used, all bytecode is optimized; .pyc files are ignored and .py files are compiled to optimized bytecode.
A program doesn't run any faster when it is read from a ".pyc" or ".pyo" file than when it is read from a ".py" file; the only thing that's faster about ".pyc" or ".pyo" files is the speed with which they are loaded.
When a script is run by giving its name on the command line, the bytecode for the script is never written to a ".pyc" or ".pyo" file. Thus, the startup time of a script may be reduced by moving most of its code to a module and having a small bootstrap script that imports that module.
It is possible to have a file called "spam.pyc" (or "spam.pyo" when -O is used) without a module "spam.py" in the same module. This can be used to distribute a library of Python code in a form that is moderately hard to reverse engineer.
The module compileall can create ".pyc" files (or ".pyo" files when -O is used) for all modules in a directory.
Features of python
Easy-to-learn
Easy-to-read
Easy-to-maintain
A broad standard library
Interactive Mode
Portable
Extendable
Databases
GUI Programming
Scalable
Easy-to-read
Easy-to-maintain
A broad standard library
Interactive Mode
Portable
Extendable
Databases
GUI Programming
Scalable
Python Programming
A programming language with strong similarities to PERL, but with powerful typing and object oriented features.
Commonly used for producing HTML content on websites. Great for text files.
Useful built-in types (lists, dictionaries).
Clean syntax, powerful extensions.
Natural Language ToolKit
Ease of use; interpreter
AI Processing: Symbolic
Python’s built-in datatypes for strings, lists, and more.
Java or C++ require the use of special classes for this.
AI Processing: Statistical
Python has strong numeric processing capabilities: matrix operations, etc.
Suitable for probability and machine learning code.
Commonly used for producing HTML content on websites. Great for text files.
Useful built-in types (lists, dictionaries).
Clean syntax, powerful extensions.
Natural Language ToolKit
Ease of use; interpreter
AI Processing: Symbolic
Python’s built-in datatypes for strings, lists, and more.
Java or C++ require the use of special classes for this.
AI Processing: Statistical
Python has strong numeric processing capabilities: matrix operations, etc.
Suitable for probability and machine learning code.
Thursday, February 9, 2012
Convert WSDL to JAVA - Apacahe CXF
http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html
Tuesday, February 7, 2012
Developing a simple SOAP-webservice using Spring 3.0.1 and Apache CXF 2.2.6
Checkout the example project from here.......;;;;
http://united-coders.com/phillip-steffensen/developing-a-simple-soap-webservice-using-spring-301-and-apache-cxf-226
*How To Fix LinkageError when using JAXB with JDK 1.6
If you run across an error like this when trying to use JAXB:
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI
(from jar:file:/somedirectory/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
It's actually a very simple fix, but painful enough to warrant a post. Put the jaxb-api.jar that you're trying to use into JDK_HOME/jre/lib/endorsed. If the endorsed directory doesn't exist, make it. This is apparently only a problem with JDK 1.6, not with JDK 1.5.
*The recommended way is to define the JAVA_ENDORSED_DIRS environmental variable. Then Tomcat will use this Java property:
http://united-coders.com/phillip-steffensen/developing-a-simple-soap-webservice-using-spring-301-and-apache-cxf-226
*How To Fix LinkageError when using JAXB with JDK 1.6
If you run across an error like this when trying to use JAXB:
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI
(from jar:file:/somedirectory/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
It's actually a very simple fix, but painful enough to warrant a post. Put the jaxb-api.jar that you're trying to use into JDK_HOME/jre/lib/endorsed. If the endorsed directory doesn't exist, make it. This is apparently only a problem with JDK 1.6, not with JDK 1.5.
*The recommended way is to define the JAVA_ENDORSED_DIRS environmental variable. Then Tomcat will use this Java property:
Wednesday, January 18, 2012
What is a spring web-flow?
Many web applications require the same sequence of steps to execute in different contexts.
Often these sequences are merely components of a larger task the user is trying to accomplish.
Such a reusable sequence is called a flow.
Consider a typical shopping cart application.User registration,login,and cart checkout are all
examples of flows that can beinvoked from several places in this type of application.
Spring Web Flow is the module of Spring for implementing flows.The Web Flow engine plugs
into the Spring Web MVC platform and provides declarative flow definition language.
Often these sequences are merely components of a larger task the user is trying to accomplish.
Such a reusable sequence is called a flow.
Consider a typical shopping cart application.User registration,login,and cart checkout are all
examples of flows that can beinvoked from several places in this type of application.
Spring Web Flow is the module of Spring for implementing flows.The Web Flow engine plugs
into the Spring Web MVC platform and provides declarative flow definition language.
Thursday, January 12, 2012
Why we use Spring core for software developments? Do we nessary it?
No. But Spring core provide a reconfigurable xml which supports for change objects dependencies externally without bulk code changes. That's the main advantage of using spring core.
Subscribe to:
Posts (Atom)
Let's try to build scrum masters/project managers/software architects/even a company with training AI models
The concept: The basic concept is to build trained AI model for each role separately in scalable fashion within a private cloud. As an examp...
-
Quarkus gRPC Service Implementation from the scratch Requirement In order to produce most reliable, fast and maintainable products we can us...
-
The concept: The basic concept is to build trained AI model for each role separately in scalable fashion within a private cloud. As an examp...
-
Problem Statement: Suppose the Government plans to issue up to $10,000 of Savings Bonds. Four individuals applied for a total of $18,000 of...