Saving a Failing Hard Drive with GNU/Linux
I came to find out that my mother’s computer’s hard drive was failing. Programs took a long time to open and the computer would suddenly reboot for no reason. I discovered that the hard drive had bad...
View ArticleGlasir – an open source PHP/HTML5 media player
Glasir is an open source PHP/HTML5 media player for a personal music collection of unlimited size. For use with Chrome, Firefox, and Android phones. It’s a project that I developed and open sourced for...
View ArticleRaspberry Pi now available!
The Raspberry Pi is a computer, it’s a platform for development, it’s an educational tool that’s cheap enough for students and schools, it’s a media center PC, it’s a server, and it can be a robot...
View ArticleJavascript: Flattening a Multidimensional Array
A friend had asked me about converting a 2-dimensional array into a flat 1-dimensional array. In array form this would be (written as was provided to me): in = [1,"2",[3,"4"]]; out = [1,"2",3,"4"];...
View ArticleSwitch vs If – Which is faster?
In programming there are two different methods that people use to test variables that have a number of different values. One method is to use the If statement and define blocks of code to perform. The...
View ArticleJavascript Benchmarking with JSBenchtest
Javascript benchmarking couldn’t be easier. With this webpage you can input any Javascript code and test how fast it is. The webpage will automatically call your code for 1,000,000 iterations and...
View ArticleDynamically Modifying Input Elements on Click
Sometimes it’s necessary to modify an input form element when a user clicks on that element. In some cases, the form element can contain information regarding what information is appropriate, or what...
View ArticleA simple c++ string replace function
I’ve been privileged by higher-level language string functions, such as PHP’s easy to use str_replace function, that I’ve forgotten how performing such simple tasks in lower-level languages like C++...
View ArticleJSON Parsing Function for Shell Scripts
When testing REST-based web services that return JSON you may decide to use a shell script with cURL commands. Some services require a call to authorize a client and a second call to perform some...
View ArticleResponsive 2-column layouts with CSS3
Using divs in web development is standard practice these days, but sometimes divs can’t do what tables used to do. Tables could easily create a 2-column layout where both columns had equal heights but...
View Article