Tag.net

Syntax error using Yahoo YUI Compressor .net port – works using java version

S

Recently, I was tasked with creating a minified version of a web applications Javascript files. I settled on the Yahoo YUI Compressor, in particular, the .net port of it When I tried to compress a particular file (the jquery.caret plugin), it would throw up a syntax error. This error only occurred using the .net port of Yahoo YUI Compressor. Using the standard java jar version of YUI Compressor...

Incremental / Sequential int IDs with MongoDB using an IdGenerator

I

I blogged about using incremental ids with mongodb previously, so have a read of that for more information. Although it’s not ideal, we can use sequential / incremental IDs with MongoDB.Sometimes (when migrating legacy systems for example) we just can’t get away from using ints for id’s. While working on implementing MongoDB with N2CMS recently, I came across this very problem. All IDs are...

Joe Blogs Wrapper V2 – Help required

J

I’m on the verge of being able to release a second, much improved version of the Joe Blogs WordPress & MetaWeblog API Wrapper. Some very brief details below, and a cry for help (or several cries!) New Features / Improvements Friendlier API Instead of having to deal with the XML-RPC interfaces directly, I’ve added a “friendly” layer of classes on top. The WordPressWrapper class has helper...

C# – String.Concat vs String.Join

C

I had a quick Google search for a comparison between string.concat and string.join, but I couldn’t find anything. Say you want to construct the sentence “The quick brown fox jumps over the lazy dog” This is comprised of 9 words, 8 spaces. Using string.concat: public void CreateSentanceUsingStringConcat() { string space = " "; string the = "the"; string quick = "quick"; string brown = "brown";...

Quartz.net trigger not firing

Q

I’ve used Quartz.net for a little while – more specifically, around 6 months. I started working with it around the end of October 2009. Irrelevant, you may think, but the important thing here is the time. During winter months, the UK runs on GMT (or UTC+0) During these months, (up until 28th March 2010) my application functioned as expected – however, when the clocks went forward for British...