<?xml version="1.0"?>
<?xml-stylesheet href="http://www.siamnet.org/pub/skins/glossyhue/style.css" type="text/css"?>
<?xml-stylesheet href="http://www.siamnet.org/pub/skins/glossyhue/color-blue/color.css" type="text/css"?>
<?xml-stylesheet href="http://www.siamnet.org/pmwiki.css" type="text/css"?>
<rss version="2.0">
  <channel>
    <title>Siamnet.org RSS Headlines</title>
    <link>http://www.siamnet.org</link>
    <description>These are the official Siamnet.org headlines.</description>
    <language>en-us</language>
    <copyright>2010</copyright>
    <lastBuildDate>
Mon, 24 Jan 2011 10:30:00 EST
    </lastBuildDate>
    <webMaster>wjsams@gmail.com</webMaster>
    <ttl>30</ttl>
<!--
	<item>
		<title></title>
		<description>
        <![CDATA[

        ]]>
        </description>
		<pubDate>Thu, 09 Apr 2010 01:12:00 EST</pubDate>
		<enclosure url="http://music.wjsams.com/podcast/music/" length="" type="audio/mpeg" />
	</item>
	<item>
		<title></title>
		<description>
        <![CDATA[

        ]]>
        </description>
		<pubDate>Thu, 09 Apr 2010 01:12:00 EST</pubDate>
	</item>
-->
	<item>
		<title>Insert text at caret (cursor) in a textarea with jQuery</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Insert text at caret (cursor) in a textarea with jQuery</h2>
<p><a href="http://www.siamnet.org/Wiki/Javascript-PlaceTextAtCursorPointInTextarea" class="wikilink">Here is a plain JavaScript version.</a>
</p>
<p class="vspace">In the example below, jQuery has been extended with the <code>insertAtCaret</code> function.
</p>
<p class="vspace">I've created a basic function <code>insert(str)</code> to actually perform the task. I was hoping <code class="escaped">&lt;input type="button" name="push" value="Insert at Caret" onclick="$(this).insertAtCaret('InsertMe')" /&gt;</code> would work, but haven't had any luck.
</p>
<div class="vspace"></div>
<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="java"><span class="sy0">&lt;!</span>DOCTYPE html<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;</span>html<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;</span>head<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;</span>title<span class="sy0">&gt;</span>Test<span class="sy0">&lt;/</span>title<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;</span>script type<span class="sy0">=</span><span class="st0">"text/javascript"</span> src<span class="sy0">=</span><span class="st0">"http://code.jquery.com/jquery-1.4.4.min.js"</span><span class="sy0">&gt;&lt;/</span>script<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;</span>script type<span class="sy0">=</span><span class="st0">"text/javascript"</span><span class="sy0">&gt;</span><br>
jQuery.<span class="me1">fn</span>.<span class="me1">extend</span><span class="br0">(</span><span class="br0">{</span><br>
&nbsp; &nbsp; insertAtCaret<span class="sy0">:</span> function<span class="br0">(</span>valueToInsertAtCaret<span class="br0">)</span><span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="kw1">this</span>.<span class="me1">each</span><span class="br0">(</span> function<span class="br0">(</span>i<span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">(</span> document.<span class="me1">selection</span> <span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">focus</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selection <span class="sy0">=</span> document.<span class="me1">selection</span>.<span class="me1">createRange</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selection.<span class="me1">text</span> <span class="sy0">=</span> valueToInsertAtCaret<span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">focus</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">}</span> <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">(</span> <span class="kw1">this</span>.<span class="me1">selectionStart</span> <span class="sy0">||</span> <span class="kw1">this</span>.<span class="me1">selectionStart</span> <span class="sy0">==</span> <span class="st0">"0"</span> <span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var startPosition <span class="sy0">=</span> <span class="kw1">this</span>.<span class="me1">selectionStart</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var endPosition <span class="sy0">=</span> <span class="kw1">this</span>.<span class="me1">selectionEnd</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var scrollTop <span class="sy0">=</span> <span class="kw1">this</span>.<span class="me1">scrollTop</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">value</span> <span class="sy0">=</span> <span class="kw1">this</span>.<span class="me1">value</span>.<span class="me1">substring</span><span class="br0">(</span>0, startPosition<span class="br0">)</span> <span class="sy0">+</span> valueToInsertAtCaret <span class="sy0">+</span> <span class="kw1">this</span>.<span class="me1">value</span>.<span class="me1">substring</span><span class="br0">(</span>endPosition, <span class="kw1">this</span>.<span class="me1">value</span>.<span class="me1">length</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">focus</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">selectionStart</span> <span class="sy0">=</span> startPosition <span class="sy0">+</span> valueToInsertAtCaret.<span class="me1">length</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">selectionEnd</span> <span class="sy0">=</span> startPosition <span class="sy0">+</span> valueToInsertAtCaret.<span class="me1">length</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">scrollTop</span> <span class="sy0">=</span> scrollTop<span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">}</span> <span class="kw1">else</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">value</span> <span class="sy0">+=</span> valueToInsertAtCaret<span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">this</span>.<span class="me1">focus</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">}</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">}</span><span class="br0">)</span><br>
&nbsp; &nbsp; <span class="br0">}</span><br>
<span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>
<br>
function insert<span class="br0">(</span>str<span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; $<span class="br0">(</span><span class="st0">"textarea#output"</span><span class="br0">)</span>.<span class="me1">insertAtCaret</span><span class="br0">(</span>str<span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw2">true</span><span class="sy0">;</span><br>
<span class="br0">}</span><br>
<span class="sy0">&lt;/</span>script<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;/</span>head<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;</span>body<span class="sy0">&gt;</span><br>
<span class="sy0">&lt;</span>input type<span class="sy0">=</span><span class="st0">"button"</span> name<span class="sy0">=</span><span class="st0">"push"</span> value<span class="sy0">=</span><span class="st0">"Insert at Caret"</span> onclick<span class="sy0">=</span><span class="st0">"insert('InsertMe')"</span> <span class="sy0">/&gt;&lt;</span>br <span class="sy0">/&gt;</span><br>
<span class="sy0">&lt;</span>textarea id<span class="sy0">=</span><span class="st0">"output"</span> rows<span class="sy0">=</span><span class="st0">"15"</span> style<span class="sy0">=</span><span class="st0">"width:95%;"</span><span class="sy0">&gt;</span>This is a sentence.<br>
<span class="me1">And</span> here is another sentence.<br>
<span class="me1">No</span>, <span class="kw1">this</span> is the best sentence.<br>
<span class="me1">What</span> about me<span class="sy0">?</span><br>
Don<span class="st0">'t think so.<br>
Sorry.&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<div class="vspace"></div><h2>References</h2>
<ul><li><a target="_blank" rel="nofollow" href="http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery" class="urllink">http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery</a> <span style="color: maroon; font-weight: bold;">»</span>
</li></ul><p class="vspace"><code>Posted on 2011-01-24 by asiam [See <a href="http://www.siamnet.org/Wiki/Javascript-jQuery-PlaceTextAtCursorPointInTextarea" class="wikilink">Javascript-jQuery-PlaceTextAtCursorPointInTextarea</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Mon, 24 Jan 2011 10:30:00 EST</pubDate>
	</item>
	<item>
		<title>How to auto refresh CSS with jQuery</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>How to auto refresh CSS with jQuery</h2>

<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php"><span class="co4">/**<br>
&nbsp;* Forces a reload of all stylesheets by appending a unique query string<br>
&nbsp;* to each stylesheet URL.<br>
&nbsp;*/</span><br>
<span class="kw2">function</span> reloadStylesheets<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; <span class="kw2">var</span> queryString <span class="sy0">=</span> <span class="st_h">'?reload='</span> <span class="sy0">+</span> <span class="kw2">new</span> <span class="kw3">Date</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">.</span>getTime<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; $<span class="br0">(</span><span class="st_h">'link[rel="stylesheet"]'</span><span class="br0">)</span><span class="sy0">.</span><span class="kw3">each</span><span class="br0">(</span><span class="kw2">function</span> <span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; this<span class="sy0">.</span>href <span class="sy0">=</span> this<span class="sy0">.</span>href<span class="sy0">.</span>replace<span class="br0">(</span><span class="sy0">/</span>\?<span class="sy0">.*|</span>$<span class="sy0">/,</span> queryString<span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>
<span class="br0">}</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<p class="vspace">I use the <a target="_blank" rel="nofollow" href="http://plugins.jquery.com/project/timers" class="urllink">Timer plugin</a> <span style="color: maroon; font-weight: bold;">»</span> as so,
</p>
<div class="vspace"></div>
<div id="sourceblock2" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php">$<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>everyTime<span class="br0">(</span><span class="nu0">30000</span><span class="sy0">,</span> <span class="st0">"reloadCss"</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>i<span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; reloadStylesheets<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
<span class="br0">}</span><span class="sy0">,</span> 0<span class="br0">)</span><span class="sy0">;</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=2">[Get Code]</a></div>
</div>

<div class="vspace"></div>
<div id="sourceblock3" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php">$<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>ready<span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span><span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>everyTime<span class="br0">(</span><span class="nu0">30000</span><span class="sy0">,</span> <span class="st0">"reloadCss"</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>i<span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reloadStylesheets<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">}</span><span class="sy0">,</span> 0<span class="br0">)</span><span class="sy0">;</span><br>
<span class="br0">}</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=3">[Get Code]</a></div>
</div>

