Blog Archives

RAIN 2102 – PDF Version Now Available

Alfred, a serious career programmer in Upper Internet, sees his life fall apart gradually in the year 2102. Will he end up a lowly Shaman Warrior? Will he reconcile with his wife, Marla? How will he get his life back on track? Or maybe you’re just interested in how technology changes society in the future. [...]

Windows 8, Windows RT, Microsoft Extinction Event

Microsoft began its Windows business in the 1980s by selling the software (the operating system) that IBM’s hardware badly needed. This was the kernel of business that would eventually become Microsoft. As the PC (IBM PC at first) began its proliferation, growing in popularity exponentially, Microsoft began its growth as a software company. Sure, there [...]

Full JavaScript Interpreter for C# (.NET)

Stumbled across a beautiful JavaScript interpreter for .NET today, based on Google’s V8 engine. It’s called JavaScript.NET, and even though it lacks in-depth documentation, it’s extremely easy to use. I used it to integrate this AES – Counter algorithm (implemented in JavaScript) in my C# app. Tried Jint but that didn’t work. Too picky. But [...]

JavaScript Code Snippet: Round to Significant Digits

I had a brief moment of insight today that I thought I’d share with the world. Nothing major, but quite useful. Here’s how you round to significant digits in JavaScript… Code I created a function called Math.sig (see snippet below). By default it rounds to 2 significant digits. /* Test cases: alert(Math.sig(2515.7753)); alert(Math.sig(-593)); alert(Math.sig(315.152)); alert(Math.sig(3.14159265)); [...]

Node.js: Microsoft’s Web Empire is Coming to an End

It appears that Microsoft has just sown the seeds for their own demise. In June, 2011, they announced that they would port Node.js to Windows. Fast-forward to now. Node.js now runs in IIS with the help of an open-source library called iisnode. I know what you’re thinking… What’s Node.js? Node.js is an open-source web server [...]

Unique Keys, Hashing, and Encryption

In this blog article I will discuss various methods of generating unique keys, hashing, and encryption, examining their benefits and drawbacks. I thought of writing a separate article for each, but that would result in very short articles, and I don’t like that. I like long articles. OK. Here we go. Unique Keys What is [...]

C++ Died in 1995

Great. Now that I’ve got your attention, I might as well show you why that’s true. Interpreted vs. Compiled Languages Today, C++ is one of the few remaining compiled programming languages out there. What is the difference between an interpreted language and a compiled language? An interpreted language is compiled at runtime. Every time you [...]