Standing on the shoulders of giants. RSS 2.0
# Saturday, June 30, 2007

"Always-fresh" releass of dasBlog are available from http://www.paulvanbrenk.com/blog/bits. These builds are made from the subversion head hourly. The current move to .NET 2.0 means the tree is in heavy development, so these may not be the most stable, but are the most recent.

If you want to make a contribution check out this article by Scott Hanselman, about contributing a patch to dasBlog.

Saturday, June 30, 2007 1:28:35 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
dasBlog
# Tuesday, June 26, 2007

The week number depends on 4 variables:

  1. The date you're interested in,
  2. The calendar you use (e.g. Gregorian, Julian, Hebrew etc.)
  3. The first day of the week
  4. The week you count as 1 (e.g. the week containing Jan 1, the first 4 day week etc.)

 

All these parameters are included in the Calendar.GetWeekOfYear method, as shown in the following code snippet:

// instantiate the calendar used in the Netherlands
Calendar calendar = new GregorianCalendar();

// get the current week for the Netherlands
calendar.GetWeekOfYear(DateTime.Now, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);


// and for the USA
calendar.GetWeekOfYear(DateTime.Now, CalendarWeekRule.FirstDay, DayOfWeek.Sunday);
Tuesday, June 26, 2007 3:31:55 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Codesnippet

Read about this release at Scott Hanselman's Computer Zen and download the new version of dasBlog.

Highlights:

  • Fixed a metric buttload of bugs
  • Category and Home Page Paging Macros
  • Windows Live Writer Custom Integration
  • Support for Blogging directly from Word 2007
  • DHTML Timeline of Posts from the MIT Simile project

 

Thanks to everybody supporting the project...

Omar Shahine, Clemens Vasters, Tom Watts, Ken Hughes, Paul Van Brenk, John Forsythe, Nick Schweitzer, Kenneth Lefebvre, Ben Scheirman, Tim Sherrill, Alexander Gross, James Snape, Raymond Llewellyn, Tony Bunce, Josh Flanagan, Aaron Fischer, Anthony Bouch, Ayende Rahien, Ben Taylor, George V. Reilly, Greg Hughes, Mike Schinkel, Marc Mercuri, Rajiv Popat, Tim Sherrill

...and the many patch contributors!

Tuesday, June 26, 2007 10:34:53 AM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
dasBlog
# Friday, June 22, 2007

Testing the latest build for the final .net 1.1 relase of dasBlog.

Get your copy at http://www.paulvanbrenk.com/blog/bits

Friday, June 22, 2007 1:00:10 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
dasBlog
# Friday, May 11, 2007
# Sunday, March 04, 2007

Although generally a bad idea [0], there is another problem. The System.Web.Caching.Cache doesn't call dispose on the items removed from the cache, causing a resource leak. To prevent this resource leak, add a CacheItemRemovedCallback in which you dispose of the object.

 

// add the item to the cache, note the callback

HttpRuntime.Cache.Add("myKey", myClass, null, DateTime.Now.AddSeconds(5), 
     Cache.NoSlidingExpiration, CacheItemPriority.Default, 
     new CacheItemRemovedCallback( OnRemoved ) );

// callback function

void OnRemoved( string key, object value, CacheItemRemovedReason reason ) {

     IDisposable disposable = value as IDisposable;
     if (disposable != null) {
          disposable.Dispose();
     }
}

 

[0] Should you really be caching an object containing unmanaged resources, which usually are scarce?

Sunday, March 04, 2007 5:58:57 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Codesnippet | C#
# Thursday, February 22, 2007

Passed the 70-554 exam today, now I'm officially a Microsoft Certified Professional Developer : Enterprise Application Developer.

This means I currently have the following certifications:

MCTS (Web, Win and Distributed), MCPD( Enterprise Application Developer), MCBDA (on Sql 2000), MCSD & MCAD

 

Thursday, February 22, 2007 3:48:33 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Certifications
# Saturday, February 17, 2007

Again for 2007-2008 Tam Tam had received the Microsoft Gold Partner status.

Saturday, February 17, 2007 3:07:15 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
General
# Saturday, January 27, 2007

After passing the 70-553 upgrade exam, I am now a Microsoft Certified windows and web application Technology Specialist.

Next up the 70-554 exam to become a Microsoft Certified Professional Developer : Enterprise Application Developer.

 Update: Great reources for both the 70-553 and 70-554 exams.

Saturday, January 27, 2007 3:40:37 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] - Trackback
Certifications
About
© Copyright 2008
Paul van Brenk
Sign In
newtelligence dasBlog 2.3.8275.16006
All Content © 2008, Paul van Brenk
DasBlog theme 'Business' created by Christoph De Baene (delarou)