Author: <span class="vcard">admin</span>

Working with Amiga C using Visual Studio Code

Working with Amiga C using Visual Studio Code

I’ve found it rather difficult to go back to coding on the Amiga with the available editors. Most of them lack decent syntax highlighting, formatting, intellisense and autocomplete. Professionally I’m used to using the likes of Visual Studio which supplies all those features. Using Visual Studio Code, a free IDE […]

[Solution]Barclays Mobile Banking isn’t compatible Galaxy s7 rg030 error

[Solution]Barclays Mobile Banking isn’t compatible Galaxy s7 rg030 error

Today I had an issue with Barclays mobile banking. Essentially the app had stopped working, requesting I do an update to proceed, giving me an RG030 error. When I try to update it says ‘your device is not compatible with this version’. I have a Galaxy S7 Edge and it […]

XML Serialization quick and easy csharp

XML Serialization quick and easy csharp

Serialization with XML and C# this is mainly here as a reminder for me on how to do it! To serialize to a file: using System.Xml; using System.Xml.Serialization; // other code List<string> mylist = this.getList(); Type stype = typeof(List<string>); var serializer = new XmlSerializer(stype); XmlWriterSettings settings = new XmlWriterSettings(); settings.OmitXmlDeclaration […]

Bootstrap compatible asp.net button

Bootstrap compatible asp.net button

Similar to my previous post, you can use the following code to create a custom asp.net button with the ‘button’ tags used in HTML5 and bootstrap. [ParseChildren] public class bsButton : Button { private string _ButtonCss = "btn btn-default"; [Browsable(true), Description("The css class"),] public string ButtonCss { get { return […]

Bootstrap compatible asp.net radio button list

Bootstrap compatible asp.net radio button list

Recently I have had the requirement to make some of my asp.net controls ‘bootstrap compatible’ In this instance it has been asp.net’s radio button list that is causing me consternation! An inline bootstrap radio button list has the mark up of this: <div class="radio"> <label class="radio-inline"> <input type="radio" value="Ac" name="optArchive" […]

Calculate a fraction in javascript

Calculate a fraction in javascript

Calculating a fraction from a double in javascript The following code will allow you to calculate a fraction in javascript function getFraction(dblValue, dblTolerance) { var f0 = 1 / dblValue; var f1 = 1 / (f0 – Math.floor(f0)); var a_t = Math.floor(f0); var a_r = Math.round(f0); var b_t = Math.floor(f1); […]

Amiga emulator (E-UAE) for Cobra ODE, works on superslim

Amiga emulator (E-UAE) for Cobra ODE, works on superslim

Just a quick post giving a place to download E-UAE for the Cobra ODE. Please glance at the read me file and create a folder structure to that on the zip. TOSEC is a good resource to get hold of ADF’s and the kickstarts are available from all over the […]

Javascript Dynamic Event

Javascript Dynamic Event

Javascript Dynamic Events / Javascript Custom Events I often asked myself: How do I create a custom event in javascript? Something I have been using for quite awhile now is my own custom event handler for javascript, it’s pretty simple compact and easy to use To use; just copy the […]

Delete / Drop all stored procedures in an SQL Database

Delete / Drop all stored procedures in an SQL Database

The following SQL will delete all stored procedures in a specified database. Make sure you specify the database you are using! USE [MyDatabase] DECLARE @spName varchar(500) DECLARE _CurCursor CURSOR FOR SELECT [name] FROM sys.objects WHERE type = 'p' OPEN _CurCursor FETCH NEXT FROM _CurCursor INTO @spName WHILE @@fetch_status = 0 […]