Monthly Archives: February 2013

Arithmetic with Large Numbers in JavaScript

Most programming languages store very large numerical values using a maximum of 64 bits, which is enough to represent 18 quintillion unique values, which in turn uses about 20 decimal digits of precision. This is obviously plenty for most applications. … Continue reading

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

Typesetting A Document Using LaTeX

1. Download and install MiKTeX. MiKTeX is an implementation of TeX/LaTeX for Windows. As of this writing, the latest version is available at the URL “http://miktex.org/download“. 2. In any convenient location, create a new directory named “LatexTest”. 3. In the … Continue reading

Posted in Uncategorized | Leave a comment

Exploring the Structure of an EXE File

The code included below will prompt the user to specify a Windows .exe file, read the file, and then display the structure of its headers as XML. To see the code in action, copy it into an .html file, open … Continue reading

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

Exploring Disk Sectors Using Assembly Language

The assembly language code shown below uses BIOS interrupts and a simple command prompt interface to allow the user to navigate through the sectors of a disk and view or edit the bytes stored on them. Also included are some … Continue reading

Posted in Uncategorized | Leave a comment

A JavaScript Parser in JavaScript

The first step towards building a compiler is building a parser. The parser takes program code written by a developer and turns it into a “graph” or “tree” of interrelated program objects. This graph is then translated into the corresponding … Continue reading

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

Building a Simple Device Driver in Linux

The code, scripts, and some of the instructions in this post are adapted from the second chapter of _The Linux Kernel Module Programming Guide_, by Peter Jay Salzman, Michael Burian, and Ori Pomerantz. As of this writing, an electronic version … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

Plotting and Drawing a Bezier Curve

The code shown below takes four control points as input, plots 100 points along the corresponding cubic Bezier curve, and draws them onto an HTML5 canvas. To see the code in action, paste it into an HTML file and open … Continue reading

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