Windows Live Writer Test Post

I could feel her heart beat. It was racing up. Her breathing became heavier with each passing moment. She held me tight and squeezed her against me.Inching closer, i felt her lips against mine. I slipped into sweet seduction.I could feel her heart beat. It was racing up. Her breathing became heavier with each passing moment. She held me tight and squeezed her against me.Inching closer, i felt her lips against mine. I slipped into sweet seduction.

Image078 thumb Windows Live Writer Test Post I could feel her heart beat. It was racing up. Her breathing became heavier with each passing moment. She held me tight and squeezed her against me.Inching closer, i felt her lips against mine. I slipped into sweet seduction.I could feel her heart beat. It was racing up. Her breathing became heavier with each passing moment. She held me tight and squeezed her against me.Inching closer, i felt her lips against mine. I slipped into sweet seduction.

  • I could feel her heart beat.
  • I could feel her heart beat.
  • I could feel her heart beat.

Windows 7 – First Look

The new laptop that i bought for my fiancee was an HP Pavilion dv4 that was shipped with Windows 7. So i got to have a look at Windows 7.

Though a linux fan, i had to see what Microsoft was offering with its Windows 7. Well to start with it looks and feels like its older brother Vista. Oh ya, i remember someone telling me that Windows 7 is noting bug Vista with bug fixes. So here are some of the screen shots that i took.

icon smile Windows 7   First Look look at the IE8 image. It broke the Mozilla homepage, but FireFox displayed it perfectly.

An ‘Electric’ Bill

I actually got zapped when i held the electricity bill for the month. It was not just 100 bucks more, nor was it twice. It was bloody 4 times the monthly average.

Don’t believe me? Let me just put it into perspective -

powerconsumption1 1023x508 An Electric Bill

icon sad An Electric Bill i just dont know where i went wrong … Oh great god of Al Gore, please forgive me ..

Update – 19th July 2009

Epilogue :  Got the bill corrected. The jackass from BESCOM, read 691 as 891 and billed me for that. BESCOM officials where really helpful to get the bill annulled and issue me a new bill without any delay. Thanks BESCOM dept. at Belandur and Kudlu Gate icon smile An Electric Bill

The New Look and Year 2009

Phew!!! .. Yes Phew. Its the first word that i chose to start the first post of the new year. Well technically new year was almost a month ago, still from the ‘first post of the year’ point of view, its still new year. Oh crap, that line was awfully jumbled up. Hey but i dont mind that line being like that, i dont want to read through that line again and then rephrase it and make it more vivid. No i dont want to do that.

So what happened? I took my blog to the drawing board. 25th Dec ’08 christmas eve, i decide to redesign this blog. Though the previous design was very simple and required less than 3-4 hrs to come up with, this one took nearly 4 weeks. Shit! that was like a month.

Made a sketch of it on paper, then to photoshop, then back to the layout on paper, back to photoshop. I designed one layout and when i looked at the finished one, i almost puked. Then redesigned the whole thing and here it is the new look.

On paper this is how the design looked like

18012009001 300x225 The New Look and Year 2009

Then i decided to have the sidebar to the right. The first version on Photoshop looked like this and i hated it

v 1 246x300 The New Look and Year 2009

Then i struck the right note with this one.

v 2 300x292 The New Look and Year 2009

Then it was the wrestle with stylesheets and upgrading the then current SIM3.0 to this one,which i call SIM4.0. Lets talk about the changes,

1. Latest Twitter updates on the header – i basically took the HTML badge given by twitter and put the code there.

2. Sidebar will now sport the pages with a logo for each. I disabled the widget functionality of the sidebar.

3. The Footer -This is where most of the work went into. I mutated the footer to have 3 columns. Into these columns i can add the widgets. It was quite simple infact once i figured that out.

The main footer file is – footer.php. Each of the 3 columns are again separate php file. The main footer.php calls these files like this -

<?php include (TEMPLATEPATH . '/1-footer.php'); ?>
<?php include (TEMPLATEPATH . '/2-footer.php'); ?>
<?php include (TEMPLATEPATH . '/3-footer.php'); ?>

to make each of these accept widgets, this line was added -

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(3) ) : else : ?>

