Quantcast
Channel: The Open Code Project
Browsing all 10 articles
Browse latest View live

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 Article



Image may be NSFW.
Clik here to view.

Glasir – 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 Article

Image may be NSFW.
Clik here to view.

Raspberry 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 Article

Javascript: 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 Article

Switch 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 Article


Image may be NSFW.
Clik here to view.

Javascript 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 Article

Dynamically 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 Article

A 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 Article


JSON 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 Article


Image may be NSFW.
Clik here to view.

Responsive 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
Browsing all 10 articles
Browse latest View live




Latest Images