OK, so my site got hit by a really nasty spam bot on Monday, and even though none of the spam made it through the spam plugin it was still managed to add 600,000 comments to my spam queue, bringing the site to a crashing halt.
I’ve turned comments off till I can work out how to solve this issue.
Quick post on some things I’d like to do this coming year…
• Finally update my British trees app and Xkcd app on windows phone.
• Learn a new programming language, perhaps F#, and possibly use project Euler to do it.
• Use githib more.
• err, post more on here?
Oh, well, we can but hope :D
Update: couple more…
• Use my windows azure account for something.
• Release v4 of flickrnet
Great news, after just over a year there is a new version of the FlickrNet library. Unfortunately this release only contains a few bug fixes, and isn’t the new Windows 8 version I had hoped for, that is still in the works.
So the newest version if 3.7.0 (was going to be 3.6.0 but I got the next little feature released as well). We now have the two Camera* methods for listing camera models, and the two new image sizes, Large 1600 and Large 2480.
The best bit of this is that I installed TeamCity on my PC last week after getting it working at work. So I now have continuous integration working the the FlickrNet project, and can deploy to NuGet with one button click.
I’ve also set up a GitHub repository for my experimentations with the Flickr library. No code there yet but I hope to get something in there in the near future. This is both an experiment on using T4 templates to generate the Flickr.* methods based off an XML file, so that different platforms can be supported easily, and also an experiment in the use of Git :)
Cor-blimey, 10, where did the time go.
I don’t think the web site actually contains any posts from back then – I don’t think I was using WordPress at the time (MoveableType springs to mind, and possibly before that static pages generated from Blogger or even using Dreamweaver).
Well, he’s to another 10, and to hopefully posting some more content soon.
Came across an interesting little snippet of code today.
var max = list.Max(i => i.Value)
This simply returns the maximum value of the “Value” property in the list. However there is a possible problem with this code, depending on the type of Value and the number of elements in the list.
If there are NO elements in the list and Value is NOT nullable (e.g. it is an Integer) then the above will throw an exception.
If there are NO elements in the list and Value IS nullable then it will return NULL.
var max = list.Max(i => i.Value ?? 0)
If the list is empty and Value IS nullable then the above will also throw an exception.
var max = list.Max(i => i.Value) ?? 0
If the list is empty and Value IS nullable then the above will return 0.
While hacking around trying to include some images in an email I was trying to set the height and width of the IMG tag. This wasn’t working at all (which I had read about) but then I put the images in a table with a cellpadding and all of a sudden the images are being resized.
Not sure why that is but thought it might help anyone trying to do the same thing.
<tr><td><img width=”100″ height=”50″ src=”https://www.google.co.uk/images/srpr/logo3w.png” /></td></tr>
Note: Only really tested in Outlook 2010, so might not work in other email clients.