Sunday, January 23, 2011

Prespective of Programming

Read code on the internet and understand some source code from real projects.
  1. bitbucket.org
  2. gilhub
  3. launchpad.net
  4. koders.com
[skill you develop - finding source code for things you need ]

Wednesday, January 19, 2011

Saturday, January 15, 2011

Shell

In Linux Shell means Command interpreter

Que.   How to find out current shell name?
Ans.   # cat /etc/shells      (for all shell in system)
          # echo $SHELL       (for current shell name)

Basic command line editing:
  • ctrl+l         (clear the screen)
  • ctrl+u        (clear the line)
  • ctrl+r        (search through previously used commands)
  • ctrl+c        (cancel currently running command)
  • Tab           (auto complete)
  • Up and Down arrow  keys  (recall command that previously used)
  • try ESC and .(period)

Monday, January 3, 2011

Basic Hacking skills

  1. Learn how to program.
  2. Get one of the open-source project and learn to use and run it.
  3. Learn how to use the world wide web and write HTML.
  4. If  you don't have functional English, leaarn it.
                     You need to learn how to think about programming problem in a general way. Independent of language, books and courses won't do it. Most of best hackers are self-taught. You can learn language features bits of knowledge from books, but the mind-set that makes that knowledge into living skill can be learned only by practice and apprenticeship.

Saturday, January 1, 2011

Hello World compared in C# and IronPython

A small Hello World app in C#

using System;
class Hello
{
private string _msg;
public Hello()
{
_msg = "Hello World";
}
public Hello(string msg)
{
_msg = msg;
}
public void SayHello()
{
Console.WriteLine(
_msg);
}
public static void Main()
{
Hello app = new Hello();
app.SayHello();
}
}


Equivalent in IronPython

class Hello(object):
    def __init__(self, msg='hello world'):
        self.msg = msg

        def SayHello(self):
           print self.msg

app = Hello ()
app.SayHello()