Sunday, February 27, 2011

why should we use python

1. Although no one language is the right choice for every possible situation, Python is a good choice for a large number of programming problems.

2. It’s a true cross-platform language, running equally well on Windows, Linux/UNIX, and Macintosh platforms, as well as others, ranging from supercomputers to cell phones.

3. It can be used to develop small applications and rapid prototypes, but it scales well to permit development of large programs.

4. It comes with a powerful and easy-to-use graphical user interface (GUI) toolkit, web programming libraries, and more. And it’s free.

5. Python is a very expressive language. Expressive in this context means that a single line of Python code can do more than a single line of code in most other languages.advantages is the fewer lines of code you have to write, the faster you can complete the project. the easier the program will be to maintain and debug.

6. Python is easy to use. Types are associated with objects, not variables.
Python typically operates at a much higher level of abstraction.  Syntax rules are very simple.


What Python doesn’t do as well :

1. Python doesn’t have the most libraries.
2. Python doesn’t check variable types at compile time.
         >>> x = “2”
>>> print(x)
'2'
>>> x = int(x)
>>> x = int(x)
2                                 (x is now integer 2)

3. Python is not the fastest language.

                         A possible drawback with Python is its speed of execution. It isn’t a fully compiled language. Instead, it’s first semicompiled to an internal byte-code form, which is then executed by a Python interpreter.

                  There are some tasks, such as string parsing using regular expressions, for which Python has efficient implementations and is as fast as, or faster than, any C program you’re likely to write. Nevertheless, most of the time, using Python results in slower programs than a language like C. But you should keep this in perspective. Modern computers have so much computing power that for the vast majority of applications, the speed of the program isn’t as important as the speed of development, and Python programs can typically be written much more quickly.

Python is a modern, high-level language, with many features:
  1. Dynamic typing
  2. Simple, consistent syntax and semantics
  3. Multiplatform
  4. Well-planned design and evolution of features
  5. Highly modular
  6. Suited for both rapid development and large-scale programming
  7. Reasonably fast and easily extended with C or C++ modules for higher speeds
  8. Easy access to various GUI toolkits
  9. Built-in advanced features such as persistent object storage, advanced hashtables, expandable class syntax, universal comparison functions, and so forth
  10. Powerful included libraries such as numeric processing, image manipulation, user interfaces, web scripting, and others
  11. Supported by a dynamic Python community
  12. Can be integrated with a number of other languages to let you take advantage of the strengths of both while obviating their weaknesses.

Thursday, February 24, 2011

what is a Port Number

                  A port is a communication point where one or more computers in a network communicate with each other through a program or software. There are about 0-65535 ports assigned to do specific tasks in a PC. Most ports operate with TCP or UDP protocol.

                Port numbers are assigned by an organisation called IANA  and ports are allocated to various needs to avoid confusion.

Ports are classified into 3 main categories..
    * Well Known Ports (Port numbers 0 - 1023)
    * Registered Ports (Port numbers1024 - 49151)
    * Private or Dynamic Ports (Port numbers 49152 - 65535)

Well Known Ports :
              Well known ports are used by system or processes run by root or with specific previleges. The port numbers range from 0 to 1023.

Registered Ports :
               The registered port numbers range from 1024-49151. Such ports are used by programs run by users in the system.

Private/Dynamic Ports :
               Private ports are not assigned for any specific purpose. its range are from range 49152–65535

some important port number :
  21 --- FTP
  23 --- Telnet
  25 --- SMTP
  53 --- DNS
  68 --- DHCP
  80 --- HTTP
110 --- POP3
119 --- NNTP
123 --- NTP (Network time protocol)
139 --- NetBIOS
161 --- SNMP
389 --- LDAP (Lightweight Directory Access Protocol)
443 --- HTTPS (HTTP over SSL/TLS)
443 --- SSL (https) (http protocol over TLS/SSL)
220 --- IMAP3
2049 --- TCP/UDP

For more info click here

Friday, February 18, 2011

after reinstalling OS in my phone

