in deep thought http://indeepthought.org/ a little order in the chaos where the mind dwells en-us Fri, 21 Nov 2008 07:25:06 UTC Fri, 21 Nov 2008 07:25:06 UTC http://indeepthought.org/rss/ yarbrss dharh@indeepthought.org dharh@indeepthought.org Javascript Session Variables http://indeepthought.org/blog/245 Using <a href="http://www.thomasfrank.se/sessionvars.html">session variables instead of cookies</a>?! Awesome. Tue, 13 May 2008 09:01:44 UTC http://indeepthought.org/blog/245 New Host http://indeepthought.org/blog/244 I've moved the site over to a new host. LFC Hosting. I've been using them a while for other stuff and have been happy with them. There will be a few issues here and there, but I'll get the kinks worked out soon. Wed, 09 Apr 2008 06:33:31 UTC http://indeepthought.org/blog/244 The Impact of Human CO2 http://indeepthought.org/blog/243 <a href="http://www.realclimate.org/index.php?p=87">How do we know that recent CO2 increases are due to human activities?</a> Tue, 08 Apr 2008 03:52:25 UTC http://indeepthought.org/blog/243 Introducing neSpeeches http://indeepthought.org/blog/241 A while ago I talked about a possible project I wanted to try based on a site I saw some years ago. And so <a href="/speeches/">here</a> it is. <p>It is a speech profiler which at the moment allows someone to get word counts, sentence counts, and see visually sentence density. In addition, one can search for certain words and phrases to see occurrence density within that visual representation. Finally, one can compare those numbers and visual representations between multiple speeches. </p> <p>I plan to at some point add some additional statistic features such as unique word counts, comparisons, and other things as I think of them or get suggestions. Tue, 18 Mar 2008 06:03:14 UTC http://indeepthought.org/blog/241 Learn 2 Java 1 http://indeepthought.org/articles/Learn_2_Java_1 [<a href="/articles/Learn_2_Java_1">more</a>] Sun, 10 Feb 2008 07:15:44 UTC http://indeepthought.org/articles/Learn_2_Java_1 Learn 2 CSharp 1 http://indeepthought.org/articles/Learn_2_CSharp_1 <code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace learn2CSharp1 { class Program { static void Main(string[] args) { for (int i = 0; ; i++) { if (Console.KeyAvailable &amp;&amp; keyPressHandler(Console.ReadKey(true))) break; Console.Write(i + &quot; &quot;); Thread.Sleep(250); } } protected static Boolean keyPressHandler(ConsoleKeyInfo input) { if (input.Key == ConsoleKey.Escape) return true; return false; } } }</code> Sun, 10 Feb 2008 07:13:28 UTC http://indeepthought.org/articles/Learn_2_CSharp_1 15 Exercises for Learning a new Programming Language http://indeepthought.org/blog/232 So I saw this page which gives a list of <a href="http://www.freelancingjob.com/articles/article_description.php?art_id=96">15 Exercises for Learning a new Programming Language</a>. I thought, this could also be a good way to compare different languages. In that spirit I'm going to do just that and try to complete the list in different popular languages. To start with I will do them in C# and Java. <p>As it turns out I'm much less familiar with C# than Java so it will also be a learning experience as the original article had intended. You can see the progress in <a href="/articles/Programming" style="color: blue">Programming</a>. </p> Sun, 10 Feb 2008 06:43:55 UTC http://indeepthought.org/blog/232 javascript trim http://indeepthought.org/articles/javascript_trim <code>function trim(str) { var str = str.replace(/^ss*/, ''), ws = /s/, i = str.length; while (ws.test(str.charAt(--i))); return str.slice(0, i + 1); }</code> <p>source: <a href="http://blog.stevenlevithan.com/archives/faster-trim-javascript">http://blog.stevenlevithan.com/archives/faster-trim-javascript</a> </p> Mon, 04 Feb 2008 01:11:29 UTC http://indeepthought.org/articles/javascript_trim Why Open Source? http://indeepthought.org/blog/220 <a href="http://www.links.org/">This guy</a> seems to have the <a href="http://www.links.org/?p=292">right idea</a> on why people would ever choose open source. Sun, 27 Jan 2008 08:58:24 UTC http://indeepthought.org/blog/220