<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>fafajs weblog</title>
	<atom:link href="http://jmaglasang.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jmaglasang.wordpress.com</link>
	<description>Simplicity is the natural result of profound thought. [Hazlitt]</description>
	<lastBuildDate>Tue, 06 Dec 2011 08:50:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jmaglasang.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>fafajs weblog</title>
		<link>http://jmaglasang.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jmaglasang.wordpress.com/osd.xml" title="fafajs weblog" />
	<atom:link rel='hub' href='http://jmaglasang.wordpress.com/?pushpress=hub'/>
		<item>
		<title>101 FREE REAL TECH BOOKS</title>
		<link>http://jmaglasang.wordpress.com/2010/04/19/101-free-real-tech-books/</link>
		<comments>http://jmaglasang.wordpress.com/2010/04/19/101-free-real-tech-books/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 02:19:00 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[ASP NET]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/2010/04/19/101-free-real-tech-books/</guid>
		<description><![CDATA[101 FREE REAL TECH BOOKS GIVEN AWAY EVERY MONTH! Sign up &#38; choose your books! #101FreeTechBooks http://www.101ftb.com/S40W50T160<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=79&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>101 FREE REAL TECH BOOKS GIVEN AWAY EVERY MONTH! Sign up &amp; choose your books! #101FreeTechBooks <a href="http://www.101ftb.com/S40W50T160" rel="nofollow">http://www.101ftb.com/S40W50T160</a> </p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=79&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2010/04/19/101-free-real-tech-books/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>Extracting Text Between Words(Pattern) using Regex in JavaScript</title>
		<link>http://jmaglasang.wordpress.com/2009/09/18/extracting-text-between-wordspattern-using-regex-in-javascript/</link>
		<comments>http://jmaglasang.wordpress.com/2009/09/18/extracting-text-between-wordspattern-using-regex-in-javascript/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 10:01:11 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[JavaScripts]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/2009/09/18/extracting-text-between-wordspattern-using-regex-in-javascript/</guid>
		<description><![CDATA[Below are the ways to extract text between words in javascript: Given the String &#8220;Name: John Berkins Address: LA, USA&#8221;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=58&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below are the ways to extract text between words in javascript:</p>
<p>Given the String &#8220;Name: John Berkins Address: LA, USA&#8221;</p>
<p><pre class="brush: plain;">

	var data = &quot;Name: John Berkins Address: LA, USA&quot;;
	
	//using String.indexOf + String.substring
	var name = data.substring(data.indexOf(&quot;Name:&quot;)+6,data.indexOf(&quot;Address&quot;));
	var addr = data.substring(data.indexOf(&quot;Address:&quot;) + 9);
	alert(name);
	alert(addr);	

	//using Regex (with the use of Non-Capturing Group(?:)
	var rname = data.match(/(?:Name:)(.+)(?:Address:)/)[1];
	var raddr = data.match(/(?:Address:)(.*)/)[1];
	alert(rname);
	alert(raddr);
	
	//Note: the regex  code above may not work if the data contains \n (newline character)
	//      this is because of the (.+) expression cannot disregards \n chars,
	//      the workaround is to change it to anoter expression or to remove the \n char before
	//		the extraction process: h
	//Example:
	//
	//data = data.replace(/\n/g,' ');
	//var rname = data.match(/(?:Name:)(.+)(?:Address:)/)[1];
	//var raddr = data.match(/(?:Address:)(.*)/)[1];
	
</pre></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=58&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2009/09/18/extracting-text-between-wordspattern-using-regex-in-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>Generating Unique Strings in Javascript</title>
		<link>http://jmaglasang.wordpress.com/2009/08/12/generating-unique-strings-in-javascript/</link>
		<comments>http://jmaglasang.wordpress.com/2009/08/12/generating-unique-strings-in-javascript/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 03:43:11 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/?p=51</guid>
		<description><![CDATA[Here is a simple way to generate a unique string in javascript. This method is very helpful for ajax developers, to overcome the problem of cached ajax requests in IE. Update: Here&#8217;s another way of creating unique strings Sample Use:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=51&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a simple way to generate a unique string in javascript.</p>
<p><pre class="brush: plain;">
    var ts = (new Date()).getTime().toString();
    var url = &amp;amp;quot;ajaxHandler.php?param1=value1&amp;amp;amp;amp;paramn=valuen&amp;amp;amp;amp;t=&amp;amp;quot; + ts;
    //do ajax call...
</pre></p>
<p>This method is very helpful for ajax developers, to overcome the problem of cached ajax requests in IE.</p>
<p>Update:<br />
Here&#8217;s another way of creating unique strings<br />
<pre class="brush: plain;">
String.unique = String.guid = String.uid = String.uuid = function(){
    var idx = [], itoh = '0123456789ABCDEF'.split('');

    // Array of digits in UUID (32 digits + 4 dashes)
    for (var i = 0; i &amp;lt; 36; i++) { idx[i] = 0xf &amp;amp; Math.random() * 0x10; }
    // Conform to RFC 4122, section 4.4
    idx[14] = 4; // version
    idx[19] = (idx[19] &amp;amp; 0x3) | 0x8; // high bits of clock sequence

    // Convert to hex chars
    for (var i = 0; i &amp;lt; 36; i++) { idx[i] = itoh[idx[i]]; }

    // Insert dashes
    idx[8] = idx[13] = idx[18] = idx[23] = '-';

    return idx.join('');
}
</pre></p>
<p>Sample Use:<br />
<pre class="brush: plain;">
   var id=String.guid();
   va u = String.uuid();
</pre></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=51&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2009/08/12/generating-unique-strings-in-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting the Page Title in ASP NET from Server Code</title>
		<link>http://jmaglasang.wordpress.com/2009/07/29/setting-the-page-title-in-asp-net-from-server-code/</link>
		<comments>http://jmaglasang.wordpress.com/2009/07/29/setting-the-page-title-in-asp-net-from-server-code/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 03:28:36 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[ASP NET]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/2009/07/29/setting-the-page-title-in-asp-net-from-server-code/</guid>
		<description><![CDATA[Here is a quick n easy way to set the HTML Page Title from the server side, that most developers don&#8217;t know yet. VBNET: C#:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=49&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a quick n easy way to set the HTML Page Title from the server side, that most developers don&#8217;t know yet.</p>
<p>VBNET:<br />
<pre class="brush: plain;">Me.Header.Title = &quot;Title Here&quot;</pre></p>
<p>C#:<br />
<pre class="brush: plain;">this.Header.Title = &quot;Title Here&quot;;</pre></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=49&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2009/07/29/setting-the-page-title-in-asp-net-from-server-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>TextArea SelectedText, SelectionStart, SelectionEnd, SelStart, SelEnd (IE and FireFox)</title>
		<link>http://jmaglasang.wordpress.com/2009/04/30/textarea-selectedtext-selectionstart-selectionend-selstart-selend-ie-and-firefox/</link>
		<comments>http://jmaglasang.wordpress.com/2009/04/30/textarea-selectedtext-selectionstart-selectionend-selstart-selend-ie-and-firefox/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 05:57:19 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/?p=43</guid>
		<description><![CDATA[Simple way of getting the html textarea&#8217;s selection properties selectedText, selectionStart, selectionEnd: Javascript: HTML:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=43&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Simple way of getting the html textarea&#8217;s selection properties selectedText, selectionStart, selectionEnd:</p>
<p>Javascript:<br />
<pre class="brush: plain;">
 function getTextAreaSelection() {
   var textArea = document.getElementById('textarea1');
   if (document.selection) { //IE
       var bm = document.selection.createRange().getBookmark();
       var sel = textArea.createTextRange();
       sel.moveToBookmark(bm);
     
       var sleft = textArea.createTextRange();
       sleft.collapse(true);
       sleft.setEndPoint(&quot;EndToStart&quot;, sel);
       textArea.selectionStart = sleft.text.length
       textArea.selectionEnd = sleft.text.length + sel.text.length;
       textArea.selectedText = sel.text;  
   }
   else if (textArea.selectionStart){ //FF
      textArea.selectedText = textArea.substring(textArea.selectionStart,textArea.selectionEnd);
   }
  
   alert(&quot;Selection Start==&gt; &quot; + textArea.selectionStart + &quot;\n&quot; +
      &quot;Selection End  ==&gt; &quot; + textArea.selectionEnd + &quot;\n&quot; +
      &quot;Selected Text  ==&gt; &quot; + textArea.selectedText + &quot;\n&quot; +
      &quot;TextArea Value ==&gt; &quot; + textArea.value);
 }
</pre></p>
<p>HTML:<br />
<pre class="brush: plain;">
&lt;textarea id=&quot;textarea1&quot;&gt;&lt;/textarea&gt; &lt;button onclick=&quot;getTextAreaSelection()&quot;&gt;Get Selection Info&lt;/button&gt;
</pre></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=43&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2009/04/30/textarea-selectedtext-selectionstart-selectionend-selstart-selend-ie-and-firefox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>Generating Unique Strings in NET</title>
		<link>http://jmaglasang.wordpress.com/2008/07/21/generating-unique-strings-in-net/</link>
		<comments>http://jmaglasang.wordpress.com/2008/07/21/generating-unique-strings-in-net/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 04:25:30 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[ASP NET]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/?p=39</guid>
		<description><![CDATA[Approach 1: Comparison or the 2 Approaches: 1. Approach1 generates at least 32 characters (0-9 and a-f) letters only. Hint: larger size on the database, absolutely unique. 2. Approach2 Generates at least 8 characters (0-9 and a-z) letters. Hint: Good for Captcha, less size on the database,  might have duplicates<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=39&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Approach 1:<br />
<pre class="brush: plain;">
String s1 = Guid.NewGuid().ToString();
String s2 = Guid.NewGuid().Tostring(&quot;N&quot;);
String s3 = Guid.NewGuid().ToString(&quot;P&quot;);
String s3 = Guid.NewGuid().ToString(&quot;D&quot;);
[code]

Approach 2:
[code]
String s1 = System.IO.Path.GetRandomeFileName();
String s2 = System.IO.Path.ChangeExtension(System.IO.Path.GetRandomFileName(),null);
</pre></p>
<p>Comparison or the 2 Approaches:<br />
1. Approach1 generates at least 32 characters (0-9 and a-f) letters only.<br />
    <strong>Hint:</strong> larger size on the database, absolutely unique.<br />
2. Approach2 Generates at least 8 characters (0-9 and a-z) letters.<br />
    <strong>Hint:</strong> Good for Captcha, less size on the database,  might have duplicates</p><br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jmaglasang.wordpress.com/39/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jmaglasang.wordpress.com/39/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=39&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2008/07/21/generating-unique-strings-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>Reversing Flash Timeline</title>
		<link>http://jmaglasang.wordpress.com/2008/05/07/reversing-flash-timeline/</link>
		<comments>http://jmaglasang.wordpress.com/2008/05/07/reversing-flash-timeline/#comments</comments>
		<pubDate>Tue, 06 May 2008 20:15:13 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/?p=35</guid>
		<description><![CDATA[Just recently, I have encountered a really simple problem that I have hard time figuring out the solution, but in hours of looking for that solution I just found one. In the web, if we search for reversing a timeline in flash, we will find mostly solutions that are done using another movie clip, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=35&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just recently, I have encountered a really simple problem that I have  hard time figuring out the solution, but in hours of looking for that solution I just found one.</p>
<p>In the web, if we search for reversing a timeline in flash, we will find mostly solutions that are done using another movie clip, but It doesn&#8217;t solve my problem. I only need to reverse the timeline without creating another movie clip.</p>
<p>Here&#8217;s how I figure it out. The solution that worked for me, is to use the setInterval and the clearInterval.</p>
<p>To do so, create a simple animation/tween, then on the last frame, insert the following action script:<br />
<pre class="brush: plain;">
stop();
var speed:Number = 40;
function goto(destination) {
    if (_root._currentframe == destination)
       clearInterval(nIntervals);
    else
       prevFrame();
}
var nIntervals = setInterval(goto, speed,15);
</pre></p>
<p>In this, example I assumed you have more than 15 frames in your animation, let say you have 60-frame animation, From frame 60 the timeline will reverse play until frame 15.</p><br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jmaglasang.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jmaglasang.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=35&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2008/05/07/reversing-flash-timeline/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Disk Virus Cleaner</title>
		<link>http://jmaglasang.wordpress.com/2008/04/11/flash-disk-virus-cleaner/</link>
		<comments>http://jmaglasang.wordpress.com/2008/04/11/flash-disk-virus-cleaner/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 00:12:32 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[Virus Tool]]></category>
		<category><![CDATA[Virus Tools]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/?p=33</guid>
		<description><![CDATA[I just found this tool in the web and find it useful, save it with .bat extension then execute. It helps a lot.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=33&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just found this tool in the web and find it useful, save it with .bat extension then execute. It helps a lot.<br />
<pre class="brush: plain;">
@ECHO OFF
cls
echo Zabyer Flash Disk Virus Cleaner v1.0.3
echo http://www.zabyer.org
echo Last Updated: October 14, 2007  8:06am
echo ---------------------------------
echo Files that will be deleted:
echo imgkulot, INFO.exe, Desktop.ini, scvhosts.exe
echo TTM*.vbs, krag.exe, sysdll.exe, RavMon.exe, msv*.dll
echo and other flash disk pest!!!
echo ---------------------------------
echo Resetting Stupid Virus attributes...
echo (Disarming flash disk pest!)
attrib -r -h -s -a autorun.*
attrib -r -h -s -a TTM*.*
attrib -r -h -s -a imgkulot*.*
attrib -r -h -s -a RECYCLER\INFO.exe
attrib -r -h -s -a RECYCLER\Desktop.ini
attrib -r -h -s -a sysdll.exe
attrib -r -h -s -a krag.exe
attrib -r -h -s -a RavMon*.*
attrib -r -h -s -a msv*.dll
attrib -r -h -s -a scvhosts.exe
attrib -r -h -s -a svhost.exe
attrib -r -h -s -a C:\Windows\svhost.exe
attrib -r -h -s -a C:\Windows\svhost32.exe
attrib -r -h -s -a &quot;New Folder&quot;.exe
echo ---------------------------------
echo Attributes Reset!
echo Preparing Clean-Up Procedures...
echo Next step is to delete all the pest.
echo ---------------------------------
pause
echo ---------------------------------
echo Deleting Stupid Virus...
echo ---------------------------------
del autorun.*
del TTM*.*
del imgkulot*.*
del RECYCLER\INFO.exe
del RECYCLER\Desktop.ini
del sysdll.exe
del krag.exe
del RavMon*.*
del msv*.dll
del scvhosts.exe
del svhost.exe
del C:\Windows\svhost.exe
del C:\Windows\svhost32.exe
del &quot;New Folder&quot;.exe
echo ---------------------------------
echo Flash Disk Cleaned-Up!
echo ---------------------------------
echo Please report for new virus so that this Virus Cleaner will be updated. :)
echo Send to admin@zabyer.org or camilord@zabyer.org you feedbacks...
echo ---------------------------------
pause
</pre></p><br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jmaglasang.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jmaglasang.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=33&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2008/04/11/flash-disk-virus-cleaner/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
		<item>
		<title>Step-by-step Creation of Executable Jar for Java</title>
		<link>http://jmaglasang.wordpress.com/2008/03/07/step-by-step-creation-of-executable-jar-for-java/</link>
		<comments>http://jmaglasang.wordpress.com/2008/03/07/step-by-step-creation-of-executable-jar-for-java/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 04:20:59 +0000</pubDate>
		<dc:creator>jmaglasang</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://jmaglasang.wordpress.com/?p=27</guid>
		<description><![CDATA[1. Start Command Prompt. 2. Navigate to the folder that holds your class files: C:\&#62;cd\ C:\&#62;cd java-code 3. Set path to include JDK’s bin. For example: C:\java-code&#62; SET PATH=%PATH%:c:\Program Files\Java\jdk1.5.0\bin 4. Compile your class(es): C:\java-code&#62; javac TestForm.java C:\java-code&#62; javac Main.java 5. Create a manifest file: C:\java-code&#62; echo Main-Class: Main &#62;manifest.txt 6. Create a jar file: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=27&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
1. Start Command Prompt.
2. Navigate to the folder that holds your class files:
   C:\&gt;cd\
   C:\&gt;cd java-code
3. Set path to include JDK’s bin.
	For example:
		C:\java-code&gt; SET PATH=%PATH%:c:\Program Files\Java\jdk1.5.0\bin
4. Compile your class(es):
		C:\java-code&gt; javac TestForm.java
		C:\java-code&gt; javac Main.java
5. Create a manifest file:
	C:\java-code&gt; echo Main-Class: Main &gt;manifest.txt
6. Create a jar file:
	C:\java-code&gt; jar cvfm welcome.jar manifest.txt Main.class TestForm.class
7. Test your welcome.jar:
	C:\java-code&gt; welcome.jar
</pre>
<p>And that&#8217;s it we&#8217;re done.</p><br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jmaglasang.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jmaglasang.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jmaglasang.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jmaglasang.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jmaglasang.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jmaglasang.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jmaglasang.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jmaglasang.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jmaglasang.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jmaglasang.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jmaglasang.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jmaglasang.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jmaglasang.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jmaglasang.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jmaglasang.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jmaglasang.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jmaglasang.wordpress.com&amp;blog=2678624&amp;post=27&amp;subd=jmaglasang&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jmaglasang.wordpress.com/2008/03/07/step-by-step-creation-of-executable-jar-for-java/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c50ca4ce74f361c2baa3e557df0ebe0b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jerjer</media:title>
		</media:content>
	</item>
	</channel>
</rss>