<p class="vspace">Just put this in the <code>ready</code> function and as soon as your page loads, css will auto-reload every 30(000 milli)seconds.
</p>
<div class="vspace"></div><h2>References</h2>
<ul><li><a target="_blank" rel="nofollow" href="http://stackoverflow.com/questions/2024486/is-there-an-easy-way-to-reload-css-without-reloading-the-page" class="urllink">http://stackoverflow.com/questions/2024486/is-there-an-easy-way-to-reload-css-without-reloading-the-page</a> <span style="color: maroon; font-weight: bold;">»</span>
</li><li><a target="_blank" rel="nofollow" href="http://plugins.jquery.com/project/timers" class="urllink">http://plugins.jquery.com/project/timers</a> <span style="color: maroon; font-weight: bold;">»</span>
</li></ul><p class="vspace"><code>Posted on 2010-11-23 by asiam [See <a href="http://www.siamnet.org/Wiki/Javascript-Jquery-HowToAutoRefreshCss" class="wikilink">Javascript-Jquery-HowToAutoRefreshCss</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Tue, 23 Nov 2010 22:37:00 EST</pubDate>
	</item>
	<item>
		<title>Open a dialog window (<code class="escaped">&lt;div /&gt;</code>) near your cursor on double click or whatever event using jQuery / JavaScript</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Open a dialog window (<code class="escaped">&lt;div /&gt;</code>) near your cursor on double click or whatever event using jQuery / JavaScript</h2>
<p>This is the div that contains whatever you want to popup.
</p>
<div class="vspace"></div>
<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php"><span class="sy0">&lt;</span>div id<span class="sy0">=</span><span class="st0">"bliptools"</span><span class="sy0">&gt;</span><br>
&nbsp; &nbsp; Some content in here<span class="sy0">.</span><br>
<span class="sy0">&lt;/</span>div<span class="sy0">&gt;&lt;!--</span>bliptools<span class="sy0">--&gt;</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<p class="vspace">This function will will open a div with <code>id=bliptools</code>.
</p>
<div class="vspace"></div>
<div id="sourceblock2" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php"><span class="kw2">function</span> blipDoubleClick<span class="br0">(</span>e<span class="sy0">,</span> bid<span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; <span class="kw2">var</span> x <span class="sy0">=</span> mouseX <span class="sy0">-</span> <span class="nu0">32</span><span class="sy0">;</span><br>
&nbsp; &nbsp; <span class="kw2">var</span> y <span class="sy0">=</span> mouseY<span class="sy0">;</span><br>
&nbsp; &nbsp; hideBlipTools<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; $<span class="br0">(</span><span class="st0">"div#someId"</span><span class="br0">)</span><span class="sy0">.</span>css<span class="br0">(</span><span class="br0">{</span><span class="st0">"top"</span><span class="sy0">:</span>y<span class="sy0">,</span> <span class="st0">"left"</span><span class="sy0">:</span>x<span class="sy0">,</span> <span class="st0">"position"</span><span class="sy0">:</span><span class="st0">"absolute"</span><span class="sy0">,</span> <span class="st0">"display"</span><span class="sy0">:</span><span class="st0">"block"</span><span class="sy0">,</span> <span class="st0">"visibility"</span><span class="sy0">:</span><span class="st0">"visible"</span><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; isbliptoolson <span class="sy0">=</span> <span class="kw4">true</span><span class="sy0">;</span><br>
<span class="br0">}</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=2">[Get Code]</a></div>
</div>

<p class="vspace">This function will hide the <code>bliptools</code> div using jQuery.
</p>
<div class="vspace"></div>
<div id="sourceblock3" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php"><span class="kw2">function</span> hideBlipTools<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">(</span>isbliptoolson<span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">(</span><span class="st_h">'div#bliptools'</span><span class="br0">)</span><span class="sy0">.</span>hide<span class="br0">(</span><span class="st_h">'slow'</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; isbliptoolson <span class="sy0">=</span> <span class="kw4">false</span><span class="sy0">;</span><br>
&nbsp; &nbsp; <span class="br0">}</span><br>
&nbsp; &nbsp; <span class="kw1">return</span> <span class="kw4">true</span><span class="sy0">;</span><br>
<span class="br0">}</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=3">[Get Code]</a></div>
</div>

<div class="vspace"></div><h3>Notes</h3>
<p>You can also bind the event with jQuery so that if you double click on any div that has the class <code>bliptext</code> it will pop up the <code>bliptools</code> div.
</p>
<div class="vspace"></div>
<div id="sourceblock4" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php">$<span class="br0">(</span><span class="st_h">'div.bliptext'</span><span class="br0">)</span><span class="sy0">.</span>dblclick<span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span>e<span class="br0">)</span><span class="br0">{</span><br>
&nbsp; &nbsp; <span class="kw2">var</span> x <span class="sy0">=</span> mouseX <span class="sy0">-</span> <span class="nu0">32</span><span class="sy0">;</span><br>
&nbsp; &nbsp; <span class="kw2">var</span> y <span class="sy0">=</span> mouseY<span class="sy0">;</span><br>
&nbsp; &nbsp; hideBlipTools<span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; $<span class="br0">(</span><span class="st0">"div#bliptools"</span><span class="br0">)</span><span class="sy0">.</span>css<span class="br0">(</span><span class="br0">{</span><span class="st0">"top"</span><span class="sy0">:</span>y<span class="sy0">,</span> <span class="st0">"left"</span><span class="sy0">:</span>x<span class="sy0">,</span> <span class="st0">"position"</span><span class="sy0">:</span><span class="st0">"absolute"</span><span class="sy0">,</span> <span class="st0">"display"</span><span class="sy0">:</span><span class="st0">"block"</span><span class="sy0">,</span> <span class="st0">"visibility"</span><span class="sy0">:</span><span class="st0">"visible"</span><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; isbliptoolson <span class="sy0">=</span> <span class="kw4">true</span><span class="sy0">;</span><br>
<span class="br0">}</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=4">[Get Code]</a></div>
</div>

<p class="vspace"><code>Posted on 2010-11-16 by asiam [See <a href="http://www.siamnet.org/Wiki/Javascript-Jquery-PopupDialogNearMousePointer" class="wikilink">Javascript-Jquery-PopupDialogNearMousePointer</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Mon, 16 Nov 2010 10:36:00 EST</pubDate>
	</item>
	<item>
		<title>Windows 7 inbound versus outbound firewall rules</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Windows 7 inbound versus outbound firewall rules</h2>
<p><strong>Inbound rules:</strong> These are to do with other things accessing your computer. If you are running a Web Server on your computer then you will have to tell the Firewall that outsiders are allowed to connect to it.
</p>
<p class="vspace"><strong>Outbound rules:</strong> These are so that you can let some programs use the Internet, and Block others. You will want to let your Web Browser (Internet Explorer, Firefox, Safari, Chrome, Opera...) have access to the Internet, so you will tell Windows Firewall that it's allowed.
</p>
<div class="vspace"></div><h2>References</h2>
<ul><li><a target="_blank" rel="nofollow" href="http://superuser.com/questions/48343/what-are-inbound-and-outbound-rules-for-windows-firewall" class="urllink">http://superuser.com/questions/48343/what-are-inbound-and-outbound-rules-for-windows-firewall</a> <span style="color: maroon; font-weight: bold;">»</span>
</li></ul><p class="vspace"><code>Posted on 2010-11-04 by asiam [See <a href="http://www.siamnet.org/Wiki/Windows7-InboundVersusOutboundFirewallRules" class="wikilink">Windows7-InboundVersusOutboundFirewallRules</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Thu, 04 Nov 2010 14:09:00 EST</pubDate>
	</item>
	<item>
		<title>How to setup SSL on sbnc (ShroudBNC)</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>How to setup SSL on <code>sbnc</code> (ShroudBNC)</h2>
<h3>Create certificate</h3>
<p>To create the certificate, go to directory where the sBNC binary is (not the source directory) and create the certificate. sBNC expects to find the files sbnc.crt and sbnc.key there:
</p>
<div class="vspace"></div>
<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ <span class="kw3">cd</span> ~<span class="sy0">/</span>sbnc<br>
$ openssl genrsa <span class="re5">-des3</span> <span class="re5">-out</span> sbnc.key 1024<br>
$ openssl req <span class="re5">-new</span> <span class="re5">-x509</span> <span class="re5">-days</span> $<span class="br0">[</span>365 <span class="sy0">*</span> 5<span class="br0">]</span> <span class="re5">-key</span> sbnc.key <span class="re5">-out</span> sbnc.crt</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<p class="vspace">You will be asked to create a passphrase and to answer some details.
</p>
<div class="vspace"></div><h3>Enable sslport</h3>
<p>Turn the bouncer listen port to SSL by editing sbnc.conf in your favorite text editor and then changing:
</p>
<p class="vspace">Open <code>/etc/sbnc/sbnc.conf</code>, decide on a SSL port and change
</p>
<div class="vspace"></div> <pre class="escaped" style="border: 2px dotted rgb(3, 62, 213); background-color: rgb(218, 228, 254); color: rgb(1, 24, 81); margin: 8px; padding: 8px; font-family: monospace; overflow: auto;">system.port=88888
</pre>
<p class="vspace">to
</p>
<div class="vspace"></div> <pre class="escaped" style="border: 2px dotted rgb(3, 62, 213); background-color: rgb(218, 228, 254); color: rgb(1, 24, 81); margin: 8px; padding: 8px; font-family: monospace; overflow: auto;">system.sslport=99999
</pre>
<p class="vspace">where 99999 is your SSL port.
</p>
<p class="vspace">With this the listen port will use SSL, and no unencrypted port will be available anymore. You could have both encrypted and unencrypted listen ports by having both lines in the configuration, but we only have two ports available here in Shellium.org and it's kinda not logical to use an unencrypted connection if we want an encrypted one. Your choice. Now you can run sbnc with SSL, no special command line options needed.
</p>
<div class="vspace"></div><h3>Remove passphrase</h3>
<p>Because sBNC asks for the passphrase of the SSL certificate when it starts, we must run it in foreground (with --foreground command line option) - that's not desirable here. This can be avoided by removing the passphrase from the SSL certificate. If there is no passphrase asked, the sbnc process can go to background as usual. To remove the passphrase execute:
</p>
<div class="vspace"></div>
<div id="sourceblock2" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ <span class="kw2">cp</span> sbnc.key sbnc.key.org<br>
$ openssl rsa <span class="re5">-in</span> sbnc.key.org <span class="re5">-out</span> sbnc.key</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=2">[Get Code]</a></div>
</div>

<div class="vspace"></div><h2>References</h2>
<ul><li><a target="_blank" rel="nofollow" href="http://wiki.shellium.org/w/SBNC" class="urllink">http://wiki.shellium.org/w/SBNC</a> <span style="color: maroon; font-weight: bold;">»</span>
</li><li><a target="_blank" rel="nofollow" href="http://www.phoenix-network.org/pages/docs/sbnc.php" class="urllink">http://www.phoenix-network.org/pages/docs/sbnc.php</a> <span style="color: maroon; font-weight: bold;">»</span>
</li></ul><p class="vspace"><code>Posted on 2010-11-01 by asiam [See <a href="http://www.siamnet.org/Wiki/Ubuntu-Sbnc-HowToSetupSsl" class="wikilink">Ubuntu-Sbnc-HowToSetupSsl</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Mon, 01 Nov 2010 17:02:00 EST</pubDate>
	</item>
	<item>
		<title>Top 4 compact digital cameras of 2010</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Top 4 compact digital cameras of 2010</h2>
<table cellspacing="0" cellpadding="4" border="1"><tbody><tr><td bgcolor="#dfdfdf" valign="top"> Model
</td><td valign="top"> Canon PowerShot S95<br clear="all"><img title="" alt="" src="http://www.siamnet.org/uploads/Main/canon-s95.jpg">
</td><td valign="top"> Samsung WB2000<br clear="all"><img title="" alt="" src="http://www.siamnet.org/uploads/Main/samsung-wb2000.jpg">
</td><td valign="top"> Panasonic DMC-LX5K<br clear="all"><img title="" alt="" src="http://www.siamnet.org/uploads/Main/panasonic-dmc-lx5k.jpg">
</td><td valign="top"> Nikon Coolpix P7000<br clear="all"><img title="" alt="" src="http://www.siamnet.org/uploads/Main/nikon-coolpix-p7000.jpg">
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> MegaPixels
</td><td valign="top"> 10
</td><td valign="top"> 10
</td><td valign="top"> 10
</td><td valign="top"> 10
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Sensor
</td><td valign="top"> 1/1.7in CCD
</td><td bgcolor="#d6e9d5" valign="top"> 1/2.4in CMOS
</td><td valign="top"> 1/1.63 CCD
</td><td valign="top"> 1/1.7in CCD
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Focal Length
</td><td bgcolor="#d6e9d5" valign="top"> 6.0 (W)-22.5mm (T) f/2.0-4.9 (35mm equivalent: 28-105mm)
</td><td valign="top"> Schneider-KREUZNACH f = 4.3 ~ 21.5mm (35mm film equivalent : 24~120 mm)
</td><td valign="top"> f=5.1-19.2mm (24-90mm in 35mm equiv.)<br clear="all">(25-95mm in 35mm equiv. in movie recording)
</td><td valign="top"> 7.1x zoom NIKKOR; 6.0-42.6mm (35mm [135] format picture angle: 28-200mm); f/2.8-5.6; Digital zoom: up to 4x (35mm [135] format picture angle: Approx. 800mm)
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Focusing Range
</td><td valign="top"> Auto: 2.0 in./5cm - infinity (W), 12 in./30cm-infinity (T);<br clear="all">Normal: 2.0 in./5cm - infinity, 12 in /30cm. - infinity (T);<br clear="all">Macro: 2.0 in. - 1.6 ft./5 - 50cm (W) 12 in. - 1.6 ft./ 30 - 50cm (T) ;<br clear="all">Manual Focus: 2.0 in. - infinity/5cm - infinity (W), 1.6 ft. - infinity/50cm - infinity (T)
</td><td valign="top"> Normal : 50cm ~ Infinity (Wide), 80cm ~ Infinity (Tele) Macro : 5cm~50cm (Wide), 50cm ~ 80cm (Tele)<br clear="all">Auto Macro : 5cm~Infinity (Wide), 50cm~ Infinity (Tele)Manual : 5cm ~ Infinity (Wide), 50cm ~ Infinity (Tele)
</td><td bgcolor="#d6e9d5" valign="top"> Normal: Wide/Tele 50 cm - infinity<br clear="all">Macro / Intelligent AUTO / Wide 1 cm - infinity / Tele 30cm - infinity
</td><td valign="top"> 50 cm (1 ft. 8in.) to infinity (∞), Macro close-up mode: 2 cm (0.8 in.) to infinity (∞)
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Screen
</td><td valign="top"> LCD Monitor<br clear="all">3.0-inch TFT color with wide viewing angle<br clear="all">LCD Pixels<br clear="all">Approx. 461,000 pixels
</td><td valign="top"> AMOLED<br clear="all">Feature    3.0" (7.62cm), VGA
</td><td valign="top"> 3.0" TFT Screen LCD Display (460K dots), AR Coating<br clear="all">Field of View : approx. 100% Wide Viewing Angle<br clear="all">AUTO Power LCD mode, Power LCD mode<br clear="all">High CRI (Color Rendering Index) LED backlight
</td><td bgcolor="#d6e9d5" valign="top"> 7.5cm(3-in.), approx. 921k-dot, wide-viewing angle TFT LCD with anti-reflection coating
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Shutter Speed
</td><td valign="top"> 1 - 1/1600 sec
</td><td valign="top"> 1/8 - 1/2000 sec
</td><td bgcolor="#d6e9d5" valign="top"> 60 - 1/4000 sec
</td><td valign="top"> ???
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> ISO
</td><td valign="top"> Auto, ISO 80/100/125/160/200/250/320/400/500/640/800/1000/1250/1600/2000/2500/3200 equivalent in P Mode
</td><td valign="top"> Auto, 80, 100, 200, 400, 800, 1600, 3200
</td><td bgcolor="#d6e9d5" valign="top"> Auto / i.ISO / 80 / 100 / 200 / 400 / 800 / 1600 / 3200 / 6400* / 12800* (* by pixel mixed readout) High Sensitivity (ISO 1600-12800)
</td><td valign="top"> ISO 100, 200, 400, 800, 1600, 3200, Hi1 (equivalent to 6400), Auto (auto gain ISO 100-800), Fixed range auto (ISO 100-200, 100-400)
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Remote control
</td><td valign="top"> No
</td><td valign="top"> ? - don't think so
</td><td valign="top"> ? - don't think so
</td><td bgcolor="#d6e9d5" valign="top"> Yes
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Still formats
</td><td valign="top"> JPEG Compression Mode<br clear="all">Still Image: Exif 2.3 (JPEG)<br clear="all">RAW (CR2 (Canon Original));<br clear="all">Video: MOV (Image: H.264; Audio: Linear PCM (Stereo))
</td><td valign="top"> JPEG, DCF, EXIF 2.21, DPOF 1.1, PictBridge 1.0 SRW (Samsung Raw File format) 
</td><td bgcolor="#d6e9d5" valign="top"> JPEG, RAW, RAW+Fine, RAW+Standard, Fine, Standard
</td><td valign="top"> JPEG, RAW
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Video format
</td><td valign="top"> HD: 1280 x 720
</td><td bgcolor="#d6e9d5" valign="top"> 1920x1080 High/Standard Quality
</td><td valign="top"> 1280x720 pixels
</td><td valign="top"> 720p
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Power
</td><td valign="top"> 1. Rechargeable Battery Pack NB-6L 1000mAh<br clear="all">2. Compact Power Adapter CA-DC10 (optional)     Still Image: approx. 200 shots*     Approx. 5 hours
</td><td valign="top"> Rechargeable battery : SLB-11A (1130mAh)<br clear="all">Connector Type : 20pin<br clear="all">Adaptor : SAC-48, USB/Charging Cable : CB34U05, AV Cable : SCC-AV34
</td><td bgcolor="#d6e9d5" valign="top"> ID-Security Li-ion Battery Pack (3.6V, Minimum: 1250mAh) (Included)<br clear="all">AC Adaptor (Input: 110-240V AC) (Optional)
</td><td valign="top"> Rechargeable Li-ion Battery EN-EL14 1030mAh (supplied), Battery Charger MH-24 (supplied), AC Adapter EH-5a with power connecter EP-5A (optional)
</td></tr><tr><td bgcolor="#dfdfdf" valign="top"> Weight
</td><td valign="top"> Approx. 6.00 oz. / 170g (camera body only)
</td><td bgcolor="#d6e9d5" valign="top"> 153.3g
</td><td valign="top"> Approx. 276.7g with Battery and SD Memory Card<br clear="all">Approx. 231.3 without Battery and SD Memory Card
</td><td valign="top"> Approx. 360 g (12.7 oz.) with battery and SD memory card*3
</td></tr></tbody></table>
<div class="vspace"></div></div>
        ]]>
        </description>
		<pubDate>Fri, 29 Oct 2010 21:05:00 EST</pubDate>
	</item>
	<item>
		<title>Easy way to scroll page to top and bottom</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Easy way to scroll page to top and bottom</h2>
<p>Install the <a target="_blank" rel="nofollow" href="http://plugins.jquery.com/project/timers" class="urllink">jQuery Timer Plugin</a> <span style="color: maroon; font-weight: bold;">»</span>.
</p>
<p class="vspace">Add the following function to your page.
</p>
<div class="vspace"></div>
<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="php"><span class="kw2">function</span> goToTop<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; offset <span class="sy0">=</span> window<span class="sy0">.</span>pageYOffset<span class="sy0">;</span><br>
&nbsp; &nbsp; $<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>everyTime<span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="st0">"goToTop"</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>i<span class="br0">)</span><span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; window<span class="sy0">.</span>scrollTo<span class="br0">(</span>0<span class="sy0">,</span> offset<span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; offset <span class="sy0">=</span> <span class="br0">(</span>offset <span class="sy0">-</span> 1 <span class="sy0">-</span> Math<span class="sy0">.</span><span class="kw3">floor</span><span class="br0">(</span>offset<span class="sy0">/</span>9<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">(</span>offset <span class="sy0">&lt;</span> <span class="nu0">0</span><span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>stopTime<span class="br0">(</span><span class="st0">"goToTop"</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">}</span><br>
&nbsp; &nbsp; <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; <span class="kw1">return</span> <span class="nu0">0</span><span class="sy0">;</span><br>
<span class="br0">}</span><br>
<br>
<span class="kw2">function</span> goToBottom<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; offset <span class="sy0">=</span> window<span class="sy0">.</span>pageYOffset<span class="sy0">;</span><br>
&nbsp; &nbsp; $<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>everyTime<span class="br0">(</span><span class="nu0">3</span><span class="sy0">,</span> <span class="st0">"goToBottom"</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">(</span>i<span class="br0">)</span><span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; window<span class="sy0">.</span>scrollTo<span class="br0">(</span>0<span class="sy0">,</span> offset<span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; offset <span class="sy0">=</span> <span class="br0">(</span>offset <span class="sy0">+</span> 1 <span class="sy0">+</span> Math<span class="sy0">.</span><span class="kw3">floor</span><span class="br0">(</span>offset<span class="sy0">/</span>9<span class="br0">)</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">(</span>offset <span class="sy0">&gt;</span> $<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>height<span class="br0">(</span><span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">(</span>document<span class="br0">)</span><span class="sy0">.</span>stopTime<span class="br0">(</span><span class="st0">"goToBottom"</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">}</span><br>
&nbsp; &nbsp; <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span><br>
&nbsp; &nbsp; <span class="kw1">return</span> <span class="nu0">0</span><span class="sy0">;</span><br>
<span class="br0">}</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<p class="vspace">Then attach the <code>goToTop()</code> function to an element like an up arrow. <code class="escaped">&lt;img src="up_arrow.png" alt="up arrow" onclick="goToTop()" /&gt;</code>
</p>
<div class="vspace"></div><h3>Add a little spring to the button</h3>
<p>Change <code>everyTime(3</code> to <code>everyTime(10</code>. Starts out slow, then several order faster.
</p>
<p class="vspace"><code>Posted on 2010-10-28 by asiam [See <a href="http://www.siamnet.org/Wiki/Jquery-VerySimpleScrollPageToTop" class="wikilink">Jquery-VerySimpleScrollPageToTop</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Fri, 29 Oct 2010 21:05:00 EST</pubDate>
	</item>
	<item>
		<title></title>
		<description>
        <![CDATA[
<div style="border-top: 4px solid #d2d2d2; border-right: 1px solid #d2d2d2; border-bottom: 1px solid #d2d2d2; border-left: 1px solid #d2d2d2; background-color: #f3f3f3; color: #404040; margin: 8px 8px 32px 8px; padding: 8px;"> 
<h2>Basic example of converting a dita topic to xhtml with Java using <code>dost.jar</code> from the Dita Open Toolkit</h2>
<p>First download the <a target="_blank" rel="nofollow" href="http://sourceforge.net/projects/dita-ot/files/" class="urllink">dita open toolkit</a> <span style="color:maroon; font-weight:bold;">»</span>.
</p>
<p class="vspace">Extract to a location that has no spaces in the path and go into the extracted directory.
</p>
<p class="vspace">Create an output directory <code>out</code> and a directory <code>test</code>.
</p>
<p class="vspace">In the <code>test</code> directory, create a basic dita topic named <code>groc.dita</code>. The contents are,
</p>
<div class="vspace"></div>
<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family:monospace;" class="xml"><span class="sc3"><span class="re1">&lt;?xml</span> <span class="re0">version</span>=<span class="st0">"1.0"</span> <span class="re0">encoding</span>=<span class="st0">"utf-8"</span><span class="re2">?&gt;</span></span><br>
<span class="sc0">&lt;!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/topic.dtd"&gt;</span><br>
<span class="sc3"><span class="re1">&lt;topic</span> <span class="re0">id</span>=<span class="st0">"groceryshopping"</span> <span class="re0">xml:lang</span>=<span class="st0">"en-us"</span><span class="re2">&gt;</span></span><br>
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;title<span class="re2">&gt;</span></span></span>Shopping for groceries<span class="sc3"><span class="re1">&lt;/title<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;shortdesc<span class="re2">&gt;</span></span></span>Tips on buying groceries.<span class="sc3"><span class="re1">&lt;/shortdesc<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;prolog<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;author</span> <span class="re0">type</span>=<span class="st0">"creator"</span><span class="re2">&gt;</span></span>Tom McIntyre<span class="sc3"><span class="re1">&lt;/author<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;copyright<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;copyryear</span> <span class="re0">year</span>=<span class="st0">"2007"</span><span class="re2">/&gt;</span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;copyrholder<span class="re2">&gt;</span></span></span>Acme Company<span class="sc3"><span class="re1">&lt;/copyrholder<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/copyright<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;critdates<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;created</span> <span class="re0">date</span>=<span class="st0">"2006-August-07"</span><span class="re2">/&gt;</span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;revised</span> <span class="re0">modified</span>=<span class="st0">"2007-March-18"</span><span class="re2">/&gt;</span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/critdates<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;metadata<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;keywords<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;keyword<span class="re2">&gt;</span></span></span>grocery shopping<span class="sc3"><span class="re1">&lt;/keyword<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/keywords<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/metadata<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/prolog<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;body<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;p<span class="re2">&gt;</span></span></span>This is my awesome groceries document.<span class="sc3"><span class="re1">&lt;/p<span class="re2">&gt;</span></span></span><br>
&nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/body<span class="re2">&gt;</span></span></span><br>
<span class="sc3"><span class="re1">&lt;/topic<span class="re2">&gt;</span></span></span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<p class="vspace">Now, to build and output xhtml, run the following command from the root of your dita installation.
</p>
<div class="vspace"></div>
<div id="sourceblock2" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family:monospace;" class="bash">$ java <span class="re5">-jar</span> lib<span class="sy0">/</span>dost.jar <span class="sy0">/</span>i:test<span class="sy0">/</span>groc.dita <span class="sy0">/</span>outdir:out <span class="sy0">/</span>transtype:xhtml</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=2">[Get Code]</a></div>
</div>

<p class="vspace">This should output a few files in the <code>out</code> directory including <code>groc.html</code>
</p>
<div class="vspace"></div><h2>References</h2>
<ul><li><a target="_blank" rel="nofollow" href="http://dita.xml.org/book/export/html/1051" class="urllink">http://dita.xml.org/book/export/html/1051</a> <span style="color:maroon; font-weight:bold;">»</span>
</li><li><a target="_blank" rel="nofollow" href="http://dita-ot.sourceforge.net/doc/ot-userguide/xhtml/index.html" class="urllink">http://dita-ot.sourceforge.net/doc/ot-userguide/xhtml/index.html</a> <span style="color:maroon; font-weight:bold;">»</span>
</li></ul><p class="vspace"><code>Posted on 2010-10-26 by asiam [See <a href="http://www.siamnet.org/Wiki/Dita-TopicExampleWithDotJar" class="wikilink">Dita-TopicExampleWithDotJar</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Tue, 26 Oct 2010 17:23:00 EST</pubDate>
	</item>
	<item>
		<title>Weldon's Framework style from PHP in JSP</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Weldon's Framework style from PHP in JSP</h2>

<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="java"><span class="sy0">&lt;%</span>@ page <span class="kw1">import</span><span class="sy0">=</span><span class="st0">"org.kuali.sage.webapp.WsJspLibrary"</span><span class="sy0">%&gt;</span><br>
  <span class="sy0">&lt;%</span>@ page contentType<span class="sy0">=</span><span class="st0">"text/html;charset=UTF-8"</span> <span class="sy0">%&gt;</span><br>
  <span class="sy0">&lt;%</span>@ page pageEncoding<span class="sy0">=</span><span class="st0">"UTF-8"</span> <span class="sy0">%&gt;</span><br>
  <span class="sy0">&lt;%</span>@ page session<span class="sy0">=</span><span class="st0">"true"</span> <span class="sy0">%&gt;</span><br>
  <span class="sy0">&lt;%</span>@ taglib prefix<span class="sy0">=</span><span class="st0">"c"</span> uri<span class="sy0">=</span><span class="st0">"http://java.sun.com/jsp/jstl/core"</span> <span class="sy0">%&gt;</span><br>
  <span class="sy0">&lt;%</span>@ taglib prefix<span class="sy0">=</span><span class="st0">"fmt"</span> uri<span class="sy0">=</span><span class="st0">"http://java.sun.com/jsp/jstl/fmt"</span> <span class="sy0">%&gt;</span><br>
  <span class="sy0">&lt;%</span>@ taglib prefix<span class="sy0">=</span><span class="st0">"form"</span> uri<span class="sy0">=</span><span class="st0">"http://www.springframework.org/tags/form"</span> <span class="sy0">%&gt;</span><br>
  <span class="sy0">&lt;%</span><br>
  <span class="co3">/**<br>
  &nbsp;* Setup<br>
  &nbsp;*/</span><br>
  <span class="kw3">String</span> pageTitle <span class="sy0">=</span> <span class="st0">"Test"</span><span class="sy0">;</span><br>
  <span class="kw3">String</span> pageContent <span class="sy0">=</span> <span class="st0">""</span><span class="sy0">;</span><br>
  <span class="kw3">String</span> pageCss <span class="sy0">=</span> <span class="st0">""</span><span class="sy0">;</span><br>
  <span class="kw3">String</span> pageJs <span class="sy0">=</span> <span class="st0">""</span><span class="sy0">;</span><br>
  <span class="kw3">String</span> jspSelf <span class="sy0">=</span> request.<span class="me1">getContextPath</span><span class="br0">(</span><span class="br0">)</span> <span class="sy0">+</span> request.<span class="me1">getServletPath</span><span class="br0">(</span><span class="br0">)</span><span class="sy0">;</span><br>
  <br>
  <span class="co3">/**<br>
  &nbsp;* Actions<br>
  &nbsp;*/</span><br>
  <span class="kw1">if</span> <span class="br0">(</span>request.<span class="me1">getParameter</span><span class="br0">(</span><span class="st0">"action"</span><span class="br0">)</span> <span class="sy0">!=</span> <span class="kw2">null</span> <span class="sy0">&amp;&amp;</span> request.<span class="me1">getParameter</span><span class="br0">(</span><span class="st0">"action"</span><span class="br0">)</span>.<span class="me1">equalsIgnoreCase</span><span class="br0">(</span><span class="st0">"test"</span><span class="br0">)</span> <span class="sy0">&amp;&amp;</span> request.<span class="me1">getParameter</span><span class="br0">(</span><span class="st0">"name"</span><span class="br0">)</span> <span class="sy0">!=</span> <span class="kw2">null</span> <span class="sy0">&amp;&amp;</span> <span class="sy0">!</span>request.<span class="me1">getParameter</span><span class="br0">(</span><span class="st0">"name"</span><span class="br0">)</span>.<span class="me1">equalsIgnoreCase</span><span class="br0">(</span><span class="st0">""</span><span class="br0">)</span><span class="br0">)</span> <span class="br0">{</span><br>
  &nbsp; &nbsp; &nbsp; &nbsp; pageContent <span class="sy0">+=</span> <span class="st0">"Hello "</span> <span class="sy0">+</span> request.<span class="me1">getParameter</span><span class="br0">(</span><span class="st0">"name"</span><span class="br0">)</span><span class="sy0">;</span> <br>
  <span class="br0">}</span><br>
  pageContent <span class="sy0">+=</span> <span class="st0">"&lt;form action=<span class="es0">\"</span>"</span> <span class="sy0">+</span> jspSelf <span class="sy0">+</span> <span class="st0">"?action=test<span class="es0">\"</span> method=<span class="es0">\"</span>post<span class="es0">\"</span>&gt;"</span><span class="sy0">;</span><br>
  pageContent <span class="sy0">+=</span> <span class="st0">"Name &lt;input type=<span class="es0">\"</span>text<span class="es0">\"</span> name=<span class="es0">\"</span>name<span class="es0">\"</span> size=<span class="es0">\"</span>20<span class="es0">\"</span> value=<span class="es0">\"</span>default guy<span class="es0">\"</span> /&gt;&lt;br /&gt;"</span><span class="sy0">;</span><br>
  pageContent <span class="sy0">+=</span> <span class="st0">"&lt;input type=<span class="es0">\"</span>submit<span class="es0">\"</span> value=<span class="es0">\"</span>submit<span class="es0">\"</span> /&gt;"</span><span class="sy0">;</span><br>
  pageContent <span class="sy0">+=</span> <span class="st0">"&lt;/form&gt;"</span><span class="sy0">;</span><br>
  <br>
  <span class="co3">/**<br>
  &nbsp;* Page Output<br>
  &nbsp;*/</span><br>
  <span class="kw3">String</span> html <span class="sy0">=</span> <span class="st0">""</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;!DOCTYPE html&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;html&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;head&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;title&gt;WsFramework - "</span> <span class="sy0">+</span> pageTitle <span class="sy0">+</span> <span class="st0">"&lt;/title&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;style type='text/css'&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> pageCss<span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;/style&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;script type='text/javascript'&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> pageJs<span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;/script&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;/head&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;body&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> pageContent<span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;/body&gt;"</span><span class="sy0">;</span><br>
  html <span class="sy0">+=</span> <span class="st0">"&lt;/html&gt;"</span><span class="sy0">;</span><br>
  out.<span class="me1">println</span><span class="br0">(</span>html<span class="br0">)</span><span class="sy0">;</span><br>
  <span class="sy0">%&gt;</span></div></div>
    <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
    </div>

    <p class="vspace"><code>Posted on 2010-10-18 by asiam [See <a href="http://www.siamnet.org/Wiki/Java-Jsp-WeldonsFrameworkStyle" class="wikilink">Java-Jsp-WeldonsFrameworkStyle</a>]</code>
    </p></div>
        ]]>
        </description>
		<pubDate>Mon, 18 Oct 2010 16:33:00 EST</pubDate>
	</item>
	<item>
		<title>Turn off string, parenthese, brackets, ... etc auto completion</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Turn off string, parenthese, brackets, ... etc auto completion</h2>
<pre> Window &gt; Preferences &gt; Java &gt; Editor &gt; Typing
</pre><p class="vspace"><code>Posted on 2010-10-15 by asiam [See <a href="http://www.siamnet.org/Wiki/Java-Eclipse-TurnOffAutoStringCompletionEtc" class="wikilink">Java-Eclipse-TurnOffAutoStringCompletionEtc</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Fri, 15 Oct 2010 14:32:00 EST</pubDate>
	</item>
	<item>
		<title>Bring Misplaced Off-Screen Windows Back to Your Desktop</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Bring Misplaced Off-Screen Windows Back to Your Desktop </h2>
<p>If you’ve ever hooked up your laptop to a secondary monitor and then disconnected without remembering to move the windows back to the primary desktop, you’ve probably encounted this problem: 
</p>
<p class="vspace">The application is running. You can see it in the taskbar, but you can’t see it on the screen, because it still thinks it’s running on the secondary monitor. You try and use right-click, Move, but that doesn’t do anything, and the window doesn’t move anywhere. You end up rebooting and cursing Microsoft.
</p>
<p class="vspace">There’s a simple trick to get around this. First make sure you’ve alt-tabbed to the window, or clicked on it once to bring it into focus. Then right-click on the taskbar and choose Move
</p>
<p class="vspace">At this point, you should notice that your cursor changes to the “Move” cursor, but you still can’t move anything.
</p>
<p class="vspace">Just hit any one of the arrow keys (Left, Right, Down, Up), move your mouse, and the window should magically “pop” back onto the screen.
</p>
<p class="vspace">Note: For keyboard savvy people, you can just alt-tab to the window, use <strong>Alt+Space, then M</strong>, then Arrow key, and then move your mouse.
</p>
<p class="vspace">This should work on any version of Windows. It’s really amazing how many people are not aware of this little trick.
</p>
<div class="vspace"></div><h2>References</h2>
<ul><li><a target="_blank" rel="nofollow" href="http://www.howtogeek.com/howto/windows/bring-misplaced-off-screen-windows-back-to-your-desktop-keyboard-trick/" class="urllink">http://www.howtogeek.com/howto/windows/bring-misplaced-off-screen-windows-back-to-your-desktop-keyboard-trick/</a> <span style="color: maroon; font-weight: bold;">»</span>
</li></ul><p class="vspace"><code>Posted on 2010-10-14 by asiam [See <a href="http://www.siamnet.org/Wiki/BringMisplacedOffScreenWindowsBackToYourDesktop" class="wikilink">BringMisplacedOffScreenWindowsBackToYourDesktop</a>]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Thu, 14 Oct 2010 17:41:00 EST</pubDate>
	</item>
	<item>
		<title>How to uninstall software or plugins in Eclipse</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>How to uninstall software or plugins in Eclipse</h2>
<p>This was tested on Helios.
</p>
<p class="vspace">Go to <strong>Help &gt; About Eclipse</strong>, then on that dialog window, click the button <strong>Installation Details</strong>. Then on that window, go to the <strong>Installed Software</strong> tab, click the plugin you want to uninstall and click the <strong>Uninstall</strong> button.
</p>
<p class="vspace"><code>Posted on 2010-10-11 by asiam [See ]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Thu, 09 Apr 2010 01:12:00 EST</pubDate>
	</item>
	<item>
		<title>Ascii Love</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<p>(¯`v´¯)<br>`·.¸.·´<br>¸.·´¸.·´¨) ¸.·¨)<br>(¸.·´ (¸.·´ .·´`. ¸¸.·¨¯`·.x
</p>
<p class="vspace"><code>Posted on 2010-09-29 by asiam [See ]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Wed, 29 Sep 2010 23:56:00 EST</pubDate>
	</item>
	<item>
		<title>Monitor bandwidth usage from the command line (Linux/Ubuntu)</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Monitor bandwidth usage from the command line with <code>ifstat</code></h2>
<p>Install
</p>
<div class="vspace"></div>
<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ <span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> ifstat</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<p class="vspace">Run with
</p>
<div class="vspace"></div>
<div id="sourceblock2" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ ifstat</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=2">[Get Code]</a></div>
</div>

<p class="vspace">Output looks like the following - it just keeps appending an entry to the console every second or so. Just like running <code>ping</code> with no limit.
</p>
<div class="vspace"></div>
<div id="sourceblock3" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash"><span class="co0"># ifstat</span><br>
&nbsp; &nbsp; &nbsp; &nbsp;eth1<br>
&nbsp;KB<span class="sy0">/</span>s <span class="kw1">in</span> &nbsp;KB<span class="sy0">/</span>s out<br>
&nbsp; &nbsp; <span class="nu0">7.03</span> &nbsp; &nbsp;<span class="nu0">310.91</span><br>
&nbsp; &nbsp; <span class="nu0">8.45</span> &nbsp; &nbsp;<span class="nu0">381.37</span><br>
&nbsp; &nbsp; <span class="nu0">8.23</span> &nbsp; &nbsp;<span class="nu0">372.32</span><br>
&nbsp; &nbsp; <span class="nu0">5.65</span> &nbsp; &nbsp;<span class="nu0">277.50</span><br>
&nbsp; &nbsp; <span class="nu0">5.92</span> &nbsp; &nbsp;<span class="nu0">291.04</span><br>
&nbsp; &nbsp; <span class="nu0">6.02</span> &nbsp; &nbsp;<span class="nu0">296.70</span><br>
&nbsp; &nbsp;<span class="nu0">11.13</span> &nbsp; &nbsp;<span class="nu0">274.80</span><br>
&nbsp; &nbsp; <span class="nu0">9.59</span> &nbsp; &nbsp;<span class="nu0">271.01</span><br>
&nbsp; &nbsp; <span class="nu0">7.06</span> &nbsp; &nbsp;<span class="nu0">285.33</span><br>
&nbsp; &nbsp;<span class="nu0">14.90</span> &nbsp; &nbsp;<span class="nu0">241.35</span><br>
&nbsp; &nbsp;<span class="nu0">11.99</span> &nbsp; &nbsp;<span class="nu0">278.45</span><br>
&nbsp; &nbsp;<span class="nu0">11.89</span> &nbsp; &nbsp;<span class="nu0">271.65</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=3">[Get Code]</a></div>
</div>

<div class="vspace"></div><h2>Another option is Color Bandwidth Meter <code>cbm</code></h2>
<p>Install
</p>
<div class="vspace"></div>
<div id="sourceblock4" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ <span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> cbm</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=4">[Get Code]</a></div>
</div>

<p class="vspace">Run
</p>
<div class="vspace"></div>
<div id="sourceblock5" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ cbm</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=5">[Get Code]</a></div>
</div>

<p class="vspace">This runs on one screen similarly to that of <code>top</code>, but just displays the amount of bandwidth used per device (nic).
</p>
<p class="vspace">To stop just type the letter <strong>q</strong>.
</p>
<div class="vspace"></div><h2>Another solution with <code>iftop</code></h2>
<p>This one displays incoming IP addresses (or hostnames) of machines accessing your machine or that your machine is accessing and the amount of bandwidth.
</p>
<p class="vspace">Install
</p>
<div class="vspace"></div>
<div id="sourceblock6" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ <span class="kw2">sudo</span> <span class="kw2">apt-get</span> <span class="kw2">install</span> iftop</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=6">[Get Code]</a></div>
</div>

<p class="vspace">Run
</p>
<div class="vspace"></div>
<div id="sourceblock7" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ iftop</div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=7">[Get Code]</a></div>
</div>

<p class="vspace">Stop by hitting the letter <strong>q</strong>.
</p>
<div class="vspace"></div><h2>References</h2>
<ul><li><a target="_blank" rel="nofollow" href="http://www.techiequest.com/color-bandwidth-meter-cbm-bandwidth-monitoring-tool-for-ubuntu/" class="urllink">http://www.techiequest.com/color-bandwidth-meter-cbm-bandwidth-monitoring-tool-for-ubuntu/</a> <span style="color: maroon; font-weight: bold;">»</span>
</li></ul><p class="vspace"><code>Posted on 2010-09-29 by asiam [See ]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Wed, 29 Sep 2010 13:15:00 EST</pubDate>
	</item>
	<item>
		<title>Create an anti-aliased effect in CSS3</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Create an anti-aliased effect in CSS3</h2>

<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="css">body <span class="br0">{</span><br>
&nbsp; &nbsp; <span class="kw1">text-shadow</span><span class="sy0">:</span><span class="re3">1px</span> <span class="re3">1px</span> 0 <span class="kw2">white</span><span class="sy0">,</span><span class="re3">1px</span> <span class="re3">1px</span> 0 <span class="kw2">gray</span><span class="sy0">;</span><br>
<span class="br0">}</span></div></div>
  <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
</div>

<p class="vspace"><code>Posted on 2010-09-29 by asiam ]</code>
</p></div>
        ]]>
        </description>
		<pubDate>Wed, 29 Sep 2010 00:17:00 EST</pubDate>
	</item>
	<item>
		<title>Run a command at a specific time just from the command line</title>
		<description>
        <![CDATA[
<div style="border-width: 4px 1px 1px; border-style: solid; border-color: rgb(210, 210, 210); background-color: rgb(243, 243, 243); color: rgb(64, 64, 64); margin: 8px 8px 32px; padding: 8px;"> 
<h2>Run a command at a specific time just from the command line</h2>
<p>This will download a jpg file at 1 am. It runs programs with <code>/bin/sh</code> by default - maybe only.
</p>
<div class="vspace"></div>
<div id="sourceblock1" class="sourceblock ">
  <div class="sourceblocktext"><div style="font-family: monospace;" class="bash">$ <span class="re2">url</span>=<span class="st0">"http://www.example.com/file.jpg"</span><br>
  $ <span class="kw3">echo</span> <span class="st0">"wget <span class="es2">$url</span>"</span> <span class="sy0">|</span> at 01:00</div></div>
    <div class="sourceblocklink"><a type="text/plain" href="http://www.siamnet.org/Main/HomePage?action=sourceblock&amp;num=1">[Get Code]</a></div>
    </div>

    <div class="vspace"></div><h2>References</h2>
    <ul><li><a target="_blank" rel="nofollow" href="http://www.pixelbeat.org/docs/linux_commands.html" class="urllink">http://www.pixelbeat.org/docs/linux_commands.html</a> <span style="color: maroon; font-weight: bold;">»</span>
    </li></ul><p class="vspace"><code>Posted on 2010-09-26 by asiam <a href="http://www.siamnet.org/Wiki/Linux-ExecuteAtCommandAtASpecificTime" class="wikilink">Linux-ExecuteAtCommandAtASpecificTime</a>]</code>
    </p></div>
        ]]>
        </description>
		<pubDate>Thu, 26 Sep 2010 19:43:00 EST</pubDate>
	</item>
  </channel>
</rss>

