Home

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 […]

Using XSD/XML With LINQ; Serializing and Deserializing – Visual Studio .Net 4.0

Using XSD/XML With LINQ; Serializing and Deserializing – Visual Studio .Net 4.0

In this example i am using VS2010 with .Net 4.0 as the framework. The XML i am using is: <!–?xml version="1.0" encoding="utf-8"?–> File.html List.html Data.html A4 Located in VS2010, and most likely VS2008 is the CreateSchema option in the XML menu, this becomes available when editing XML documents. Using create […]

Copying Data Between/Within Tables in Sql

Copying Data Between/Within Tables in Sql

Simple method of copying data between tables or within the same table in SQL. The following can be used to copy data within its own table, altering fields as required: INSERT INTO Table1 ( [Some_Id], ,[Position] ,[Name] ,[Description] ,[LastAction] ) SELECT 954 as Some_Id, ,[Position] ,[Name] ,[Description] ,[LastAction] FROM Table1 […]