Application:
  1. vim
  2. firefox
  3. opera
  4. gpodder
  5. gnumeric
  6. fm radio
  7. timed silencer
  8. espeak caller
  9. evince (pdf)
  10. subtittle support
  11. nmap
  12. wallpaper tweak
  13. Extended call log
  14. appdownloader
  15. photorec (photo recover)
  16. Adblock plus
  17. ogg support
  18. theme customizer
Games :
  1. angry bird
  2. Spb
  3. Brain party
Player :
  1. SM player
  2. some player
  3. KM player
  4. Media box
  5. SiB
  6. msid
Theme :
  1. matrix
  2. android
  3. Meego
Applet :
  1. wifi switcher
  2. 3G/2G/Dual mode selection
  3. LED pattern editor
  4. simple brightness applet
  5. wi-fi signal applet
Widget :
  1. personal IP
  2. Calender Home Widget
  3. DateToday Widget
  4. custom operator name 
  5. camera lens
  6. headphone daemon
  7. recaller
Eagerly required :
  1. Maps
  2. java
  3. Zip utility
  4. rootish
  5. free k office
  6. Dictionary
  • Arrange 2 desktop
  • Organise main menu

Friday, February 11, 2011

Sunday, February 6, 2011

Awesome Search Engines

                                                                                  Wolfram Alpha (styled Wolfram|Alpha) is an answer engine developed by Wolfram Research. It is an online service that answers factual queries directly by computing the answer from structured data, rather than providing a list of documents or web pages that might contain the answer as a search engine would.

2. Qwiki :
         A new search engine spews out results in the form of a complete multimedia presentation comprising audio, video, text and photo.      

                          DuckDuckGo is a search engine based in Valley Forge, Pennsylvania that uses information from crowd-sourced sites like Wikipedia. The search engine philosophy emphasizes privacy and does not record user information. (bye bye GOOGLE)


4.  localti.me – know more than just the local time of a city

5.  topsy.com – a better search engine for twitter.

6 . iconfinder.com – the best place to find icons of all sizes.

7.  woorank.com – everything you wanted to know about a website.

Wednesday, February 2, 2011

Python's high-level toolbox

           Unlike some scripting languages,  Python's high-level toolbox makes Python useful for
substantial development projects. Some of the things i find is given below:

Dynamic typing
     Python keeps track of the kinds of objects your program uses when it runs; it doesn't require complicated type and size declarations in your code.

Built-in object types
     Python provides commonly used data structures such as lists, dictionaries, and strings, as
an intrinsic part of the language; as we'll see, they're both flexible and easy to use.

Built-in tools
     To process all those object types, Python comes with powerful and standard operations, including concatenation (joining collections), slicing (extracting sections), sorting, mapping, and more.

Library utilities
      For more specific tasks, Python also comes with a large collection of precoded library tools that support everything from regular-expression matching to networking to object persistence.

Third-party utilities
      Because Python is freeware, it encourages developers to contribute precoded tools that support tasks beyond Python's built-ins; you'll find free support for COM, imaging, CORBA ORBs, XML, and much more.

 Automatic memory management
         Python automatically allocates and reclaims ("garbage collects") objects when no longer used, and most grow and shrink on demand; Python, not you, keeps track of low-level memory details.

Programming-in-the-large support
          Finally, for building larger systems, Python includes tools such as modules, classes, and exceptions; they allow you to organize systems into components, do OOP, and handle events gracefully.

Python is widely used in cyber world..

1. High Performance Computing (HPC)
  • Parallel Python (pp) module 
  • PyMOL 
  • VTK 
  • SciPy 
2. Browser
  • Django 
  • Writing a django app 
  • TurboGears 
  • CherryPy 
  • Zope 
  • Writing a Zope product 
  • Plone 
  • Writing a plugin for trac 
3. Web Services
  • XMLRPC 
  • simplexmlrpcserver 
  • xmlrpclib 
  • SOAP 
  • Flickr (Beej's API?) 
  • Google Calendar/GData (w/ ElementTree) 
  • Amazon 
  • Yahoo 
4. System Administration
  • SNMP 
  • LDAP 
  • python-ldap 
  • Luma (extending?) 
  • User/Group management 
5. GUI Frameworks
  • wxPython 
  • PyQT 
  • PyGTK