Entries from April 2008

Shortening URLs Using TinyUrl API in .net

Date April 15, 2008

Here is a quick method to shorten URLs using the TinyUrl API in .net - C# and VB
C#

public static string MakeTinyUrl(string Url)
{
try
{
if (Url.Length <= 30)
{
return Url;
}
if (!Url.ToLower().StartsWith(”http”) && !Url.ToLower().StartsWith(”ftp”))
{
Url = “http://” + Url;
}
var request = WebRequest.Create(”http://tinyurl.com/api-create.php?url=” + Url);
var res = request.GetResponse();
string text;
using (var reader = new StreamReader(res.GetResponseStream()))
{
text = reader.ReadToEnd();
}
return text;
}
catch (Exception)
{
return Url;
}
}

VB

Public Shared Function MakeTinyUrl(ByVal [...]

Yonkly: New Release 04-14-08

Date April 14, 2008

[update: Yonkly source code is now public]
I just released an updated version of Yonkly.
Here is a list of changes, additions and improvements:

Fixed email issues
Added About section under the avatar
Using TinyUrl for Url shortening.
Added profile Url under the avatar (so add your blog/website to your profile)

Added more stats and each one is linked to the appropriate [...]

Synchronize Outlook Tasks with Remember the Milk

Date April 14, 2008

Outlook 2007 is by far the best integrated solution for organizing your life.  You can drag an email to the calendar and voila you got an appointment linked to the email message.  You can flag an email and it becomes a task/to-do item.  You can categorize/tag emails, tasks, appointments and contacts.  Everything just works.  The [...]

CMAP Code Camp 2008 Spring Edition

Date April 13, 2008

Yesterday, I gave a talk at CMAP Code Camp about the asp.net mvc framework and AJAX using JQuery. This is my first time speaking, so I was a little nervous. I think I did ok but I can’t really tell. Of course, the talk didn’t go as planned, because Visual Studio didn’t [...]

Yonkly - Open Source Twitter

Date April 11, 2008

[update: Yonkly source code is now public]
[update 2: I just created www.isweat.com using the yonkly engine]
[update 3: Tons of new features]
Asp.net MVC framework rocks. I wanted to play with it more and decided why not build an open source twitter. Unfortunately, I couldn’t come up with a better name for it that had an [...]