The ‘dynamic_sidebar(3)’ made it sidebar-3 in the add widgets page. It was joy when i figured this out. I know i could have referred the WordPress manuals. But then i wont get the joy of discovering things.

4. My CSS is split into two. Why? One for all the browsers and one for IE. I officially label IE as a pain. This is what i observed. An image was to the left in Firefox, but to the right in IE. “margin-left:100px” put something in the middle for Firefox and at the page boundary in Internet Explorer

Any way after all that pain, now i have the site up with the new look and it feels GREAT!!!

Happy New Year Guys…

- xxx Jerry -

Telnet Scripting Tool a.k.a TST10.exe

I have been thinking for a long time that i need to write about this tool that i found. Its quite interesting that this tool is really helpful in automating many of the routine sessions that i as a tester came across. This is by far the best automation tool that i found for telnet sessions.

Imagine these scenarios :

  • You need to do BSO authentications frequently when you switch networks
  • Get intermittent logs from the server for analysis
  • Run automated tests on remote systems (something which i have started to call as run-and-forget)
  • stuck in traffic…no way

Lets get into what this tool is and how to use it.

The tool is for windows (one of the things that i felt bad). To make use of this tool, u will need the exe file, i.e., tst10.exe and an input commands file. The input file will has the first line as the hostname/IP and port, which is followed by alternating SEND and WAIT commands.

Consider this example. I need to connect to a server of IP – 192.168.1.100, where a telnet service is running at PORT – 2300. This is how my script/input file will look like :

192.168.1.100 2300
SEND "\m"
WAIT "login:"
SEND "admin\m"
WAIT "Password:"
SEND "admin1\m"
WAIT "s1#"
SEND "co\m"
WAIT "s1(config)#"
SEND "show load; show cpu\m"
WAIT "s1(config)#"

“\m” = \n in C/PERL/Java/most programming langunages = CR or in non-techie terms “Enter”. SEND, sends the commands to be executed and the WAIT that follows tried to match the string in the output of the SEND commands before it.

How to run it?. There are 2 ways to do it. You can open up the command prompt navigate to the directory where the files are and then issue this command -

tst10.exe /r:IN /o:OUT

where IN is the input file and OUT stores the complete output of the session, so that you can skim through the file and have a look at what happened. OR, put the command in a batch file and double click it every time you need to run it.

Here is the screen capture -

tst10 Telnet Scripting Tool a.k.a TST10.exe

TST10 Screen Capture

How is it different from Net::Telnet module of Perl or something similar in TCL or Python? Think about it.

  • Time to write the code – 30min to ? depending upon how complex the situation is
  • Trying to match the output to with REGEX, which means that you need to spend time in coming up with the right regex. Now you have 2 problems in hand
  • Testing time to make sure that the script is robust enough

So this is perfect! NO. This doesn’t work for ssh sessions. Since telnet is getting substituted by ssh in most of the servers due to the secure nature of the connection its kind of difficult to fit it in a normal installation of Linux. I’m not sure about the telnet-ssh thingie happening in Solaris or any of the other servers.

Is there something like this for Linux? icon sad Telnet Scripting Tool a.k.a TST10.exe No. Hey, but look at it this way. Its some relief for us on windows platform for scripting.

You can build complex automatons with this combined with a little bit of Perl and Outlook. Here is one typical scenario that i made and which i have presented as a white-paper.

  • Outlook has a setting that detects for incoming mails with a specific subject line.
  • When the mail comes it evokes a Perl script.
  • The Perl script will go ahead an call the TST’s batch file, which initiates the TST10 session, connects to the remote server starts/runs the automation. The output will be stored in OUT file
  • The Perl script will skim the OUT file for any errors reported during the run.
  • Then it calls an FTP script that will go ahead and get the log files from the remote system
  • The log files are read, the results extracted and neatly formatted into mail and send to the required email-ids

icon smile Telnet Scripting Tool a.k.a TST10.exe sounds complex, but this script gave me enough time to hut for a new job and quit the previous employer.

Who wrote this? Someone by the name of Albert Yale. His home page is – http://ay.home.ml.org/, sadly the site is no longer online.

What happened to the white-paper? It got rejected icon wink Telnet Scripting Tool a.k.a TST10.exe , humor was not the order of the day.

Download TST10 : tst10.exe | tst10.zip