Lost in Translation...

16th

Nov-2008

Mailing and Telneting with PERL

Jerry Posted in Computer and Internet, Education, Fun, Geekiness, Linux & OpenSource, Network and Security, Testing, tech., work No Comments »

There are many tutorials on the net on how to use the Net::Telnet module to write a script that will automate a telnet session. Perhaps the best place is the CPAN site itself. Though all i needed was a simple script that did the job, i had to scour through many other sites for reference. Finally i’m done with the script that will telnet to the server collect the logs and then mail it to the id that i specified.

I wrote the working version as two perl scripts. I still dont know why i did that, may be for the simplicity sake.

  • log.pl  => does the telnet to retrieve the logs and mail it to me
  • run.pl => which runs the log.pl every hour

So here is the code -

log.pl

#!/usr/bin/perl
use Telnet;
# ---------------------------
$date = `date`;
chop $date;
$mailId = "jerry\@jerrymannel.com";
$cmd = "cat in.log | mail ".$mailId." -s \"Logs - ".$date."\"  ";
# ---------------------------
$host = "192.168.1.100";
$port = "2300";
$uid = "jerry";
$pwd = "password";
open $inputLog,  ">in.log";
$box = new Net::Telnet();
$box->open(     Host => $host,
                Port => $port,
        );
$iLog = $box->input_log($inputLog);
$flag = $box->login(    Name => $uid,
                        Password => $pwd,
                );
$box->print("co");
$box->waitfor('/# $/i');
$box->print("show load;show cpu");
$box->waitfor('/# $/i');
$box->print("show log");
$box->waitfor('/# $/i');
$box->close;
# MAIL section
system $cmd;
exit

run.pl

#!/usr/bin/perl
while (1)
{
        $date = `date +%M%S`;
        chop $date;
        #print $date." - ";
        if ( $date eq "0000" )
        {
                print "Sending the mail @ - ".(`date`);
                system("./logs.pl");
        }
        sleep(1);
}

The script was run on a Linux machine. So i neednt worry about the ‘date’ command and getting the date printed out in a fashion that i needed.

:) Drop in a line of you have more queries on the script. Always happy to help.


17th

Aug-2008

Single, Sex and Marriage

Jerry Posted in Advice, Attitude, Cultures, Education, Life, Love, ME, Marriage, Men, Religion, Sexs, Thoughts, Town & City Life, Women, family, friends 8 Comments »

Of late, especially after i booked my flat, my folks are after me, pressurizing every bit inside me to get married. Well, thought you should know, i’ve been a bachelor and i had my share of heart breaks and breakings. After the last one, i just decided to settle with the drunk chicks at the pubs or rather get’em drunk. But how the hell am i supposed to know that my folks were having such plans for me. Trust me, its tough to be a single, good looking, smart dark bachelor down south (i love vanity). The nosy neighbors and relatives makes sure that the juice is sucked out of you. Damn you Suckers!!!

The hard part is, you don’t get to choose or say a word beyond telling yes/no to the girls that they parade in front of you. I consider myself lucky, some guys i *knew* never even had that.

Son! THIS IS YOUR BRIDE! Marry HER!

Yes dad!!!

I mean whats the whole pressure thing about? I’ve been a really well spoiled bachelor so far, waking up and sleeping with the timings of people half-way round the world, eating anything that i could lay my hands on - stale breads, half-cooked spicy chicken curry that cleans your food-track once a month, Domino’s pizzas that run for 2 days etc. etc.. Now i’m being even more responsible by booking a flat (i need to mention that it was again pressure from folks). Now that i have a place for myself, the next thing that i need to concentrate is my career, blogging, make some money etc etc. I’m not ready to be tied down.

What are the odds, that the girl they pick for you is not gonna make your life miserable? Dad’s got a comeback for that too, “At least both the families are there to help you out with that”. Then why cant i just find someone with whom i’m comfortable with? Facts to be laid straight, yes they did take care of you for a long time, but do they have to pick up your partner too.

Am i ready to take the responsibility? Hell no! May be i would like to get married, after i know that person a bit more. If not, then jumping into marriage is no different than having sex, with her and your parent’s consent!

As a closing note, the last conversation with my dad ended with him telling me this -

