## 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); var b_r = Math.round(f1); var Calculate a fraction in javascript

## 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 internet. You will need a Amiga emulator (E-UAE) for Cobra ODE, works on superslim

## 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 devent function to the page Javascript Dynamic Event

## 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: 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 schema on the above XML sheet would create Using XSD/XML With LINQ; Serializing and Deserializing – Visual Studio .Net 4.0

## 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 where Some_Id = 52 The Copying Data Between/Within Tables in Sql

## 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 BEGIN EXEC(‘DROP PROCEDURE ‘ + Delete / Drop all stored procedures in an SQL Database

## Dungeon Master Javascript

Could this be the height of my retro 80’s/90’s gaming obsession I hear you ask? Well quite possibly..probably not though. Dungeon Master Javascript is my version of the 80’s classic Dungeon Master By FTL Games. The entire ‘game’ is written in javascript and CSS, it should be CSS2 compliant but I have used a few Dungeon Master Javascript