Pfp_logo_icon

OpenGL and Linux: Part One
0 comments

Mark Holmberg
09 Apr 2013, 6:37pm
09 Apr 2013, 6:39pm

Want to get started creating OpenGL programs under Linux. In this multipart series, I explore what it takes to go from a base install of Linux to creating rich OpenGL applications.

Pfp_logo_icon

Terminal Tricks: Renaming Files
0 comments

Mark Holmberg
15 Mar 2013, 5:33pm
19 Mar 2013, 7:30pm

Want to know the slickest way to rename a file from the terminal in a jiffy? Here's how.

Pfp_logo_icon

Gravatar and Ruby on Rails
0 comments

Mark Holmberg
21 Feb 2013, 7:52pm
21 Feb 2013, 7:52pm

Have you ever wanted to quickly add support for displaying someone's Gravatar. Here I show you an exciting gem called Gravtastic.

Pfp_logo_icon

Javascript Summing Values
0 comments

Mark Holmberg
19 Feb 2013, 9:14pm
19 Feb 2013, 9:15pm

It's impossible...er, difficult!

When working with a language like Ruby, one can easily map a list of values and then sum them up. When working with a language like Javascript, one wonders what the hell to do. Why couldn't javascript just add a simple function to add a list of values. With most functional languages, you can accomplish just about any task with a series of map's and folds. Here I show you the simplest way to add up a list of values in javascript.

Pfp_logo_icon

Test content_for? with RSpec
0 comments

Mark Holmberg
19 Feb 2013, 8:54pm
19 Feb 2013, 8:54pm

Have you ever wondered how to test content_for? ? How can you be sure that the block is actually yielding the thing for which it has content? Here I should you a quick tip for testing content_for? using RSpec.

Pfp_logo_icon

Twitter Bootstrap and asset_path
0 comments

Mark Holmberg
12 Feb 2013, 8:15pm
12 Feb 2013,10:18pm

Having problems with your Twitter Boostrap icons disappearing? I ran into a very difficult to solve bug with my icons disappearing for no apparent reason. Here I show you my solution for this problem when it happened for this very blog.

Pfp_logo_icon

Simple Markdown Example
1 comment

Mark Holmberg
11 Feb 2013, 9:08pm
11 Feb 2013, 9:08pm

Markdown is a play-on-words of Markup. It is a lightweight markup language which allows people “to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML)”. I find it to be a convenient format to use in writing simple web documents such as this blog post. Here I show you some of the basics of the language.