“As a bachelor, you live like a King and die like a Dog, Once married, you live like a Dog and die like a King”

No idea who put that in his head, but i sure did got it out. Even my mom was left gaping after that dialogue.


11th

Aug-2008

If you can’t beat them, Mock’em

Jerry Posted in Attitude, Cultures, Education, Freedom, India, Law and Order, Life, Nation 12 Comments »

Blog Response to - If you can’t beat them, learn Kannada

There can’t be more than a handful of north-indians actually putting an effort to learn the language of the southies. If they are made to swear in the native language, or if they are forced to learn the native language then its only because they have forced it on themselves. So whats the big deal in Delhiites and Punjabis learning the local language. That’s not something to be hailed as their broadmindedness. But rather the result of their indifference and prejudice towards the southern states and their culture.

Lola Kutty in one of the episodes of Channel [V] I.Q. popped the question - Where is Kerala? Most of the answers were - ‘Somewhere in Tamil Nadu’. Now, how bad can it get. Civilized folks giving such a reply! That itself speaks about the apathy towards ‘Madarasis’. Ask an average office goer from south, the difference between a Punjabi and a Bihari, they would be witty enough to point out our Railway Minister and our PM.

Hindi is our National Language and folks from south did make an effort in learning the language. But i’m sorry, if they have a thick Malayali or Tamilian accent or if they add a ‘da’ to the end of every known question to man. Its utterly ridiculous to make fun of a person if he/she has an accent. You’re not British, you too have got a bloody crisp ‘d’, as in doe, doe-saa accent for ‘dosa’.

No language is enforced on anyone. Be polite to the hard earning auto-drivers and tell’em that you don’t know Kannada and they will help you. Rather than using your ‘decent-enough’ knowledge of the native language to get in and out of fights.

Hey wait a sec, lets talk about the cream of the industry, the IT world. You are taught to co-ordinate and collaborate towards a common goal. So lets all start to converse in English or rather Hinglish or Manglish or Tanglish. Down south an accent is not a big deal and nobody brags about it.

Scene 1 : One fine day, you are with your ‘good-english’ speaking northie friend and happen to meet a friend from your place. You speak to your friend in your tongue and the good northie samaritan aloo-paratha asks if you could make it in a common language. You and your friend struggle with the oddity of having to speak in a mixture of English+Hindi, just to make the other friend feel comfortable and not to make him feel like the odd one out.

Scene 2 : One fine evening, you join your good northie friend for a cup of tea. In walks his friend, they take off in hindi and you try to put the message across, the same way he did. 2 min into the conversation, your friend says, ‘Hey, you got a thick tamilian accent, its doe-saa and not dosha“.

Scene 3 : All four happen to meet at the same time. Northies take off in hindi and rambles on. You say a single line in your mother-tongue, Objection Your Honour!, ‘What are you guys talking about? All we can make out is pada-pada-pada-pada-pada-pada!!!’ or even worse ‘What are you guys talking about? All we can make out is - idly vada idly vada idly vada’

Now why is there such a sick behavior. Its not that we don’t know your language. Trust me down south 80% of the people in cities that you happen to come to, know Hindi, to a level that they follow you even if you are a Bihari or a Delhiite. Even still they simply choose to ignore as they feel, you come down south and ridicule them for what they are.

Bangalore would have been a truly international city, if the people who landed here could have given a little consideration to the local culture and people and rather not treat them as trash.

(Cross-posted here)


1st

Aug-2008

The Blogging Session Slides

Jerry Posted in Blogging, Education, Entertainment, Freedom, Friends Blogging, Geekiness, ME, Media, Mutiny.in, Report, Session/Workshop/Talk, blog, friends 1 Comment »

This one is a general intro to blogging. Its the same one that i did at Wipro but with modifications.

I have the Calvin and Hobbes theme for this one.

This is the Blogging for Business slides. Its Dilbert themed


1st

Aug-2008

Blogging Workshop at BIMTECH

Jerry Posted in Blogging, Education, Entertainment, Friends Blogging, Fun, Mutiny.in, Report, Review, Travelogues, tech. 5 Comments »

logo-BIMTECH Blogging Workshop at BIMTECHNever ever did i expect that something that i follow as a passion would get me a chance to conduct a session at one of the best business schools in north India.

