<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2098581879204568597</id><updated>2026-07-23T23:06:09.108-07:00</updated><title type='text'>Technical Talk</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-1934193092684650845</id><published>2013-06-23T12:12:00.001-07:00</published><updated>2013-06-23T12:54:46.775-07:00</updated><title type='text'>User Gmail web front end for sending emails automatically</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sending Gmail through SMTP is easy, but then, to prevent SPAM, Google allows only 100 emails a day. This tutorial shows how to &quot;fool&quot; the system using Gmail mobile front end and any web automation tool (say Greasemonkey)&lt;br /&gt;
&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;1)&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-7f16be68-7276-9798-40e3-2bcbf44490db&quot;&gt;Compose an email with all the file attachments you want to send automatically. The contents of the email and the subject do not matter as you will&amp;nbsp;programmatically&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;change it later. Send the email to yourself.&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Create a new folder/label and store the email. ( So that you can easily find the email later on)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;2) &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; line-height: 1.15; white-space: pre-wrap;&quot;&gt;Log in to your gmail id. and open the following URL (gmail mobile)&lt;/span&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-7f16be68-7291-4033-d2bc-3031cdbb199c&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #0065cc; font-family: Arial; font-size: 13px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;https://mail.google.com/mail/x/&quot; style=&quot;text-decoration: none;&quot;&gt;https://mail.google.com/mail/x/&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Check if the folder/label you just created is visible&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; line-height: 1.15; white-space: pre-wrap;&quot;&gt; ( So that you can easily find the email later on)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;. if not, click &quot;more&quot; and make it visible.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh72T66Q2x-pA5q7WjwIQ87SohncgWhjk3LB_iqnDAd5QX70nHDvCO_VcYnU4yLvpr0glb40LRL3ckzMJqtF-UmUal-iVamul-pJ2bwjPYclj7SlK6UR0u8wYIwLmI9728hNm53LaDfPvY/s1600/label.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh72T66Q2x-pA5q7WjwIQ87SohncgWhjk3LB_iqnDAd5QX70nHDvCO_VcYnU4yLvpr0glb40LRL3ckzMJqtF-UmUal-iVamul-pJ2bwjPYclj7SlK6UR0u8wYIwLmI9728hNm53LaDfPvY/s1600/label.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-7f16be68-7294-8208-b4ea-0d94199f3e55&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;3) Click on the label and find and open the email&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;4)Click forward&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC041yEQiDocEmw-h9KxI0-KFQpcFM4cFdGAD-kgpZD8I9PfGlrpcEvc84ijoDLN9mLiqWal-AZcQ1xPeV7bJE5CRW7vXnSkoB9gORo3cqZoasx1Qw1qeakzCGZQ3Fp7D6My_GI_vsjbM/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;157&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC041yEQiDocEmw-h9KxI0-KFQpcFM4cFdGAD-kgpZD8I9PfGlrpcEvc84ijoDLN9mLiqWal-AZcQ1xPeV7bJE5CRW7vXnSkoB9gORo3cqZoasx1Qw1qeakzCGZQ3Fp7D6My_GI_vsjbM/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;5)Remember/Note  the URL of the &quot;forward&quot; page. The trick here is, unlike the full version of gmail, in mobile gmail, the URLs for each email are static)&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;So, to send an email , all you have to do it use any web scraping too to fill the &quot;To&quot; , Subject, and body fields&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;6) The following greasemonkey code is an example of sending emails using this URL&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; font-size: 15px; line-height: 17px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;//wait until you find the send button
call_recurssively(&#39;&#39;,function(){if(gc_composepage_identifier) {
           return 1;
          }else{
          GM_log(&#39;waiting for email page to load...&#39;);
          gc_composepage_identifier = document.getElementById(&#39;send&#39;);
          return 0;
          }
      },
      function(){ 
       send_and_close();
         },
      400);

