EeePc Initial Reactions

Last Friday i bought an EeePc for my brother. I have heard a lot about this little master, or rather monster, but i had to see it for myself, what it could really do?logo EeePc Initial Reactions

Got it home and the first thing i do, hook it on to the wifi – a plus over there. Then it was time for some serious browsing. Did that and the only thing that i found a bit difficult was typing. C’mon the entire keypad fits in my palm and how am i supposed to type. But still again a plus. One of the things that i need to do from a usability point of view, for any Linux box, is to play movies. Plugged in my thumb-drive and double clicked a movie. Cool! just played it just like that, without any problem.

So far EeePc has impressed me in more ways than most girls have ever done. But word of caution, if u r a linux junkie who likes to get your hands dirty by doing – ./configure; make; make install- then EeePc is not the one for you. Coz it has everything that you need for a, err say and over sized mobile with out the calling facility. (one of the reasons why i goes to my brother icon smile EeePc Initial Reactions )

My initial reactions with EeePc has been captured with the inbuilt cam like this -

image 00000 300x225 EeePc Initial Reactionsimage 00001 300x225 EeePc Initial Reactionsimage 00002 300x225 EeePc Initial Reactionsimage 00003 300x225 EeePc Initial Reactions

Here are somethings that i have tried out on EeePc -

  1. Locate the Terminal (this is fun, coz u really need to know linux like your backyard to locate this)
  2. Write a “Hello WorldPython program (this was written at Barcamp Bangalore 8 )

icon wink EeePc Initial Reactions

 EeePc Initial Reactions

Useful Python Snippets

My love for Python has indeed grown with the constant usage. Each day i find something that is really interesting with that. By interesting i mean, C will complain and whine if i do that, PERL say ‘lets give it a try‘ and Python is like, ‘C’mon baby, i’m ready!!!’.

My advice to good C/C++ programmers is that, stay the way you are, picking up PERL / Python will screw up you skill. C is like the wife with whom you have to be loyal, Python is like the liberal girlfriend, who lets you flirt with other girls and wouldn’t mind.

Coming back to the purpose of this post, here are some of the snippets that proved useful to me and could also help you out with in your scripts -

File to List – Move the contents of the file in to an list, line by line

list = ([line for line in open ( "names.txt", "r")])

Pattern Matching – the only thing that i miss in Python is the regexp usability that PERL gave me. Some how i feel that using regexp was a lot more easier with Perl, than with Python

# import the regex pacakge
import re
#create the regex object
pattern = re.compile("error")
# search for pattern
re.search(pattern, sampleString)

re.search return TRUE / FALSE depending on the result, so that it can be used along with if <> : clause

Detecting the OS and creating directories – this helps to solve the variation in the Windows directory navigation (..\\..\\) and the Unix style navigation (../../)

# import OS packages and time package
import os, time, sys, os.path
# create a unique directory name based on the time
dirName="Run-"+time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime())
# detect the OS
if os.name == "posix":
    logPath = "../../logs/"
    resultsPath = "../../results/"
else:
    logPath = "..\\..\logs\\"
    resultsPath = "..\\..\\results\\"
# create the directories
os.mkdir(logPath+dirName)
os.mkdir(resultsPath+dirName)

String is like a List – the best part of Python

str = "Hello"
# will print H
print str[0]

Happy scripting, and i hope this will be helpful to some … icon smile Useful Python Snippets

How to Start a Blog?

I have been blogging since 2006 and looking back, i’m feeling euphoric that i had picked up this hobby. But time and time again, i come across people who doesn’t have an idea what a blog is or how to start blogging. They are particularly clueless where to start. The fact is that they all know that blogging involves writing, but they don’t know where to start. Today too, i was asked twice by people as to how to start blogging.

So i finally decide that its time for me to do a writing as to – ‘How to Start a Blog?’. Don’t worry, its EASY! Its a 2 step hassle free process -  blogger How to Start a Blog?

Step – 1

Get youself registerd at one of the blogging sites like – WordPress, Blogger, TypePad, LiveJournal, Rediff etc.

Step – 2

(this is from a WordPress perspective) Click on “NewPost”, Enter a title for your post -> write -> Add this under a category -> Publishtypepad How to Start a Blog?

DONE!!!

Couple of things that u need to be aware of -

  1. You are not a star overnight – unless of course you are Aamir Khan / Amitab Bachan – Be patient and keep posting
  2. Don’t worry about the way you write, trust me, no one is a born Shakespeare (please don’t ever ever write like Shakespeare) – Keep writing, you will improve
  3. You wont get comments as soon as you do a post, for that u need to look at point 1 – Be patient and keep writing
  4. Read others blogs and comment and reply – This will lead to point 1 and 3 and help you with 2
  5. Don’t hesitate to write and be prepared for any comments.

The only way to get noticed is to keep writing and commenting, build you network in small steps. If u dont want to get noticed, its ok, still keep writing for what ever reason it may be – Bitching about you boss, writing about your love – to anything…logo How to Start a Blog?

icon smile How to Start a Blog? Happy Blogging.

I had done couple of Blogging sessions at WIPRO and at BIMTECHhere is the link to the slides