Last week-end, i flew to Delhi and on Saturday i was at BIMTECH, Greater Noida, for a session on blogging and the monetary benefits of blogging. The E-Cell of BIMTECH had contacted Mutiny for help and i took the offer.

The session was planned at 6p.m.. You really have to appreciate the guys who study at b-schools, a session at 6p.m. was nothing for them. Other colleges too were invited for the workshop and there were indeed people present at that time of the evening on a Saturday evening.

The session kicked off after a brief intro about the speaker, ahhmmmm that’s me :), and about Mutiny and of collage-300x187 Blogging Workshop at BIMTECHcourse about my friend Mayank (yes its the StudioWordpress guy!!! - http://mayankgupta.com or http://mayank.info ). Mayank was supposed to be on time and help me out with the session, but he was caught up with an emergency Snooker game-session. Well he did turn up to save me for the last 30min :).

I started off at the same grounds from where i started the blogging session at Wipro. Telling them everything that i knew about blogging, etiquette, etc etc. But there was a flaw. Most of the people who were there didn’t know how to start a blog. By ’start a blog’ i mean they didn’t know even how to get a blog at blogger. The lesson - get to know the people and the requirements before we start.

So STOP!!! Get back to the basics. Took them through the live demo of setting up a blog in Blogger. So when all was set, and everyone was on the same page, we were back to where we stopped.

Mayank was just in time as i was getting warmed up with the business side of blogging. Talked about some of the ways that i knew about making money out of blogging. Though i have to mention that i’m too lazy for a blogger that i don’t earn as much as others do, out of blogging.

The idea of a community blog was something new to them. The facts on how Mutiny has grown and maintains itself interested them.

After that it was Mayank’s turn to help everyone with the things that he knows. The way he earns his living was interesting to listen to and i’m quite sure that it would have opened up some idea for those who were listening.

The fact that interested me a lot was the volume of idea that people had for blogging. They all wanted to blog for so many reasons and they just wanted to know how.

Put together the session was one that’s one of the most memorable. I’m taking back some very valuable learnings and some ideas with me.

More pics here

BloggingWordshopAtBIMTECH Blogging Workshop at BIMTECH
Blogging Wordshop at BIMTECH

If any BIMTECH guys are reading this, i would like you to give me you feedbacks and comments too .. :)

(Cross-posted here)


12th

Jun-2008

Deadly Competition

Jerry Posted in Advice, Cultures, Education, Entertainment, Freedom, Life, Men, Religion, Town & City Life, Women, family, work 1 Comment »

What we do these days involves competition. No matter what. A a kid we race to the gate and back. As teens we race our bikes. As adults we race against time and colleagues. The time that we live in Competition is viewed as the source of creativity and self improvement. As a kid we are expected to be the top scorer in the class, not the smartest, as teens we are expected to be responsible but not creative and as the workforce we are expected to bring in profit and not innovation.

Why does competition has to be so bad? Slowly but steadily everyone starts to keeps expectations out of you and keeps reminding you about that. You fall victim to it losing your creativity. Its because we want to beat that record and get our names in there. We benchmark every thing everyday, we fall into The Curse of Great Expectation.

But what about creativity? If i have ever done anything that is creative or innovated an idea, its because i didn’t take part in a race. On the same grounds i hate taking exams too. Exams for me is again about breaking records and false derivatives. With time being most valued, exams seems to be the only way people want to find talents.

There is a trend with the organizations now. They are still competing and very much in the race. They do it in more ‘innovative’ ways. They ask you to just innovate and come up with some thing very brilliant. Even if you didn’t mean that to be part of any race or drive the race. Its used by the organization to outrun their competitor.

The human cost to win the organization’s race or the cost of health on onself is often disregarded. But what happens to those who stay out of the competition and decide to be .. uhh .. say free. They have immense potential to be creative and inventive. But why don’t they?.

The Society is stereotyped in believing that competing is the best way to progress. So much of the things that these so called ‘free birds’ innovate are considered inferior. They eventually gets into the race to survive or fall.

