1. Display series of numbers (1,2,3,4, 5....etc) in an infinite loop. The program should quit if someone hits a specific key (Say ESCAPE key).
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace lrn2CSharp1
{
class Program
{
static void Main( string[ ] args )
{
for ( int i = 0; ; i++ )
{
if ( Console.KeyAvailable && keyPressHandler( Console.ReadKey( true ) ) ) break;
Console.Write( i + " " );
Thread.Sleep( 250 );
}
}
protected static Boolean keyPressHandler( ConsoleKeyInfo input )
{
if ( input.Key == ConsoleKey.Escape ) return true;
return false;
}
}
}
posted by dharh 7:13 PM Feb 10th, 2008 via idt
So I saw this page which gives a list of 15 Exercises for Learning a new Programming Language. 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.
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 Programming. posted by dharh 6:43 PM Feb 10th, 2008 via idt
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);
}
source: http://blog.stevenlevithan.com/archives/faster-trim-javascript posted by dharh 1:11 PM Feb 4th, 2008 via idt
This guy seems to have the right idea on why people would ever choose open source.
posted by dharh 8:58 PM Jan 27th, 2008 via idt
Last Updated 2022-05-13
v2.2.x (12 May 2022) .NET
TODO Todo from prior version is updated or restated as below:
v2.1.322 (14 Feb 2014) ASP.NET
Features
UI
Fixes
Todo
v2.0.134 (19 Mar 2011) New Versioning Skipped 1.0 because the previous cold fusion version for all intents and purposes was 1.0 even though it never made it past the beta stage. I am using an auto versioning system with visual studio. Which means for the most part the third number, the number of compiles, is the main way to tell which version is which. The second number will still keep track of major versions, but I don't really foresee using it much. neTodo.net Released
JQuery
Features
Known Issues
Todo List
v0.2 (14 Aug 2009) Update to JQuery and Preferences Backend JQuery
Preferences
Todo List
v0.1 (26 Jan 2008) Released neTodo Features
posted by dharh 7:43 PM Jan 26th, 2008 via idt
neTodo has been fully released. People can now register to start using it. Try it out and let me know what you think.
posted by dharh 7:16 PM Jan 26th, 2008 via idt
The in deep thought code base has just reached v0.6. You can view the changelog to see the changes.
posted by dharh 5:21 PM Jan 26th, 2008 via idt
« Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Next » |
AI airships america batteries blogs books browser C# c++ chatGPT computers conversation copyright covid cpp cr-48 CSharp dharh disaster DIY DRM economy energy environment FCC gaming google government history HTML humor idt internet interview japan java javascript linkjack linux lrn2program MLP moving music nature nefeedeater neThing neTodo networking news opensource philosophy podcasts poverty programming projects python reading religion science sick simple software space sparce tagging technology twitter unbirthday video wiki
|