\ Blog

This is where I post about web development, general programming, desing, graphics stuff, computers in general, and occasionally about less important things, such as life in the real world.


  • hex

    C Challenge: Manipulating Bits

    A quick challenge for the C programmers out there wanting something to do this week. The challenge is to complete each function skeleton using only straightline code (i.e., no loops or conditionals) and a limited number of C arithmetic and logical operators. Specifically, you are only allowed to use the following eight operators: ! ~ & ^ | + >

    Read More


  • Source Code Syntax Highlighter

    Code Formatter & Syntax Highlighter jQuery Plugin

    A simple plugin for jQuery that I wrote today. The plugin takes C, C++, C#, Java, Javascript, or PHP source code in plain text inside any HTML tag(s) that you specify, and formats it adding line numbers, syntax highlighting, and preserving spacing. You can change the theme through a very basic CSS style sheet file.

    Read More


  • Stock Market Simulation

    HTML5 Stock Market Simulation in PHP

    I have decided to take the time to post the source code for my HTML5 Stock Market simulator written in PHP. I wrote a PHP implementation of HTML5 Web Sockets for a networking class I was taking at school, and made a simple Stock Exchange simulator application out of it with HTML5 (Javascript's Web Socket object).

    Read More


  • artificial-intelligence-ai

    Sudoku Solver Algorithm in JavaScript

    My final project for one of my C++ classes is a game of Sudoku. The program, to be written in C++, must be able to read a board from a text file, allow the human player to play the game, with simple rules enforced, as well as allow the user to save the game to an external text file. For extra credit the professor challenged us to write the AI to solve the game. My goal is to get the extra credit, but later to convert the code to Javascript and make a Google Chrome App out of it. Sounds like a fun challenge.

    Read More


  • boolean-ch

    Binary Matrix Multiplication

    A simple and efficient way to multiply two or more matrices, but more specifically, a binary matrix (also known as zero-one matrix). This code has many uses, but was written specifically to solve the problem of determining whether a given binary matrix is transitive.

    Read More


  • The Matrix _DivX_ 149_0001

    Zero-one Matrix Relations » CS238 Exploration 3

    This is the third exploration in CS 238 (Discrete Math 2) that Brother Neff assigned. So far this is the easiest exploration I've seen since I started BYU-Idaho. All that we need to do is analyze a bunch of 2x2 and 4x4 matrices, and determine if they are symmetric, antisymmetric, asymmetric, reflexive, nonreflexive, irreflexive, and transitive. Most of the code is already provided (as always, the code is all C++). All we need to do is implement the functions that check for those properties in the matrices. Extra points are awarded for efficient, non-redundant code.

    Read More


  • progress2

    CS 238 Exploration 2 - Slight Progress

    So far I've implemented the functionality to calculate total payments with the extra monthly payments, but it's not using the start and end dates for the extra payments (as optional parameters passed into the app).

    Read More


  • Amortizaton Calculator

    CS 238 Exploration 2

    My initial post on CS 238's exploration 2. This exploration is all about calculating a home loan, and printing out an amortization schedule. While not as simple as Brother Ercanbrack's CS 213 mortgage calculator apps, this exploration is not nearly as complicated as RSA or most other explorations Brother Neff assigned in Discrete Math 1.

    Read More


\ Social Media

Social Media Google Plus Facebook Linked In Twitter Blogger YouTube

\ Popular Tags


\ Latest Tweets