<?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>david stoker's blog &#187; Ideas</title>
	<atom:link href="http://www.davidstoker.org/blog/category/ideas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidstoker.org/blog</link>
	<description>living life to the full</description>
	<lastBuildDate>Sat, 02 May 2009 17:33:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Please Post Pictures People!</title>
		<link>http://www.davidstoker.org/blog/2009/03/29/please-post-pictures-people/</link>
		<comments>http://www.davidstoker.org/blog/2009/03/29/please-post-pictures-people/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 22:52:58 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Craigslist]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://www.davidstoker.org/blog/?p=87</guid>
		<description><![CDATA[The alliteration in the title of this post says it all&#8230;sort of. I am in the market for a car and have been keeping tabs on Craigslist for the past month. I probably won&#8217;t actually buy a car until after the summer or even November but I am still looking around and getting a feel [...]]]></description>
			<content:encoded><![CDATA[<p>The alliteration in the title of this post says it all&#8230;sort of. I am in the market for a car and have been keeping tabs on Craigslist for the past month. I probably won&#8217;t actually buy a car until after the summer or even November but I am still looking around and getting a feel for prices.</p>
<p>The point is, please post pictures of cars that you are selling! I have seen so many Craigslist postings where people are trying to sell a car for thousands of dollars but can&#8217;t even manage to post pictures! If someone is going to make a large purchase like a car they probably want to see some pictures of the thing. I just thought this was kind of an obvious fact that one should post pictures when posting an item for sale. Its not like it costs any money to post pictures since there are hundreds of free photo sharing sites like Photobucket and Flickr.</p>
<p>I&#8217;ll admit that some people at least try to post pictures. Unfortunately these pictures were taken with some junk 1 megapixel camera built into their Razr flip-phone that they purchased in 2004. Epic FAIL. So the point is, please post good pictures of cars that you would like to actually have a shot at selling!! Otherwise your posting is about as useful as a classified ad in the newspaper. The whole point of the internet nowadays is the easy sharing of multimedia so post up some good lookin&#8217; photos of the car that you are thinking about selling if you are going to make a listing on Craigslist!</p>
<p>/rant</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidstoker.org/blog/2009/03/29/please-post-pictures-people/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building a Kiosk With Firefox Part 1</title>
		<link>http://www.davidstoker.org/blog/2008/05/27/building-a-kiosk-with-firefox-part-1/</link>
		<comments>http://www.davidstoker.org/blog/2008/05/27/building-a-kiosk-with-firefox-part-1/#comments</comments>
		<pubDate>Tue, 27 May 2008 23:59:27 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[AutoHotKey]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Kiosk]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[R-Kiosk]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://davidstoker.org/blog/?p=11</guid>
		<description><![CDATA[Well, summer started a couple weeks ago and I started working as a PC Support Specialist again! As a part of my first week of work I started work on re-doing 18 Dell PCs that are set up in a &#8220;museum&#8221; type setting. These PCs have a variety of interactive Flash applications and websites that [...]]]></description>
			<content:encoded><![CDATA[<p>Well, summer started a couple weeks ago and I started working as a PC Support Specialist again! As a part of my first week of work I started work on re-doing 18 Dell PCs that are set up in a &#8220;museum&#8221; type setting. These PCs have a variety of interactive Flash applications and websites that visitors can use. Naturally, these PCs need to be &#8220;locked down&#8221; as much as possible so that people can&#8217;t just press CTRL-ALT-DEL or minimize the browser window and mess around with the computer. These computers were not set up very well initially and there have been plenty of instances of people accessing the computer and being able to see the network and change settings. There was even a case where a person decided to place links to pornographic websites on the desktop which is just horrible!</p>
<p>There are plenty of commercial solutions for locking down a browser and usually cost a considerable amount per computer. I decided to use freely available open source software to create the locked down kiosk solution that the project called for.</p>
<p>Naturally, I needed to start with a good solid web browser that would allow for the use of plugins and customization. Firefox anyone? I grabbed a copy of Firefox 2 since Firefox 3 isn&#8217;t quite ready for production use yet and went to looking for plugins that would help turn Firefox into a kiosk browser. I stumbled upon <a title="R-Kiosk" href="https://addons.mozilla.org/en-US/firefox/addon/1659" target="_blank">R-kiosk</a> which was exactly what I was looking for! If you read through the comments on the R-kiosk description page you will see that there are a couple shortcomings. The most notable problem is that popup windows are automatically resized to take up the entire screen. Since the menu bar is hidden so that the user can&#8217;t simply hit the &#8220;X&#8221; users can get &#8220;stuck&#8221; on pop up screens! This is a major flaw in the plug in but rather difficult to avoid. Fortunately for my set up, I don&#8217;t have to worry about popup windows. The content that users can view is local to the PC and is not &#8220;live&#8221; internet content. Saman Sadeghi has an <a href="http://samanathon.com/firefox-2s-kiosk-mode/" target="_blank">excellent tutorial about R-kiosk</a> over at his website.</p>
<p>If you read the description for R-Kiosk you will see that it blocks many of the keys in Firefox in order to prevent users from doing certain things. It does work and prevents the user from right clicking and things of that sort. This is great but there are still a number of things that the user could do in order to get back to the computer. R-Kiosk doesn&#8217;t block things like the Windows key or other common key combinations like CTRL-SHIFT-ESC or ALT-SHIFT-ESC that would allow a user to exit the browser window or bring up the Task Manager. I needed to <strong>completely</strong> lock down the computers and only allow the user to do a small set of operations.</p>
<p>In order to do this, I needed a way to control certain key strokes and prevent common ones like the Windows key from working. The best way I found to do this was a simple free program called <a title="AutoHotKey" href="http://www.autohotkey.com/" target="_blank">AutoHotKey</a>. Many gamers use AutoHotKey to create, well, hotkeys, for their games! I personally have used it to create custom hotkeys that make repetitive tasks easier to perform. I created a simple AutoHotKey script that monitors common shortcuts in Firefox and Windows and makes them do nothing which is exactly what is needed when locking down a PC! Here is a copy of the script that I created:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/*
Ignore attempts to launch multiple instances of the program
*/</span>
#SingleInstance ignore
#InstallKeybdHook
&nbsp;
<span style="color: #006600; font-style: italic;">/*
Disable a series of keys
*/</span>
&nbsp;
<span style="color: #339933;">!</span>F4<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt F4
<span style="color: #339933;">!</span>Esc<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Escape
Lwin<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Left Windows Key
Rwin<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Right Windows Keyl
<span style="color: #339933;">^</span>Tab<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl Tab
<span style="color: #339933;">!</span>Tab<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Tab
<span style="color: #339933;">!+</span>Tab<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Shift Tab
F7<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> F7
<span style="color: #339933;">^+</span>Escape<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl Shift Escape
<span style="color: #339933;">!+</span>Escape<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt SHift Escape
<span style="color: #339933;">^</span>A<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl A
<span style="color: #339933;">^</span>R<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl R
<span style="color: #339933;">^</span>P<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl P
<span style="color: #339933;">^</span>X<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl X
<span style="color: #339933;">^</span>C<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl C
<span style="color: #339933;">^</span>V<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl V
<span style="color: #339933;">^</span>T<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl T
<span style="color: #339933;">!</span>VK24<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt <span style="color: #000066;">Home</span>
SC135<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Firefox Quick Find
SC145<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Num Lock
&nbsp;
SC03A<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Caps Lock
SC046<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> <span style="color: #000066;">Scroll</span> Lock
<span style="color: #339933;">!</span>LButton<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Left Click which starts download <span style="color: #000066; font-weight: bold;">in</span> Firefox
<span style="color: #339933;">^</span>LButton<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl Left Click which starts download
<span style="color: #339933;">!</span>MButton<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Middle Click which opens a <span style="color: #003366; font-weight: bold;">new</span> tab <span style="color: #000066; font-weight: bold;">in</span> Firefox
<span style="color: #339933;">^</span>MButton<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Middle Click which opens a <span style="color: #003366; font-weight: bold;">new</span> tab
<span style="color: #339933;">+</span>LButton<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Shift Left Click which opens a <span style="color: #003366; font-weight: bold;">new</span> window <span style="color: #000066; font-weight: bold;">in</span> Firefox
<span style="color: #339933;">+</span>MButton<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Shift Middle Click which opens a <span style="color: #003366; font-weight: bold;">new</span> tab
<span style="color: #339933;">+</span>VK0D<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Shift Enter which opens a <span style="color: #003366; font-weight: bold;">new</span> window
<span style="color: #339933;">!+</span>VK0D<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Shift Enter which opens a <span style="color: #003366; font-weight: bold;">new</span> window
<span style="color: #339933;">!</span>VK0D<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Enter which starts download
<span style="color: #339933;">^</span>VK0D<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl Enter which opens a <span style="color: #003366; font-weight: bold;">new</span> tab
<span style="color: #339933;">^+</span>VK0D<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl Shift Enter opens a <span style="color: #003366; font-weight: bold;">new</span> tab
<span style="color: #339933;">^!</span>VK0D<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl Alt Enter opens a <span style="color: #003366; font-weight: bold;">new</span> tab
<span style="color: #339933;">^</span>Escape<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Ctrl Escape
<span style="color: #339933;">!</span>Space<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Space which opens menu bar
<span style="color: #339933;">!+</span>Space<span style="color: #339933;">::</span>  <span style="color: #339933;">;</span> Alt Shift Space which opens menu bar
<span style="color: #000066; font-weight: bold;">return</span>
&nbsp;
<span style="color: #006600; font-style: italic;">/*
Set Alt F9 to exit any open Firefox browser
*/</span>
<span style="color: #339933;">!</span>F9<span style="color: #339933;">::</span>
&nbsp;
IfWinExist<span style="color: #339933;">,</span> ahk_class MozillaUIWindowClass <span style="color: #339933;">;</span> Firefox
&nbsp;
<span style="color: #009900;">&#123;</span>
&nbsp;
WinActivate ahk_class MozillaUIWindowClass
&nbsp;
WinClose<span style="color: #339933;">,</span> ahk_class MozillaUIWindowClass
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">return</span></pre></div></div>

<p>As you can see, the top section of code monitors for all sorts of hotkeys and shortcuts. I&#8217;m sure that there are more that I didn&#8217;t come up and I&#8217;d love comments if there are anymore that would be helpful to block! The comments in the code make it rather self explanitory. The first section monitors for keystrokes and that has no action for each keystroke. Looking at the syntax of the AutoHotKey code, notice the &#8220;::&#8221; that comes after each Key sequence. Normally, the action for the hotkey would come after the double colons but my script assigns no action to each key stroke. You will notice that there are a number of characters that are used to represent certain keys in order to detect the keystroke. For example, the &#8220;!&#8221; is used to represent the Alt key. A full list of these character to key associations can be <a href="http://www.autohotkey.com/docs/Hotkeys.htm" target="_blank">found at the AutoHotKey</a> site. There is also excellent <a href="http://www.autohotkey.com/docs/" target="_blank">documentation available</a> that can help your further explore AutoHotKey.</p>
<p>The second half of the code monitors for the Alt-F9 key sequence. This sequence was my testing &#8220;exit key&#8221; used to get me out of Firefox. This will be set to something more complicated, like a series of four keys, so that an administrator could make changes to the machine. If the AutoHotKey detects that Alt-F9 was pressed, it will check to see if any windows exist that belong to the MozillaUIWindowClass. It then closes them which would get an administrator the computer&#8217;s desktop.</p>
<p>Whew! That was a lot of information! I&#8217;m going to take a break now that I have explained a good amount about R-Kiosk and using AutoHotKey to limit key strokes. In the next installment I&#8217;ll talk about my modifications to the Firefox userChrome.css file which allowed me to hide all the features of the Firefox environment except for the back and forward buttons.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidstoker.org/blog/2008/05/27/building-a-kiosk-with-firefox-part-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Great Attractor</title>
		<link>http://www.davidstoker.org/blog/2008/04/03/the-great-attractor/</link>
		<comments>http://www.davidstoker.org/blog/2008/04/03/the-great-attractor/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 17:30:57 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[Attractor]]></category>
		<category><![CDATA[God]]></category>
		<category><![CDATA[Great]]></category>
		<category><![CDATA[Great Attractor]]></category>
		<category><![CDATA[Heaven]]></category>
		<category><![CDATA[Interesting facts]]></category>
		<category><![CDATA[Universe]]></category>

		<guid isPermaLink="false">http://davidstoker.org/blog/?p=4</guid>
		<description><![CDATA[I was studying for my Physics quiz the other day and was reading a chapter on Gravitation in my Physics book when I stumbled upon the term &#8220;Great Attractor.&#8221; To quote my book, &#8220;The Local Group is part of the Local Supercluster of galaxies that is being drawn by the gravitational force toward an exceptionally [...]]]></description>
			<content:encoded><![CDATA[<p>I was studying for my Physics quiz the other day and was reading a chapter on Gravitation in my Physics book when I stumbled upon the term &#8220;Great Attractor.&#8221; To quote my book, &#8220;The Local Group is part of the Local Supercluster of galaxies that is being drawn by the gravitational force toward an exceptionally massive region of space called the Great Attractor. This region appears to be about 3.0 x 10<sup>8</sup> light-years from Earth, on the opposite side of the Milky Way.&#8221; WOW! What an interesting concept and strange phenomenon. The first thing I thought of when reading this though was, &#8220;Could that be heaven?&#8221; The name fits. The concept fits since everything in the Universe is being drawn towards it. And it just sounds good.</p>
<p>I did a quick search on Google to see if other people made some type of religious connection with this idea of the Great Attractor. I found an <a href="http://jamesmcgillis.com/default.asp?id=58" target="_blank">article</a> by James McGillis talking about the same idea. He approached the topic in a very metaphysical sense which was interesting to read. I like the idea of thinking about God or heaven being out there in a specific place in the Universe but at the same time I don&#8217;t know if it is reasonable. I am a firm Christian and I believe that God is omnipotent and omnipresent. That would mean that God would have to be in this Great Attractor region but also everywhere in the Universe at the same time.</p>
<p>All in all, I just like the idea of the Earth being attracted to this defined region in the Universe called the Great Attractor which in actuality could the location of &#8220;heaven.&#8221; I guess you could say that it is a very cliche idea but a fun idea to contemplate all at the same time.</p>
<p>Here are a couple interesting pictures illustrating the Great Attractor.</p>
<p style="text-align: center;"><a href="http://davidstoker.org/blog/wp-content/uploads/2008/04/great-attractor-1.jpg"><img class="alignnone size-medium wp-image-5" title="great-attractor-1" src="http://davidstoker.org/blog/wp-content/uploads/2008/04/great-attractor-1-296x300.jpg" alt="The Great Attractor Diagram" width="296" height="300" /></a></p>
<p style="text-align: center;"><a href="http://davidstoker.org/blog/wp-content/uploads/2008/04/great-attractor-2.jpg"><img class="alignnone size-medium wp-image-6" title="great-attractor-2" src="http://davidstoker.org/blog/wp-content/uploads/2008/04/great-attractor-2-300x218.jpg" alt="Great Attractor Picture" width="300" height="218" /></a></p>
<p>One last interesting fact! The Great Attractor is &#8220;attracting&#8221; galaxies and Superclusters at velocities in excess of 600 kilometers per second!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidstoker.org/blog/2008/04/03/the-great-attractor/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
