tag:blogger.com,1999:blog-4176300740656439822024-02-07T11:49:11.830+05:30Techila"Absolute Useless Blogs Of An Errant Mind"██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-417630074065643982.post-79695090649377693882015-08-30T08:38:00.002+05:302015-08-30T08:40:50.328+05:30Mac OS X Disk Utility Restore Input Output Error<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial,Helvetica,sans-serif;">Goal was to create the bootable back up of current Mac OS X (Snow leopard) on external USB HDD.<br /><br />I took inbuilt disk utility approach (time machine is an another option) and fired the standard procedure. 1 hour 20 minutes were left in the completion and then a pop up with below error.</span><span style="background-color: white;"><span style="font-family: Arial,Helvetica,sans-serif;"> </span></span><br />
<br />
<blockquote>
<blockquote class="tr_bq">
<span style="font-family: Arial,Helvetica,sans-serif;"><span style="background-color: yellow;">Could not restore - Input/output error</span> </span></blockquote>
</blockquote>
<span style="font-family: Arial,Helvetica,sans-serif;"></span><br />
<blockquote>
<span style="font-family: Arial,Helvetica,sans-serif;"></span></blockquote>
<span style="font-family: Arial,Helvetica,sans-serif;">A little googling and most of them were in favor of corrupted HDD. Ran multiple times verify/repair disk on both external and local HDD with positive results. <br /><br />Time for back up and still same error!! Frustrating!! <br /><br />This time decided to debug and peeked into <b>DiskUtility.log</b> (available in console app). Pop up error was misleading, actual error was </span><span style="font-family: Arial,Helvetica,sans-serif;"></span><br />
<br />
<blockquote>
<blockquote class="tr_bq">
<span style="background-color: yellow;"><span style="font-family: Arial,Helvetica,sans-serif;">could not copy /./usr/X11/lib/X11/fonts/100dpi/fonts.dir; Input/output error</span></span><span style="background-color: yellow;"><span style="font-family: Arial,Helvetica,sans-serif;"> </span></span></blockquote>
</blockquote>
<blockquote>
<blockquote class="tr_bq">
<span style="background-color: yellow;"><span style="font-family: Arial,Helvetica,sans-serif;">Bom copy exited with error 5</span></span> </blockquote>
</blockquote>
<blockquote>
<blockquote class="tr_bq">
<span style="background-color: yellow;"><span style="font-family: Arial,Helvetica,sans-serif;">Could not restore - Input/output error </span></span></blockquote>
</blockquote>
<span style="font-family: Arial,Helvetica,sans-serif;"><br />"<b>fonts.dir</b>" file was corrupt as copying to home directory was giving same input/output error.<br /><br />On opening the "<b>fonts.dir</b>" (<span style="background-color: yellow;">sudo vim fonts.dir</span>), number at the beginning (1894 in my case) represents actual number of entries/rows in this file. It was "94" not "1894".<br /><br />Changed and saved the file with "94". Error fixed and successfully created bootable Mac OS X on external USD HDD. <br /><br />Lessons:</span><br />
<ul style="text-align: left;">
<li><span style="font-family: Arial,Helvetica,sans-serif;"> Do not assume things.</span></li>
<li><span style="font-family: Arial,Helvetica,sans-serif;"> Check logs wherever and whenever possible.</span></li>
</ul>
<span style="font-family: Arial,Helvetica,sans-serif;"><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> </span></div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com3tag:blogger.com,1999:blog-417630074065643982.post-79027451676775741342013-10-14T16:26:00.000+05:302013-10-14T16:28:58.290+05:30How To: Create and Iterate List in JasperReports<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Of late, I put my hands on Jasper Reports, completely unknown territory. Though not part of my regular work but it was thrown towards me as a challenge.<br />
<br />
This report needs to be generated in OPENNMS and was exhaustive and different from standard straightforward reports. <br />
<br />
Requirements: <br />
<ol style="text-align: left;">
<li>Need to read multiple JRB's (SNMP statistics storage files).</li>
<li>Need to read XML response. </li>
<li>Finally, formulate (a) and (b) and display them in Jasper Reports.</li>
</ol>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
I will concentrate on (3) as that was deadlock I faced. (1) and (2) were trivial but got stuck on (3) big time!!<br />
<br />
I will be skipping on how to configure reports in OPENNMS. I am assuming reader is already familiar and knows about it.<br />
<br />
Solution : "Scriptlets" feature of Jasper Reports. But HOW???<br />
<br />
Key points of the solution: </div>
<ul style="text-align: left;">
<li>Exclusively works on Java's Reflection technique i.e. on run time, access/modify methods and variables of classes.</li>
<li>Data Sources with Sub Reports.</li>
<li>Iterating over the List.</li>
</ul>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Nothing works better then the working sample.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
So, I have attached the source code and JRXML files which are pretty much self explanatory. Also I have inserted comments in java and JRXML files at necessary places.<br />
<br />
Attachments:<br />
<br />
<a href="https://docs.google.com/file/d/0B3WWwv0hieXbRVVib0NtYW1ZM3c/edit?usp=sharing" target="_blank">test_scriptlet_demo.jar</a> { Java Source code } </div>
<div style="text-align: left;">
<a href="https://docs.google.com/file/d/0B3WWwv0hieXbWXg3S2ZDbkpUVWc/edit?usp=sharing" target="_blank">test_scriptlets_jrxml.tar.gz</a>{ JRXML files }<br />
<a href="https://docs.google.com/file/d/0B3WWwv0hieXbQUprVENBWE5sLXc/edit?usp=sharing" target="_blank">scriptlet_demo_reports.pdf</a>{ Sample report generated }<br />
<br />
Compiling source code: <br />
</div>
<div style="text-align: left;">
javac -classpath <jasper-reports-jar> com/demo/reports/scriptlet/*java<br /> </jasper-reports-jar></div>
<div style="text-align: left;">
jar -cvf OR -uvf test_scriptlet_demo.jar com/demo/reports/scriptlet/*class<br />
</div>
<div style="text-align: left;">
export JAR file {test_scriptlet_demo.jar} to CLASSPATH enviornment variable.<br />
<br />
Other information:</div>
<ul style="text-align: left;">
<li>JRXML files were created in JasperSoft iReports Designer 3.7.6</li>
<li>JaspeReports JAR : jasperreports-3.7.5.jar</li>
<li>Java Version: 1.6.0_27</li>
</ul>
<div style="text-align: left;">
<br />
Reference: </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<a href="http://jasperreports.sourceforge.net/api/index.html?net/sf/jasperreports/engine/data/" target="_blank">Jasper Report API Doc</a></div>
<div style="text-align: left;">
<br /></div>
<br />
Bye!!<br />
<div style="text-align: left;">
<br /></div>
</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0tag:blogger.com,1999:blog-417630074065643982.post-31709146898658999232013-07-15T14:50:00.002+05:302013-07-15T15:14:39.077+05:30How To: RRDTool rate calculation in RRD files<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
We utilize OpenNMS to create reports, charts and graphs rendering diversified statistics of servers and applications. OpenNMS extensively uses JRobin to store SNMP statistics into JRB files.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
What is <a href="http://oldwww.jrobin.org/" target="_blank">JRobin</a>? It is re-incarnation of RRDTool exclusively written in Java. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
What is RRDTool? Follow link <a href="http://www.vandenbogaerdt.nl/rrdtool/" target="_blank">RRDTool</a>.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
This blog is not about JRobin or RRDTool. It is exclusively about '<span style="color: #660000;"><i><b>How RRDTool calculates and stores rates in RRD files?</b></i></span>'</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
And Why I am writing? Samples updated into RRD file and Rates stored in it were completely different. Below image will make it more clearer.</div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgheaRGTga4orEoOdcbT-5a2QIjzoDQoMdc8vynUZZ7583Tc7HPDCdbupy2Oh9Ns9jrmjO_aPRaP9zgo1_4S_ptmktLMjljlMO9l5lMUluUNIh4Jiej-dhdTUmhlW30cAxVi4I9-vdp1zr2/s1600/time-line-RRD.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgheaRGTga4orEoOdcbT-5a2QIjzoDQoMdc8vynUZZ7583Tc7HPDCdbupy2Oh9Ns9jrmjO_aPRaP9zgo1_4S_ptmktLMjljlMO9l5lMUluUNIh4Jiej-dhdTUmhlW30cAxVi4I9-vdp1zr2/s640/time-line-RRD.jpg" width="640" /></a></div>
<div style="text-align: left;">
<br />
I was pretty much sure, RRDTool is flawless but then how and why those values?</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
How time-line image created :</div>
<ul style="text-align: left;">
<li>Values are real. No imaginary stuff!!</li>
<li>OpenNMS logs provided the timestamps and samples updated into the RRD file.</li>
<li>On viewing RRD file, provided the timestamps and corresponding rates.</li>
</ul>
<div style="text-align: left;">
Few more things :</div>
<ul style="text-align: left;">
<li>RRD file is updated with rate after every 300 secs. </li>
<li>Samples are also taken after every 300 secs.</li>
<li>Both may or may not happen at same time.</li>
</ul>
<div style="text-align: left;">
After the conversion of samples into rate and then going through normalization and consolidation, RRD file is updated with the rate of 3.91.<br />
<br />
Pure simple obscure mathematics involving rate, distance and time!!</div>
<div style="text-align: left;">
<br />
Now, let us calculate the rate 3.91 [ Actually value in RRD file is 3.91542263E-02.]</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Last rate by which RRD file was updated at 1372940100 i.e. 1.36. It has to update after 300 secs i.e. at 1372940400. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
This will calculated when RRD file is updated with sample value of 110 at time-stamp 1372940524.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
So, in short, RRDTool needs to calculate rate between timestamps 1372940100 and 1372940400.<br />
<br /></div>
</div>
<div>
<ul style="text-align: left;">
<li>At 1372939923, RRD file is updated by value of 87 and for RRDTool it will remain constant till 1372940224. This also means distance between 1372940100 and 1372940224 is also 87.</li>
</ul>
<div style="text-align: left;">
<br /></div>
<div style="text-align: center;">
Rate </div>
<div style="text-align: center;">
= ( 97 - 87 ) / ( 1372940224 - 1372939923 ) </div>
<div style="text-align: center;">
= 0.033222591</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Distance between 1372940224 and 1372940100</div>
</div>
</div>
<div style="text-align: center;">
= ( 0.033222591 * ( 1372940224 - 1372940100 ) ) </div>
<div style="text-align: center;">
= ( 0.033222591 * 124 ) </div>
<div style="text-align: center;">
= 4.119601284</div>
<br />
<div>
<div>
<div style="text-align: left;">
<ul style="text-align: left;">
<li>At 1372940524, RRD file is updated by value of 110.</li>
</ul>
</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: center;">
Rate </div>
<div style="text-align: center;">
= ( 110 - 97 ) / ( 1372940524 - 1372940224 )</div>
<div style="text-align: center;">
= 0.043333333</div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Distance between 1372940400 and 1372940224</div>
<div style="text-align: center;">
= ( 0.043333333 * ( 1372940400 - 1372940224 ) ) <br />
= ( 0.043333333 * 176) </div>
<div style="text-align: center;">
= 7.626666608 </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<ul style="text-align: left;">
<li>So, rate between timestamps 1372940100 and 1372940400</li>
</ul>
</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: center;">
= ( 4.119601284 + 7.626666608 ) / ( 1372940400 - 1372940100 )</div>
<div style="text-align: center;">
= 0.039154226 </div>
<div style="text-align: center;">
= 0.039154226 * 100 </div>
<div style="text-align: center;">
= 3.91542263E-02 </div>
<div style="text-align: left;">
<br />
And voila!! </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Big thanks to my manager and colleague, finally we were able to infer the mystery of rates in RRD files.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Bye!!</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
</div>
</div>
</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0Bangalore, Karnataka, India12.9715987 77.59456269999998312.4764182 76.949115699999979 13.4667792 78.240009699999987tag:blogger.com,1999:blog-417630074065643982.post-66629673781820834662012-01-12T09:46:00.001+05:302012-01-12T09:59:26.991+05:30How To: Access Gmail mails for Business from Thunderbird and Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Major change in business and company's policies ensued in migrating to <b style="background-color: yellow;"><u>Gmail for Business</u></b> but prior to the migration I was accustomed and addicted to <u><b style="background-color: yellow;">Thunderbird</b></u>. Played around for few months and severely wanted back my <u><b style="background-color: yellow;">Thunderbird</b></u>.<br />
<br />
Accessing normal Gmail mails is pretty simple and straight forward. Plenty of info available over Internet for the same.<br />
<br />
But...for <b style="background-color: yellow;"><u>Gmail for Business</u></b> i.e. corporate/official emails?? Had hard time to make it work!! So below are the configurations I've used to accomplish it.<br />
<br />
<br />
Note: Its presumed that IMAP is enabled in Gmail. [ See Screen-4 ]<br />
<br />
Below are the screens for the configurations. <br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<a name='more'></a><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAomfc5n8Ukd0wI34q-ewA49KCkUYCb96k6SsY1r-mheafsVcDVj7TE5mD1ZLvs__MHITjZmYDUHewPIZusAf_wZM05jdUdxtx2CFTlK6Wxr2z_oSqNNQaZ9eW8VskQXidkquoc5cBzPqW/s1600/Screen-1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="154" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAomfc5n8Ukd0wI34q-ewA49KCkUYCb96k6SsY1r-mheafsVcDVj7TE5mD1ZLvs__MHITjZmYDUHewPIZusAf_wZM05jdUdxtx2CFTlK6Wxr2z_oSqNNQaZ9eW8VskQXidkquoc5cBzPqW/s320/Screen-1.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screen-1</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGeYtT9FTNwo1ZNfN09TMcAFg3X7COA8JL58o_p3Bkj1Co1udwDT6AZerjquqqnNgw8_DBTexvyO10Eyk0gPxdUBdUkNxbRHir_eFtN1nP9Fg9Y5S8oOasL5JeGCKxr0aiv9BNFvHOTFTA/s1600/Screen-3.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="141" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGeYtT9FTNwo1ZNfN09TMcAFg3X7COA8JL58o_p3Bkj1Co1udwDT6AZerjquqqnNgw8_DBTexvyO10Eyk0gPxdUBdUkNxbRHir_eFtN1nP9Fg9Y5S8oOasL5JeGCKxr0aiv9BNFvHOTFTA/s320/Screen-3.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screen-2</td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPmERTdd-uJo1kNbY-gtBUoHmaBdUbQW_FyUiwMG2dZOP6gh84wgvD-Q0qGGUuuw-4bMuYDQXi0T0PbUpghkzjj9Hzzf5bimlQIcW4LVcrxp4WSW94UKXJpdYiv3z2GDmm9c9zQo9UZ8iV/s1600/Screen-2.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPmERTdd-uJo1kNbY-gtBUoHmaBdUbQW_FyUiwMG2dZOP6gh84wgvD-Q0qGGUuuw-4bMuYDQXi0T0PbUpghkzjj9Hzzf5bimlQIcW4LVcrxp4WSW94UKXJpdYiv3z2GDmm9c9zQo9UZ8iV/s320/Screen-2.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screen-3</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ_AUiKCbcNdaEC6IRObGpRPWEE9fGUT9zWcYSPcwkpLb9NM0wJ_Ns-PTpE5uuZvKicOxOqNOUT5xQsSd-0vniWQrY8FLDK0UB4jJoQthS0BdJYsBfC9KxNq-RlZBmYlr7hO1ISkEuepoI/s1600/Screen-4.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="132" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ_AUiKCbcNdaEC6IRObGpRPWEE9fGUT9zWcYSPcwkpLb9NM0wJ_Ns-PTpE5uuZvKicOxOqNOUT5xQsSd-0vniWQrY8FLDK0UB4jJoQthS0BdJYsBfC9KxNq-RlZBmYlr7hO1ISkEuepoI/s320/Screen-4.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Screen-4</td></tr>
</tbody></table>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
Operation System : Ubuntu 11.04 - the Natty Narwhal <br />
Thunderbird Version : 3.1.15<br />
<br />
Bye!!</div>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0tag:blogger.com,1999:blog-417630074065643982.post-38407484897083125972011-09-16T14:12:00.000+05:302011-09-16T14:12:39.507+05:30How To: Ubuntu+Wine [ Microsoft Powerpoint Problem ]<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="font-family: Verdana,sans-serif;">
Recently I upgraded to <b style="color: #741b47;">Ubuntu 11.04 from 10.04</b><span style="color: #741b47;"> </span>and one thing that was most coveted was Microsoft Office running smoothly and happily. Using <b style="color: #741b47;">wine (version 1.3.15)</b>, installed <b style="color: #741b47;">Microsoft Office 2007</b>. Without any difficulty launch pad was done but ONLY Power point files were not opening!! </div>
<br />
<br /><span style="font-family: Verdana,sans-serif;">Initially I thought wine was the culprit as newest version was </span><b style="color: #741b47; font-family: Verdana,sans-serif;">1.3.28</b><span style="font-family: Verdana,sans-serif;"> but even upgrading to it didn’t solved the issue.</span><br />
<div style="font-family: Verdana,sans-serif;">
<br />Below are the errors I was facing constantly. So irritating!! </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip3z1ohxhc7qSLC1_g2BOiVYRqhwwM_i1oWeHuMHpe_369uIh-merou_LOc1KO1p3PDL63sG0PVoEeW0K1tFRZ1cu6BPturgj4EaOo0l3K1FoPNtudQXBr4WQGqFfBuv7toAz28leBfneY/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip3z1ohxhc7qSLC1_g2BOiVYRqhwwM_i1oWeHuMHpe_369uIh-merou_LOc1KO1p3PDL63sG0PVoEeW0K1tFRZ1cu6BPturgj4EaOo0l3K1FoPNtudQXBr4WQGqFfBuv7toAz28leBfneY/s1600/Screenshot.png" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL8zv3mc_PizGQOqeNVxGn0ozCpWZdFWYQ6JnFyHGeJxpftxPdhsrYyxHUzKyzdfm_tmznNwGUH57YFEe-FGmjO6ccvmFGLA-JMBFLYIGME74VQM7DaJw7Ew473S-vyJKzx4x9NdOxGGDA/s1600/Screenshot-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL8zv3mc_PizGQOqeNVxGn0ozCpWZdFWYQ6JnFyHGeJxpftxPdhsrYyxHUzKyzdfm_tmznNwGUH57YFEe-FGmjO6ccvmFGLA-JMBFLYIGME74VQM7DaJw7Ew473S-vyJKzx4x9NdOxGGDA/s1600/Screenshot-1.png" /></a></div>
<br /><span style="font-family: Verdana,sans-serif;">After 3 days of struggle and by Google’s help, figured out the issue and resolved it.</span><br />
<div style="font-family: Verdana,sans-serif;">
<br />Voila!! Below is the screenshot solution attached.</div>
<div style="font-family: Verdana,sans-serif;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyTFsNVHodjHtbfadXpsBzxXpxz8SKC764o6xwid1LsL2qfMZK_hzhgGHbNTGg-1c34tSLiSmTr5CYac-1wMQpmMCG_vAKYqwbZOpkIBFbVFhUjA5XcpcIznszAzqzDBqOqms1ZUg9btJU/s1600/Wine_Configurations.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="454" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyTFsNVHodjHtbfadXpsBzxXpxz8SKC764o6xwid1LsL2qfMZK_hzhgGHbNTGg-1c34tSLiSmTr5CYac-1wMQpmMCG_vAKYqwbZOpkIBFbVFhUjA5XcpcIznszAzqzDBqOqms1ZUg9btJU/s640/Wine_Configurations.png" width="640" /></a></div>
<br />Bye!!<br /></div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com2Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-56399144795692072362010-08-10T13:14:00.000+05:302011-09-16T14:14:31.944+05:30How To: Transfer Files from Nokia N series to Mac OS<div dir="ltr" style="text-align: left;" trbidi="on">
<link href="file:///C:%5CDOCUME%7E1%5CHIMANS%7E1.RAW%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"></link><style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style> <br />
<div class="MsoNormal">
I am not sure whether all Nokia Series have these problem but I faced this problem in Nokia N72 (aged mobile). From MAC Bluetooth connected smoothly but files transfer was outgoing i.e. MAC to phone not vice versa.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
I wasn’t able to browse folders in mobile which apparently was able to do in Sony mobiles. Strange??? Moreover I haven’t upgraded mobile firmware!! On either end there was some issue but need to be resolved.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
To overcome this just download the <b><a href="http://europe.nokia.com/support/download-software/nokia-multimedia-transfer">Nokia Multimedia Transfer</a> </b>package for your nokia model, this works over Bluetooth. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
It has got clear and nice fronted with to and fro transfer of files. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<a href="http://europe.nokia.com/support/download-software/nokia-multimedia-transfer">Download link 1</a></div>
<div class="MsoNormal">
<a href="http://www.4shared.com/file/rDvscQFB/NokiaMultimediaTransfer-142.html">Download link 2</a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Note: MAC OS (Leopard 10.5.8), Nokia N72.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Bye!!</div>
</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-91383561678852194402010-08-09T16:23:00.000+05:302011-09-16T14:14:47.212+05:30How To: Mac to Ubuntu Remote Desktop Connection<div dir="ltr" style="text-align: left;" trbidi="on">
<link href="file:///C:%5CDOCUME%7E1%5CHIMANS%7E1.RAW%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"></link><style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:1259947352;
mso-list-type:hybrid;
mso-list-template-ids:1304596132 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l1
{mso-list-id:1667128810;
mso-list-type:hybrid;
mso-list-template-ids:-822182678 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style> <br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Generally I don’t prefer work from home but sometimes situation arises where one needs to. No escape!! Having a<b> MACBOOK</b> @ home and <b>UBUNTU</b> @ office elicited me to get a nice breakthrough for this i.e. permanent and stable solution for this. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Tried few <b>VNC</b> clients for <b>MAC</b> but they all failed in one way or another. Finally came across to set of <b>JAVA</b> files by <b>TIGHTVNC JAVA VIEWER VERSION</b>. Initially I was giving by pass to it but then thought no harm in giving a try. Gave a shot and taken by surprise!! Fast, quick and easy. FYI it doesn’t have any GUI. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
You can download files from <a href="http://www.4shared.com/dir/2S0KUJl7/VNC_Client.html">here </a>or from <b>TIGHTVNC</b> official site. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
“<b>How to run</b>” is available from <b>README</b> but I made some few minor changes which I will share here.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Command I use: </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>java VncViewer HOST “Enter_IP_ADDRESS_OR_HOST_NAME” PORT 5900<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Running above command can be pain if used often. Simplest way to get rid of it to have one liner shell script and add the environment variable in your shell profile. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Adding environment variable</b>, for bash shell it’s done below way</div>
<div class="MsoNormal">
<br /></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal">untar the download file ( <a href="http://www.4shared.com/dir/2S0KUJl7/VNC_Client.html">Link </a>)</li>
<li class="MsoNormal">Open <b>.bashrc</b> file</li>
<li class="MsoNormal">Add </li>
<ul style="margin-top: 0in;" type="circle">
<li class="MsoNormal"><b>VNC_HOME=path_to_the_vnc_folder</b></li>
</ul>
</ul>
<div class="MsoNormal" style="margin-left: 0.25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;">
e.g. VNC_HOME=/home/hrawat/vnc/classes</div>
<div class="MsoNormal" style="margin-left: 0.5in;">
<br /></div>
<ul style="margin-top: 0in;" type="disc"><ul style="margin-top: 0in;" type="circle">
<li class="MsoNormal"><b>export VNC_HOME <o:p></o:p></b></li>
</ul>
</ul>
<div class="MsoNormal" style="margin-left: 0.75in;">
<br /></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal">Save file.</li>
<li class="MsoNormal">Reload the environment variables i.e. <b>source .bashrc</b> </li>
</ul>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Now this is ubiquitous. Run from any open terminal inside any folder. But work still half done!!</div>
<br />
<br />
<div class="MsoNormal">
<b>Shell script:<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal">Create a file called <b>vnc.sh</b></li>
<li class="MsoNormal">Add</li>
</ul>
<div class="MsoNormal" style="margin-left: 0.5in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 0.5in;">
<b>nohup java –jar $VNC_HOME/VncViewer.jar HOST $1 PORT 5900 &<o:p></o:p></b></div>
<br />
<br />
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal">Save file. </li>
</ul>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>How to run:<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal">On terminal <b>./vnc.sh “Enter_IP_ADDRESS_OR_HOST_NAME”</b><o:p> </o:p></li>
</ul>
<div class="MsoNormal" style="margin-left: 0.5in;">
e.g. <b>./vnc.sh 10.253.205.67</b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Note: As its <b>JAVA</b>, write once and run anywhere comes into picture. So same can be used to do RDC from Linux-Linux machine. </div>
<div class="MsoNormal">
<o:p><br />
</o:p></div>
<div class="MsoNormal">
<o:p><a href="http://www.4shared.com/dir/2S0KUJl7/VNC_Client.html">Download link</a> [ Password: vnc ]</o:p></div>
<div class="MsoNormal">
<o:p><br />
</o:p></div>
<div class="MsoNormal">
Bye!!</div>
</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com2Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-53480209946186468232010-08-09T12:12:00.000+05:302011-09-16T14:14:59.343+05:30How To: Ubuntu to Windows Remote Desktop Connection<div dir="ltr" style="text-align: left;" trbidi="on">
<link href="file:///C:%5CDOCUME%7E1%5CHIMANS%7E1.RAW%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"></link><style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:2039354004;
mso-list-type:hybrid;
mso-list-template-ids:-458956058 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.75in;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style> <br />
<div class="MsoNormal">
Though it’s a rare and infrequent requirement when using Ubuntu but still sometimes you need good clean and quick solution. Tried lot of solutions and then eventually came to the solution i.e. Ubuntu’s <b>rdesktop</b> and <b>tsclient</b>. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Hassle free usage and minimum settings/configurations makes this my first and last choice. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>tsclient</b> and <b>rdesktop</b> comes pre-installed with UBUNTU but in case it’s not there use synaptic manager to install. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
How to use:</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u>Command line<o:p></o:p></u></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;">
<span style="font-family: Symbol;">·<span style="font: 7pt "Times New Roman";"> </span></span>Open terminal.</div>
<div class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;">
<span style="font-family: Symbol;">·<span style="font: 7pt "Times New Roman";"> </span></span>Enter command ->> tsclient &</div>
<div class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;">
<span style="font-family: Symbol;">·<span style="font: 7pt "Times New Roman";"> </span></span>A window will pop-up with default values. (See image)</div>
<div class="MsoNormal">
<br /></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6etEQdQznCY_gnb-Mp89P2XRiokQkOiUy3SDM_zYXNHlscbQtXtxdfzcBTe_q3neXARTYlSrAM0Qk03GxAGC8TRJSZXHG4GzFm99f0oO8U884d7vY_PjH5V6hKtxMipjlfFe-4VD4tE_Z/s1600/1.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6etEQdQznCY_gnb-Mp89P2XRiokQkOiUy3SDM_zYXNHlscbQtXtxdfzcBTe_q3neXARTYlSrAM0Qk03GxAGC8TRJSZXHG4GzFm99f0oO8U884d7vY_PjH5V6hKtxMipjlfFe-4VD4tE_Z/s400/1.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Terminal Server Client - 1</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
After entering valid values, click connects. Windows desktop will appear. Done!! Enjoy working on windows (in person don’t like).</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
All above was with default settings. Works for most of the people but some guys wanted more for e.g. I did not like the default window display size. Moreover <b>specified screen size</b> option under <b>Display</b> tab was not meeting the needs. </div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguHNVgZehGx4IQmshMIL0A5LEX25VsDRu5AXtrm7aMv3x69qdvzLu8Ef6cmjtM01GgvyNIbfDKsDV3NybthFKOQbJpenp4E-la1JB8bKGY-vKAA79olKxCdRSmMJUtCcL8bEuBPjTj3ajU/s1600/2.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="325" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguHNVgZehGx4IQmshMIL0A5LEX25VsDRu5AXtrm7aMv3x69qdvzLu8Ef6cmjtM01GgvyNIbfDKsDV3NybthFKOQbJpenp4E-la1JB8bKGY-vKAA79olKxCdRSmMJUtCcL8bEuBPjTj3ajU/s400/2.JPG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Terminal Server Client - 2</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Solution: <o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Have a one liner shell script with configurable parameter!!</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Sample: <o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10pt;">nohup rdesktop -r disk:hrawat=/home/hrawat/ -T Windows_Desktop -g 1440x800 -a 16 IP_ADDRESS_WINDOWS_MACHINE &</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Description:<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
-g 1440X800 = UBUNUT windows Resolution. </div>
<div class="MsoNormal">
-r disk:hrawat = Local drive to mount on windows system</div>
<div class="MsoNormal">
-T = Name of the Windows you like to have.</div>
<div class="MsoNormal">
-a 16 = connection color depth 16 or 24 bits.</div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10pt;">IP_ADDRESS_WINDOWS_MACHINE = e.g. 10.234.234.34 <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Save above lines say file name <b>rdesktop.sh. </b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
To run: Simply <b>./rdesktop.sh</b> on terminal.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Isn’t that simple!!</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Bye!!</div>
</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com2Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-41431186941818144142010-06-07T12:17:00.000+05:302011-09-16T14:15:17.525+05:30How to: Download YOUTUBE Videos (Script Way)<div dir="ltr" style="text-align: left;" trbidi="on">
"<b>Blah Blah site want to access your system</b>" protruded when tried few waste sites to download you tube videos. Unauthentic and distrusted certificate!!<br />
<br />
No way I would have accepted it and allowed unnecessary access to my system but at the same time desperately wanted to download few videos!!<br />
<br />
Searched a lot and came across a python script. Now at the first glance people don't anticipate scripts. Reason is usability. Who’s gonna take pain and all that.<br />
<br />
But this script works perfectly fine. Used and still using to download you tube videos.For windows just one extra download is python interpreter (recommended latest 2.6). For UNIX system it comes default else install. No big deal!!!<br />
<br />
<b>How to use</b><br />
<ul>
<li>Download the script. <a href="http://www.4shared.com/dir/UXtz6zoE/Download_Youtube_Videos.html">Here</a>.</li>
<li> Unzip and Untar file</li>
</ul>
For Windows: Use some file extractor (e.g. Winrar )<br />
For UNIX: gunzip youtube-dl.tar.gz ; tar –xvf youtube-dl.tar<br />
<ul>
<li>Go inside the directory ( youtube-dl )</li>
<li>Give all permissions to the file : youtube-dl</li>
</ul>
For Windows: Right click and set permissions<br />
For UNIX: chmod 777 youtube-dl<br />
<ul>
<li>Done!!</li>
</ul>
<b>Sample runs </b><br />
<br />
./youtube-dl -b -o Give_The_Name.flv “You Tube video URL”<br />
<br />
<ul>
<li>Give_The_Name = Enter whatever file name you want to give</li>
<li>You Tube video URL = Complete you tube video url</li>
</ul>
Note: Omit inverted commas<br />
<br />
./youtube-dl --help ( Will give all the options available )<br />
<blockquote>
<br />
<div style="color: #741b47;">
<b>Special thanks to the creator of this script. Nice work!!</b></div>
</blockquote>
</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-74913178672829246972010-04-05T20:11:00.000+05:302011-09-16T14:15:34.657+05:30Solved Error 6: Oracle SQL Instant Client connect issue<div dir="ltr" style="text-align: left;" trbidi="on">
I was successfully using Oracle SQL Instant Client for many months on <b>Linux MINT</b> but when I shifted to <b>UBUNTU LUCID 10.04</b>, it just stopped working and below mentioned annoying error came.<br />
<br />
<blockquote style="color: red;">
<span style="font-size: large;"><b>Error: Error 6 initializing SQL*Plus</b></span></blockquote>
<blockquote>
<div style="color: red;">
<span style="font-size: large;"><b>Message file sp1</b><lang><b>.msb not found</b></lang></span></div>
<div style="color: red;">
<span style="font-size: large;"><lang><b> SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory</b></lang></span></div>
<lang></lang></blockquote>
<lang> <br />
ORACLE_HOME environment variable needs to be set? But why!! My intention is to have a simple sql client which can connect to remote oracle server!! That’s it. <br />
<br />
Googling up gave me dissimilar resolutions. Unfortunately none of them worked for me. Below is the resolution (obviously for my case) but it can be considered as general solution as well.<br />
<br />
First of all, no ORACLE_HOME environment variable needs to be set and second proper installation needs to be done with that I mean libraries needs to be copied to correct places. Installation is done from zip files.<br />
</lang><br />
<lang>Create any folder, lets say /home/hrawat/sqlClient<br />
<span style="color: purple; font-size: x-small;"><b>mkdir sqlClient (already in my home directory)</b></span></lang><br />
<br />
<lang>Copy the zip files and extract the content</lang><br />
<lang><span style="color: purple; font-size: x-small;"> <b>cp zip_files sqlClient</b><br />
<b>unzip zip_files</b></span><br />
<br />
Here zip_files : <br />
<span style="color: purple; font-size: x-small;"> <b>instantclient-sqlplus-linux32-11.1.0.7.zip</b><br />
<b>instantclient-basic-linux32-11.1.0.7.zip</b><br />
<b> instantclient-basiclite-linux32-11.1.0.7.zip</b></span></lang><br />
<br />
Directory by name “instantclient_11_1” would have been created<lang><b><br />
</b></lang><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfVl_HbvWan0cv6nN1oQoB4a5__6JsEzEeZcRbxHP8wUh6UcDpCa_0o3XY5wAEEcmwj2PF0xjzdajBuBrFZ_s-S8EH3RZaiRbe_MphBIYUsguLklEM_1hSUk3S1YLfKxhldS-o7T09MSSX/s1600/install_client_directory_contents.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfVl_HbvWan0cv6nN1oQoB4a5__6JsEzEeZcRbxHP8wUh6UcDpCa_0o3XY5wAEEcmwj2PF0xjzdajBuBrFZ_s-S8EH3RZaiRbe_MphBIYUsguLklEM_1hSUk3S1YLfKxhldS-o7T09MSSX/s320/install_client_directory_contents.png" /></a></div>
<lang> </lang><br />
<lang>Now you need to add tnsnames.ora and listener.ora files.<br />
See </lang><a href="http://www.4shared.com/dir/35843253/b05dc207/Oracle_SQL_Instant_Client_Bina.html" style="color: red;">Download binaries and files</a><lang>.<br />
</lang><br />
<lang>Copy two files to /usr/lib and give permissions.<br />
<span style="color: purple;"> </span><b style="color: purple;"><span style="font-size: x-small;">cp libsqlplus.so /usr/lib<br />
chmod 777 /usr/lib/libsqlplus.so<br />
cp libsqlplusic.so /usr/lib<br />
chmod 777 /usr/lib/libsqlplusic.so</span></b></lang><br />
<lang><br />
Then simply run the client <br />
<b><span style="color: purple; font-size: x-small;">./sqlplus</span> </b></lang><br />
<br />
If connected successfully, you will see the screen like this.<br />
<lang><b><br />
</b></lang><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoh2yP8QiIWVp7rsB2gud3qubIHu1srSbDdYksuTg9kAcXSORuMj6J7XUWK19s2LKCA0tlzePC2-aiCfAhz8iRbIX-s1KBClci-cD9nUB65JQuReIkijMV-znT3_NiL-8DtXUbZmUdFvNz/s1600/sql_instant_client_connected.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="36" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoh2yP8QiIWVp7rsB2gud3qubIHu1srSbDdYksuTg9kAcXSORuMj6J7XUWK19s2LKCA0tlzePC2-aiCfAhz8iRbIX-s1KBClci-cD9nUB65JQuReIkijMV-znT3_NiL-8DtXUbZmUdFvNz/s200/sql_instant_client_connected.png" width="200" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<lang> <br />
Complete command to connect.<br />
<span style="font-size: x-small;"><b style="color: purple;">./sqlplus -S username/password@Hostname_or_IPAddress/Service_Name</b></span><br />
<br />
Do sqlplus –help to get more info.<br />
<br />
<b>Debugging:</b><br />
<br />
Execute below command to see what all files gets executed. I read this log file to actually solve the problem. It will tell where the command is getting hanged.<br />
<span style="font-size: x-small;"><b style="color: purple;">echo | strace -e trace=open,access -f -o trace.log ./sqlplus</b></span><br />
<br />
Below command will show you about the location of all required libraries. See attached image ( ldd_screenshot).<br />
<span style="font-size: x-small;"><b style="color: purple;">ldd sqplus</b></span> </lang><br />
<a href="http://www.4shared.com/dir/35843253/b05dc207/Oracle_SQL_Instant_Client_Bina.html"></a><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjDZI08ntgMqDD6L0B-inwTTZ9N8WqxnAeqjdSsFzpANTqUwn5Dh1blBd0PcbqzC8zHsrMb5xLv-TzJ2nxTsPut-G-tjRAEEW3TfbQ7yorHy_B5D7Ev7FhI-WmZODXMLN127bD2oRBzV1Z/s1600/ldd_screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="60" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjDZI08ntgMqDD6L0B-inwTTZ9N8WqxnAeqjdSsFzpANTqUwn5Dh1blBd0PcbqzC8zHsrMb5xLv-TzJ2nxTsPut-G-tjRAEEW3TfbQ7yorHy_B5D7Ev7FhI-WmZODXMLN127bD2oRBzV1Z/s200/ldd_screenshot.png" width="200" /></a></div>
<br />
<br />
<br />
<br />
<a name='more'></a><br />
<a href="http://www.4shared.com/dir/35843253/b05dc207/Oracle_SQL_Instant_Client_Bina.html" style="color: red;">Download binaries and files</a>. (password : sqlclients) <br />
<br />
Bye</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-60544845328874596282010-03-23T12:38:00.000+05:302011-09-16T14:15:42.360+05:30How To : Cisco VPN Client Linux Mint<div dir="ltr" style="text-align: left;" trbidi="on">
Tried 3 tar balls of <b>Cisco VPN client</b> for <b>Linux</b> and finally made it to work. Initial attempts required an additional step of patching up the code but the latest or you which I’ve used didn’t required any sort of patch. <br />
<br />
Just a simple install and voila!<br />
<br />
Machine details:<br />
<blockquote>
<b>DISTRIBUTION="Linux Mint 7 Gloria - Main Edition"</b> </blockquote>
<blockquote>
<b>DESKTOP=Gnome</b></blockquote>
Binaries I tried:<br />
<ul>
<li><b>vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz</b></li>
<li><b>vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz</b></li>
<li><b>vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz</b></li>
</ul>
<br />
Patch:<br />
<ul>
<li><b>vpnclient-linux-2.6.22.diff</b></li>
</ul>
<br />
The first two binaries didn’t work with or without patch. It always ended with compilation error. Skipping from saying anything about the patch.<br />
<br />
The third one was beauty and legato install. How to install?? Damn simple :).<br />
<br />
On the terminal, type below commands <br />
<blockquote style="color: purple;">
<b><span style="font-size: x-small;">gunzip vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz</span></b><br />
<b><span style="font-size: x-small;">tar –xvf vpnclient-linux-x86_64-4.8.02.0030-k9.tar</span></b><br />
<b><span style="font-size: x-small;">cd vpnclient</span></b><br />
<b><span style="font-size: x-small;">sudo ./vpn_install</span></b></blockquote>
<br />
Few questionnaires just go with the defaults and successfully installed CISCO VPN client on Linux box.<br />
<br />
To start service: <span style="font-size: x-small;"><b style="color: purple;">sudo /etc/init.d/vpnclient_init start</b></span><br />
To connect: <span style="font-size: x-small;"><b style="color: purple;">vpnclient connect “your_pcf_file_name”</b></span> <br />
<br />
<div style="font-family: inherit;">
For more help just do <b style="color: red;">vpnclient and hit enter</b>.</div>
<br />
Note: “your_pcf_file_name” is name of your profile file without pcf extension.<br />
Also make sure to copy all the needed profiles to<br />
/etc/opt/cisco-vpnclient/Profiles/<br />
Give permissions ( chmod 777 "your_pcf_file_name" )<br />
<br />
<a href="http://www.4shared.com/dir/34604987/fae1630f/CISCO_VPN_CLIENTS.html">Binaries and Patches</a> ( password : ciscoclients )<br />
<br />
Have fun guys<br />
<br />
Bye!!</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com1Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-5680053727707783492009-12-18T16:59:00.000+05:302011-09-16T14:16:13.422+05:30Firefox 3.5.6 Java plugin trouble<div dir="ltr" style="text-align: left;" trbidi="on">
Lately I updated <b>Firefox 3.0</b> to version <b>3.5.6</b> on my Linux mint and applets stopped working. Now what the heck is that??? What could be the reason for that?? Java plug-in was absent!!<br />
<br />
Isn’t Firefox should come bundled with that??? May be they render only for windows binaries? Anyhow I have to make it work. BTW if you want the list of all plug-ins installed just type “<b>about:plugins</b>” in the browser.<br />
<br />
So here is the way I did it.<br />
<br />
1) Navigate to the plug-ins directory <br />
<blockquote>
In my case its: cd /home/hrawat/Softies/firefox/plugins/</blockquote>
<br />
2) Search where is jdk installed.<br />
<blockquote>
which java ( will give the directory location of java )</blockquote>
/usr/lib/jvm/java-6-sun/bin/java<br />
<br />
3) Navigate to the plug-in directory<br />
<blockquote>
In my case its: /usr/lib/jvm/java-6-sun-1.6.0.14/jre/plugin/i386</blockquote>
<br />
4) Make sure directories ns7-gcc29 and ns7 are there.<br />
<blockquote>
Both these directories must be having libjavaplugin_oji.so library. They are compiled with different versions of gcc.</blockquote>
<br />
5) After step 1, make the symbolic to the above library ( you are inside the plug-ins directory.<br />
<blockquote>
ln -s /usr/lib/jvm/java-6-sun-1.6.0.14/jre/plugin/i386/ns7/libjavaplugin_oji.so</blockquote>
<br />
In case Firefox gives some kind of stupid error like <br />
<br />
<blockquote>
INTERNAL ERROR on Browser End: Could not get the plugin manager<br />
System error?:: Success</blockquote>
<br />
Just Change the symbolic link to other directory i.e. <b>ns7-gcc29</b><br />
<br />
6) Restart all instances of Firefox and applets will run like butter.<br />
<br />
For me <b>ns7</b> worked. <br />
<br />
Ciao</div>
██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com1Bengaluru, Karnataka, India12.9715987 77.594562712.724026199999999 77.2787057 13.2191712 77.910419699999991tag:blogger.com,1999:blog-417630074065643982.post-9392979558701461422009-10-14T10:08:00.000+05:302009-10-14T10:08:45.943+05:30Linux Mint - Screen resolution trouble<i><br />
Early in the morning, weird screen resolution popped in my desktop which has Linux mint distro installed. I thought something might have went wrong on reboot and working out won’t a big deal but the moment I went to “<b>Display Preferences</b>” section, appalled to see 3 selections mint providing me out of which 1024 X 768 was highest. That’s uncanny!!! My monitor was suppose to support higher resolutions "1280x1024" "1280x960".<br />
<br />
Time said let’s delve into it. Is there any issue with screen resolution in mint? Any ways after an hour of probing and 2 reboots, I finally got things in place.<br />
<br />
Without any changes in <b>/etc/X11/xorg.conf</b> file, I was getting resolutions “1024 X 768”, “800 X 600” and “640 X 480”. To get my desired resolution or higher all I need to change <b>/etc/X11/xorg.conf</b> file.<br />
<br />
Open <b>sudo vi /etc/X11/xorg.conf</b> file and in section <b>“Screen” -> “SubSection “Display””</b> add below lines<br />
<br />
<blockquote>Modes "1440x1440" "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"<br />
#Virtual 1280 960</blockquote><br />
Save and reboot. Voila!!! <br />
<br />
Monitor’s maximum supported and best fit resolutions automatically got selected and adjusted. This you can check in <b>“Display Preferences”</b> under <b>Menu -> Preferences</b>. For me the best was “1152 X 864” with maximum “1360 X 768”.<br />
<br />
Desktop details:<br />
<br />
CODENAME=Gloria<br />
EDITION="Main Edition"<br />
DESCRIPTION="Linux Mint 7 Gloria - Main Edition"<br />
DESKTOP=Gnome<br />
MONITOR=HP 7500<br />
</i>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0tag:blogger.com,1999:blog-417630074065643982.post-45903595876025433862009-08-25T00:30:00.000+05:302009-08-25T00:50:46.028+05:30Installing Iphone OS SDK 3.0It's really annoying when after downloading 2.08 GB of installer and "failed - invalid check sum" pops up. All efforts seems to go in vain with pain.<br /><br />Recently I've downloaded <span style="font-weight:bold;">iphone_sdk_3.0__leopard__9m2736__final.dmg</span> (24th August 2009), and same thing happened. Searched over internet but didn't got the resolution.<br /><br />So, simple resolution is to hit skip button when the installer try to verifies.<br /><br />It worked for me :)<br /><br />If at all you want to remove your xcode completely ( be cautious ) use this command<br /><br /><span style="font-weight:bold;">sudo /Developer/Library/uninstall-devtools --mode=all</span><br /><br />Bye██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com1tag:blogger.com,1999:blog-417630074065643982.post-18153001264109477702009-08-17T12:25:00.000+05:302009-08-17T12:28:36.893+05:30Firefox-tab-scroll<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Chrawat%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal">Millions of people are using Firefox browser, tops in my favorites list of all time browsers. Last night around 3 ran across an awesome feature. Of course it was by chance but for me it’s obligatory and efficacious. Ever imagined, firefox opened with 15+ tabs and immediately you wish for smooth move around between the tabs? I’ve been using firefox since its inception but never exploited this feature (would’ve been there for long time)</p><p class="MsoNormal">
<br /></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">I’ve frequent habit of opening more than 15+ windows in single instance of firefox and moving across tabs was cumbersome. Actually there are 3 ways to do it, one of them discovered of late. Usually firefox grants 14 tabs which can be directly clicked but after that they are pushed like stack.</p><p class="MsoNormal">
<br /></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">3<sup>rd</sup> way is, <span style="font-weight: bold;">just use mouse to scroll in between the tabs</span>. Simple!!! Try it out, its nimble and clean. For me it’s much groovier than other 2 ways.</p><p class="MsoNormal">
<br /></p><p class="MsoNormal">Please see attached image also</p><p class="MsoNormal">
<br /></p><p class="MsoNormal">.</p><p class="MsoNormal"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij6NYtMFw219aH60lUoMh0fET-BqEn_nZiDE3oawXGO_JqWaSfOt-PoW3N6T05ytOyq0vWV4dO2wf4_BBJSRR8W01GuR0KvdXYtFlFRmu-LxAhViqDiZiHv03SYuyTuqbFR5gIEXFt12Kk/s1600-h/firefox.PNG"><img style="cursor: pointer; width: 320px; height: 200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij6NYtMFw219aH60lUoMh0fET-BqEn_nZiDE3oawXGO_JqWaSfOt-PoW3N6T05ytOyq0vWV4dO2wf4_BBJSRR8W01GuR0KvdXYtFlFRmu-LxAhViqDiZiHv03SYuyTuqbFR5gIEXFt12Kk/s320/firefox.PNG" alt="" id="BLOGGER_PHOTO_ID_5370823279373389186" border="0" /></a></p><p class="MsoNormal">
<br /></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Bye!!</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> ██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com4tag:blogger.com,1999:blog-417630074065643982.post-69156100360225780972009-06-08T10:50:00.000+05:302009-06-08T11:04:26.360+05:30Selenium - How to right clickIn some of the application, right click is customized like on right click some context menu opens with options. Generally in most of the applications, this is considered as an alternative but sometimes this needs to be checked and automated.<br /><br />Reasons might be<br /><br /><ul><li>Some options in context menus get disabled on some action.</li><li>On clicking on some options, pop up or new window opens.</li><li>Text check, properly displayed or order of them.<br /></li></ul>There can be other reasons too apart from what mentioned above. Right click automation terrorized me for 1 day. I tried different ways to get it done but what i was looking for easiest way to achieve it. Just as i was stumbling on selenium doc i came across the exact needed command.<br /><br />Command used for right click : <span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);">contextMenu(String locator)</span>.<br /><br />locator can be XPATH, DOM or CSS<br /><br />This command has other forms too. That you can go through the selenium java docs (this much hint should be enough to start with).<br /><br />Now, you must be wondering, right click done whats next??? How to operate on context menus?<br />Answers is simple, like you have been interacting with pages. Once you automate right click, selenium window becomes context menu, all the commands will get executed on this menu.██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0tag:blogger.com,1999:blog-417630074065643982.post-73304422770494775282009-05-29T11:52:00.000+05:302009-06-06T12:35:01.507+05:30Selenium - How to click rows in a gridFolks nowadays I'm working on automation and open source tool selenium is been used. Frankly speaking, tool is awesome but still it has some loop holes, workarounds need to be done to get work done. I was trying to click on the rows on the grid and took me 2 hours to figure out how to do.
<br />
<br />Here with an example I will tell how and what needs to be done.
<br />
<br /><span style="font-weight: bold;">Problem description</span>: You had a grid with rows have values and need to click on the basis of values.
<br />
<br />Grid looks like this.
<br />
<br /><meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Chrawat%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} table.MsoTableGrid {mso-style-name:"Table Grid"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-border-insideh:.5pt solid windowtext; mso-border-insidev:.5pt solid windowtext; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><o:p> </o:p></p> <table class="MsoTableGrid" style="border: medium none ; width: 6.15in; margin-left: 27pt; border-collapse: collapse;" width="590" border="1" cellpadding="0" cellspacing="0"> <tbody><tr style=""> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">abc<o:p></o:p></b></p> </td> <td style="border-style: solid solid solid none; padding: 0in 5.4pt; width: 110.7pt;color:windowtext windowtext windowtext -moz-use-text-color;" valign="top" width="148"> <p class="MsoNormal"><b style="">Some-Description1<span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: solid solid solid none; padding: 0in 5.4pt; width: 110.7pt;color:windowtext windowtext windowtext -moz-use-text-color;" valign="top" width="148"> <p class="MsoNormal"><b style="">Date1 <span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Comments1<o:p></o:p></b></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; padding: 0in 5.4pt; width: 110.7pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="148"> <p class="MsoNormal"><b style="">def<span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; padding: 0in 5.4pt; width: 110.7pt;color:-moz-use-text-color windowtext windowtext -moz-use-text-color;" valign="top" width="148"> <p class="MsoNormal"><b style="">Some-Description2<span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Date2<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Comments2<o:p></o:p></b></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; padding: 0in 5.4pt; width: 110.7pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="148"> <p class="MsoNormal"><b style="">ghi<span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Some-Description3<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Date3<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Comments3<o:p></o:p></b></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; padding: 0in 5.4pt; width: 110.7pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="148"> <p class="MsoNormal"><b style="">jkl<span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Some-Description4<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Date4<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Comments4<o:p></o:p></b></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; padding: 0in 5.4pt; width: 110.7pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="148"> <p class="MsoNormal"><b style="">mno<span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Some-Description5<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Date5<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Comments5<o:p></o:p></b></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; padding: 0in 5.4pt; width: 110.7pt;color:-moz-use-text-color windowtext windowtext;" valign="top" width="148"> <p class="MsoNormal"><b style="">pqr<span style=""> </span><o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Some-Description6<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Date6<o:p></o:p></b></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 110.7pt;" valign="top" width="148"> <p class="MsoNormal"><b style="">Comments6<o:p></o:p></b></p> </td> </tr> </tbody></table>
<br />
<br />Now, the requirement says, click on <span style="font-weight: bold;">ghi </span>which might open another window. (How to capture the window is not dealt here). When recording from selenium IDE, gave me click command with some XPATH but when I ran same command from IDE, it wasn't working at all.
<br />
<br /><span style="font-weight: bold;">Solution: </span>Use <span style="font-weight: bold; font-style: italic;">clickAt(String locator, String co-ordinates)</span>
<br />
<br />Selenium IDE do not records clickAt(this was the catch here). I changed click to clickAt and it worked perfectly fine.
<br />
<br />so command becomes : <span style="font-weight: bold; font-style: italic;">
<br />
<br />selenium.clickAt("//div[contains(text(),\"ghi\")]","");</span>
<br />
<br /><div style="text-align: left;"> locator = "//div[contains(text(),\"ghi\")]"
<br /> co-ordinates = ""
<br /></div>
<br />This command says, click at the link (given by the XPATH) which has text <span style="font-weight: bold;">ghi </span>with no co-ordinates.
<br />
<br />Same way to click on grid <span style="font-weight: bold;">abc </span>=
<br />
<br /><span style="font-weight: bold; font-style: italic;">selenium.clickAt("//div[contains(text(),\"abc\")]","");
<br />
<br />
<br />
<br /></span>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com1tag:blogger.com,1999:blog-417630074065643982.post-45584756785865862902009-03-30T13:15:00.000+05:302012-01-06T16:22:11.885+05:30SUN LDOMS<div dir="ltr" style="text-align: left;" trbidi="on">
<link href="file:///C:%5CDOCUME%7E1%5Chrawat%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"></link><style>
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->
</style> <br />
<div class="MsoNormal">
<span style="font-size: 11pt;">Most of the guys have definitely heard about this term “<b><i>Virtualization</i></b>”. In dictionary terms it means “<b>Existing in essence or effect though not in actual fact</b>” and VMWare is one company that is most prominent and dominant in this area. There products helps people to create, deploy, manage and finally destroy virtual machines.<o:p></o:p></span></div>
<div class="MsoNormal">
<br />
<span style="font-size: 11pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p>
</o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">But then what is LDOM? LDOM is virtualization technology from SUN for Solaris servers. LDOM means Logical Domains same conception as of Virtual machines from VMWare. As of now VMWare doesn’t furnish extended support for Solaris i.e. SPARC and 64 bit Solaris aren’t corroborated by VMWare. Here LDOM comes into picture. Overall LDOM theme is same as of VM but they are restricted with firmware. In lay man language, LDOM can’t be achieved on every Solaris servers; only on special LDOM machines say T servers. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p>
</o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">Basic concept is “<b><i>sharing OS resources to achieve maximum utilization</i></b>”. OS resources mean CPU, memory, network and I/O. There is one Daddy machine which is called LDOM manager or control domain which controls all other children’s called guest domains. A thin layer called <b><i>hypervisor</i></b> lives b/w Daddy and physical resources. Children’s are not allowed to interact with physical resources; all there request should go through daddy. This ensures integrity of all resources shared among children’s. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p>
</o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">LDOM facilitates fine grained mapping of physical to virtual resources and they can be reconfigured without impacting the current running OS on it.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p>
</o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">It was my personal experience in setting up the LDOM and then subsequently installing software’s on guest domains. Quite a bit of challenging work as I never had done it before. In fact that was the first time I was introduced to this name. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p>
</o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">Initially it was befuddling but later comparing it with VM, solved most of the issues. The other problem was absence of GUI as we normally get in VM. Any sort of configuration only through command line. Hope SUN will come up with appealing GUI. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p>
</o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">This BLOG will furnish you the very basics of LDOM excluding commands. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;"><o:p> </o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">
</span></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">Want to read more go here: <a href="http://www.4shared.com/dir/14111049/eba3d4cc/Software_Docs.html">http://www.4shared.com/dir/xacPp38Z/Sun_LDOM.html</a></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-size: 11pt;">password = sunldoms <o:p></o:p></span></div>
</div>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com4tag:blogger.com,1999:blog-417630074065643982.post-44333075493264417672008-11-02T11:29:00.000+05:302009-06-06T12:31:27.328+05:30Blog during FlightWell guys, I'm not aware of the numbers pertaining to Air Blog writers but if they exist i would like to squeeze myself into the list. This blog was crafted when i was in Delhi-Bangalore flight. Maternal uncle and mom dropped me to the airport and after that i was on my own( not a first timer).<br /><br />As usual, dashing air-hostess in blue and red dress were witnessed, mind boggling figures in both negative and positive sense. Although, airline which I've to board has blue mermaids but i was fare to both seriously, means drastic highly concentrated concentration on both. No doubt with super extra poured makeup they were the eye catchers and for the record I'm a aesthetic.<br /><br />Delhi IGI airport isn't like Bangalore new Airport but i saw the construction underway at delhi airport to make it at par with other airports. Till that time feel the construction's heat!!!<br /><br />On my way to the plane in extra stuffed Indigo Bus, I took a newspaper as I already knew they won't be providing it (already experienced same in Bangalore-Delhi Flight). Recession effect everywhere. Damn!!! Anyways I was busy in reading newspaper, never ever read newspaper with this amount of concentration. Reason for same; I had nothing to do.<br /><br />After 10 minutes, more people followed in, i was seated at 21 C, non window extreme right seat. Literally i was cursing myself for this, why the fuck i didn't asked for the window seat. Anyways on my left side were couple and on the other side, a gal which i didn't noticed at all. Strange!!!<br /><br />Normally it never, I must say rarely happens that i miss opportunities to scan a girl but this time it happened and am glad. Gal that i mentioned in above para was decent, well toned, in shape, photogenic. All these details when i had just one side look of her. To be frank, all i was able to see her twin towers in red T shirt and those were soothing and relaxing to both eyes and mind. Nature's natural phenomenon of attraction. Not my mistake, all blame to seats position and my luck. On landing I'll try to get more information and will keep you guys updated!!!<br /><br />There were 4 chicks and no cocks, the best part. Spice-Jet services comes with cocks, just FYI. One mermaid, best out of 4, made two silly mistakes. On ordering bottle of water, I was served 2 cups of water and then other one(1st one left) politely ask me to pay 25 bucks. Holy shit!!! I gave a shocking stare to her and then "opps!!!! did you ordered for bottle of water". I said "YES" and "No way I'm gonna pay 25 bucks". And then later, the best mermaid gave my half drank bottle to other guy!! Both the time she gave a nice close-up smile. Who the hell wants that?? BTW 25 bucks bottle was not even 1L.<br /><br />Hold on!! Just now i saw her complete face and she's snoring. Man, she's desperately trying to adjust herself, in other words, comfortable expansions. I wonder is she really sleeping?? Time now 1st Nov,17:47, outside view is cloudy with dangling red beam of light appearing. 30 minutes to land.<br /><br />Don't know where she went.██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com0tag:blogger.com,1999:blog-417630074065643982.post-63329551108528106242008-10-06T14:43:00.000+05:302009-06-06T12:31:58.237+05:30Human nature!!!<p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;">Sometimes we shouldn't delve ourselves in unknown things but guess what?? Curiosity engrafted in human nature does everything. Getting acquired us with internet connection and a simpleton thought of sharing it resulted in a small but funny mess up.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p>Me and my roomy a.k.a "desperate mario" or "Gaanda Bhai" cherished a good speedy internet connection, which we got somehow but another problem knocked on the door i.e. share-out. Solution was a "Router" which needs a good, well hand on experience in coiffing up. For the record, we both are tyro. This led a journey in search of cheapest, nicest, decent router. So we both, flying high in air reached the market. Alas!! We just found one shop with minimum cost 1900 bucks. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p>Consultation with friend, market rates and our wild guess thought; we concluded that cost is too much and we can get much better deal in wholesale market. Dropped the idea and headed for lunch and then home. Now read below conversation:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -1in;"><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p>Me: <span style=""> </span>Dude, my old internet connection is somehow working even though logically it should get expired.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;">Gaanda Bhai:<span style=""> </span>Is it? Then mine should also work?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -1in;"><span style="font-size: 10pt; font-family: Arial;">Me:<span style=""> </span>Try it out. Till then let me search router prices. Come here, I found some local shop sites and prices are almost identical. Moreover the shopkeeper was little cheap.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;">Gaanda Bhai:<span style=""> </span>(Had a look). Yeah. So let’s drag our asses once again to that shop and buy it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;">Me:<span style=""> </span>Dude but weather says, hold on boys, I'm going to piss.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -1in;"><span style="font-size: 10pt; font-family: Arial;">Gaanda Bhai:<span style=""> </span>But few days back you coined yourself as "Player of Dangers". Was that a fluke, joke or what?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;">Me:<span style=""> </span>(Inner self stood up) Naahh, lets move<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p><br /></o:p>Gave a nice warm up kick to bike and we headed for the destination. Weather forecasting was veracious as we felt the airy piss. Bought D-Link router from the shop, denied from the discount but we had no choice. Behemoth chore of setting the router was our next exercise. Confidence level of Gaanda Bhai was awesome as he started configuring it on Windows Vista. Me got busy with youtube and some other undisclosed stuff.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p>Windows screen showed "Router configured successfully", moment of self boasting and gasconading but it was for few seconds huh! The next big Q was "Why the hell internet isn't working??". Tried every kind of possible ways and finally we figured out "We MESSED something". This something is abstract, either its connection, LAN, setup or maybe router itself??<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p></o:p>Mac was untouched, at least old internet connection was running smoothly. Youtube was up and running. Finally we both stopped because we don't want to mess more elements. Appreciable contribution of mess goes to Human nature!!!<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com3tag:blogger.com,1999:blog-417630074065643982.post-55940937245264155882008-08-05T11:18:00.000+05:302009-06-06T12:32:58.940+05:30Coding Competition<p class="MsoNormal">Nowadays life is busy like hell with multitasking things but no issues with the life. Few weeks back I came across an online coding competition and caught my dangling attention. Problem was awesome but it wasn’t tricky @ all. It was more of designing and modeling the problem into definitive solution. I learnt enormous and numerous things from the qualification problem.</p> <p class="MsoNormal"><o:p></o:p>I wasn’t doing it alone, I involved my two friends (Chandan Sharma: my ex office colleague and Vaibhav Kumar Chaudhary: my college friend) both are good in coding<span style="font-family: Wingdings;"><span style="">J</span></span> and designing. Problem was “<b style="">Creating Personal CVS (PCVS) with some specific of commands</b>”. I asked my both friends to go through the problem, interpret it and jot down all important points. There was one more constraint i.e. solution was only to be given in one JAVA 5 file. Now this constraint confused us as we thought of applying pure OOP’s to the problem so we almost forget to apply. Result was C style coding using JAVA language. </p> <p class="MsoNormal"><o:p></o:p>The first working version of the problem was very scary but bottom line was it was working<span style="font-family: Wingdings;"><span style="">J</span></span>. I myself got confused when debugging the code. That was bound to happen if there is no paper work. Straight putting hands on the code and started on, 8 hours of debugging and code was finally...unreadable? Goshh no sense of professional programming was shown. But we continue to write the code and a situation came when no one actually knew what code was written but other. Integration of new code into existing code was also affected (we were not using any repository<span style="font-family: Wingdings;"><span style="">L</span></span>). </p> <p class="MsoNormal"><o:p></o:p>I was happy for the testing part. Testing was honorable and effective. It was done in line with the code and resulted in surfacing of bugs. </p> <p class="MsoNormal"><o:p></o:p>But during all this cognitive process, we came to know the importance of software development life cycle. Importance of team work, designing, testing, requirement gathering etc was surfaced. To be frank we sort of failed to gather the real requirement, to some extent we misinterpreted the problem. </p> <p class="MsoNormal"><o:p></o:p>Second version was proposed by Chandan was complete OOP’s. Code undergone drastic re-factoring and whirlpool. Almost 2.5 man days spent only on this. Saturday morning around 9 we started and Sunday morning 4 we slept. Body and mind totally exhausted. Concentration swung. </p> <p class="MsoNormal"><o:p></o:p>Learning, whenever one gets stuck into problems, get fresh air. It’s really foolish to continue working on that problem with tired mind. Go outside, get your eyes on moving birds and come back<span style="font-family: Wingdings;"><span style="">J</span></span>. Fresh mind solves problem much faster. </p> <p class="MsoNormal"><o:p></o:p>Good news was that we qualified for the main competition and this time our approach will be entirely different. People learn from mistakes and so we did.</p> <p class="MsoNormal"><o:p></o:p>Site: <a href="http://www.n-brain.net/hydra-versus-dragon.htm">http://www.n-brain.net/hydra-versus-dragon.htm</a></p> <p class="MsoNormal">Forums: <a href="http://www.n-brain.net/forums/">http://www.n-brain.net/forums/</a></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com2tag:blogger.com,1999:blog-417630074065643982.post-16379410614198146752008-07-18T10:06:00.000+05:302009-06-06T12:33:22.503+05:30Question asked to me<p class="MsoNormal"><st1:place st="on">Lot</st1:place> of things came into my mind when this question popped in front of me. They were heterogeneous, tangled and doubtful. Really I never thought on this trivial topic “<span style="font-weight: bold;">How to aspire to shape </span><st1:country-region style="font-weight: bold;" st="on"><st1:place st="on">India</st1:place></st1:country-region><span style="font-weight: bold;">’s future</span>?” </p> <p class="MsoNormal"><o:p></o:p><st1:country-region st="on">India</st1:country-region> is a county of diversities i.e. they are into everything and all require proper vigilance in order to shape <st1:country-region st="on"><st1:place st="on">India</st1:place></st1:country-region>’s future. <st1:country-region st="on"><st1:place st="on">India</st1:place></st1:country-region> is traditionally an agriculture county and that was the base of its future and still its root. Gradually everything is shifting towards modernization and <st1:country-region st="on"><st1:place st="on">India</st1:place></st1:country-region> needs to maintain its pace with all this speedy changes. Lack of awareness, not taking risks and ignorance is hampering <st1:country-region st="on"><st1:place st="on">India</st1:place></st1:country-region>’s growth. Lethargic actions of Indian government also contributed into it.<span style=""> </span>For e.g. 3G is still not in India, other countries are moving towards 4G and India has still not seen the light of 3G. Government is not keen to take fast and intelligent steps to get this technology in <st1:country-region st="on"><st1:place st="on">India</st1:place></st1:country-region>. </p> <p class="MsoNormal"><o:p></o:p>Lack of awareness is another big loop hole in this. Farmers are not introduced to new technologies which can boost farming experience which in turn will lead to economic rise in <st1:place st="on"><st1:country-region st="on">India</st1:country-region></st1:place>. </p> <p class="MsoNormal"><o:p></o:p>According to me, today any country is directly linked to the technology they are equipped with and <st1:country-region st="on"><st1:place st="on">India</st1:place></st1:country-region> is lagging behind. Technology keyword is stressed too much because every other thing is linked to it one way or another.</p> <p class="MsoNormal"><o:p></o:p>Faster we get used to technology, faster we will develop.</p>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com5tag:blogger.com,1999:blog-417630074065643982.post-21355059268599836322008-07-07T13:35:00.000+05:302009-06-06T12:33:48.842+05:30My Latest Bike Accident<p class="MsoNormal">I really get angry when I meet with accidents and that too when it wasn’t my mistake but my dilemma I can’t do much except to accept it and going into recovery stage. Friends, exactly 1 week back i.e. 30/06/08, morning 8:15 in front of Airtel office on 100 feet road Indiranagar, <st1:city st="on"><st1:place st="on">Bangalore</st1:place></st1:City> (complete address intentionally mentioned); fast, quick and stupid accident took place.</p> <p class="MsoNormal"><o:p></o:p>I woke up early in the morning with the intention in my mind to reach office early to finish up the backlogs. Had a good super heavy brunch (am used to it), kicked the bike and started. Hardly few meters I drove, a stupid aunty fallaciously crossing the road led to bike accident. Don’t worry nothing happened to that stupid, jerky and goosy aunty.</p> <p class="MsoNormal"><o:p></o:p>That road gets traffic from one direction i.e. opposite traffic not possible, I was driving from right direction and she was looking on opposite side. What the hell she was looking @? I kept my thumb on horn, blowing like anything and she’s looking other side. I wasn’t coming from other side or she thought sound coming from other direction or what?</p> <p class="MsoNormal"><o:p></o:p>One problem, it was little bit drizzling too and roads were little bit wet but no so much to sink a bike<span style="font-family: Wingdings;"><span style="">J</span></span>. Bike got skid from right side, gruesome injuries sustained on right leg, left and right hand, shirt got damaged; jeans got a good sexy funky look but my helmet didn’t came out, that was the best part of accident. </p> <p class="MsoNormal"><o:p></o:p>That stupid aunty calmly walked and crossed the street; acted as if nothing happened, I got up quickly and yelled @ that aunty but I forgot she was deaf. Some people came for help took my bike aside and gave me water to clean myself but damage was internal. Somehow managed to start bike and went to MORE, I was about to go in, guard stopped and said it’s not open. Even after showing the wounds, he was so rigid that he didn’t let me in. Screw MORE!!!</p> <p class="MsoNormal"><o:p></o:p>I straight went to home where my dearest room partner and friend Mr. Ashutosh Sharma was sleeping like horse (don’t ask me the reason for that), first I yelled @ him for not picking the call after the accident and then I asked him to clean the blood with its own bare naked hand. He was scared I tell u. Anyways he managed to do some cleaning and then we went to hospital for dressing.</p> <p class="MsoNormal"><o:p></o:p>Lack of patients in the hospital resulted in 5 nurses doing dressing of the wounds which wasn’t required @ all. Cleaning was ruff and tuff, more pain then accident. 2 injections (tetanus and pain killer) inserted into partitioned ass. I really hate this.</p> <p class="MsoNormal"><o:p></o:p>Came home and took couple of days leave. Totally bored, watched movies rewind the movies and slept. Sleeping was terrible; I have to sleep in only 1 position, can’t bend either way. I wasn’t able to take bath for 4 days (no problem).<o:p></o:p></p><p class="MsoNormal"><o:p></o:p>At office following questions on different intervals were asked by 95% people; what happened. Why are you limping? When happened? Etc. Initially I liked telling them but later I got irritated and didn’t move for my seat.</p><p class="MsoNormal">Now situation is under control and wounds are healing slowly.</p>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com10tag:blogger.com,1999:blog-417630074065643982.post-26311161518750794902008-03-19T18:36:00.000+05:302009-06-06T12:34:15.431+05:30Intra Corporate Cricket Tournament<p class="MsoNormal">Cricket, the most hyped, acknowledged, dominant game here, in other words supreme of all the games played in <st1:country-region st="on">India</st1:country-region> jus as football in <st1:country-region st="on">Brazil</st1:country-region>, cricket in <st1:place st="on"><st1:country-region st="on">India</st1:country-region></st1:place>.</p> <p class="MsoNormal"><o:p></o:p>Just few days ago, LogicaCMG organised tennis cricket tournament, accentuating on tennis thing because more than 90% of enthusiastic and passionate cricket lovers were frighten of original cricket ball ahhh didn’t mean to scare you all but honestly saying, ball can seriously scathe the soul in absence of safeguards.</p> <p class="MsoNormal"><o:p></o:p>Proceeding further, it was an entire day event with 2 pitch sequestered ground belonging to us, 20 competitive, aggressive and emulous teams (4 teams forcefully added), battle led off on the wee hours of mornings precisely @ 8, with 7 per over an inning. Weather was perfectly befitting for the war, pitch not exactly the way it should be, 3 wickets on a side while 1 on the other (rest 2? Cause; lack of money huh!!), ball best-known as “Vicky” was one of the weapons, other of course bats.</p> <p class="MsoNormal"><o:p></o:p>Commentary!! Yes folks it was there and writer of this blog was one of the commentators. All the games were played in high spirits and liveliness’s accompanied with spat, conflicts and disputes, which according to me should be present. No fun if they’re missing. Most teams were distinguished on the basis of their dressing (don’t think party wears<span style="font-family:Wingdings;"><span style="">J</span></span>).</p> <p class="MsoNormal"><o:p></o:p>1<sup>st</sup> match of tourney and appallingly we were. Further non availability of our elegant team members, contributed to our woes huh!! But we, <i style="">aka </i>players of dangers didn’t backpedaled and decided to play (nothing can stop us<span style="font-family:Wingdings;"><span style="">J</span></span>). Opposition racked up 78 runs, mighty big task which we initially thought of was accomplished in mere 6 over by our elegant, skilled and non professional players. Sort of electric current swarmed in the team and soon after the game “smile please” i.e. photo shoots. Team charged up for the 2<sup>nd</sup> game, self belief was speaking; confidence level went so high it could have got an air hostess down with it.</p> <p class="MsoNormal"><o:p></o:p>The game was sort of highlights in the TV as non stop hardcore hitting was there like come and go. Runs were scored like an Indian taximeter. Players were confused as a child is in a topless bar. Bowling was flat as dosa. Just like fattest pigs go to the butcher first, less pacer goes out of the boundary first.</p> <p class="MsoNormal"><o:p></o:p>Our 2<sup>nd</sup> match, opposition scored 84; 7 over, we scored in 6.3 over. Bulk runs scored by me i.e. 61, showcase of pure explicit hardcore strikes, nothing official about it. Time was for rest to prepare for 3<sup>rd</sup> match so subsequently team went in rest mode. I carried on with my unusual commentary. </p> <p class="MsoNormal"><o:p></o:p>3<sup>rd</sup> match was the breathtaking match I must say. Just imagine people 6 balls 42 runs, and team scores. What more we want then this? Awesome scene, yelling, strategies, stress, tension, everything was there. All credit goes to playing batsman. Max of 36 runs can be scored if balling straight, slow and simple but we achieved more then this. It was one of the electrifying, thrilling, atingle and exciting matches of the tourney. Jubilations were there, teammates jumping on each other, generating loud noises.</p> <p class="MsoNormal"><o:p></o:p>But everything boils down to the deciding match. Frankly speaking, we didn’t expect that kind of performance after how we played in our last matches. WE LOST, LOST by a good margin, No fight to the oppositions!! Bowling was appreciated but batting was below expectations. No strategy and wrong planning were the key reasons. </p> <p class="MsoNormal"><o:p></o:p>In the end, prize distributions ceremony happened, we stood 2<sup>nd</sup> and some what satisfied.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p>██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com2tag:blogger.com,1999:blog-417630074065643982.post-19089268513026774382008-01-17T20:19:00.000+05:302009-06-06T12:35:29.762+05:30Coorg TripFew days back, we got an opportunity to visit COORG, I would rather say we snatched a justifiably deserved reward for all the hard work we did. As soon as it was annunciated, a current of cheers propagated on many faces. They were delighted, enthralled, excited. Here i think the most appropriate word to use is CHARGED, all were charged up even before 3 weeks, really never seen them while they were working lol. After all the awaiting the day eventually arrived. People participating in the trip came with all their heavy compressed squeezed baggages as if they were going on 1 week trip.<br /><br />20 people including 2 feminine, few potent, few frighten, equipped with weapons of mass destruction like Digi Cams, camcorder etc, journey kicked off from the office campus. Traditional back benchers as usual invaded the bus and got control of the back seats, to mention I was one of them. Throughout the trip 2 feminine with god gifted vocal strength (confused about their intensity of voice lol) were making Noises...Ahhh nothing fits here lol…Anyways we also had an intermediate Guitarist (not an EXPERT lol) whose primary goal was to entertain people who don’t know how to play guitar lol with singing as well. Approaching towards the singing part, people of dissimilar vocal strengths were singing (without any sur and taal), I don’t think so but they were.<br /><br />In between we stopped @ 2 places, I don’t know about others but me especially for loo and fag... (Hope u understands the urgency of situation when someone gets the natures call). In the bus the traditional times pass game ANTAKSHARE was played but to a shock active participants were the masculine ones..woowww I thought its best played by feminine and here I was proved wrong lol. Hats off to masculine!!!<br /><br />Around 10 in night we reached our destination, all were exhausted, tired and hungry, and I’m damn sure they were missing their sweet bed lol. After refreshing themselves all gathered near the camp fire (not the traditional one), don’t know about others but me only for Daaruuu and food. As soon I reached there, my eyes became sharper, prominent, widened like an owl probing for the madira bottle and as soon as I got it..holaa!!!! I pounced on it, grasped softly, delicately handled (as we had only I bottle), carefully (like a new born baby) I just opened it heheeh, started preparing and delivering packs to all the necessitous guys.<br /><br />Within few minutes, I went into another world, world of Daaru and me!!! Then came dinner and they swooped on it like starving dogs. Dinner was served in installments as there was the mismatch in eating and serving speed but it was managed cos of some solitaire guys. After getting our tummies full we went for some useless discussions which I wasn’t encouraging @ all. After a while I felt I was about to go out of control, I stepped out and silently moved to my hut, the sweet bed.<br /><br />Next day in the morning around 7, a merciless creature woke me (I wish I would have smacked him) to get ready for the adventure. But to my fate it started just near my hut. Great huh!!!!! Canoeing was the first sport that we all did. It was the test of strength, learning curve and presence of mind which almost everybody passed. After that yakkuuu, means dived into the water (risk taker)!! I was the 1st one to wet his clothes and subsequently everyone followed include feminine. Water was so warm that we were shivering cos of cold but nobody really backed off cos life jackets and supporting ropes were there hehehe. I was @ my best on splashing water on my friends. Few of them did canoeing twice!! (Wasn’t really required)<br /><br />After squandering our energy levels, time was to regain it by having breakfast (triangle shape poores and saag), for the record I ate 15(mediocre count huh!!). 20 people packed in a jeep like animals, open from back, standing, trying to nuzzle in other words getting themselves comfortable, started for their next adventure i.e. Rappelling (the most perilous, risky and vulnerable activity), and again for the record I was first (one of the trio) to do it (Did twice). We did it @ CHELAVARA FALLS, nice place for this activity with one side having falls, just besides the slope. Really it was the awesome scene and nice place to take shots. Everyone took part, some frightened, daunted, some energized and excited. A new acronym word “Family Jewel” was contributed to my vast dictionary (don’t ask the meaning hehe). Few people were assaulted by the leeches (blood sucking creatures) but no pain @ all. In fact after this everyone started searching 4 leeches, even a slightest hint of their presence was creating panic (I don’t think leeches murders people hehe) and god gifted vocal ladies were @ best lol.<br /><br />Then we went for unusual trekking to a mountain having inception from straight roads. Some adventurous, courageous, intrepid guys touched the apex of the mountain with dropping their energy levels frequently but finally they got succeeded in their task. View @ the top was awesome, clouds, greenery, we were literally in b/w of the clouds and nothing was visible except fellow nearby colleagues. Few guys even left their stamp (nature’s call) their and I was searching for elephants although I didn’t have any but who cares.<br /><br />Shivery night came with inadequate amount of light. All with their hungry stomachs rapidly gathered around the bonfire, anxiously waiting for the khana. Meanwhile others were interested in concocting tales about the bloodsucker’s leeches as a fairy tale… huh! Food arrived and folks pounced that’s the way it was.<br /><br />All good things comes to an end so as our trip, it was time to pile all spread out things and move our gorgeous body to our original terminus. State of silence was there, guys were keeping themselves mum, it was like a trailer which was over. Resistance from the body to move away from the place was more than the place imparted the attraction.██ █ █ रावत_ही™ ☠http://www.blogger.com/profile/10667871188752461190noreply@blogger.com4