Sunday, 7 July 2013

Shebang

In computing, a shebang, when it occurs as the initial two characters on the initial line of a script, is the character sequence consisting of the characters number sign and exclamation mark (“#!”).
Syntax:-
The form of a shebang interpreter directive is as follows:
            #! Interpreter [optional - arg]
The interpreter must usually be an absolute path to a program that is not itself a script. The optional – arg  should either not be included or it should be a string that is meant to be a single argument
Some typical shebang lines:
Ø  #!/bin/sh – Execute the file using sh, the Bourne shell, or a compatible shell
Ø  #!/bin/csh –f – Execute the file using csh, the C shell
Ø  #!/usr/bin/perl –T – Execute using Perl with the option for taint checks[‘feature which increase security by preventing malicious users from executing commands on a host computers.’]
Ø  #!/usr/bin/php – Execute the file using the PHP command line interpreter.
Ø  #!/usr/bin/python –O – Execute using Python with optimizations to code
Ø  #!/usr/bin/ruby – Execute using Ruby

Another and more preferred way  is:

           #!/usr/bin/env python
 

Thursday, 16 May 2013

Python IDEs


Eclipse and PyDev

                Eclipse is an advanced open-source IDE GUI. Originally developed as  a Java IDE. It also support python Development when PyDev plugin is installed. Eclipse is a powerful and popular option for Python development which includes support for code completion, syntax highlighting, syntax analysis, refactoring and debugging and more. Its downsides it that it is large system to install and may require shareware extensions for some features.

Komodo
                A  full-featured environment for Python development . it includes standard syntax-coloring, text-editing, debugging and other features. It also offers many features which includes project files, source-control integration, regular-expression debugging, and drag-and-drop GUI builder that generates Python/tkinter code to implement the GUIs you design interactively. It Is Multi-language IDE with support for Python 2.x and Python 3 and works on Windows/Linux/Mac OS X Platforms.

NetBeans IDE for Python
                NetBeans is a powerful open-source development environment GUI with support for many advanced features say code completion, code refolding, refactoring, debugging, code coverage and testing, projects and more. It may  be used for CPython and Jython code development. Platform: Linux, Mac, Solaris, Windows.

Python Win
                It is a free Windows-only IDE for python that ships as part of Active’s State Active Python distribution. It is roughly like IDLE with a handful of useful Window –specific extension added.

Wing IDE
                Wing IDE is a powerful development environment for python programming language. It has a code browser, syntax coloring, code completion, call tips and other code intelligence features. There is also a full-featured editor with optional emacs key bindings and powerful debugging tools. Wing IDE allow you to debug CGI scripts. Python code running under Zope and Plone, embedded python code and stand-alone applications. It has two levels: -Wing IDE Pro and Wing IDE Personel.

For more info :- http://www.wingware.com/

Wednesday, 27 February 2013


   Event Report: An Introduction on Robotics and its application

A workshop was organised jointly by USIC and LMC on Robotics during 18th-21st February 2013
On First day, A quick inauguration session was organised led by J.R Bishnoi (USIC) and then there is lecture by Mr. K.R. Chowdhary on the introduction to Robotics and then there is lecture on Introduction on Electronics  by Mrs.  Veena Bhatia.
These two lecture gives us the quick revision of the basics of the robotics and Electronics.


On Second Day, there is 2 quick lecture. One of them is on Concept of microcontroller by Dr. Mukesh Upadhyay and then there is lecture by Mr. Alok singh gehlot who demonstrated the type of robots which he created and that can be created by others. Then there is some practicals organised by Mr Gunjan Mathur.
These lectures demonstrated of the kind the robots that can be created using microcontrollers and what are component will be need for them.


On the Third Day, there is 2 lecture based on the microcontroller and robotics with its application by Dr. Mukesh Upadhyay and  Mr. Alok singh gehlot .
These lectures give us the complete knowledge microcontrollers and details of their components.


On the fourth day, there is last session by Mr. Rajesh Purohit who shows the classification of Robotics parts (Sensors, Actuators etc) and then there is closing ceremony which was led by Mr. R.L.Mathur (Principal LMC).
Thanks to the Organising committee for organising such an event..

Photo-set of the event is available here....



Monday, 28 January 2013

C# - How it's all about


·         C# is one of the languages used to create applications that rum in .NET CLR.
     
      It is an evolution of the C and C++ languages and has been created by Microsoft to work with the .NET platform.

·         Developing applications using C# is simpler than using C++, because the language syntax is simpler.

·          C# is a powerful language, as those features of C# parallel the features of C++ such as directly accessing and manipulating system memory, can only be carried out using code marked as unsafe.

·         C# code is slightly more verbose than C++. This is a consequence of C# being a type-safe language. 

Friday, 25 January 2013

DOT NET: How it works:


     Application code is written using a .NET – compatible language language such as C#
     
T   That code is compiled into MSIL, which is stored in an assembly.
   
   When  this code is executed (either in its own right if it is an executable or when it is used from other code), it must first be compiled into native code using a JIT compiler
   
   The native code is executed in the context of the managed CLR, along with any other running applications or processes.