Tuesday, 13 July 2010
I use Posterous for publishing photographs online. I like the easy posting by email, the maps for geotagged photos and the integration with Twitter, Facebook, Flickr etc. If, like me, you use ASP.NET for your website, here's a little function to get the lastest photos from your Posterous feed.
Monday, 23 November 2009
IntenseDebate is a great free blog comments system. Here's a bit of LINQ to XML VB.NET code that will get posts from your blog that have recent comments. IntenseDebate offer a JavaScript version that will show the most popular posts over all time, but the problem with this is that it's not very customisable, doesn't allow for any ASP.NET caching and if a post gets a lot more comments than any others then it will always be at the top of the list, ignoring more recent post comments.
Thursday, 21 May 2009
For my new 'live' section of my website I decided to use Google Calendar to manage the events and ASP.NET with LINQ to XML to display the events on my site. Getting the right syntax turned out to be a bit tricky, so here's some code that I came up with that should do the trick:
Dim myDT As New DateTime()
myDT = Now
Dim strStartTime As String = ""
Dim strEndTime As String = ""
strEndTime = Left(myDT.AddMonths(12).ToString("s"), 10)
strStartTime = Left(myDT.AddMonths(-1).ToString("s"), 10)