Salesforce and saving to server

Receiving the following error when Force.com IDE is started? com.salesforce.ide.api.metadata.types.Metadata$JaxbAccessorF_fullName cannot be cast to com.sun.xml.bind.v2.runtime.reflect.Accessor Try switching workspace - to the very same workspace! File -> Switch Workspace -> Other.. Select the same workspace, OK and voilá! Source

MVC 3 json post array workaround

Ajax-posting a JSON object containing arrays using jQuery work fine in PHP, but since ASP.NET expects the array to be posted with indeces a tiny workaround is required. Consider the following example: var jsonData = { foo: 0, bar: [1, 2] }; $.post("/post-url", postData, function () {}); This will cause the post data to look like foo=0 bar[]=1 bar[]=2 PHP acceps this, but ASP.NET requires the post data to be

Visual studio Windows service installer

I had some trouble with creating an installer for my Windows service I wrote in VS 2005. It simply wouldn’t install, until I followed these instructions. The key was to add custom actions for the installer.

Writing a simple jQuery slideshow plugin

I needed to write a simple slideshow plugin for jQuery which basically showed all content inside of a div one by one. This plugin will list all child elements of the selector and make them clickable. ;(function(jQuery) { jQuery.fn.tinyslideshow = function(settings) { var config = {path:’’}; if (settings) jQuery.extend(config, settings); var imgs; var currentIndex=-1; function _next() { if (currentIndex == imgs.length-1) currentIndex = 0; else currentIndex++; _goto(currentIndex); } function _prev() { if (currentIndex == 0) currentIndex = imgs.