<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>savina[.]net</title>
	<atom:link href="http://blog.savina.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.savina.net</link>
	<description>View on the world</description>
	<lastBuildDate>Wed, 04 Apr 2012 12:53:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Twist on Website Monitoring with Google Docs</title>
		<link>http://blog.savina.net/2012/04/04/twist-on-website-monitoring-with-google-docs/</link>
		<comments>http://blog.savina.net/2012/04/04/twist-on-website-monitoring-with-google-docs/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 12:35:33 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[google apps script]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=387</guid>
		<description><![CDATA[<p>I came across this neat Google Apps Script that monitor your website and send you an alert if it is down. It was not a perfect fit for my needs so I made some modifications to the original script. First, &#8230; <a href="http://blog.savina.net/2012/04/04/twist-on-website-monitoring-with-google-docs/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p>I came across this <a href="http://www.labnol.org/internet/website-uptime-monitor/21060/" target="_blank">neat Google Apps Script</a> that monitor your website and send you an alert if it is down.</p>
<p>It was not a perfect fit for my needs so I made some modifications to the original script.</p>
<ul>
<li>First, I have hardcoded URL (more than one in an array) in the script. Then I added a FOR loop that checks all the URLs.</li>
<li>My email is also hardcoded, it makes the spreadsheet neater.</li>
<li>Finally, I only need a flag (entry in the sheet and email) when a site is down. I don&#8217;t want to know if it&#8217;s up so I filtered out &#8220;200&#8243; responses.</li>
</ul>
<p style="text-align: left;">One last thing I&#8217;ve done in Gmail is adding a filter to highlight the emails sent from the script (Mark as important, starred and add a specific Label).</p>
<div id="attachment_389" class="wp-caption aligncenter" style="width: 656px"><a href="http://blog.savina.net/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-13.26.22.png"><img class=" wp-image-389" title="Screen Shot 2012-04-04 at 13.26.22" src="http://blog.savina.net/wp-content/uploads/2012/04/Screen-Shot-2012-04-04-at-13.26.22.png" alt="The email once filtred in Gmail." width="646" height="75" /></a>
<p class="wp-caption-text">The email once filtred in Gmail.</p>
</div>
<p style="text-align: left;">Here is my version of the script, feel free to copy and change as you see fit!</p>
<pre class="brush: javascript; ">
/** Monitor Sites&#039;s Uptime **/
/** based on: Site&#039;s Uptime **/
/** By Amit Agarwal 26/03/2012 **/
/** http://labnol.org/?p=33232 **/

function isMySiteDown()
{
var url= new Array();
url[0] = &quot;http://one.example.com&quot;;
url[1] = &quot;http://two-example.net&quot;;
url[2] = &quot;http://www.google.com&quot;;

var response, error;

for (var n=url.length-1;n&gt;=0;--n){
try {
response = UrlFetchApp.fetch(url[n]);
} catch(error)
{
var msg = &quot;[UPTIME] &quot; + url[n] + &quot; is DOWN&quot;;
insertData(error, -1, msg);
return;
}

var code = response.getResponseCode();

if (code!=200) {
var msg = &quot;[UPTIME] &quot; + url[n] + &quot; is DOWN&quot;;
insertData(response.getContent()[0], code, msg);}
};
}

function insertData(error, code, msg) {

var sheet = SpreadsheetApp.getActiveSheet();
var email = &quot;youremail@address.net&quot;;
var row = sheet.getLastRow() + 1;

sheet.getRange(row,1).setValue(new Date());
sheet.getRange(row,2).setValue(error);
sheet.getRange(row,3).setValue(code);
sheet.getRange(row,4).setValue(msg);

if (code!=200)
MailApp.sendEmail(email, msg, msg+&quot; &quot;+error);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2012/04/04/twist-on-website-monitoring-with-google-docs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photofusion, Dublin new &amp; old</title>
		<link>http://blog.savina.net/2011/10/28/photofusion-dublin-new-old/</link>
		<comments>http://blog.savina.net/2011/10/28/photofusion-dublin-new-old/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 23:23:42 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Photo]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[canon 60D]]></category>
		<category><![CDATA[dublin]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=375</guid>
		<description><![CDATA[<p>You might have seen these type of photo montage where an old photo is mixed with a new one. This is what we decided to try my daughter and myself. We got the old photos (1961) from Charles W. Cushman, &#8230; <a href="http://blog.savina.net/2011/10/28/photofusion-dublin-new-old/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p>You might have seen these type of photo montage where an old photo is mixed with a new one. This is what we decided to try my daughter and myself.</p>
<p>We got the old photos (1961) from <a href="http://www.grangemoregolf.com/year-2009/Killerig_2009/Golf_Photos/Dublin_1961.html" target="_blank">Charles W. Cushman</a>, &#8220;<em>An American, [who] travelled the world for 30 years, including a visit to Dublin.</em>&#8220;.</p>
<p>The 2 photos I decided to work with are of the front of Trinity College and the Bank Of Ireland building. This corner of Dublin has changed a lot in 50 years, more trees, signs, traffic lights,&#8230; Anyway, here are the results.</p>
<p>The first one is a polaroid of the old on top of the new. There were too many elements on the photo to manage a different montage.</p>
<p><a href="http://blog.savina.net/wp-content/uploads/2011/10/Bank_Ireland.jpg"><img class="aligncenter size-medium wp-image-376" title="Bank_Ireland" src="http://blog.savina.net/wp-content/uploads/2011/10/Bank_Ireland-300x190.jpg" alt="" width="300" height="190" /></a></p>
<p>The second one is a real mix. Some road, pedestrians and 2 modern Dublin Bus are included in the 1961 street view, this is working well.</p>
<p><a href="http://blog.savina.net/wp-content/uploads/2011/10/trinity.jpg"><img class="aligncenter size-medium wp-image-377" title="trinity" src="http://blog.savina.net/wp-content/uploads/2011/10/trinity-300x207.jpg" alt="" width="300" height="207" /></a></p>
<p>You can see another &#8220;photofusion&#8221; by visiting my daughter&#8217;s <a href="http://fany.savina.net/2011/10/photofusion-mixing-new-and-old-photos/" target="_blank">website</a>.</p>
<p style="text-align: right;"><em>Raphael</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2011/10/28/photofusion-dublin-new-old/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>expansys&#8217; unrealistic stock and status&#8230;</title>
		<link>http://blog.savina.net/2011/10/10/expansys-unrealistic-stock-and-status/</link>
		<comments>http://blog.savina.net/2011/10/10/expansys-unrealistic-stock-and-status/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 19:48:04 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Photo]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[canon]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[disappointed]]></category>
		<category><![CDATA[expansys]]></category>
		<category><![CDATA[not recommended]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[stock]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=305</guid>
		<description><![CDATA[<p>See update at the bottom (Thursday 13th October) I wanted to order a new Canon DSLR. After looking at different online shops, I decided to use expansys for 3 reasons: The prices were similar to all the other shops I &#8230; <a href="http://blog.savina.net/2011/10/10/expansys-unrealistic-stock-and-status/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p><strong><strong><span style="color: #000000;"><span style="text-decoration: underline;">See update at the bottom (Thursday 13th October)</span></span></strong></strong></p>
<p>I wanted to order a new Canon DSLR. After looking at different online shops, I decided to use expansys for 3 reasons:</p>
<ul>
<li>The prices were similar to all the other shops</li>
<li>I have used them a lot before and they always been good in term of price and delivery time</li>
<li>they had everything I wanted in stock (very important!).</li>
</ul>
<p>So, on <strong>Friday 23rd of September</strong> I placed my order and paid with Paypal. I immediately received the order confirmation&#8230; all good, all good!<span id="more-305"></span></p>
<p>On <strong>Tuesday 27th</strong>, seeing that my order had not moved an inch since Friday, I sent the following email:</p>
<div class="cta" >
Hi,</p>
<p>It seems from looking at each items in the shop that everything is in stock but my order has not been sent yet with no ETA.<br />
Please can you check and give me an update?</p>
<p>Thank you!<br />
Raphael</p></div>
<div class="clear"></div>
<p>I <strong>immediately</strong> received (good sign, no?) an answer :</p>
<div class="cta" >Dear Customer,</p>
<p>I’m sorry to say that we are having some problems sourcing the stock<br />
to complete your order, please accept our apologies for any<br />
inconvenience that this may have caused.</p>
<p>Our team of purchasing staff are doing everything possible to source<br />
the product as soon as possible and we will try our best to keep you<br />
informed of the expected delivery date as soon as we have one.</p>
<p>Once again, please accept our apologies.<br />
Thank you for using eXpansys.</p>
<p>sales<br />
eXpansys</p></div>
<div class="clear"></div>
<p>Strange, I had been careful to pick only items said to be &#8220;in stock&#8221;&#8230;  They seem sincere and quick to respond so I decided to give them a few days, I was not in a hurry to get the camera.</p>
<p>On <strong>Wednesday 28th</strong>, I received good news:</p>
<div class="cta" >Dear customer,<br />
We are pleased to inform you that the stock for your order will arrive on the 1st<br />
of October.<br />
Sorry for the delay.<br />
We will inform you by the time we will dipatch [sic] your order.</p>
<p>Regards.<br />
Alexandra L.<br />
Customer sales</p></div>
<div class="clear"></div>
<p>At last, the camera was going to be dispatched, only a few more days of patience.<br />
But by <strong>Monday 3rd October</strong>, the order still had not moved so, I asked about it&#8230; Yes, I am starting to get impatient!</p>
<div class="cta" >Hi,<br />
Should I expect my order to be dispatch today?<br />
Thanks<br />
Raphael</div>
<div class="clear"></div>
<p>Again, I was quick to receive an answer but it was a very disappointing one&#8230;</p>
<div class="cta" >Dear customer,<br />
Thank you for your email.<br />
unfortunately our supplier just informed us that the stock for the Canon EOS Lens<br />
kit will have some delay.<br />
In fact we haven&#8217;t got any leadtime as it is now.<br />
We apologize about the delay.<br />
We will let you know as soon as possible.</p>
<p>Regards.<br />
Alexandra L.<br />
Customer sales</p></div>
<div class="clear"></div>
<p>I am starting to get very annoyed now&#8230; especially because the stock levels on the product page were still (<em>and still are as I am posting this</em>) at <strong>10 In Stock Now</strong>. I replied to this last unsatisfying email to ask for more details&#8230;</p>
<div class="cta" >How can you have on your website for the product page (<a href="http://www.expansys.ie/canon-eos-60d-digital-slr-camera-ef-s-18-135mm-f3-5-5-6-is-lens-203476/" target="_blank">http://www.expansys.ie/canon-eos-60d-digital-slr-camera-ef-s-18-135mm-f3-5-5-6-is-lens-203476/</a>): 10 In Stock Now</p>
<p>I&#8217;ve been ordering lots of things from you these past few years and this is the first time my experience had been bad.<br />
I can understand problems with suppliers but if you can have updated information on each product page it would not happen.<br />
I always make sure to order product marked &#8220;In stock&#8221; but if this is not accurate, there is no point having this option&#8230;</p>
<p>You have right now 3 kits &#8220;In stock for this camera: <a href="http://www.expansys.ie/s.aspx?sid=31468472&amp;search=60D" target="_blank">http://www.expansys.ie/s.aspx?sid=31468472&amp;search=60D</a></p>
<p>Are any of these really in stock?</p>
<p>Thanks<br />
Raphael</p></div>
<div class="clear"></div>
<p>At the same time, I tried to get some attention from their twitter account <a href="http://twitter.com/#!/expansysUK" target="_blank">@expansysUK</a> with the following <a href="http://twitter.com/#!/raphaelsavina/status/120837236391555074" target="_blank">tweet</a>:</p>
<p><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-10-at-19.12.21.png"><img class="aligncenter size-full wp-image-319" title="Screen Shot 2011-10-10 at 19.12.21" src="http://blog.savina.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-10-at-19.12.21.png" alt="" width="350" height="219" /></a></p>
<p>I received the mandatory PR blurb asking for my order number to be sent by DM, I obliged but it didn&#8217;t get very far&#8230;:</p>
<p><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-10-at-19.13.32.png"><img class="aligncenter size-full wp-image-320" title="Screen Shot 2011-10-10 at 19.13.32" src="http://blog.savina.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-10-at-19.13.32.png" alt="" width="499" height="372" /></a></p>
<p>I got one email with no updates at all on <strong>Thursday 6th October</strong>, they were just letting me know that they had no news and they didn&#8217;t know, even remotely, when I would be able to receive my order. I am sure there must be more than one supplier for Canon cameras in Europe, so I asked:</p>
<div class="cta" >You already said the exact same things (words for words) 3 days ago&#8230;!<br />
Not having any leadtime is very disappointing&#8230; Is there no other supplier you can check with?</p>
<p>Thanks<br />
Raphael</p></div>
<div class="clear"></div>
<p>To which they replied:</p>
<div class="cta" >Sir,</p>
<p>Unfortunately the purchasing team is trying everything they can to source the products elsewhere.<br />
We apologize for the inconvenient.<br />
We will inform as soon as we have more updates.</p>
<p>Regards.<br />
Alexandra</p></div>
<div class="clear"></div>
<p>I am happy to know that the entire purchasing team is working for me and I am confident that they will find one Canon kit for me&#8230; but will they?</p>
<p>I have stopped asking them about my order for a few days and it seems that there is some updating going on. Today, for one of the items in my order (an extra battery), the delivery time has been updated to 880 days&#8230; Yes, 880 days&#8230; Just under 3 years&#8230;</p>
<p><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-10-at-18.36.41.png"><img class="aligncenter size-full wp-image-325" title="Screen Shot 2011-10-10 at 18.36.41" src="http://blog.savina.net/wp-content/uploads/2011/10/Screen-Shot-2011-10-10-at-18.36.41.png" alt="" width="744" height="305" /></a></p>
<p>As you can see, it also says that the camera will ship in one day but it has been like that from day one (2 weeks ago)&#8230;!</p>
<p>I am not sure what to say, obviously this is a bug but this is telling you a lot about the accuracy of their stock level and delivery time.</p>
<p>I am still not sure what to do at this stage, a two week delay is not the end of the world and there are worst things to worry about in life. I am afraid that my only choice is to cancel the order and try to get a refund.</p>
<p>My main issue is that I am very disappointed with expansys. I will certainly <strong>never</strong> order from them again, I will not recommend them anymore like I did a lot in the past and will make sure to share my experience with as many people as possible&#8230; &#8220;<em>Do Not Trust Their Stock Level&#8221;</em> I will shout!</p>
<p>If anyone from expansys is reading this post, I would strongly suggest you to improve by implementing the following:</p>
<ul>
<li>Do not list <strong>in stock</strong> items you don&#8217;t have in stock (simple really)</li>
<li>Change supplier for Canon DSLR</li>
<li>Do not try to sell too many things you can&#8217;t deliver. You started with phones and now have lots of other electronic devices, but it doesn&#8217;t seem like you can handle it.</li>
</ul>
<p style="text-align: right;"><em>Raphaël</em></p>
<p><strong>UPDATE (Thursday 13th October):</strong> The order only took two days to come from Marseille to Dublin (via Germany and UK) and all is good. All this is water under bridge now!</p>
<p>On side note, expansys should really work on the accuracy of their stock display.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2011/10/10/expansys-unrealistic-stock-and-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Holidays calendar in Google Spreadsheet with scripting</title>
		<link>http://blog.savina.net/2011/04/30/holidays-calendar-in-google-spreadsheet-with-scripting/</link>
		<comments>http://blog.savina.net/2011/04/30/holidays-calendar-in-google-spreadsheet-with-scripting/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 11:45:10 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google docs]]></category>
		<category><![CDATA[Google docs scripting]]></category>
		<category><![CDATA[google spreadsheet]]></category>
		<category><![CDATA[holiday calendar]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[spreadsheet]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=267</guid>
		<description><![CDATA[<p>At work, we found that the easiest way to track holidays (days off) was to use a Google Docs spreadsheet. The only issue we had was to keep track of the days taken by each of us, but scripting came &#8230; <a href="http://blog.savina.net/2011/04/30/holidays-calendar-in-google-spreadsheet-with-scripting/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p>At work, we found that the easiest way to track holidays (days off) was to use a <a href="http://docs.google.com" target="_blank">Google Docs</a> spreadsheet. The only issue we had was to keep track of the days taken by each of us, but <a href="http://code.google.com/googleapps/appsscript/guide_writing_scripts.html" target="_blank">scripting</a> came to the rescue!  You can access the spreadsheet in Google Docs from this <a href="https://spreadsheets.google.com/ccc?key=0Ase5omyOJGE8dG5pYi1nZVJQd3RTeUxFNTNHd2dxWmc&amp;hl=en_GB" target="_blank">link</a>. Create a copy and share it as you see fit. The script is in full below with comments but let&#8217;s go through some of the interesting parts first.</p>
<p><span id="more-267"></span>The list of names to search in the calendar is in the script, it could be also done by having the list on the count spreadsheet and grabbing it with a <em><a href="http://code.google.com/googleapps/appsscript/class_range.html#getValues" target="_blank">getValues()</a></em>.</p>
<pre class="brush: javascript; ">

// List of names to count, could be from a range on the spreadsheet
var CheckNames = [&quot;Bob&quot;,&quot;Bill&quot;,&quot;Joe&quot;,&quot;Mary&quot;,&quot;Company&quot;];
</pre>
<p>The script takes the full calendar and places everything in a matrix in which it will search for the names.</p>
<div class="cta" >
<pre class="brush: javascript; ">

var CalendarSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Calendar&quot;);
var arr_allNames = CalendarSheet.getRange(&quot;A2:X32&quot;);
var allNames = arr_allNames.getValues();
</pre>
</div>
<div class="clear"></div>
<p>Regular expressions (<em>RegExp</em>) are defined for each name to be searched. The script looks for: name, name.5 (for a halfday) and company (for a company day counted for everyone).</p>
<div class="cta" >
<pre class="brush: javascript; ">

var regExp = new RegExp(Names[k]);
var regExpHalf = new RegExp(Names[k]+&quot;\.5&quot;);
var regExpcompany = new RegExp(&quot;Company&quot;);
</pre>
</div>
<div class="clear"></div>
<p>Then, the script goes through recursive loops to count days based on conditions built from the regular expressions defined above.</p>
<div class="cta" >
<pre class="brush: javascript; ">

for (var i in All){
for (var j in All[i]){
//Add 1 for one name
if (regExpHalf(All[i][j])){daysTaken=daysTaken+0.5;}
//Add 0.5 for name.5
else if (regExp(All[i][j])){++daysTaken;}
//Add 1 for company day
else if (regExpcompany(All[i][j])){++daysTaken;}
}
}
</pre>
</div>
<div class="clear"></div>
<p>Then, it displays on the second sheet (called &#8220;Count&#8221;) the results, first the name and then the days taken.</p>
<div class="cta" >
<pre class="brush: javascript; ">

// Display name
Countsheet.getRange(startRow + k, 1).setValue(CheckNames[k]);
// Display days taken
Countsheet.getRange(startRow + k, 2).setValue(daysTaken);
</pre>
</div>
<div class="clear"></div>
<p>To make sure the script runs when it should, it has to be triggered. This can be done from the &#8220;Triggers&#8221; menu in the script editing window. The best option is to have it running each time the spreadsheet is edited. You could insert a notification if you wanted to monitor the script.</p>
<div id="attachment_282" class="wp-caption aligncenter" style="width: 663px"><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2011/04/Screen-shot-2011-04-30-at-11.21.43.png"><img class="size-full wp-image-282 " title="Screen shot 2011-04-30 at 11.21.43" src="http://blog.savina.net/wp-content/uploads/2011/04/Screen-shot-2011-04-30-at-11.21.43.png" alt="How to setup the trigger" width="653" height="140" /></a>
<p class="wp-caption-text">How to setup the trigger</p>
</div>
<p>Here is the script in full:</p>
<div class="cta" >
<pre class="brush: javascript; ">

// Opensource, feel free to copy, adapt,...
// April 2011 - raphael@savina.net
//
// List of names to count, could be from a range on the spreadsheet
var CheckNames = [&quot;Bob&quot;,&quot;Bill&quot;,&quot;Joe&quot;,&quot;Mary&quot;,&quot;Company&quot;];
// Header for results
var columnNames = [[&quot;Name&quot;,&quot;Days Taken&quot;]];

//Get all the data from the calendar sheet
var CalendarSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Calendar&quot;);
var arr_allNames = CalendarSheet.getRange(&quot;A2:X32&quot;);
var allNames = arr_allNames.getValues();

//Define range for results
var Countsheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Count&quot;);
var startRow = 2;

//Call count
function countDays(){
Countsheet.getRange(1,1,1,2).setValues(columnNames);
// Call with 2 arrays are arguments: Names to check and content of calendar
count(CheckNames, allNames);
}

function count(Names, All) {
//Set variable dayTaken for count
var daysTaken = 0;
for (var k=0; k&lt; Names.length;k++){
// Define regular expressions for each case
var regExp = new RegExp(Names[k]);
var regExpHalf = new RegExp(Names[k]+&quot;\.5&quot;);
var regExpcompany = new RegExp(&quot;Company&quot;);
for (var i in All){
for (var j in All[i]){
//Add 1 for one name
if (regExpHalf(All[i][j])){daysTaken=daysTaken+0.5;}
//Add 0.5 for name.5
else if (regExp(All[i][j])){++daysTaken;}
//Add 1 for company day
else if (regExpcompany(All[i][j])){++daysTaken;}
}
}
// Display name
Countsheet.getRange(startRow + k, 1).setValue(CheckNames[k]);
// Display days taken
Countsheet.getRange(startRow + k, 2).setValue(daysTaken);
// Reset count of days
daysTaken = 0;
}
}
</pre>
</div>
<div class="clear"></div>
<p style="text-align: right;"><em>Raphael</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2011/04/30/holidays-calendar-in-google-spreadsheet-with-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15 years online!</title>
		<link>http://blog.savina.net/2011/03/12/15-years-online/</link>
		<comments>http://blog.savina.net/2011/03/12/15-years-online/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 10:43:45 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[atari]]></category>
		<category><![CDATA[broadband]]></category>
		<category><![CDATA[computer accessories]]></category>
		<category><![CDATA[dial-up]]></category>
		<category><![CDATA[dialup]]></category>
		<category><![CDATA[fc-net]]></category>
		<category><![CDATA[nexus one]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=245</guid>
		<description><![CDATA[<p>Last month (February 2011) marked my 15th year anniversary of internet activity. It started at the end of February 1996 on my first Windows computer (Windows 95 was magic&#8230; was it not?) and an old 14,400 modem from my Atari&#8217;s &#8230; <a href="http://blog.savina.net/2011/03/12/15-years-online/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p>Last month (February 2011) marked my 15th year anniversary of internet activity. It started at the end of February 1996 on my first Windows computer (Windows 95 was magic&#8230; was it not?) and an old 14,400 modem from my <a href="http://cyber.savina.net/" target="_blank">Atari&#8217;s days</a>.</p>
<p>I had to wait for the price (monthly subscription + local calls) to come down before our family budget could accomodate this large expense. The company was <em>fcnet</em> (they are still in <a href="http://www.fcnet.fr/fai.php" target="_blank">business</a>) and my first email address was very complicated, no one could understand it. It might have been due to the fact that only a few people knew what it was for.</p>
<p>The major milestones:</p>
<ul>
<li>First time online.</li>
<li>Dialup for free with no time limit and better speed (<a href="http://en.wikipedia.org/wiki/Free_(ISP)#1999.E2.80.932001:_Network_building_and_voiceband" target="_blank">V92</a>!) from free.fr.</li>
<li>Buying my domain (<a href="http://www.savina.net/Savina[.]net/Welcome.html" target="_blank">savina,net</a>) and having an easy to give email address.</li>
<li>Cable modem with a decent speed and a fixed monthly cost not linked to the time spent online. Also not using the only phone line in the house, no more busy tone.</li>
<li>Broadband coming in Ireland (long-awaited!).</li>
<li>Wifi to connect computers and phones to the same connection without cables.</li>
<li>Using <a href="http://www.google.com/apps/" target="_blank">Google App</a> for email, Docs, Calandar. Stop using an email client.</li>
<li><a href="http://www.android.com/" target="_blank">Android</a> smartphone (Nexus One) with g3reat internet access and usable browser.</li>
<li>Cable modem with decent web 2.0 speed (<a href="http://www.upc.ie/broadband/thirty/" target="_blank">30MB</a>).</li>
</ul>
<p>I am looking forward for the next 15 years, I am not sure what to expect&#8230;</p>
<p style="text-align: right;"><em>Raphael</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2011/03/12/15-years-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated movie collection is online</title>
		<link>http://blog.savina.net/2011/02/13/updated-movie-collection-is-online/</link>
		<comments>http://blog.savina.net/2011/02/13/updated-movie-collection-is-online/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 16:23:58 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[blu-ray]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[dvdpedia]]></category>
		<category><![CDATA[home cinema]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[movies]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=231</guid>
		<description><![CDATA[<p>Using DVDpedia, I have placed online our list of movies. The template used for the export is Antracite but with some tweaks. First, I have created my own banners using different covers. Then I have changed few things on the &#8230; <a href="http://blog.savina.net/2011/02/13/updated-movie-collection-is-online/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2010/03/Screen-shot-2010-03-28-at-16.59.47.png"><img class="size-medium wp-image-232 alignleft" title="Screen shot 2010-03-28 at 16.59.47" src="http://blog.savina.net/wp-content/uploads/2010/03/Screen-shot-2010-03-28-at-16.59.47-274x300.png" alt="" width="274" height="300" /></a>Using <a href="http://www.bruji.com/dvdpedia/" target="_blank">DVDpedia</a>, I have placed online our list of <a href="http://dvd.savina.net/" target="_blank">movies</a>.</p>
<p>The template used for the export is <a href="http://www.bruji.com/extras/antracite.html" target="_blank">Antracite</a> but with some tweaks. First, I have created my own banners using different covers. Then I have changed few things on the index and details page.</p>
<p>The statistics page was not included in this template so I have added it (meta tag and link on the page).</p>
<p style="text-align: right;"><em>Raphaël</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2011/02/13/updated-movie-collection-is-online/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photos du chalet&#8230;</title>
		<link>http://blog.savina.net/2010/03/12/photos-du-chalet/</link>
		<comments>http://blog.savina.net/2010/03/12/photos-du-chalet/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 12:57:52 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Photo]]></category>
		<category><![CDATA[airbnb]]></category>
		<category><![CDATA[bois]]></category>
		<category><![CDATA[chalet]]></category>
		<category><![CDATA[construction]]></category>
		<category><![CDATA[holiday home]]></category>
		<category><![CDATA[holiday in france]]></category>
		<category><![CDATA[holidays]]></category>
		<category><![CDATA[honka]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[location de vacance]]></category>
		<category><![CDATA[vacance]]></category>
		<category><![CDATA[wood]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=256</guid>
		<description><![CDATA[<p>To rent this house for a quiet holiday in France, please see our listing on Airbnb. Pour louer cette maison pour des vacances au calme en France, passez par notre annonce sur Airbnb.</p>
]]></description>
			<content:encoded><![CDATA[<p><embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="600" height="400" flashvars="host=picasaweb.google.com&#038;captions=1&#038;hl=en_US&#038;feat=flashalbum&#038;RGB=0x000000&#038;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F115156496234916045961%2Falbumid%2F5583174395165885137%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p>
<p>To rent this house for a quiet holiday in France, please see our <a href="http://goo.gl/8Qv1j" target="_blank">listing</a> on Airbnb.</p>
<p>Pour louer cette maison pour des vacances au calme en France, passez par notre <a href="http://goo.gl/8Qv1j" target="_blank">annonce</a> sur Airbnb.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2010/03/12/photos-du-chalet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Produits Digitus disponible sur Ordishop.com</title>
		<link>http://blog.savina.net/2010/01/27/produits-digitus-disponible-sur-ordishop-com/</link>
		<comments>http://blog.savina.net/2010/01/27/produits-digitus-disponible-sur-ordishop-com/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:41:31 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[computer accessories]]></category>
		<category><![CDATA[gear]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[ordishop]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=189</guid>
		<description><![CDATA[<p>Un peu de pub pour aider un petit magasin de proximité. Digitus est une marque qui propose plein de petits accessoires pour votre ordinateur: Récepteur TV, Lecteur de carte CF en ExpressCard, des sacoches en néoprene de toutes les couleurs,&#8230; Et tout &#8230; <a href="http://blog.savina.net/2010/01/27/produits-digitus-disponible-sur-ordishop-com/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p>Un peu de pub pour aider un petit magasin de proximité.</p>
<p>Digitus est une marque qui propose plein de petits accessoires pour votre ordinateur: <a href="http://www.ordishop.com/product.php?id_product=18" target="_blank">Récepteur TV</a>, <a href="http://www.ordishop.com/product.php?id_product=54" target="_blank">Lecteur de carte CF</a> en ExpressCard, des <a href="http://www.ordishop.com/product.php?id_product=75" target="_blank">sacoches</a> en néoprene de toutes les couleurs,&#8230;</p>
<p>Et tout ceci à des prix plus que raisonnables, vous pouvez commander sur <a href="http://www.ordishop.com" target="_blank">ordishop.com</a> (nouveaux produits ajoutés tous les jours).</p>
<p><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2010/01/75-139-large1.jpg"><img class="aligncenter size-full wp-image-195" title="75-139-large" src="http://blog.savina.net/wp-content/uploads/2010/01/75-139-large1.jpg" alt="" width="300" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2010/01/27/produits-digitus-disponible-sur-ordishop-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home cinema shelving unit from Ikea</title>
		<link>http://blog.savina.net/2010/01/16/home-cinema-shelving-unit-from-ikea/</link>
		<comments>http://blog.savina.net/2010/01/16/home-cinema-shelving-unit-from-ikea/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 13:39:14 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[bluray]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[home cinema]]></category>
		<category><![CDATA[ikea]]></category>
		<category><![CDATA[projector]]></category>
		<category><![CDATA[wii]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=171</guid>
		<description><![CDATA[<p>I wanted to perfect my modest home cinema installation for a while. Up until recently, the projector, BluRay and DVD players, wii and sound system was behind the couch on a cheap shelving unit. The problem with this setup was &#8230; <a href="http://blog.savina.net/2010/01/16/home-cinema-shelving-unit-from-ikea/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2010/01/IMG_6332.jpg" target="_blank"><img class="alignleft size-medium wp-image-170" title="IMG_6332" src="http://blog.savina.net/wp-content/uploads/2010/01/IMG_6332-200x300.jpg" alt="" width="200" height="300" /></a> I wanted to perfect my modest home cinema installation for a while. Up until recently, the projector, BluRay and DVD players, wii and sound system was behind the couch on a cheap shelving unit. The problem with this setup was the height (no one tall could sit in the middle), space (everything was on the 2 top shelves, the rest was unused, blocked by the couch).</p>
<p>I found in Ikea the <a href="http://www.ikea.com/ie/en/catalog/categories/range/10364/10900/" target="_blank">BRODER</a> range, it allowed me to have 3 sturdy shelves (max load 4o Kg). The posts are 204 mm high. The all thing is fixed (2 screws) on the top of the door so it is easy to remove leaving no traces/holes.</p>
<p><span id="more-171"></span></p>
<p>The cables are hidden behind the 2 posts with cable ties. I have also fixed a power strip with a switch on one post to cut the power to everything and save on electricity!.</p>
<p>On the top shelf, you can see the projector, it is on a support to give it the right angle for the screen. I had also to adjust the vertical <a href="http://htrgroup.com/main.php?section=keystone" target="_blank">keystone</a> to made up for the distortion due to the height.</p>
<p>On the second shelf, I have placed the wii and a laptop used as a <a href="http://en.wikipedia.org/wiki/Home_theater_PC" target="_blank">HTPC</a>. To help controlling the laptop, I have place a track ball on the third shelf.</p>
<p>On the bottom shelf are the BluRay player, DVD player (for Zone 1 DVD), the control unit of the <a href="http://www.logitech.com/index.cfm/speakers_audio/home_pc_speakers/devices/224&amp;cl=roeu,en" target="_blank">Logitech z-5500</a> and the trackball connected to the laptop.</p>
<p><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2010/01/IMG_6331.jpg"><img class="aligncenter size-medium wp-image-187" title="IMG_6331" src="http://blog.savina.net/wp-content/uploads/2010/01/IMG_6331-200x300.jpg" alt="" width="200" height="300" /></a></p>
<p>The total cost was €69 (cable ties and power strip excluded):</p>
<div id="_mcePaste">
<ul>
<li><a href="http://www.ikea.com/ie/en/catalog/products/30117126" target="_blank">Post</a> 204 mm: €13.00 x2</li>
<li><a href="http://www.ikea.com/ie/en/catalog/products/00117123" target="_blank">L-foot</a> 41 cm: €11.00 x2</li>
<li><a href="http://www.ikea.com/ie/en/catalog/products/40117135" target="_blank">2 Brackets fron</a>t 27cm: €2.50 x3</li>
<li><a href="http://www.ikea.com/ie/en/catalog/products/90154314" target="_blank">Shelf pine</a> 79&#215;36.5: €4.50 x3</li>
</ul>
</div>
<p>On the technical side, here is how everything is connected:</p>
<p style="text-align: center;"><a href="http://blog.savina.net/http://blog.savina.net/wp-content/uploads/2010/01/homeCinema.jpg"><img class="aligncenter size-large wp-image-179" title="homeCinema" src="http://blog.savina.net/wp-content/uploads/2010/01/homeCinema-762x1024.jpg" alt="" width="610" height="819" /></a></p>
<p style="text-align: right;"><em>Raphael</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2010/01/16/home-cinema-shelving-unit-from-ikea/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>APN Settings for Vodafone: OK for all Android phones</title>
		<link>http://blog.savina.net/2010/01/06/apn-settings-for-vodafone-ok-for-all-android-phone/</link>
		<comments>http://blog.savina.net/2010/01/06/apn-settings-for-vodafone-ok-for-all-android-phone/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 22:28:23 +0000</pubDate>
		<dc:creator>Raphael</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Phone]]></category>
		<category><![CDATA[technical support]]></category>

		<guid isPermaLink="false">http://blog.savina.net/?p=155</guid>
		<description><![CDATA[<p>I have lots of visitors searching for the Vodafone Ireland APN settings for their HTC Hero that I published in this post but you might want to know that these are working (tested!) on HTC Tattoo, Motorola Milestone. In theory, &#8230; <a href="http://blog.savina.net/2010/01/06/apn-settings-for-vodafone-ok-for-all-android-phone/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
]]></description>
			<content:encoded><![CDATA[<p>I have lots of visitors searching for the Vodafone Ireland APN settings for their HTC Hero that I published in this <a href="http://blog.savina.net/?p=59" target="_blank">post</a> but you might want to know that these are working (tested!) on HTC Tattoo, Motorola Milestone. In theory, they should work on all the GSM Android phones available: Nexus One, Acer Liquid, G1, MyTouch 3G, Samsung Moment,&#8230;</p>
<p><span id="more-155"></span>Here they are again:<br />
First, you should install a widget on your home screen to stop/start “Mobile Network” that will let you control when the connection will happened, otherwise it will access every time it needs to check something on the internet which can be often.</p>
<p>Go into settings under “Mobile network settings”, then in “Access Point Names”. You will need to create 2 APN, one “Vodafone ISP” and one “mms”. Any setting not listed is to be left as “”.</p>
<p>First one, for the internet access, will work for mail, web, FTP,… This is not the “limited” one for WAP phones but the real deal.</p>
<div class="cta" >Name: Vodafone ISP<br />
APN: isp.vodafone.ie<br />
Username: vodafone<br />
Password: vodafone<br />
Server: 0.0.0.0<br />
MMS protocol: WAP 2.0 (Not sure it is important, like the few next…)<br />
MCC: 272<br />
MNC: 01<br />
APN type: default</div>
<div class="clear"></div>
<p>Don’t forget to save from the menu, if you press back the setting will not be saved.</p>
<p>The second will allow you to send MMS:</p>
<div class="cta" >Name: mms.vodafone.net<br />
APN: mms.vodafone.net<br />
Username: dublin<br />
Password: dublin<br />
MMSC: http://www.vodafone.ie/mms<br />
MMS proxy: 10.24.59.200<br />
MMS port: 80<br />
MMS protocol: WAP 2.0<br />
MCC: 272<br />
MNC: 01<br />
APN type: mms</div>
<div class="clear"></div>
<p>Again, do not forget to save.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.savina.net/2010/01/06/apn-settings-for-vodafone-ok-for-all-android-phone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

