Author Archives: johnnblade aka johnnyblade Thugnology

About johnnblade aka johnnyblade Thugnology

C# Developer 9Ja Thugnology

Get rid of Tinychat advertisement and other useless crap


in yr browser get to Developer console “Press F12” , or some other way if u have a diff browser.   all modern browser have dat Dev console, once u see it, copy and paste this script $(‘#right_block’).remove();$(‘#share-bar’).remove();$(‘#room_header’).remove();$(‘#header’).remove();$(‘#footer’).remove();   and … Continue reading

Posted in C# | Leave a comment

Open or expand dropdown with javascript


  tiny code to open a dropdown by code and then use this to fire the event openDropdown(0);

Posted in C# | Leave a comment

Horizontal Scroll any element with images or items inside of it


  here a simple function to scroll an element with items it for example images, just give the function the element, then 1 callback for the scroll up event, and another callback for the scroll down event. feel free to … Continue reading

Posted in JQuery | Tagged , , , , , | Leave a comment

Detect up or down scroll event in jquery


  Here is a little snippet on how to detect the scroll event going up or down

Posted in C# | Leave a comment

Best Practices For Branching with teams


Source Control Branch for Team. You branch to isolate sub-teams so they can work without being subject to breaking changes, or can work in parallel towards unique milestones. Development is branched from Main and used to isolate active development. Development … Continue reading

Posted in Source Control | Tagged , , , , , , | 1 Comment

System.Data.SqlClient.SqlException: Incorrect syntax near ‘<‘. MindScapeLightSpeed Entity


  When adding a 2e partial class for a lightspeed partial entity  class just to add extra properties i ran into this error and my 2e partial class looked like this and i only wanted to add a simple property … Continue reading

Posted in C#, Mindscape Lightspeed | Tagged , , , , , , | Leave a comment

404 Web Api Controller Path / Route not found in .Net Website


  When adding a Api 2.0 controller to your web forms project on staging or a local server all might work fine, but when moving it to a production server you might get the error that your api controller path/route … Continue reading

Posted in Api Controllers 2.0, C# | Tagged , , , , , | Leave a comment

Add Web Api controller 2.0 to old asp.net website project


To add an Web Api 2.0 controller to your old asp.net forms website project do the following steps First right click on yr website, and select add new item, and choose “Web Api Controller Class” and name it for example … Continue reading

Posted in Api Controllers 2.0 | Tagged , , , , , , , , | Leave a comment

Umbraco Excel Macro that injects the Excell content into the RTE so it can be edited


Some code to to create an umbraco macro that takes an id of an excell sheet stored in the media lib and shows it in the RTE, but normally you can edit the content of an excel sheet in an … Continue reading

Posted in Umbraco | Leave a comment

Display image from umbraco 7 media picker in web page


Here is how to show an image from an umbraco 7 media picker, and show it on the web page <img src=”@Umbraco.Media(CurrentPage.myImage).Url” alt=”@CurrentPage.title” />

Posted in Umbraco | Tagged , , , , | 3 Comments