Monday, September 5, 2011

Ekadantam Upasmahe

Here's a clarification about one common misconception regarding a well-known sloka that some of the recipients of my mail really liked when i pointed it out:
अगजानना  पद्मार्कं  गजानना   महार्निसम| अनेकदं  तं भक्तानाम   एकदंता उपास्महे
I think it should be "anekadam tam" like above (bestow many (goodies) to your (devotees))
and not "aneka dantam" (many teeth). 


Vishnu Pendyala

Saturday, July 31, 2010

Script to convert bookmarks from windows IE to Firefox on Apple Mac

If you, like me and other busy bees around :), didn't have time to import bookmarks, etc. before retiring or returning a Windows machine, you'd have just backed-up the raw .html files that IE saves in the favorites folder. Now when you move your backups to Apple Mac, safari browser knows how to work with those .html files and they almost seamlessly integrate into Safari bookmarks and show-up with a .url extension. Then you discover that Safari isn't enough for you (for instance, i couldn't pay my comcast bill using safari) and so you move to Firefox.

You export the bookmarks from Safari into Firefox. Your old IE bookmarks show-up with a .url extension in Firefox (other bookmarks that you added in Safari, i think work fine). So, you click on one of those favorites with a .url extension and Firefox goes nuts with it. On my MBP, firefox was going in an infinite loop when we select a .url bookmark in the favorites - it tries to open infinite windows. Searched quite a bit, but could not find something quick and easy to deal with this issue, so wrote the following to convert bookmarks, so they can be used directly with Firefox. You would get the bookmarks.html file that you will pass as an argument to this script by exporting bookmarks in Firefox. Redirect the script's output to an html file and import it back into Firefox. Enjoy, Vishnu Pendyala

#!/usr/bin/perl

#!/usr/bin/perl

# Script to convert a bookmarks.html file on Mac Book Pro
# with .url file locations imported from Windows IE8 to
# import as Firefox bookmarks.

open FH, "<ARGV[0]";
while (<>) {
 if (/file:/) {
   $filename = $_;
   $filename =~ s#.*file://##g;
   $filename =~ s#\.url".*#.url#g;
   $filename =~ s#%20# #g;
   chomp $filename;
   open FH1, "$filename";
   @urlFile = <FH1>;
   close FH1;
   @line = grep (/^URL=/,@urlFile);
   $url = @line[0];
   $url =~ s#^URL=##g;
   chop $url;
   s#"file:///.*.url" #"$url" #g;
   s#.url</A#</A#g;
 }
 print $_;
}

Saturday, December 5, 2009

A Tip to Tom Campbell

Here's my exchange of ideas so far with Prof. Tom Campbell, leading
Republican candidate for California Governor, on a topic that's
very relevant to us in the current day - our jobs! I still believe that
the employer is in a much better position to protect the jobs of
its employees than the employees themselves. Your thoughts
are welcome!

Extracted from:
http://campbell.org/economy/#comment-22263668

v pendyala 3 weeks ago

Tom, I attended your very insightful and visionary keynote yesterday morning at SIPACON. One idea I wanted to share with you is that there cannot be a bigger loss to the economy than leaving educated, qualified workers unemployed. Recovery lies in designing ways to harness their skills more than infusing printed money into the downward stream. As can be concluded from your keynote as well, the latter only inflates yet another bubble. A better alternative is to bring legislation to make employers take better responsibility of employees' careers. You may like to consider this in your agenda. Vishnu Pendyala

TomCampbell 6 days ago in reply to v pendyala

Many thanks, Vishnu, for your kind words. The loss from under-employing our workforce is, indeed, extreme. I'm not completely clear, however, on what you are suggesting for laws to require employers to "take better responsibility of employees' careers." My approach would be to lower the costs that government imposes on hiring people, especially in California. Lowering the payroll tax, as soon as we cut government spending enough to afford it, would be an obvious choice at the federal and state level. Other than that, I have some hesitation about imposing obligations on employers that would tie employees to that employer, and if the obligation did not come with a parallel obligation on the part of the employee, it would be an additional burden on the employer. Your further thoughts are most welcome.

v pendyala 2 days ago in reply to TomCampbell

Thanks for your reply, Tom. Currently, for an employer, the most expensive and the easiest to cut-down resource seem to be employees. The resulting stress on the remaining employees, who have to cover for the laid-off employees, could be quite unproductive to the company and eventually to the society and the economy. IMHO, an “economic bubble” is a result of greed that causes prices and paychecks to inflate beyond what’s backed up by goods and services. Greed is to economy as a blood clot is to the heart. Both clog the free circulation of essential currents. So, my suggestions are to:

1) Make it mandatory for the companies to first explore ways to remove the “greed” factor from the employees remuneration and spending, before jumping on to layoffs. These could be by way of pay-cuts where appropriate, cutting-down non-essential expenses and supplies, voluntary surrender of accrued leaves, furloughs, etc. Layoffs should be the last resort. Greed is often incorrectly justified by motivation to work, but true motivation may lie in helping a co-worker to have his job and support a family.

2) Encourage companies with 50 or more employees to form an employee welfare committee drawn from and accountable to the employees to look into any unfair layoffs or career issues – something short of a union, but better than leaving employment entirely to demand and supply forces or whims and fancies of the managers. Company’s HR department may not be very effective here because they report to the management. Ideally, employers should guide, coach, and help employees to be of better use to the world and in a sense, take responsibility of employees careers. I believe there are companies which already do these and are still successful with their bottom-lines. Radical change may not be possible, but at least a thought in that direction may help in the long run.

Saturday, October 17, 2009

Cooking Tips

  • For chapaties, mix whole wheat flour with milk / whey from the curd. The chapaties / rotis / parathas would be softer that way.
  • Replace oil with curd wherever possible for less fat and better taste.
  • Make dosas and idlis after mixing curd in the batter.
  • Replace ranch dressing with curd, salt, and pepper on salads.
  • Fry sprouted chana with onions and mix with canned tuna - a healthy and tasty snack for the evening.

Saturday, July 11, 2009

CA-1

  • One of its kind drive. Don't miss it.
  • Driving from North (say, from San FranciscO) to South is best because the ocean is just beside you.

Crater Lake

San Francisco

  • Explore Stairway Walks in San Francisco.
  • Get in touch with some good hiking groups. They may be able to tell you where to find free parking.
  • Twin Peaks is a hidden gem, offering excellent views.
  • Get your cartoon done on a sidewalk near fisherman wharf.