<?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>The How to site &#187; Scripting</title>
	<atom:link href="http://www.bloggpro.com/category/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bloggpro.com</link>
	<description>Office tips, CSS, PHP, MySQL scripting and web publishing</description>
	<lastBuildDate>Wed, 28 Apr 2010 00:34:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Running a cronjob with Godaddy shared hosting</title>
		<link>http://www.bloggpro.com/running-a-cronjob-with-godaddy-shared-hosting/</link>
		<comments>http://www.bloggpro.com/running-a-cronjob-with-godaddy-shared-hosting/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 23:25:52 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/running-a-cronjob-with-godaddy-shared-hosting/</guid>
		<description><![CDATA[It&#8217;s not rocket science, but it took me a while to figure out how to run a cron job on a PHP script with Godaddy shared hosting. Without further ado, here it is:
 /web/cgi-bin/php "$HOME/html/yourpath/yourpath/yourscript.php"
Hope it helps someone.
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not rocket science, but it took me a while to figure out how to run a cron job on a PHP script with Godaddy shared hosting. Without further ado, here it is:</p>
<p><code> /web/cgi-bin/php "$HOME/html/yourpath/yourpath/yourscript.php"</code></p>
<p>Hope it helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/running-a-cronjob-with-godaddy-shared-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NanoCharts sparklines Add-in beta for public testing</title>
		<link>http://www.bloggpro.com/nanocharts-sparklines-add-in-beta-for-public-testing/</link>
		<comments>http://www.bloggpro.com/nanocharts-sparklines-add-in-beta-for-public-testing/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 13:28:03 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[DevLog]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/nanocharts-sparklines-add-in-beta-for-public-testing/</guid>
		<description><![CDATA[Keywords: NanoChart, Microcharts, Sparklines, Excel, VBA, Macro
Download: NanoCharts public beta 0.50 (downloaded 417 times)
Some time ago I announced a mini-project called NanoCharts, which is  an implementation of Edward Tuftes Sparklines concept. Sparklines (and NanoCharts) are basically small, word sized graphics for high density visualization of data. I have been working to make available a sort [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Keywords:</strong> <a href="http://www.bloggpro.com/?s=nanocharts">NanoChart</a>, <a href="http://www.bloggpro.com/?s=microcharts">Microcharts</a>, <a href="http://www.bloggpro.com/?s=sparklines">Sparklines</a>, Excel, VBA, Macro</p>
<p><strong>Download:</strong> <a href="http://www.bloggpro.com/downloads/NanoCharts_beta_050">NanoCharts public beta 0.50</a> (downloaded 417 times)</p>
<p>Some time ago I announced a mini-project called <a href="http://www.bloggpro.com/?s=nanocharts">NanoCharts</a>, which is  an implementation of Edward Tuftes Sparklines concept. Sparklines (and NanoCharts) are basically small, word sized graphics for high density visualization of data. I have been working to make available a sort of beta release of what will eventually be an Add-in for Excel. At present I have a working version that allow the user to insert some different NanoChart types and do some simple formatting selections. The current user form looks like this:</p>
<p><span id="more-203"></span></p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/nanobeta1.PNG" alt="NanoCharts sparklines Add-in beta for public testing" /></p>
<p>For now the user can insert only one chart at once, but this will probably change in the future. Also, data orientation and colors cannot be selected at the moment, but this will also likely be added to the next release. The resulting NanoCharts can be seen in the next picture.</p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/nanobeta2.PNG" alt="NanoCharts sparklines Add-in beta for public testing" /></p>
<p>To try this add-in, simply download the file, select any row of data and click &#8220;Insert NanoChart&#8221;, select the options you wamt in the User form and click OK. The NanoChart will be inserted in the cell immediately to the right of your selection.</p>
<p>Please give feedback and request features by posting comments to this post, or simply <a href="http://www.bloggpro.com/contact/">contact me</a> via email. Enjoy.</p>
<p><strong>Download:</strong> <a href="http://www.bloggpro.com/downloads/NanoCharts_beta_050">NanoCharts public beta 0.50</a> (downloaded 417 times)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/nanocharts-sparklines-add-in-beta-for-public-testing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Automatic custom labels on Excel scatter plot</title>
		<link>http://www.bloggpro.com/automatic-custom-labels-on-excel-scatter-plot/</link>
		<comments>http://www.bloggpro.com/automatic-custom-labels-on-excel-scatter-plot/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 14:43:34 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/automatic-custom-labels-on-excel-scatter-plot/</guid>
		<description><![CDATA[Keywords: Excel, custom labels, XY plot chart, scatter plot, macro
Version: Tested on Excel 2003 and Excel 2007
Download:

Quite frequently there is a need to display custom lables in a standard Excel XY-plot. Unfortunately Excel lack a native function to insert custom labels; the only options available are Series names, x- and y-values which often are totally [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Keywords:</strong> Excel, <a href="http://www.bloggpro.com/?s=custom">custom labels</a>, <a href="http://www.bloggpro.com/?s=plot">XY plot chart</a>, scatter plot, macro</p>
<p><strong>Version:</strong> Tested on <strong>Excel 2003</strong> and <strong>Excel 2007</strong></p>
<p><strong>Download:</strong><br />
<input type="submit" name="download" value="Download example" onclick="startGateway('NTg2MTg%3D');" />
<p>Quite frequently there is a need to display custom lables in a standard Excel XY-plot. Unfortunately Excel lack a native function to insert custom labels; the only options available are Series names, x- and y-values which often are totally inappropriate. I created a workbook with a macro that allows the user to insert the X and Y data along with the desired lables and create a labled scatter plot with the click of a button. See image below.</p>
<p><span id="more-199"></span></p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/xychart1.PNG" alt="Automatic custom labels on Excel scatter plot" /></p>
<p>All you have to do is to dowload the file, insert your labels and values and click the button! The chart may require some additional formatting to suit your needs. Enjoy!</p>
<p><strong>Download:</strong><br />
<input type="submit" name="download" value="Download example" onclick="startGateway('NTg2MTg%3D');" />
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/automatic-custom-labels-on-excel-scatter-plot/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>NanoCharts enables Excel In-Cell charts with Sparklines concept</title>
		<link>http://www.bloggpro.com/nanocharts-enables-excel-in-cell-charts-with-sparklines-concept/</link>
		<comments>http://www.bloggpro.com/nanocharts-enables-excel-in-cell-charts-with-sparklines-concept/#comments</comments>
		<pubDate>Mon, 08 Oct 2007 13:50:06 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/nanocharts-enables-excel-in-cell-charts-with-sparklines-concept/</guid>
		<description><![CDATA[Keywords: Sparklines, MicroCharts, NanoCharts, In-cell graphing, mini charts, Excel
Version: Tested on Excel 2003
Download: NanoCharts demo (downloaded 1479 times)
Sparklines, or Micro charts, a concept invented by graphic design guru Edward Tufte , compress large amounts of data into intense,  word-sized graphics, like for example:


The Sparkline approach can be a highly effective way to present data [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Keywords:</strong> <em>Sparklines, MicroCharts, NanoCharts, In-cell graphing, mini charts, Excel</em></p>
<p><strong>Version: </strong><em>Tested on Excel 2003</em></p>
<p><strong>Download:</strong> <a href="http://www.bloggpro.com/downloads/NanoCharts_demonstration">NanoCharts demo</a> (downloaded 1479 times)</p>
<p>Sparklines, or <a href="http://www.juiceanalytics.com/writing/2006/09/microcharts-a-different-take-on-excel-charting/">Micro charts</a>, a concept invented by graphic design guru <a href="http://www.edwardtufte.com/" target="_blank">Edward Tufte</a> , compress large amounts of data into intense,  word-sized graphics, like for example:</p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/nano2.PNG" alt="NanoChart, Sparkline, MicroChart" /></p>
<p><span id="more-177"></span></p>
<p>The Sparkline approach can be a highly effective way to present data in budget reports or other types of executive summaries, since trends and relations are made visual in a very small space.</p>
<p>There are a couple of large developers offering commercial add-ins for excel to create Sparklines:  <a href="http://www.bissantz.com/en/">Bissantz&#8217;s</a> SparkMaker and <a href="http://www.bonavistasystems.com/">Bonavista Systems&#8217;</a> MicroCharts. These are available as free trial downloads, full versions start from around $50.</p>
<p>I wanted to try to make a simple tech demo of the Sparklines concept in Excel and ended up writing a script that adds a Bar Chart Sparkline, or <strong>NanoChart</strong> as I decided to call them, to a column of data. You can see a screenshot of the demo below.</p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/nano1.PNG" alt="NanoChart, Sparkline, MicroChart demo" /></p>
<p>This is a demo with very limited functionality, but it&#8217;s free, and you can modify it to suit your needs. In the future I will develop the NanoCharts to make them more flexible and add more options, like allowing data in rows, customizeable chart type, color and scaling. Make sure to check back.</p>
<p><strong>Download:</strong> <a href="http://www.bloggpro.com/downloads/NanoCharts_demonstration">NanoCharts demo</a> (downloaded 1479 times)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/nanocharts-enables-excel-in-cell-charts-with-sparklines-concept/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Automatically calculate confidence intervals in Excel</title>
		<link>http://www.bloggpro.com/automatically-calculate-confidence-intervals-in-excel/</link>
		<comments>http://www.bloggpro.com/automatically-calculate-confidence-intervals-in-excel/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 10:58:48 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.bloggpro.com/2007/10/05/automatically-calculate-confidence-intervals-in-excel/</guid>
		<description><![CDATA[Keywords: confidence intervals, confidence levels, macro, function, excel, how to 
Version: Excel 97 or later
Download:

In excel there are no native function for calculating confidence interval (CI) a function called CONFIDENCE to calculate the confidence interval, but it works slightly different from the custom confidence function I present here.
Since I need to do this calculation on [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Keywords:</strong><em> </em><em>confidence intervals, confidence levels, macro, function, excel, how to </em></p>
<p><strong>Version:</strong> <em>Excel 97 or later</em></p>
<p><strong>Download:</strong><br />
<input type="submit" name="download" value="Download example" onclick="startGateway('NTg2MTk%3D');" style="display:inline;" />
<p>In excel there are <strike>no native function for calculating confidence interval (CI)</strike> a function called CONFIDENCE to calculate the confidence interval, but it works slightly different from the custom confidence function I present here.</p>
<p>Since I need to do this calculation on a regular basis i decided to simplify this work by writing a VB function that will automatically calculate the <span style="font-weight: bold">confidence interval in Excel</span> for a given <em>range of values</em> and confidence level (CL) between 1-99%. It will also present the output in a format that is suitable to copy and paste directly into reports and result sheets. There are many excellent sites that cover the theory behind CI, so I won&#8217;t repeat it here.</p>
<p><span id="more-178"></span></p>
<p>What you need to know is that the function assumes that the standard deviation, σ, is unknown (which it is in most cases) and has to be estimated from the sample. In this case the CI isn&#8217;t calculated from the <span style="font-style: italic">normal distribution</span>  but  rather  from  the  <span style="font-style: italic">t-distribution</span>, which is used in my function.</p>
<p>The function syntax is:</p>
<p><code>CONFID(<span style="font-style: italic">range, confidence level</span>)</code></p>
<p>where <span style="font-style: italic">range </span>contains your data and <span style="font-style: italic">confidence level</span> is the desired confidence level (!) expressed as a fraction (0.01-0.99). The resulting output will look like this:</p>
<p><code><strong>Ex:</strong> 251.94 ± 4.03    (<em>average</em> ± <em>CI</em>)</code></p>
<p>The somewhat strange-looking output formatting was covered <a href="http://www.bloggpro.com/2007/07/19/output-formatting-average-value-and-confidence-interval-in-one-cell/">in a previous article</a>. The following example screens will illustrate the usage:</p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/ci1.PNG" alt="confidence intervals excel" /></p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/ci2.PNG" alt="how to calculate confidence intervals" /></p>
<p><img src="http://www.bloggpro.com/wp-content/uploads/2007/10/ci3.PNG" alt="confidence intervals excel" /></p>
<p>You may freely use and modify the script and example as you see fit. However, if you find this tool useful, you can show your appreciation by submitting this article to your favourite social bookmarking site, putting a link to my site on your site or simply leave a comment.</p>
<p><strong>Download:</strong><br />
<input type="submit" name="download" value="Download example" onclick="startGateway('NTg2MTk%3D');" style="display:inline;" />
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/automatically-calculate-confidence-intervals-in-excel/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Automated and scheduled HD defragmenting</title>
		<link>http://www.bloggpro.com/automated-and-scheduled-hd-defragmenting/</link>
		<comments>http://www.bloggpro.com/automated-and-scheduled-hd-defragmenting/#comments</comments>
		<pubDate>Mon, 21 May 2007 14:45:18 +0000</pubDate>
		<dc:creator>Jesper</dc:creator>
				<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://ewl.daglig.info/2007/05/21/automated-and-scheduled-hd-defragmenting/</guid>
		<description><![CDATA[Some time ago I wrote a script to automate disc defragmenting so that I could schedule it to late nights when no one is using the computer anyway. It turned out to be quite simple using VB scripting and Windows scheduler. Below you can see the commented script I use. You might need to make a couple of modifications [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I wrote a script to automate disc defragmenting so that I could schedule it to late nights when no one is using the computer anyway. It turned out to be quite simple using VB scripting and Windows scheduler. Below you can see the commented script I use. You might need to make a couple of modifications if you have a localized copy of Windows (keyboard short-cuts and application names may be different).</p>
<p><span id="more-86"></span></p>
<p>Copy and paste the script to an empty Notepad and save as <em>HDdefrag.vbs </em>or something similar, in a suitable folder. Then go to the Scheduled Tasks (Windows XP) and  select <em>Add Scheduled Task.</em>  Then just follow the instructions in the Wizard to make the script run every 2 weeks or so. You can even make your computer wake up if you have it in hibernation mode.</p>
<blockquote><p>set WshShell = CreateObject(&#8221;WScript.Shell&#8221;)</p>
<p>&#8216;Launch Defrag from the command line and wait for 2000 milliseconds<br />
WshShell.Run &#8220;dfrg.msc&#8221;<br />
WScript.Sleep 2000</p>
<p>&#8216;Wait until the application has loaded &#8211; Check every second<br />
While WshShell.AppActivate(&#8221;Disk Defragmenter&#8221;) = FALSE<br />
wscript.sleep 1000<br />
Wend</p>
<p>&#8216;1 Bring the application to the foreground<br />
WshShell.AppActivate &#8220;Disk Defragmenter&#8221;<br />
WScript.Sleep 500</p>
<p>&#8216;1 Send keys to move to top of drive/partition table.<br />
WshShell.SendKeys &#8220;{TAB}{HOME}&#8221;<br />
WScript.Sleep 501</p>
<p>&#8216;1 Send an ALT-A key to bring down the defrag menu<br />
WshShell.SendKeys &#8220;%A<br />
WScript.Sleep 502</p>
<p>&#8216;1 Send a D to start the defrag<br />
WshShell.SendKeys &#8220;D&#8221;</p>
<p>&#8216;1 Wait until the defrag is completed &#8211; Check for window every 5 seconds<br />
While WshShell.AppActivate(&#8221;Defragmentation Complete&#8221;) = FALSE<br />
wscript.sleep 5001<br />
Wend</p>
<p>&#8216;1 Bring the Defragmentation Complete window to the foreground<br />
WshShell.AppActivate &#8220;Defragmentation Complete&#8221;<br />
WScript.Sleep 503</p>
<p>&#8216;1 Send a tab key to move the focus from View Report button to the Close Button<br />
WshShell.Sendkeys &#8220;{TAB}&#8221;<br />
Wscript.Sleep 504</p>
<p>&#8216;1 Send key to Close the Defragmentation Complete window<br />
WshShell.Sendkeys &#8220;{ENTER}&#8221;<br />
Wscript.Sleep 505</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.bloggpro.com/automated-and-scheduled-hd-defragmenting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