I knew of a person during my college days. He was this extra brilliant guy. There wasn’t much that he couldn’t answer about technology. Few professors realized his potential. But but the rest of the folks were unforgiving. Had the mentoring right he wouldn’t had to settle for a rather uhhh normal techie kind of job with an average company.

Its time we wake up to say no to the unwanted competitions around us.


28th

May-2008

“Geeky & Funny”, Should be the NEW Mantra of Technology!!!

Jerry Posted in Computer and Internet, Education, Entertainment, Fun, Geekiness, IT Industry No Comments »

http://www.jebers.com/images/cartoon_geek.pngThe very first white-paper i wrote was christened - “How to extend your tea-breaks using Scripting“. Introduction started of like this -

The ‘real’ Reason…

Like every other employee, i’m at the liberty of two tea-breaks. But you just can’t spend more than 10min on a tea-break. The work was so much that squeezing even a minute, looked like a distant dream. I would have just given anything to get that break extended.

My savior was Scripting. It helped me automate the routine manual work that was involved, and i had an extra 30 min for tea-breaks.

The question is why did i resorted to write something that was meant to be formal in such a way. I had seen couple of white-papers well written and talking about some real good technologies. Many of them carried that heavy aura of being too technical and very formal, which i felt was deterring my interest in that paper. Unless and until you are someone who is really interested in reading about that particular field of technology you wont feel like reading what that guy has written. Why does it have to be always like that?

In fact technology should be fun in learning and in presentation. When the fun factor is thrown out of the window its becomes serious, boring and well at that point people starts calling its “geeky”. Throw in a few funny statements and make it more pleasing to read and i bet you will get a better audience for the things that you want to communicate.

It can turn sloppy if you are not careful enough to make the point. The message should be loud and clear. But shouldn’t be boring. Take Al Gore’s video on Global Warming - An Inconvenient Truth - for example. Though not technical or geeky, its the best testament to what i have said. The message reached everyone. You wont feel disinterested because, he puts on his witty-shoes in between and is careful enough to avoid them so that it doesn’t start sounding bland.

Still many are prejudiced against this form of presentation and communication. Why cant we use a bit of humor to build the interest in a topic. The first reaction i got for my paper was, ‘does it have to sound so funny?’. I stood by what i believed and submitted the white paper. Felt so good. But it never got selected. But hey! who ever read the title has read the whole paper. I can guarantee that.

Many a times i wondered why do people call things geeky? Its not because it was something that they couldn’t fathom. But it’s because some one made the technology formal and boring. This applies to the online tutorials as well. Why? Why? Why? Why does all theses neat technologies have such a very formal write-ups?

So come one guys we neednt be so formal with technology and ideas. Lets make learning FUN.. :)


23rd

May-2008

Tete-a-tete with CTO of Xerox

Jerry Posted in Computer and Internet, Education, Geekiness, IT Industry, Media, News and politics, Science and Tech., tech. 2 Comments »

scobleizer-tv Tete-a-tete with CTO of Xerox

Scobleizer has done this video, a talk with the CTO of Xerox, Sophie Vandebroek at Palo Alto Research Center.

She has talked about some really interesting things.

Xerox as i knew was just about making ‘xerox’ copies. The term Xerox has now become synonymous to make a copy. But the real Xerox is into many more fields like Biomedical, clean water, etc.

She says, “Its fun to work in Xerox because we create the Future, Today!!!” and “We no longer makes copiers…”. WOW!!!


6th

May-2008

NDTV Covers Blogathon

Jerry Posted in Blogging, Computer and Internet, Cultures, Education, Entertainment, Freedom, Friends Blogging, Government, Nation, News and politics, Report, blog, blogaloreans, blogathonindia, blogathonindia1 No Comments »

Finally the Bloggers made their presence felt through Blogathon. Some of them were featured in NDTV.

Here is the clip from Youtube.

:-)


6th

Apr-2008

4 Important books for a bachelor…

Jerry Posted in Books, Cultures, Education, Fun, India, Kerala, Life, Rubbish, Sexs, Town & City Life, friends, reading 3 Comments »

01022008247-300x225 4 Important books for a bachelor...This was the set of books that i found at my friend’s place…

1. Kamasutra

2. Bhagawat Gita

3. The Da Vinci Code

4. Word Power made easy.

Nice combo of books … :) .. All necessary for a good living