Html changes are not updating

Did a silly mistake when I updated a MVC website the other day. I did some css and html changes but that didn’t seem to be updated when I hit F5 in the browser. It only become updated when I…

Comparison async, sync and delegates

Made a time execution comparison between a usual syncronous, asynchronous and a threaded method call with delegates. //Declare delegate public delegate void DelGetList(List<int> lista, string tName); //Create delegate handler DelGetList delReporter = ReportList; //Init method private void Init() { TestThreads();…

Set default Color parameter value

public void Test(Color foreColor = Color.Black) doesn’t work (error message Default parameter value for ‘parameter’ must be a compile-time constant) beacause Color.Black isn’t a constant value (Color is a struct). Solution: public void Test(Color? foreColor = null)

Cordova – Error initializing Cordova (Class not found)

Arbetat med en app till korkortsteori.se och suttit hela dagen och fäktats med en mobilapp skapad med Phonegap / Cordova. Uppgraderade Cordova till version 3.6.4 samt plugins’en (datepicker, childbrowser och progressdialog). Men vid start poppar felmeddelandet: [Error] Error initializing Cordova…

jQuery mobile ajax status 0

Haft ett problem under ett par dagar där ett ajax get request returnerat status 0 (dvs ingen kontakt) mot en intern server (kan alltså inte nås utanför nätverket), i en Android app som använder jQuery Mobile och PhoneGap. Trots att…

Svarta ikoner i Windows explorer

Haft problem i Windows explorer ett par dagar där ikonerna blivit svarta fyrkanter. Hittade äntligen lösningen på detta irriterande problem. Tydligen så caches ikonerna i Windows och sparas till en lokal databas på användarprofilen. Om man helt enkelt tar bort…

Customized Autocomplete

In some cases it’s good to customize the autocomplete for a control. For instance if you want a bold font at row 5 or different background colors according to the items. It is also possible to customize the response output…