function send_and_close() {
  if (gc_composepage_identifier) {
  var hash = document.location.hash;

  if (!hash) GM_log(&quot;no hash&quot;);
  //sub-window accessing parameters
  if(hash.match(/^\#emailParams(.*)/)) {
    var params = RegExp.$1;
    
    }
    
    

   var lt_emailParams = params.split(gc_emailParam_separator);
   if(lt_emailParams.length &amp;lt; 3){
   window.location.href = &#39;www.pleasePassAllEmailParams.in&#39;;
   return 0;
   }
  
  $(&quot;#body&quot;).val(decodeFromHex(lt_emailParams[0]));
  $(&quot;#sub&quot;).val(&quot;Re:&quot;+decodeFromHex(lt_emailParams[1])); 
   $(&quot;#to&quot;).val(lt_emailParams[2]);
  
   $(&quot;#haot&quot;).removeAttr(&quot;checked&quot;);
   //for testing
   //alert(decodeFromHex(lt_emailParams.join(&#39;\n&#39;)));
   //$(&quot;#send&quot;).click();
   }
} 

  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/1934193092684650845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/1934193092684650845' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/1934193092684650845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/1934193092684650845'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2013/06/user-gmail-web-front-end-for-sending.html' title='User Gmail web front end for sending emails automatically'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh72T66Q2x-pA5q7WjwIQ87SohncgWhjk3LB_iqnDAd5QX70nHDvCO_VcYnU4yLvpr0glb40LRL3ckzMJqtF-UmUal-iVamul-pJ2bwjPYclj7SlK6UR0u8wYIwLmI9728hNm53LaDfPvY/s72-c/label.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-6327679208502988264</id><published>2013-01-06T11:53:00.001-08:00</published><updated>2013-01-06T11:53:34.281-08:00</updated><title type='text'>Insert Custom PHP code in wordress posts</title><content type='html'>&lt;b style=&quot;font-weight: normal;&quot;&gt;Step 1: Login to wordpress site as admin&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;b id=&quot;internal-source-marker_0.3975339021999389&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Install a plugin &quot;Allow PHP in Posts and Pages&quot;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Activate it&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b id=&quot;internal-source-marker_0.3975339021999389&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;img height=&quot;248px;&quot; src=&quot;https://lh3.googleusercontent.com/o5HgYStfHV_Pnob0erIeGHlgw4AFE8Qs737LELdKLYfRZMJcYj40w0--jhbZKT19Ch2URoxjDCXHkDz2kuyBYg3D9SdRBDqOSv_-O86ZFQgvkqs7Pps&quot; width=&quot;800px;&quot; /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;2) Create a code snippet&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;img height=&quot;407px;&quot; src=&quot;https://lh6.googleusercontent.com/ayzhyrRgEcbspdcF6gmDPhyypzYulVspMY9ak9Ct-K0LeiYcBP6LeRB-lsSpQqfmki_wSdx746wajn4MEl8UjwRmTLisX5Uv4s4NrxkqkqZpV21hSmA&quot; width=&quot;800px;&quot; /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Create a code snippet. &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;NOTE: DO NOT begin your code with &lt;br /&gt;&lt;span style=&quot;color: red; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Paste the following code&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;global $current_user; get_currentuserinfo(); &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;echo &quot;Hey dear:::&quot;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;echo $current_user-&amp;gt;user_login;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-style: italic; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;The plugin will create a new snippet,  &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: Consolas; font-size: 15px; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;[php function=1][/php]&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #444444; font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;3)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Insert the snippet anywhere in your pages or posts&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;span style=&quot;font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;img height=&quot;299px;&quot; src=&quot;https://lh5.googleusercontent.com/w7nyQNfq-6gBfrR6ic-Zop7BqI1nV9xtAnsBIih-qeeWe0mxmFfihO7S9LXhRSHke4X6h1On0giV1eEa3P34QIKD11G8RPpOUpGK_nHRipoh26yHvcw&quot; width=&quot;800px;&quot; /&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: Arial; font-size: 15px; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4) The username will show up&lt;br /&gt;
&lt;b id=&quot;internal-source-marker_0.3975339021999389&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: red; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;img height=&quot;321px;&quot; src=&quot;https://lh5.googleusercontent.com/xxC0CgoUeyCD0P7RpAl7HjNWNQHPzvN9mtsjoM1Rbzc4BjRWPACO5gl7WiibYkmGTnYvtsI-gYWsQ9pJG7Ldwd5kCM56VpcDFiutjWlKSGBUtzT-vjg&quot; width=&quot;650px;&quot; /&gt;&lt;span style=&quot;color: red; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/6327679208502988264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/6327679208502988264' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/6327679208502988264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/6327679208502988264'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2013/01/insert-custom-php-code-in-wordress-posts.html' title='Insert Custom PHP code in wordress posts'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh3.googleusercontent.com/o5HgYStfHV_Pnob0erIeGHlgw4AFE8Qs737LELdKLYfRZMJcYj40w0--jhbZKT19Ch2URoxjDCXHkDz2kuyBYg3D9SdRBDqOSv_-O86ZFQgvkqs7Pps=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-6417089039557804662</id><published>2012-10-04T20:12:00.000-07:00</published><updated>2012-10-04T20:12:39.047-07:00</updated><title type='text'>SAP Portal (WebDynpro and CRM WebUI) Automation Using Selenium</title><content type='html'>Automating actions performed on web pages on SAP portal is harder than automating web pages created in more open frameworks. The biggest problem is that more often than not, SAP portal does not work in firefox. 
 I have developed a framework for easy automation of repetitive task on the portal as well as for regression testing using Selenium (Java and ABAP).&lt;br /&gt;
I am explaining a very simplified &amp;nbsp;way for basic automation in this tutorial. Lets get started...&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&amp;nbsp;Step 1: Installation&lt;/h3&gt;
&amp;nbsp;We&#39;ll need firefox, internet explorer and selenium.
 Selenium setup is the most complicated in this. We will pick java as our development tool, and eclipse is our editor. The following google doc gives details of the entire installation, including configurations for internet explorer&lt;br /&gt;
&amp;nbsp;

&lt;a href=&quot;https://docs.google.com/document/pub?id=1hpdC8yZNHM_DE3C88REW9-USNnwaxUlUlV8j5q9Fhug&quot;&gt;Selenium- Getting started guide&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Step 2: Javascript bookmarklets in internet explorer&lt;/h3&gt;
&lt;br /&gt;
Selenium identifies elements on the web page uniquely by means of their X-Path ( &lt;a href=&quot;http://www.stylusstudio.com/videos/xpath1/xpath1.html&quot;&gt;Here is a good video&lt;/a&gt; that explains x-pth)&lt;br /&gt;
Since our beloved IE gives no facility to easily extract this info, we will hack our way through, with our trusted friend JavaScript. We will click on an element, and then execute the javascript, which will reveal this closely guarded secret. I will explain it in detail in a video in the next section. But before that, lets get our javascripts.&lt;br /&gt;
&lt;br /&gt;
Instead of typing the Javascript code again and again to the address bar, we will save then as bookmarklets.&lt;br /&gt;
Create two empty bookmarks in &amp;nbsp;IE and name them as Xpath1 and Xpath2.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcMb6nZD9zB2NfcoDm3C2oShOgS99RMgImatqfwOb6VaZe7s1Dm5hJimVPrM1ogYO3vkJ3Fin8gaD_xExBsc9QdQW0hDmZg4neiqpeGCWpUBsWMTa3tJjx_nu7FD-b8CP_6_RZAxICop8/s1600/xpath.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcMb6nZD9zB2NfcoDm3C2oShOgS99RMgImatqfwOb6VaZe7s1Dm5hJimVPrM1ogYO3vkJ3Fin8gaD_xExBsc9QdQW0hDmZg4neiqpeGCWpUBsWMTa3tJjx_nu7FD-b8CP_6_RZAxICop8/s1600/xpath.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;Edit the bookmark &amp;nbsp;getXpath1 and paste the following code:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAkXJUNkv4lRKTVn_hqTC87mVhkjmlR4VKdsrcIOjhwPk7VK5jVjy8uDEZjj0_CzZCjEE6NrkNpMlLODos488rA9cy3-t0I2Rr43VJz628MzA0P1t04TpXxGrQzimMZwZAyGa7pa9BAU/s1600/xpath.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAkXJUNkv4lRKTVn_hqTC87mVhkjmlR4VKdsrcIOjhwPk7VK5jVjy8uDEZjj0_CzZCjEE6NrkNpMlLODos488rA9cy3-t0I2Rr43VJz628MzA0P1t04TpXxGrQzimMZwZAyGa7pa9BAU/s200/xpath.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsUzTNBxvudSOPEVdZ8_HTLWD9EUg3PyBxTxT3a7RSM9NC5NDVOzvx0UU2915ZmC2_-TnJ0nJUgL2KNtWqJkSSk7ifiXarevTUtnBc5zkgUQo_AidECbsSxneXOJHKWpqFrut2R-0ElPI/s1600/xpath.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsUzTNBxvudSOPEVdZ8_HTLWD9EUg3PyBxTxT3a7RSM9NC5NDVOzvx0UU2915ZmC2_-TnJ0nJUgL2KNtWqJkSSk7ifiXarevTUtnBc5zkgUQo_AidECbsSxneXOJHKWpqFrut2R-0ElPI/s320/xpath.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;The javascript for getXpath1&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;textarea cols=&quot;30&quot; name=&quot;Famous Quotes&quot; readonly=&quot;readonly&quot; rows=&quot;2&quot;&gt;javascript:function getNode(node){var nodeExpr=node.tagName;if(!nodeExpr)return null;if(node.id!=&#39;&#39;){nodeExpr+=&quot;[@id=&#39;&quot;+node.id+&quot;&#39;]&quot;;return &quot;/&quot;+nodeExpr;}var rank=1;var ps=node.previousSibling;while(ps){if(ps.tagName==node.tagName){rank++;}ps=ps.previousSibling;}if(rank&gt;1){nodeExpr+=&#39;[&#39;+rank+&#39;]&#39;;}else{var ns=node.nextSibling;while(ns){if(ns.tagName==node.tagName){nodeExpr+=&#39;[1]&#39;;break;}ns=ns.nextSibling;}}return nodeExpr;}
&lt;/textarea&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly paste the following javascript to getXpath2&lt;br /&gt;
&lt;br /&gt;
&lt;textarea cols=&quot;30&quot; name=&quot;Famous Quotes&quot; readonly=&quot;readonly&quot; rows=&quot;2&quot;&gt;javascript:function o__o(){var currentNode=document.selection.createRange().parentElement();var path=[];while(currentNode){var pe=getNode(currentNode);if(pe){path.push(pe);if(pe.indexOf(&#39;@id&#39;)!=-1)break;}currentNode=currentNode.parentNode;}var xpath=&quot;/&quot;+path.reverse().join(&#39;/&#39;);clipboardData.setData(&quot;Text&quot;, xpath);}o__o();
&lt;/textarea&gt;
&lt;br /&gt;
&lt;br /&gt;
**** This version of the code is from&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/users/15459/philho&quot; style=&quot;background-color: white; border: 0px; color: #4a6b82; cursor: pointer; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13px; line-height: 17px; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline; white-space: nowrap;&quot;&gt;PhiLho&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/214862/equivalent-of-firebugs-copy-xpath-in-internet-explorer&quot;&gt;http://stackoverflow.com/questions/214862/equivalent-of-firebugs-copy-xpath-in-internet-explorer&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Step 3: Putting it all together&lt;/h3&gt;
&lt;div&gt;
This video explains it all.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/6417089039557804662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/6417089039557804662' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/6417089039557804662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/6417089039557804662'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2012/10/sap-portal-webdynpro-and-crm-webui.html' title='SAP Portal (WebDynpro and CRM WebUI) Automation Using Selenium'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcMb6nZD9zB2NfcoDm3C2oShOgS99RMgImatqfwOb6VaZe7s1Dm5hJimVPrM1ogYO3vkJ3Fin8gaD_xExBsc9QdQW0hDmZg4neiqpeGCWpUBsWMTa3tJjx_nu7FD-b8CP_6_RZAxICop8/s72-c/xpath.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-4688011605304933884</id><published>2012-06-20T14:43:00.002-07:00</published><updated>2012-06-21T09:56:22.500-07:00</updated><title type='text'>Day planner: Manage your life: Be on schedule</title><content type='html'>Every new year, we set goals and flood our diaries with resolutions, only to break them days later. What if we had a &quot;accountability tool&quot;, an easy tool to track progress, break down large goals into chucks and get reminders on your phones, including SMS alert. My Day planner tool, with heavy google integration, has helped me a lot in this direction.&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Google Form --&amp;gt; Google spreadsheet---&amp;gt;Google calendar---&amp;gt;To your mobile device as reminders&lt;br /&gt;
The google form works as an easy interface to Google calendar, where you can enter a bunch of events at once. The google spreadsheet is an intermediate repository, which you can review later to track your success. Google calendar can easily be integrated into your smartphone/email so that you can get timely reminders.&lt;br /&gt;
&lt;br /&gt;
Installation:&lt;br /&gt;
&lt;h3&gt;







1) Open the following link&lt;/h3&gt;
&lt;a href=&quot;https://www.google.com/accounts/ServiceLogin?service=wise&amp;amp;passive=1209600&amp;amp;continue=https://docs.google.com/spreadsheet/ccc?key%3D0Av39D55D8Qa4dEZQQ3pEWi15a19WNGpOci04YkV0SkE%26amp;pli%3D1&amp;amp;followup=https://docs.google.com/spreadsheet/ccc?key%3D0Av39D55D8Qa4dEZQQ3pEWi15a19WNGpOci04YkV0SkE%26amp;pli%3D1&quot;&gt;:Link to a google spreadsheet&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
( &amp;nbsp;&lt;a href=&quot;https://docs.google.com/spreadsheet/ccc?key=0Av39D55D8Qa4dEZQQ3pEWi15a19WNGpOci04YkV0SkE&amp;amp;pli=1#gid=0&quot;&gt;https://docs.google.com/spreadsheet/ccc?key=0Av39D55D8Qa4dEZQQ3pEWi15a19WNGpOci04YkV0SkE&amp;amp;pli=1&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://docs.google.com/spreadsheet/ccc?key=0Av39D55D8Qa4dEZQQ3pEWi15a19WNGpOci04YkV0SkE&amp;amp;pli=1#gid=0&quot;&gt;#gid=0&lt;/a&gt;)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuHmNlJcPOSkr2osj9PX_XiEelFeC6wc6ogcWeTmRshRK0xHC0MlOWY7BtbuVmQJB9rbymfGxeHN7eBAOr7tyKWcUnhkiXc3fSjuTXsOzkCPoedwVf_9r0wELdIB3GLmoZ2KZ4i7FYFZI/s1600/openLink.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuHmNlJcPOSkr2osj9PX_XiEelFeC6wc6ogcWeTmRshRK0xHC0MlOWY7BtbuVmQJB9rbymfGxeHN7eBAOr7tyKWcUnhkiXc3fSjuTXsOzkCPoedwVf_9r0wELdIB3GLmoZ2KZ4i7FYFZI/s640/openLink.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;







2) Sign in your google account if you are not already signed in.&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;






3) Copy this spreadsheet to your own account. Name is appropriately&lt;/h3&gt;
&amp;nbsp;(for example Gahori&#39;s day planner)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv2MnKIOyoMaduRFzcYCUeOqXy5Y87v1hLv90uP7sAtCkmKYWTU8yOCIaY0l_qeBClUA6Wx3dVDtesBox86ogjvaQhSTFyMKW30ssig0LwyKYdhRyijl32N5ueiQwzfpoL3xaDKuBplec/s1600/howtocopy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhv2MnKIOyoMaduRFzcYCUeOqXy5Y87v1hLv90uP7sAtCkmKYWTU8yOCIaY0l_qeBClUA6Wx3dVDtesBox86ogjvaQhSTFyMKW30ssig0LwyKYdhRyijl32N5ueiQwzfpoL3xaDKuBplec/s640/howtocopy.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS4OUgByiZ-c_cZoIGnVp4ECEpJ8aekdt90yAWerbEIH2r1LdIw_huBzJ-TqJF6Gvd5m0wcWumThMq1aHeCyBW02fySNju5PYWAFkvS8q6zINlHqGRCeLbkHSKjAtN1QD6I2r5meP3o6M/s1600/howtocopy2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;302&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS4OUgByiZ-c_cZoIGnVp4ECEpJ8aekdt90yAWerbEIH2r1LdIw_huBzJ-TqJF6Gvd5m0wcWumThMq1aHeCyBW02fySNju5PYWAFkvS8q6zINlHqGRCeLbkHSKjAtN1QD6I2r5meP3o6M/s640/howtocopy2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;







4) Change the time zone of your script to your timezone&amp;nbsp;&lt;/h3&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_u1rTtjoajyVtV1nCnCdwj1JBeCJXXmul72XGp-KL8kMNyQmk8NQ9Hx9EREiRQnjsjTlJM40YglTb3LUvzxzk8nvWN5_XfLT16OVnEUh7S51YMaMkW0cNCoZyC4wd245KR47fKpdBLcA/s1600/addScript.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_u1rTtjoajyVtV1nCnCdwj1JBeCJXXmul72XGp-KL8kMNyQmk8NQ9Hx9EREiRQnjsjTlJM40YglTb3LUvzxzk8nvWN5_XfLT16OVnEUh7S51YMaMkW0cNCoZyC4wd245KR47fKpdBLcA/s640/addScript.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0N_27UeQi6M54kTlLAsT56QEiSNhmMB8HjIy2Vqkza1S2wLMIm4fTFjxa1vcBT7tJoapv2jipxjXi3EWaOCdTmdC5dcU7O9WfPHxAHd5u_hMikru4sJNpukpiXkJFx5G8T4ICapkozKs/s1600/scriptEditor+Screen.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;464&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0N_27UeQi6M54kTlLAsT56QEiSNhmMB8HjIy2Vqkza1S2wLMIm4fTFjxa1vcBT7tJoapv2jipxjXi3EWaOCdTmdC5dcU7O9WfPHxAHd5u_hMikru4sJNpukpiXkJFx5G8T4ICapkozKs/s640/scriptEditor+Screen.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirrxs2nO4ZxKzS6NmsYvsRir0TnhYhbzd1DIFczGICfMWi0WuCSs8TpxBWbhWfsJTSYtbF366cpzbgMfgXC21g8xI-sgAYS5540RZ45olWKENLGeZg5kFaOQM6wzJ_OXB5UgfU9dWsPIw/s1600/changeScriptTimezone.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;412&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirrxs2nO4ZxKzS6NmsYvsRir0TnhYhbzd1DIFczGICfMWi0WuCSs8TpxBWbhWfsJTSYtbF366cpzbgMfgXC21g8xI-sgAYS5540RZ45olWKENLGeZg5kFaOQM6wzJ_OXB5UgfU9dWsPIw/s640/changeScriptTimezone.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYfe_rMb3cldYJMw52w5HzX0uFJfDGIAbWbqw6o_T5HD6rn9VsglOan-On3rIAQHkg_oiZBv2y4Zd-9ipiGRM6b23zyhxobRxKMv5uPrELIYWDEgIDim2_ONEP9cdlNJyVPrZDB4xD8u8/s1600/changeScriptTimezone2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYfe_rMb3cldYJMw52w5HzX0uFJfDGIAbWbqw6o_T5HD6rn9VsglOan-On3rIAQHkg_oiZBv2y4Zd-9ipiGRM6b23zyhxobRxKMv5uPrELIYWDEgIDim2_ONEP9cdlNJyVPrZDB4xD8u8/s640/changeScriptTimezone2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;






5)Add Triggers&lt;/h3&gt;
&lt;div&gt;
**Do not forget to click on SAVE again after the last step.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_u1rTtjoajyVtV1nCnCdwj1JBeCJXXmul72XGp-KL8kMNyQmk8NQ9Hx9EREiRQnjsjTlJM40YglTb3LUvzxzk8nvWN5_XfLT16OVnEUh7S51YMaMkW0cNCoZyC4wd245KR47fKpdBLcA/s1600/addScript.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_u1rTtjoajyVtV1nCnCdwj1JBeCJXXmul72XGp-KL8kMNyQmk8NQ9Hx9EREiRQnjsjTlJM40YglTb3LUvzxzk8nvWN5_XfLT16OVnEUh7S51YMaMkW0cNCoZyC4wd245KR47fKpdBLcA/s640/addScript.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDZzT62HuPipu5D3D6O1t3lYK2-yJ1MvWyWeb_PP6LZ0AFqF9g4BAYzW0BlkZ6C5PwE905NV59Ja5JWTJ9iGPSYMER2m01RQCW5nj48B80XrH3h1HpZmM-iogJpZ_ZjSX_y9_ialjfUg8/s1600/SetTrigger.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDZzT62HuPipu5D3D6O1t3lYK2-yJ1MvWyWeb_PP6LZ0AFqF9g4BAYzW0BlkZ6C5PwE905NV59Ja5JWTJ9iGPSYMER2m01RQCW5nj48B80XrH3h1HpZmM-iogJpZ_ZjSX_y9_ialjfUg8/s640/SetTrigger.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;






&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8DAAPc3QcKNpzjZKmpVkD-u0-vlvJ7O5P58o45WyLLuw8N-Yf8Xu_p3n0tnkcfdhgEfyrBDFKsal-KGX9mJFu7pxPQs3MgNfKve6PxyPsm3j2Wu6QOceJKFMj0QSQ2NLihz_NCd9IvGQ/s1600/SetTrigger.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8DAAPc3QcKNpzjZKmpVkD-u0-vlvJ7O5P58o45WyLLuw8N-Yf8Xu_p3n0tnkcfdhgEfyrBDFKsal-KGX9mJFu7pxPQs3MgNfKve6PxyPsm3j2Wu6QOceJKFMj0QSQ2NLihz_NCd9IvGQ/s640/SetTrigger.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTL4_UIHZIWFTjqvEgx70uQUPrFzq2OxPtJE1fVO1evFb0LmIsnsXdqFqxE6eA76JMK2vAVeq-oNzcBlMEkPx-q7Pq4n_hB1AxM3RU9RNzrJUGMujOo3PAVkkbUyErvNwYfJQE8hEYfys/s1600/SetTrigger.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTL4_UIHZIWFTjqvEgx70uQUPrFzq2OxPtJE1fVO1evFb0LmIsnsXdqFqxE6eA76JMK2vAVeq-oNzcBlMEkPx-q7Pq4n_hB1AxM3RU9RNzrJUGMujOo3PAVkkbUyErvNwYfJQE8hEYfys/s640/SetTrigger.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Cg3gqGQl4KnTKBaa2WoAC_L5c4aaU3KKN7uSFWwVzxGe7yY9kJv1bEfa5qAqo0syLceRb_3cp3u9h8crFBjwsDU-3ILfs-7XjaXmilU8ACNEBfTS4nq2qoKs1u8Snh7XFY6PvKKqBVg/s1600/SetTrigger.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;159&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Cg3gqGQl4KnTKBaa2WoAC_L5c4aaU3KKN7uSFWwVzxGe7yY9kJv1bEfa5qAqo0syLceRb_3cp3u9h8crFBjwsDU-3ILfs-7XjaXmilU8ACNEBfTS4nq2qoKs1u8Snh7XFY6PvKKqBVg/s320/SetTrigger.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghJXk4V_MwHfU61ofboHIydfbruhFFMlgn9LTExLUMEgtHLTYWZR2adarbh2gZauXXtplAkHoXoL07We-1-NTohgGI0Oy3dPBYdmDUy9d_vbXS9YpzrtJN-gWBSbbngdKj5qGrNoaPUGc/s1600/calendar+service+grant+access.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;82&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghJXk4V_MwHfU61ofboHIydfbruhFFMlgn9LTExLUMEgtHLTYWZR2adarbh2gZauXXtplAkHoXoL07We-1-NTohgGI0Oy3dPBYdmDUy9d_vbXS9YpzrtJN-gWBSbbngdKj5qGrNoaPUGc/s320/calendar+service+grant+access.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Now click on save again, and check if the trigger has been successfully added.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;







&lt;br /&gt;6) Change the time zone of your Google calendar to your timezone&lt;/h3&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i) &amp;nbsp; &amp;nbsp; &amp;nbsp;Go to&lt;a href=&quot;https://www.google.com/calendar/&quot;&gt;&amp;nbsp;https://www.google.com/calendar/&amp;nbsp;&lt;/a&gt;&amp;nbsp;and click settings&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7ZdL1WsPOie04ny7EwfGuf_KI3yIXs_FMCMJjF3r520ekk8Be5kHlq7sh3tgQzzjGUp9XxwEQfVS-E7Reuvdd7jj7uxb_FU4mEY5-Pd2ELkAZC1Et5Pr4MsptNRc7A8LHOhKSdk1rxwM/s1600/changeGoogleCalendarTimezone.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;245&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7ZdL1WsPOie04ny7EwfGuf_KI3yIXs_FMCMJjF3r520ekk8Be5kHlq7sh3tgQzzjGUp9XxwEQfVS-E7Reuvdd7jj7uxb_FU4mEY5-Pd2ELkAZC1Et5Pr4MsptNRc7A8LHOhKSdk1rxwM/s640/changeGoogleCalendarTimezone.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ii)In the next screen, change the timezone to where you live (for example, I live in San Francisco, so GMT -8)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZcn_EZKbvvAjvBBpHgYtK-RLK52tUwbJzXjbnuR5wv6JB4-QREzgIgSgQ1ZRCNBeo-oBpyHN1kVJW6fa3AhTWb3ix1jbcJKrbXYA4oUke_lKmR2WsFwr6X7h2gkJoJf1-vQ9vYoxLFWM/s1600/changeGoogleCalendarTimezone2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;280&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZcn_EZKbvvAjvBBpHgYtK-RLK52tUwbJzXjbnuR5wv6JB4-QREzgIgSgQ1ZRCNBeo-oBpyHN1kVJW6fa3AhTWb3ix1jbcJKrbXYA4oUke_lKmR2WsFwr6X7h2gkJoJf1-vQ9vYoxLFWM/s640/changeGoogleCalendarTimezone2.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;






7)Open the form&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7laKqAPNNNg74C2ghLwXlhVRtTvqkl7lbVMy9RNlRE1rIcrC0XpKFhnm3f7CVEaQKJOVe01h7uPa-IzPFWIJv5hsOK7xZH1BJMRu3eQNoWal6PxaYLiEpwrmVede0IrnV7kwWi5wDzRI/s1600/how+to+goto+form.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7laKqAPNNNg74C2ghLwXlhVRtTvqkl7lbVMy9RNlRE1rIcrC0XpKFhnm3f7CVEaQKJOVe01h7uPa-IzPFWIJv5hsOK7xZH1BJMRu3eQNoWal6PxaYLiEpwrmVede0IrnV7kwWi5wDzRI/s640/how+to+goto+form.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHZcwyQv_uIKsTr-2uiqlzO5WrXXp5TskxyyNCB6siTaPAvHH68SNNchF_j9SDXHKa-EnFifo03OgJkt-ruIC7kgBwvjj-ve5Vfi5ozxEcxuC1f1DbEp4aHQZrWoSRSWZsCw1XOydXEJU/s1600/theForm.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;376&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHZcwyQv_uIKsTr-2uiqlzO5WrXXp5TskxyyNCB6siTaPAvHH68SNNchF_j9SDXHKa-EnFifo03OgJkt-ruIC7kgBwvjj-ve5Vfi5ozxEcxuC1f1DbEp4aHQZrWoSRSWZsCw1XOydXEJU/s640/theForm.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;






8)Add this form to your browser bookmark&lt;/h3&gt;
&lt;div&gt;
For most browsers, the bookmark key combination is Control+D&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Firefox:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPv3Nm8AA0oxQlxqMqCWnzYX_7daSQneCN3SXx-eFp0K7jO6X0DzKK0TPPOdkdkZfjQ7VO-A7M2X0qlt9KrQKycfaggAXhEO5d4FnNMRoPeGFnOJHIXCE_CpV6gDMJTLke-LbLowwllQk/s1600/bookmark.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;76&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPv3Nm8AA0oxQlxqMqCWnzYX_7daSQneCN3SXx-eFp0K7jO6X0DzKK0TPPOdkdkZfjQ7VO-A7M2X0qlt9KrQKycfaggAXhEO5d4FnNMRoPeGFnOJHIXCE_CpV6gDMJTLke-LbLowwllQk/s320/bookmark.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Chrome&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG6DE-Ks75bwBQ6y7NleLHRKiA2Olo4ABs-UGb2z6OCm0efU0h3kpAOt12qVWRy0Dp1mrNoEGgPs2ttRUZnFKhG19bEkjHQN3ZqcWVlk7r_8HBJkf5NHJnk_YUNw0iDxuy1M5V9vqAa9E/s1600/bookmark.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG6DE-Ks75bwBQ6y7NleLHRKiA2Olo4ABs-UGb2z6OCm0efU0h3kpAOt12qVWRy0Dp1mrNoEGgPs2ttRUZnFKhG19bEkjHQN3ZqcWVlk7r_8HBJkf5NHJnk_YUNw0iDxuy1M5V9vqAa9E/s320/bookmark.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;






9)Fill the form and hit submit&lt;/h3&gt;
&lt;div&gt;
Filling the form is easy and self explanatory.&lt;/div&gt;
&lt;div&gt;
Once you hit submit, the events on the form will be added to the google spreadsheet and also to your primary Google calendar.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2&gt;






Mobile Integration&lt;/h2&gt;
&lt;div&gt;
No worries if you have a dumb phone, you can receive reminders via SMS!!&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://support.google.com/calendar/bin/answer.py?hl=en&amp;amp;answer=37242&quot;&gt;http://support.google.com/calendar/bin/answer.py?hl=en&amp;amp;answer=37242&lt;/a&gt;
&lt;/div&gt;
&lt;h4&gt;






Lets take the example of iPhone (Please note that I am using ios6 which is not officially released yet, so your screen may vary a little)&lt;/h4&gt;
&lt;h4&gt;






A)Make the form available like an app on the mobile device&lt;/h4&gt;
&lt;div&gt;
1) Email yourself the link to the form that you just bookmarked (the link is too long to type on the mobile device)&lt;/div&gt;
&lt;div&gt;
2)Open the link by clicking it from your email&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilgGuoEfkXknGf7U90tdDsim0DrR7Xx_yT7iV7ZdGQTi15oF9nfzz8xIQ0QSYrRCVEFpPCsf0QrwZZCpgmAGYcB-IVmjGq62R_39pHrreHPrsEj0_eCiIKuPnhqp-uWunfdCdIxJdJac0/s1600/2012-06-20+18.28.59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilgGuoEfkXknGf7U90tdDsim0DrR7Xx_yT7iV7ZdGQTi15oF9nfzz8xIQ0QSYrRCVEFpPCsf0QrwZZCpgmAGYcB-IVmjGq62R_39pHrreHPrsEj0_eCiIKuPnhqp-uWunfdCdIxJdJac0/s320/2012-06-20+18.28.59.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3) Add the page as a bookmark on the home screen&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY3tmMQFPXbao3sDyZ4TinXiomXBLU8mpctKfoLlt4hSE9kKxYgzhOEFmahUR89q0-rD2T2gJXGtqi1mvrnSoTRuZNRa9w12OiqbWCEYOrt49eqvvDzilIfK9RASLRJZvxb3LFlcDxspw/s1600/2012-06-20+18.30.16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY3tmMQFPXbao3sDyZ4TinXiomXBLU8mpctKfoLlt4hSE9kKxYgzhOEFmahUR89q0-rD2T2gJXGtqi1mvrnSoTRuZNRa9w12OiqbWCEYOrt49eqvvDzilIfK9RASLRJZvxb3LFlcDxspw/s320/2012-06-20+18.30.16.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho1v6HJjQju5Y8ZXcghPuykDnHm0kETzVWREUc9vSnXNKIGjQrxBUGOKKRvKV1nEFq6fRfiODNSENF7GfQUUekBK5J6VGZv3nlMoP_X_ek3Xv6k16bYdBXiJejeiYu7U_l3yjXYeQF65U/s1600/2012-06-20+18.31.18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho1v6HJjQju5Y8ZXcghPuykDnHm0kETzVWREUc9vSnXNKIGjQrxBUGOKKRvKV1nEFq6fRfiODNSENF7GfQUUekBK5J6VGZv3nlMoP_X_ek3Xv6k16bYdBXiJejeiYu7U_l3yjXYeQF65U/s320/2012-06-20+18.31.18.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik02LnKTm4S0SMOeGrYjnucr1g1B6ClqSBD_hZV8swNkI7IuiR1RKg10vCQBThC8ZbPGE6OSzq2nQykp3oJ2Dv2o08S0iGxOCM3Jo7oZIOf8ici8R1-4HVbS7nESKNmeYI58z7i96GDb4/s1600/2012-06-20+18.32.01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik02LnKTm4S0SMOeGrYjnucr1g1B6ClqSBD_hZV8swNkI7IuiR1RKg10vCQBThC8ZbPGE6OSzq2nQykp3oJ2Dv2o08S0iGxOCM3Jo7oZIOf8ici8R1-4HVbS7nESKNmeYI58z7i96GDb4/s320/2012-06-20+18.32.01.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCl-lpYAOV8UHMsPAcCZPvU_3hasCDNmTdSNIhEeKYd-ZtG_ty8VM43239YLqGXwA5VsNOaclZODsfkGvCQQXf4opACTB5D_KaERlRumlkT6ZZiC9F38h30FU4ImFHpFVOe3b96tGf1HQ/s1600/2012-06-20+18.32.35.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCl-lpYAOV8UHMsPAcCZPvU_3hasCDNmTdSNIhEeKYd-ZtG_ty8VM43239YLqGXwA5VsNOaclZODsfkGvCQQXf4opACTB5D_KaERlRumlkT6ZZiC9F38h30FU4ImFHpFVOe3b96tGf1HQ/s320/2012-06-20+18.32.35.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;






B) Sync your google caledar with the calendar of the iphone&lt;/h4&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Ro7UYK59qcnASSICFu9YMGg6Gwt_TbxGjcpEVdE72go1p_aZu0bPs5Crkrm23HNy_hfmwQ7loS1ROJCuWDpv2ZOwWO31ZhSII5xA7o8tZMQiDhtcbYX8LPN8PwCadQn8Lok6FNbADuE/s1600/2012-06-20+18.38.43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Ro7UYK59qcnASSICFu9YMGg6Gwt_TbxGjcpEVdE72go1p_aZu0bPs5Crkrm23HNy_hfmwQ7loS1ROJCuWDpv2ZOwWO31ZhSII5xA7o8tZMQiDhtcbYX8LPN8PwCadQn8Lok6FNbADuE/s320/2012-06-20+18.38.43.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg4EAlO7ejNaOY77RlcY3FcgKvyDMnzhPaeQLOsieJHnP0EQv9Cw5Gr5yfib0SJX6V6XaTV4sEb564NlcaXyKjJFaWYnwEW1uyQsQqal5_7Arc3lQp3KK4g2RhLWNa04cuf5gb4aqeZQ8/s1600/2012-06-20+18.38.53.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg4EAlO7ejNaOY77RlcY3FcgKvyDMnzhPaeQLOsieJHnP0EQv9Cw5Gr5yfib0SJX6V6XaTV4sEb564NlcaXyKjJFaWYnwEW1uyQsQqal5_7Arc3lQp3KK4g2RhLWNa04cuf5gb4aqeZQ8/s320/2012-06-20+18.38.53.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmEQhOj2ttn4ZAEVx9QxIQJULDuzbSnUSfePhABcjIDKd9SBLeNFRaVRUVM8b1497PPaLlCLS1na8de2fg54lMPYVoW-Qj00AkFWg0jIHqne2hfN2HGgWYzvWCv9QgSq6BrF1bT_Ob9ZM/s1600/2012-06-20+18.38.58.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmEQhOj2ttn4ZAEVx9QxIQJULDuzbSnUSfePhABcjIDKd9SBLeNFRaVRUVM8b1497PPaLlCLS1na8de2fg54lMPYVoW-Qj00AkFWg0jIHqne2hfN2HGgWYzvWCv9QgSq6BrF1bT_Ob9ZM/s320/2012-06-20+18.38.58.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBupBXjOyx7aPklsKRNSewQUr8V_Cg0qcpnAE0XMybFSKwjKbSWKFKeVyo3ScOESeBa8rQMtzu18AbPhmwfQ-Lb0s-NPhHaBfKm5SoC658VNO2rkxa8LASlQvrYJOhoey8Aua4NZkVLx8/s1600/2012-06-20+18.39.04.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBupBXjOyx7aPklsKRNSewQUr8V_Cg0qcpnAE0XMybFSKwjKbSWKFKeVyo3ScOESeBa8rQMtzu18AbPhmwfQ-Lb0s-NPhHaBfKm5SoC658VNO2rkxa8LASlQvrYJOhoey8Aua4NZkVLx8/s320/2012-06-20+18.39.04.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The code is &lt;a href=&quot;https://docs.google.com/file/d/0B_39D55D8Qa4NjhlenNsOFduSU0/edit&quot;&gt;here&lt;/a&gt;&amp;nbsp;if you are impatient to jump into coding.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;(&lt;a href=&quot;https://docs.google.com/file/d/0B_39D55D8Qa4NjhlenNsOFduSU0/edit&quot;&gt;https://docs.google.com/file/d/0B_39D55D8Qa4NjhlenNsOFduSU0/edit&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/4688011605304933884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/4688011605304933884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/4688011605304933884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/4688011605304933884'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2012/06/day-planner-easy-interface-to-google.html' title='Day planner: Manage your life: Be on schedule'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuHmNlJcPOSkr2osj9PX_XiEelFeC6wc6ogcWeTmRshRK0xHC0MlOWY7BtbuVmQJB9rbymfGxeHN7eBAOr7tyKWcUnhkiXc3fSjuTXsOzkCPoedwVf_9r0wELdIB3GLmoZ2KZ4i7FYFZI/s72-c/openLink.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-4768453341495459238</id><published>2012-06-16T16:09:00.000-07:00</published><updated>2012-06-17T19:31:11.653-07:00</updated><title type='text'>Cut an audio file into multiple parts</title><content type='html'>This script reads a comma separated file and cuts the audio files specified in the CSV file into segments.&lt;br /&gt;
&lt;br /&gt;
The format of the CSV file is:&lt;br /&gt;
&amp;lt;audio file name &amp;gt;, &amp;lt;start time in hh:mm:ss format&amp;gt;, &amp;lt;duration in hh:mm:ss format&amp;gt;,&lt;br /&gt;
&amp;lt;segment name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
How to invoke the script&lt;br /&gt;
&lt;br /&gt;
audiocutter.sh &amp;nbsp;&lt;span style=&quot;background-color: #fff3db; color: #28303b; font-family: Georgia; font-size: 13px;&quot;&gt;audioDir &amp;nbsp;csvFile&lt;/span&gt;&lt;audio directory=&quot;&quot; files=&quot;&quot;&gt; &amp;nbsp; &amp;nbsp; &lt;csv file=&quot;&quot; name=&quot;&quot;&gt;&lt;/csv&gt;&lt;/audio&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fff3db; color: #28303b; font-family: Georgia; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;segment name=&quot;&quot;&gt;&lt;/segment&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #fff3db;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;if [ $# -ne 2 ]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;nbsp;&quot;Usage: audiocutter.sh &amp;nbsp; audioDir &amp;nbsp;csvFile&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit &amp;nbsp;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;audioDir=$1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;csvFile=$2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;#Declare array&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;declare -a FILENAMES&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;declare -a STARTTIMES&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;declare -a DURATIONS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;declare -a SEGMENTNAMES&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;#Open file for reading to array&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;exec 10&amp;lt;$csvFile&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;#Loop at the file, separate the fields and store them in separate arrays&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;let count=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;while read LINE &amp;lt;&amp;amp;10; do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FILENAMES[$count]=`echo $LINE|cut -d &#39;,&#39; -f 1`&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; STARTTIMES[$count]=`echo $LINE|cut -d &#39;,&#39; -f 2`&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; DURATIONS[$count]=`echo $LINE|cut -d &#39;,&#39; -f 3`&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; SEGMENTNAMES[$count]=`echo $LINE|cut -d &#39;,&#39; -f 4`&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ((count++))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;echo Number of elements: ${#FILENAMES[@]} &amp;nbsp;${FILENAMES[@]}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;# close file&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;exec 10&amp;gt;&amp;amp;-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;cd $audioDir&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;let count=1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;while [ &amp;nbsp;$count -le ${#FILENAMES[@]} ]; do&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fileName=${FILENAMES[$count]}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;startTime=${STARTTIMES[$count]}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;duration=${DURATIONS[$count]}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;segmentname=${SEGMENTNAMES[$count]}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; echo $fileName $startTime $duration&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; &amp;nbsp; echo &amp;nbsp;$count&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ffmpeg -ss &amp;nbsp;$startTime -t $duration &amp;nbsp;-i &amp;nbsp;$fileName &amp;nbsp;-acodec copy &amp;nbsp;$segmentname&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; let &quot;count=$count+1&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #28303b; font-family: Georgia; font-size: x-small;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #28303b; font-family: Georgia; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/4768453341495459238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/4768453341495459238' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/4768453341495459238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/4768453341495459238'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2012/06/cut-audio-file-into-multiple-parts.html' title='Cut an audio file into multiple parts'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-9120391732369528992</id><published>2012-06-16T10:45:00.001-07:00</published><updated>2012-06-16T10:45:41.315-07:00</updated><title type='text'>Use Google spreadsheet as a online SQL database</title><content type='html'>I am updating my blog after a long long time. I moved from Bash scripting to Windows programming and t, now I am completely into programming in the cloud.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The following shows how Google spreadsheet can be used as a database, where only &#39;INSERT&#39; and SELECT statements would work. (For Delete operation, google apps script can be used)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
INSERT:&lt;/div&gt;
&lt;div&gt;
1) Create a google form, use Ajax, or any other way to fill the form and submit&lt;/div&gt;
&lt;div&gt;
SELECT&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; Use yahoo query language to extract the spreadsheet in XML of JSON format. The tricky part here is to take care of the authentication and authorization. For simplicity, we can publish the spreadsheet as a public webpage.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/9120391732369528992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/9120391732369528992' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/9120391732369528992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/9120391732369528992'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2012/06/user-google-spreadsheet-as-online-sql.html' title='Use Google spreadsheet as a online SQL database'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-2127730844747934083</id><published>2008-12-23T06:52:00.000-08:00</published><updated>2008-12-23T06:57:07.190-08:00</updated><title type='text'>Open Office Tips</title><content type='html'>Replace newlines:&lt;div&gt;View--&gt;show non printing characters. You may see two types of new lines &lt;/div&gt;&lt;div&gt; a. &lt;cr&gt; (when you just press enter)  = looks like some musical note&lt;/cr&gt;&lt;/div&gt;&lt;div&gt; b. shift enter &lt;shift&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To replace ( a. )  &lt;cr&gt; , click find--&gt;more options --&gt;use regular expression. Search for $ and replace with space&lt;/cr&gt;&lt;/div&gt;&lt;div&gt;To replace (b)   &lt;shift&gt;   search for \n&lt;/shift&gt;&lt;/div&gt;&lt;/shift&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/2127730844747934083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/2127730844747934083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2127730844747934083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2127730844747934083'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/12/open-office-tips.html' title='Open Office Tips'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-5856260746386862850</id><published>2008-12-15T08:49:00.001-08:00</published><updated>2008-12-25T13:19:19.477-08:00</updated><title type='text'>My Samsung Blackjack ii</title><content type='html'>Here is what I did when I got my Blackjack ii (i617)&lt;div&gt;1. Installed TCPMP(&lt;a href=&quot;http://picard.exceed.hu/tcpmp/test/&quot;&gt;http://picard.exceed.hu/tcpmp/test/&lt;/a&gt;)&lt;/div&gt;&lt;div&gt; player , because the windows media player is pathetic with formats.&lt;/div&gt;&lt;div&gt;After installing, just click start and you will find the shortcut for tcpmp (its not in applications)&lt;/div&gt;&lt;div&gt;2. Inserted a 2 GB microSD (Will test it for 4 GB compatibility soon)&lt;/div&gt;&lt;div&gt;3. My motorola H300 does not have A2Dp ( That is , I can talk but cannot listed to music)&lt;/div&gt;&lt;div&gt; So ordered a OEM samsung headset (stereo with mic ) The cheapest I found was&lt;/div&gt;&lt;div&gt;store.bargaincell.com (Note that this &quot;store&quot; is an amazon store, the main bargaincell.com is more expensive)&lt;/div&gt;&lt;div&gt;   headset = 3.84 + Standard amazon shipping = 2.99&lt;/div&gt;&lt;div&gt; The annoying thing about amazon is, each item is charged for shipping (although they put them in the same package)&lt;/div&gt;&lt;div&gt; On the other hand, bargaincell.com charges $5 for shipping, for any number of small items.&lt;/div&gt;&lt;div&gt; On a second thought, I found that just by spending $15 more, I can actually get a A2dp bluetooth headset !  So canceled this order.&lt;/div&gt;&lt;div&gt;4. Bought a silicone protective case for $0.64 from store.bargaincell.com (again $3 shipping )&lt;/div&gt;&lt;div&gt;5. LCD protectors are way too expensive for a piece of plastic.  It seems , you can buy cling-plastic rolls for a very low price and it will take care of all your digital equipments.&lt;/div&gt;&lt;div&gt;(vinyl car graphics material or &lt;span class=&quot;Apple-style-span&quot;   style=&quot;  white-space: pre; font-family:Arial;font-size:13px;&quot;&gt;Plastic Static Decals)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Things to do:&lt;/div&gt;&lt;div&gt;1. hack the GPS&lt;/div&gt;&lt;div&gt;2. test for 4 GB card&lt;/div&gt;&lt;div&gt;3. get the A2DP bluetooth&lt;/div&gt;&lt;div&gt;===================================&lt;/div&gt;&lt;div&gt;Update 12/25&lt;/div&gt;&lt;div&gt; Got active sync to work over bluetooth. &lt;/div&gt;&lt;div&gt;OS: Windows XP service pack 2:  &lt;/div&gt;&lt;div&gt;ISSBT bluetooth dongle:  Made in China(dealextreme.com), comes with cracked bluesoleil&lt;/div&gt;&lt;div&gt;   1.Uninstalled bluesoleil.&lt;/div&gt;&lt;div&gt;    2. Installed &quot;widcomm 5&quot;. Widcomm installed bluetooth com4 and com5(see in device manager)&lt;/div&gt;&lt;div&gt;    3.In control panel--&gt;&quot;bluetooth configuration&quot;--&gt;local services tab&lt;/div&gt;&lt;div&gt;          I could see &quot;bluetooth serial port&quot; is already set as COM4&lt;/div&gt;&lt;div&gt;                   --&gt;in client applications tab--&gt;(this tab sets how this computer will access stuff on blackjack)    set serial port to com5.&lt;/div&gt;&lt;div&gt;  4. Install activesync.  In activesync, in connection settings,  allow incoming connections via USB and through com4 (that is when blackjack initiates a connection, it will connect through bluetooth com4 on the PC.&lt;/div&gt;&lt;div&gt; connect blackjack ii using USB. save the profile.&lt;/div&gt;&lt;div&gt;5. Disconnect USB. Open activesync on blackjack ii, go to menu and click &quot;connect via bluetooth&quot;&lt;/div&gt;&lt;div&gt;An error will pop up saying no partnership with activesync enabled pc is found. Then, it will prompt to select a device. Click add new device --&gt; it will discover the PC. Add it and select &quot;active sync&quot; as the service.&lt;/div&gt;&lt;div&gt;      Go to menu -&gt;com ports-&gt;add new com port, select your PC and add com port 5 &lt;/div&gt;&lt;div&gt;(remember , in 3 we selected com 5 as the port PC will access blackjack)&lt;/div&gt;&lt;div&gt;  once you are done, go to activesync on blackjack and initiate the syncing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/5856260746386862850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/5856260746386862850' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5856260746386862850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5856260746386862850'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/12/my-samsung-blackjack-ii.html' title='My Samsung Blackjack ii'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-2418766735993454748</id><published>2008-08-12T16:09:00.000-07:00</published><updated>2008-08-12T16:27:26.723-07:00</updated><title type='text'>crop  audio files ffmpeg batch mode</title><content type='html'>#!/bin/bash&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if [ $# -ne 2 ]; then&lt;br /&gt;         echo  &quot;Usage: audiocutter.sh startTime  directory containing the audio files     &quot;&lt;br /&gt;         exit  0&lt;br /&gt; fi&lt;br /&gt;&lt;br /&gt;dirName=$2&lt;br /&gt;startTime=$1&lt;br /&gt;&lt;br /&gt;#ls -1 $dirname/*.mp3 &gt;filenames.txt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#Declare array&lt;br /&gt;declare -a FILENAMES&lt;br /&gt;#Open file for reading to array&lt;br /&gt;exec 10&lt;filenames.txt let=&quot;&quot; count=&quot;0&quot; while=&quot;&quot; read=&quot;&quot; line=&quot;&quot;&gt;&lt;filenames.txt&gt;&lt;/filenames.txt&gt;&lt;div&gt;&lt;filenames.txt let=&quot;&quot; count=&quot;0&quot; while=&quot;&quot; read=&quot;&quot; line=&quot;&quot;&gt;&lt;div&gt;#Open file for reading to array&lt;/div&gt;&lt;div&gt;exec 10&lt;filenames.txt&gt;&lt;/filenames.txt&gt;&lt;/div&gt;&lt;div&gt;let count=0&lt;/div&gt;&lt;div&gt;while read LINE &lt;&amp;10; do&lt;/div&gt;&lt;div&gt;    OUTFILENAMES[$count]=$LINE&lt;/div&gt;&lt;div&gt;    ((count++))&lt;/div&gt;&lt;div&gt;done&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;let &quot;count=0&quot;&lt;br /&gt;while [  $count -le ${#XMAXVALUES[@]} ]; do&lt;br /&gt;  fileName=${FILENAMES[$count]}&lt;br /&gt;  ffmpeg -ss $startTime -i $fileName -acodec copy &quot;s_&quot;$fileName&lt;br /&gt; let &quot;count=$count+1&quot;&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/filenames.txt&gt;&lt;/div&gt;&lt;/filenames.txt&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/2418766735993454748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/2418766735993454748' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2418766735993454748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2418766735993454748'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/08/crop-audio-files-ffmpeg-batch-mode.html' title='crop  audio files ffmpeg batch mode'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-3854719215163891151</id><published>2008-08-04T15:13:00.000-07:00</published><updated>2008-08-09T13:31:44.165-07:00</updated><title type='text'>Automatic Movie Editing with ffmpeg</title><content type='html'>If you specify the start and end times of subclips of a large clip in a file, this bash script cuts a large movie file into small clips.&lt;br /&gt;The script makes use of ffmpeg. However, ffmpeg   cannot cut movies with -ss option if the clip duration is too small. This is why I first convert the movie to a series of jpegs and then join them back to create movie clips.&lt;br /&gt;&lt;br /&gt;http://www.mediafire.com/?tlnemn2t0sp&lt;br /&gt;&lt;br /&gt;The file that contains the start and end information of the clips is in textGrid format.&lt;br /&gt;For your use, just Edit the attached sample textGrid file:&lt;br /&gt;http://www.mediafire.com/?d3egg1oomyi</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/3854719215163891151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/3854719215163891151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/3854719215163891151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/3854719215163891151'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/08/automatic-movie-editing-with-ffmpeg.html' title='Automatic Movie Editing with ffmpeg'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-2761727639352358334</id><published>2008-06-23T16:52:00.000-07:00</published><updated>2008-08-09T13:24:39.526-07:00</updated><title type='text'>TextEdit macintosh: How to print gutenberg books</title><content type='html'>1) Copy the gutenberg text&lt;br /&gt;2)Paste in TextEdit &lt;br /&gt;3) save as RTF (optional)&lt;br /&gt;4) Go to Format, select &quot;Wrap to Page&quot;&lt;br /&gt;5) Search and replace newline with space&lt;br /&gt;     i)select an empty line&lt;br /&gt;      ii)copy the whole line&lt;br /&gt;        iii)Find---paste--replace with space</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/2761727639352358334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/2761727639352358334' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2761727639352358334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2761727639352358334'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/06/textedit-macintosh-how-to-print.html' title='TextEdit macintosh: How to print gutenberg books'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-5074963798977043202</id><published>2008-05-21T11:54:00.000-07:00</published><updated>2008-08-09T13:24:39.527-07:00</updated><title type='text'>How to insert a paragraph into a text file</title><content type='html'>Tag: Unix Bash Shell programming&lt;br /&gt;Algorithm:&lt;br /&gt;&lt;br /&gt;1) File = File in which the paragraph has to be inserted&lt;br /&gt;2) Para = Paragraph of text&lt;br /&gt;&lt;br /&gt;So.&lt;br /&gt;1)In &quot;File&quot;  find the  place &lt;line&gt;where you want to insert the text&lt;br /&gt;2)Output the text up to that line. Then echo &quot;Para&quot;. Finally echo the rest of the file. All the echoing is redirected to the new file&lt;br /&gt;Here is the code&lt;br /&gt;&lt;br /&gt;#please note that the line totalLines=`wc -l &quot;$fileName&quot; |cut -d &#39; &#39; -f 8`  the parameter 8 is found with experimentation.&lt;br /&gt;#you may have to set a different number in a different system&lt;br /&gt;fileName=$1&lt;br /&gt;# The string after which the paragraph has to be inserted&lt;br /&gt;searchString=$2&lt;br /&gt;#The paragraph to be inserted, line by line&lt;br /&gt;line1=&quot;something&quot;&lt;br /&gt;line2=&quot;something2&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;searchResult=`grep -n &quot;$searchString&quot; &quot;$fileName&quot;`&lt;br /&gt;lineNumber=`echo $searchResult|cut -d : -f 1`&lt;br /&gt;head -$lineNumber &quot;$fileName&quot; &gt;temp&lt;br /&gt;echo $line1 &gt;&gt;temp&lt;br /&gt;echo $line2 &gt;&gt;temp&lt;br /&gt;#echo $line3 &gt;&gt;temp&lt;br /&gt;#echo $line4 &gt;&gt;temp&lt;br /&gt;&lt;br /&gt;#find the total number of lines in the file&lt;br /&gt;totalLines=`wc -l &quot;$fileName&quot; |cut -d &#39; &#39; -f 8`&lt;br /&gt;remainingLines=`echo $[$totalLines-$lineNumber]`&lt;br /&gt;echo $remainingLines&lt;br /&gt;echo $totalLines&lt;br /&gt;echo $lineNumber&lt;br /&gt;&lt;br /&gt;tail -$remainingLines &quot;$fileName&quot; &gt;&gt;temp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/line&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/5074963798977043202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/5074963798977043202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5074963798977043202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5074963798977043202'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/05/how-to-insert-paragraph-into-text-file.html' title='How to insert a paragraph into a text file'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-5321228188180120691</id><published>2008-03-27T13:29:00.000-07:00</published><updated>2008-03-27T14:26:55.782-07:00</updated><title type='text'>Download Technical Papers remotely</title><content type='html'>Universities have subscription to various technical websites and hence only when you are in the university network, you can download /access such sites.&lt;br /&gt;Here is how you can download the papers from an external network.&lt;br /&gt;&lt;br /&gt;Softwares required:&lt;br /&gt;&lt;br /&gt;1. Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)&lt;br /&gt;2. winscp (http://winscp.net/eng/download.php)&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;&lt;br /&gt;1. Open putty&lt;br /&gt;2. Enter the name of the server you want to connect to&lt;br /&gt;&lt;br /&gt;In my example, my account name is bora&lt;br /&gt;and the server is babbage.ece.rochester.edu&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://3.bp.blogspot.com/_S1BVuyv9WgM/R-wIfu4aLWI/AAAAAAAAFvk/NYOEm7PayhQ/s1600-h/putty.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;http://3.bp.blogspot.com/_S1BVuyv9WgM/R-wIfu4aLWI/AAAAAAAAFvk/NYOEm7PayhQ/s320/putty.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5182526612450192738&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;2. When you click open, it will prompt for user name and password&lt;br /&gt;  &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/_S1BVuyv9WgM/R-wI_e4aLXI/AAAAAAAAFvs/CK1UT4ZfETc/s1600-h/putty2.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;http://2.bp.blogspot.com/_S1BVuyv9WgM/R-wI_e4aLXI/AAAAAAAAFvs/CK1UT4ZfETc/s320/putty2.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5182527157911039346&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;3. Upon entering , you will be logged in and by default, you will be in your home directory.&lt;br /&gt;You can check your present directory with the command &quot;pwd&quot;&lt;br /&gt;&lt;br /&gt;4. Open firefox or internet explorer, search for the paper you want to download and copy the link location.&lt;br /&gt;5. Then in putty&lt;br /&gt;&lt;br /&gt;wget &lt;the location=&quot;&quot; of=&quot;&quot; the=&quot;&quot; paper=&quot;&quot;&gt;&lt;br /&gt;After typing wget, a simple right click will paste the link you copied.&lt;br /&gt;for example&lt;br /&gt;wget &lt;img src=&quot;file:///C:/DOCUME%7E1/others/LOCALS%7E1/Temp/moz-screenshot.jpg&quot; alt=&quot;&quot; /&gt; &lt;img src=&quot;file:///C:/DOCUME%7E1/others/LOCALS%7E1/Temp/moz-screenshot-1.jpg&quot; alt=&quot;&quot; /&gt;  http://ejechocard.oxfordjournals.org/cgi/reprint/jen120v1.pdf&lt;br /&gt;&lt;br /&gt;6. After this the paper will be saved in your home directory&lt;br /&gt;&lt;br /&gt;7. Now its time to transfer the paper to your host computer&lt;br /&gt;using winscp. Again, enter the username,servername and  password. Unlike putty, you can save the password and thus do not have to enter it every time you connect.&lt;br /&gt;&lt;br /&gt;&lt;/the&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://4.bp.blogspot.com/_S1BVuyv9WgM/R-wQu-4aLYI/AAAAAAAAFv0/KpNodvdkBO8/s1600-h/winscp.JPG&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;http://4.bp.blogspot.com/_S1BVuyv9WgM/R-wQu-4aLYI/AAAAAAAAFv0/KpNodvdkBO8/s320/winscp.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5182535670536220034&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;the location=&quot;&quot; of=&quot;&quot; the=&quot;&quot; paper=&quot;&quot;&gt;&lt;br /&gt;8. By default you will see your home directory, and just look for the file you just downloaded and transfer it.&lt;br /&gt;&lt;/the&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/5321228188180120691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/5321228188180120691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5321228188180120691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5321228188180120691'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/03/download-technical-papers-remotely.html' title='Download Technical Papers remotely'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_S1BVuyv9WgM/R-wIfu4aLWI/AAAAAAAAFvk/NYOEm7PayhQ/s72-c/putty.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-8231749898848933440</id><published>2008-03-20T22:36:00.001-07:00</published><updated>2008-03-20T22:36:59.452-07:00</updated><title type='text'>set up joomla . the fast way</title><content type='html'>1. Install wamp into say.. C:\web ..with all default options&lt;br /&gt;2. Start it , see event viewer messages if some service cannot start.&lt;br /&gt;3. If you see cannot bind to socket, that means something else is using it.. go to services and stop IIS admin if it is running.&lt;br /&gt;&lt;br /&gt;See that everything is running. Open phpMyadmin..the default user is root and password is none..&lt;br /&gt;Open Sql commnad prompt. and issue the following commands&lt;br /&gt;&lt;br /&gt;   a.  create database xdb;&lt;br /&gt;&lt;br /&gt;    b.  grant CREATE,INSERT,DELETE,UPDATE,SELECT on xdb.* to xuser@localhost;&lt;br /&gt;&lt;br /&gt;     c.  set password for xuser@localhost = password(&#39;joomla&#39;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. unzip and store everything in C:\web\wamp\www\Joomla\&lt;br /&gt;5. open http:\\localhost\joomla\&lt;br /&gt; It will ask for four configuration steps.. just accpet hte defaults. it will ask for supplying the sql database username and password.&lt;br /&gt;Give the one u created above.&lt;br /&gt;   xdb, xuser and joomla</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/8231749898848933440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/8231749898848933440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/8231749898848933440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/8231749898848933440'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/03/set-up-joomla-fast-way.html' title='set up joomla . the fast way'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-5255106797823300421</id><published>2008-03-05T13:35:00.000-08:00</published><updated>2008-03-05T16:05:25.777-08:00</updated><title type='text'>Mass emailing</title><content type='html'>Requirement:&lt;br /&gt;Very frequently we encounter situations where we have to do mass emailing. CC, BCC etc are not good options as sometimes individual mails are required. For example::&lt;br /&gt;&lt;p&gt;1. Job application: Sending inquiry mails /shooting in the dark&lt;br /&gt;2. University application &lt;br /&gt;&lt;/p&gt;&lt;p&gt;3. Invitation&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here are the steps I followed :&lt;/p&gt;&lt;p&gt;**I did it using my department email. I have not investigated how to use gmail etc for this purpose.&lt;/p&gt;&lt;p&gt;1).create a .forward in the home directory. so that ECE mail comes to ur gmail&lt;br /&gt;&lt;a href=&quot;mailto:sourabhbora@gmail.com&quot; target=&quot;_blank&quot;&gt;sourabhbora@gmail.com&lt;/a&gt;&lt;br /&gt;\bora&lt;br /&gt;2) in ur home directory&lt;br /&gt;mkdir src&lt;br /&gt;3)cd ~/src&lt;br /&gt;4)wget ftp://ftp.mutt.org/mutt/mutt-1.4.2.3.tar.gz&lt;br /&gt;5)tar xvfz mutt-1.4.2.3.tar.gz&lt;br /&gt;6) cd mutt-1.4.2.3&lt;br /&gt;7)./configure  --prefix=$HOME&lt;br /&gt;8)make&lt;br /&gt;9)make install&lt;br /&gt;&lt;br /&gt;    &lt;/p&gt;&lt;p&gt;&lt;br /&gt;The script:&lt;br /&gt;1)mutt -s &quot;Birthday celebration&quot; -a resume.pdf sourabhbora@gmail.com &lt;_bodymail.txt&gt;&lt;br /&gt;&lt;/p&gt; &lt;bodyofmail.txt&gt;&lt;/bodyofmail.txt&gt;&lt;p&gt;-s = subject&lt;/p&gt;&lt;p&gt;-a = attachment&lt;/p&gt;2) The mass email:&lt;br /&gt;&lt;br /&gt;cat emailID.txt |while read line;  do mutt -s &quot;Software Developer for 802.11 devices: Summer Internship Inquiry&quot; -a SBora.doc $line&lt;_bodymail.txt ;  done&lt;br /&gt;&lt;br /&gt;Please note that ECE default login does not open a bash shell. and this script works only with bash. So just type &quot;bash&quot; in the command prompt before executing the above script</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/5255106797823300421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/5255106797823300421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5255106797823300421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5255106797823300421'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/03/mass-emailing.html' title='Mass emailing'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-3084153843745273874</id><published>2008-02-26T19:57:00.000-08:00</published><updated>2008-08-09T13:24:39.527-07:00</updated><title type='text'>Mass emailing of resume</title><content type='html'>Requirement: JMZ is applying for jobs and many companies do not have a web based application system. They just want you to mail your resume to HR.&lt;br /&gt;Many of these companies do not have specific openings for her. So, a general mail, with attached resume is enough to apply. (shooting in the dark)&lt;br /&gt;I did this for my internship application.&lt;br /&gt;&lt;br /&gt;The script:&lt;br /&gt;1)mutt -s &quot;Birthday celebration&quot; -a resume.pdf sourabhbora@gmail.com &lt;_bodymail.txt&gt;&lt;br /&gt;&lt;/p&gt; &lt;bodyofmail.txt&gt;&lt;/bodyofmail.txt&gt;&lt;p&gt;-s = subject&lt;/p&gt;&lt;p&gt;-a = attachment&lt;/p&gt;2) The Junta email:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;cat emailID.txt |while read line;  do mutt -s &quot;Software Developer for 802.11 devices: Summer Internship Inquiry&quot; -a SBora.doc $line&lt;_bodymail.txt&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;This is possible only with our ECE email account. and mutt needs to be installed.&lt;br /&gt;install Mutt&lt;br /&gt;http://www.mutt.org/download.html</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/3084153843745273874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/3084153843745273874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/3084153843745273874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/3084153843745273874'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/02/mass-emailing-of-resume.html' title='Mass emailing of resume'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-5013486022455277217</id><published>2008-02-20T08:57:00.000-08:00</published><updated>2008-02-20T08:58:33.212-08:00</updated><title type='text'>Useful Scripts</title><content type='html'>useful scripts&lt;br /&gt;&lt;span style=&quot;;font-family:arial,sans-serif;font-size:85%;&quot;  &gt; &lt;span style=&quot;font-family:times new roman,serif;&quot;&gt;#useful scripts&lt;br /&gt;####wget&lt;br /&gt;#To get all zip files linked in a file&lt;br /&gt;&lt;code&gt;wget -r -l1 -H -t1 -nd -N -np -A.mp3 -erobots=off -i mp3_sites.txt&lt;br /&gt;&lt;/code&gt;#That Wget recipe recursively downloads only MP3 files linked from the sites listed in mp3_sites.txt that are newer than any #you&#39;ve already downloaded.&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;wget -A zip,jpg  -i index.html&lt;br /&gt;# this does not work well,,downloads crap too..gotta modify&lt;br /&gt;#####Grep&lt;br /&gt;&lt;br /&gt;#dvd burning&lt;br /&gt;#Append to a  multisession disk&lt;br /&gt;growisofs -M /dev/hda -J -R /path/to/nextdata&lt;br /&gt;&lt;br /&gt;#create a data davd&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:times new roman,serif;font-size:85%;&quot;  &gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;kbd style=&quot;font-family: Arial;&quot;&gt;growisofs  -Z /dev/cd0 -J -R /path/to/data&lt;/kbd&gt;&lt;span style=&quot;font-family:Arial;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;;font-family:times new roman,serif;font-size:100%;&quot;  &gt;***if you want to finlize cd,&lt;br /&gt;&lt;span style=&quot;font-size:0;&quot;&gt;&lt;kbd&gt;growisofs &lt;-dvd-compat **use only when u want to close the session&gt; -Z /dev/cd0 -J -R /path/to/data&lt;/kbd&gt;&lt;br /&gt;&lt;/span&gt;#burn the image imagefile.iso, we will run:&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;;font-family:times new roman,serif;font-size:100%;&quot;  &gt; &lt;kbd&gt;growisofs  -Z /dev/cd0=imagefile.iso&lt;/kbd&gt;&lt;/span&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style=&quot;;font-family:times new roman,serif;font-size:85%;&quot;  &gt;&lt;kbd&gt;&lt;/kbd&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;# &lt;p&gt;Create a backup of your MBR by doing a:&lt;/p&gt; &lt;p&gt;$dd if=/dev/hdx of=MBR-backup bs=512 count=1 &lt;/p&gt; &lt;p&gt;That should read “create a disk dump of the input file, which is /dev/hdx (change to hda, or hdb or sda, depending on where the MBR is on your computer), and save it in the output-file MBR-backup in the directory from where the command is issued. Backup the first sector only, while you are at it”.&lt;/p&gt; &lt;p&gt;Now that is the backup of your MBR. Restore it later using:&lt;/p&gt; &lt;p&gt;$dd if=MBR-backup of=/dev/hdx bs=512 count=1&lt;/p&gt; &lt;p&gt;(512 will copy partition table too..if you just want MBR.. use bs=446)&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;#some more&lt;/p&gt; &lt;p&gt;dd if=/dev/hda1 bs=1M | bzip2 --best -c &gt; /mnt/some_other_drive/hda1_image.img.bz2&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;Backup&lt;br /&gt;ntfsclone -s -o - /dev/hda1 | gzip | split -b 1000m - /tmp/server/master-hda1.img.gz_&lt;br /&gt;&lt;br /&gt;Remember to backup your MBR &amp;amp; partition table too!&lt;br /&gt;sfdisk -d /dev/hda &gt;/tmp/server/master-sfdisk-hda.dump&lt;br /&gt;dd if=/dev/hda bs=512 count=1 of=/tmp/server/master-hda.mbr&lt;br /&gt;&lt;br /&gt;Restore&lt;br /&gt;sfdisk /dev/hda &lt; /tmp/server/master-sfdisk-hda.dump dd if=/tmp/server/master-hda.mbr of=/dev/hda  cat /tmp/server/master-hda1.img.gz_a[a-c]| gunzip -c | ntfsclone --restore-image --overwrite /dev/hda1 -&lt;/p&gt;&lt;br /&gt;&lt;p&gt;#back up of NTFS drive&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;#automatic email to a list of addresses with attachment&lt;/p&gt; &lt;p&gt; mutt -s &quot;Birthday celebration&quot; -a resume.pdf sourabhbora@gmail.com &lt;body.txt&gt;&lt;/body.txt&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;cat emailID.txt |while read line;  do mutt -s &quot;Software Developer for 802.11 devices: Summer Internship Inquiry&quot; -a SBora.doc $line&lt;body.txt done=&quot;&quot;&gt;&lt;/body.txt&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;# Useful Scripts&lt;br /&gt;#search&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;find . -name &#39;*.html&#39; -exec grep -l &quot;pattern to be matched&quot; {} \; #list the html file which contain the pattern...&lt;br /&gt;      #THis is very useful coz many greps dont have -R option(recusrsive search, find is inherently recursive&lt;br /&gt;&lt;br /&gt;#To pipe the stdErr (standard error) messages to a file:&lt;br /&gt;make  &gt;/dev/null 2&gt;&amp;amp;1 &gt;~/hi.txt&lt;/pre&gt; &lt;div align=&quot;left&quot;&gt;&lt;pre&gt;#file editing&lt;br /&gt;cat fileName| cut -d &#39; &#39; -f 3&lt;/pre&gt;&lt;pre&gt;#search and replace&lt;br /&gt;sed -e &quot;s|http://www.|./|g&quot; test.txt &gt; test.txt_tmp &amp;amp;&amp;amp; mv test.txt_tmp test.txt&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt; &lt;p&gt; &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/5013486022455277217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/5013486022455277217' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5013486022455277217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/5013486022455277217'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/02/useful-scripts.html' title='Useful Scripts'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-2296939705094344290</id><published>2008-02-17T19:59:00.000-08:00</published><updated>2008-02-17T20:06:42.104-08:00</updated><title type='text'>How to open qfx and ofx files</title><content type='html'>qfx and ofx files are used by banks to export bank statements . &lt;a id=&quot;pa1&quot; href=&quot;http://www.google.com/aclk?sa=l&amp;amp;ai=BCdlnqgO5R7HZA4-2eZ_rgfUMupSqO7bpiN8DtY36DeDNLwgAEAEYASC2VDgBUI6A8-cGYMnOl4vApOwQoAGq0OL6A8gBAYACAdkDytbiz4TkXLc&amp;amp;q=http://www.zacharysystems.com/QuickBooks_Import_Products.aspx&amp;amp;sig=AGiWqtw0YBlwys30NtY7fRKo66NlqrFsTw&quot; onmouseover=&quot;return true&quot;&gt;QuickBook&lt;/a&gt; and Microsoft money uses these files. I found some free tools available on net to view them. In my view, it is safer to use an online tool to open them without risking spyware etc and without having to install another software.&lt;br /&gt; Here is what I did:&lt;br /&gt;   I used buxfer.com&lt;br /&gt;&lt;span&gt;Buxfer is a nice way of keeping track of your financial transactions .&lt;br /&gt;In buxfer, click &quot;Add account&quot;&lt;br /&gt;Then after adding the account, click import bank statement. You can later export this imported statement in CSV format.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/2296939705094344290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/2296939705094344290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2296939705094344290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/2296939705094344290'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/02/how-to-open-qfx-and-ofx-files.html' title='How to open qfx and ofx files'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-4200012684259385678</id><published>2008-02-17T12:33:00.000-08:00</published><updated>2008-02-17T12:53:51.708-08:00</updated><title type='text'>Connecting my V 180 to Windows XP pc</title><content type='html'>Motorola V 180 has a default driver in windows xp and it installs as a modem.&lt;br /&gt;However I wanted to connect it so that I can back up my SIM card in a file.&lt;br /&gt;I lost my PDA and all my contacts in Italy. However, I backed up my contacts in another SIM card.&lt;br /&gt;The aim was to download the contacts from the backup sim  and upload back to the new sim.&lt;br /&gt;&lt;br /&gt;Easy way:  (involves buying software)&lt;br /&gt; 1) Install Handset_USB_Driver_32_v3.4.0.msi , the free official motorola phone driver from motorola development website. https://developer.motorola.com/&lt;br /&gt;&lt;br /&gt;2)Install (Win) Motorola Mobile Phone Tools Deluxe 3.11.exe (not free). Cilck&lt;br /&gt;organizer--&gt;tools--&gt;backup/restore&lt;br /&gt;&lt;br /&gt;The other way (I went halfway through..but could not see the phone book..all I could do is restart the phone )&lt;br /&gt;&lt;br /&gt;1)http://www.motomodders.net/Default.aspx?tabid=77&lt;br /&gt; Register and click the download tab.&lt;br /&gt;&lt;br /&gt;Dowload newp2k.rar . In the DRV folder I found two inf files. I used P2k.inf&lt;br /&gt;(under device manager, the phone shows up as a modem. Click update driver and chose this inf file. )&lt;br /&gt;The modem disappears and 3 new devices appear.&lt;br /&gt;&lt;br /&gt;Once u got the driver right, use one of the softwares from the above page.&lt;br /&gt;(I used P2KMan.zip to restart the phone.)&lt;br /&gt;&lt;br /&gt;Please leave a comment if you could use the second method to back up the phone.&lt;br /&gt;Thanks</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/4200012684259385678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/4200012684259385678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/4200012684259385678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/4200012684259385678'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2008/02/connecting-my-v-180-to-windows-xp-pc.html' title='Connecting my V 180 to Windows XP pc'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2098581879204568597.post-3661255720257156612</id><published>2007-05-07T00:30:00.000-07:00</published><updated>2007-05-07T00:32:49.100-07:00</updated><title type='text'>Understanding NS: Part 1: The MAC layer</title><content type='html'>I am going to describe/explain  the source code of /ns/mac/mac-tdma.cc&lt;br /&gt;For doubts, mail me: sourabh bora sourabhbora@gmail.com&lt;br /&gt;First of all here are the member functions of the mac class , stripped down for better understanding:&lt;br /&gt;&lt;br /&gt;========================================&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void MacTdma::slotHandler(Event *e) &lt;br /&gt;    when my turn to send comes, send()&lt;br /&gt;         when my turn to receive comes, keep the radio ON---so that phy layer can call mac_-&gt;recv(p)&lt;br /&gt;=======================================================&lt;br /&gt;recv(Packet* p, Handler* h) {&lt;br /&gt;        //most probably this function is called by physical layer (while phy layer sends up) and link layer (while ll sends down) like this: mac_-&gt;recv(p,0)&lt;br /&gt;         //..Just as uptarget_ or downtarget_ recv(p,0) is called by mac layer&lt;br /&gt;        //this is the reason why in slothandler, we explicitly send, but while receiving just keep the radio ON, and let phy layer call this&lt;br /&gt;&lt;br /&gt;if (ch-&gt;direction() == hdr_cmn::UP)&lt;br /&gt;    sendUp(p);&lt;br /&gt;else&lt;br /&gt;   state(MAC_SEND);&lt;br /&gt;    sendDown(p);&lt;br /&gt;==========================================&lt;br /&gt;sendUp(Packet* p)&lt;br /&gt;   SET_RX_STATE(MAC_RECV);     // Change the state to recv.&lt;br /&gt;        pktRx_ = p;  // Save the packet for timer reference.&lt;br /&gt;   mhRxPkt_.start(p, rtime);  //start the timer after rtime. rtime=time it takes to receive that packet= DATA_time(ch-&gt;size)&lt;br /&gt;                  //This means after rtime, Rxhandler will be called and it will send the packet up&lt;br /&gt;============================================&lt;br /&gt;recvHandler(Event *e)&lt;br /&gt;   1. check if this packet is for me or not&lt;br /&gt;    2. if yes, recvDATA(pktRx_);//actually receive the bufferred packet&lt;br /&gt;============================================&lt;br /&gt;recvDATA&lt;br /&gt;    ch-&gt;size() -= ETHER_HDR_LEN;//strip off ethernet header&lt;br /&gt;    ch-&gt;num_forwards() += 1;&lt;br /&gt;    /* Pass the packet up to the link-layer. */&lt;br /&gt;   &lt;br /&gt;    uptarget_-&gt;recv(p, (Handler*) 0);&lt;br /&gt;=================================================&lt;br /&gt;sendDown(p)&lt;br /&gt;    ch-&gt;size() += ETHER_HDR_LEN;&lt;br /&gt;  Fill all the dh-&gt; flags , ie mac layer flags..dont bother&lt;br /&gt;        /* buffer the packet to be sent. */&lt;br /&gt;    pktTx_ = p;&lt;br /&gt;&lt;br /&gt;=========================================&lt;br /&gt;send() //send the bufferred packet&lt;br /&gt;        stime = TX_Time(pktTx_);&lt;br /&gt;    ch-&gt;txtime() = stime;&lt;br /&gt;   &lt;br /&gt;    /* Turn on the radio and transmit! */&lt;br /&gt;    SET_TX_STATE(MAC_SEND);                            &lt;br /&gt;    radioSwitch(ON);&lt;br /&gt;&lt;br /&gt;    /* Start a timer that expires when the packet transmission is complete. */&lt;br /&gt;    mhTxPkt_.start(pktTx_-&gt;copy(), stime);&lt;br /&gt;    downtarget_-&gt;recv(pktTx_, this);  //pass the packet to physical layer     &lt;br /&gt;&lt;br /&gt;    pktTx_ = 0; //empty buffer&lt;br /&gt;&lt;br /&gt;==========================&lt;br /&gt;sendHandler(Event *e)&lt;br /&gt;    //after transmission is over, switch off the radio&lt;br /&gt;     Packet::free((Packet *)e);&lt;br /&gt;      // Turn off the radio after sending the whole packet&lt;br /&gt;    radioSwitch(OFF);&lt;br /&gt;==========================</content><link rel='replies' type='application/atom+xml' href='http://sourabhtech.blogspot.com/feeds/3661255720257156612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2098581879204568597/3661255720257156612' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/3661255720257156612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2098581879204568597/posts/default/3661255720257156612'/><link rel='alternate' type='text/html' href='http://sourabhtech.blogspot.com/2007/05/understanding-ns-part-1-mac-layer.html' title='Understanding NS: Part 1: The MAC layer'/><author><name>sourabh bora</name><uri>http://www.blogger.com/profile/08726310347332782423</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>