Mr. Randy Ox

25 Flips | 1 Magazine | 1 Like | 2 Following | @mithrandir0x | Keep up with Mr. Randy Ox on Flipboard, a place to see the stories, photos, and updates that matter to you. Flipboard creates a personalized magazine full of everything, from world news to life’s great moments. Download Flipboard for free and search for “Mr. Randy Ox”

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.<p>The …

Memory management in C programs

Probably the simplest way to allocate memory in C is to use a stack allocation; if a variable is declared inside a function without specifying static …

A criticism of the Single Var Pattern in JavaScript, and a simple alternative — Dan Hough

You can’t step over the Single Var Pattern<p>Those of you who use Chrome Developer Tools will probably be familiar with this toolbar:<p>Let’s focus on the …

How We Code: ORMs and Anemic Domain Models

• 4 years ago<br>• php<br>• laravel<p>Many esteemed books on code architecture were written by developers with years of experience in strong OOP languages, such as …

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub …

A Course in Machine Learning

Machine learning is the study of algorithms that learn from data and experience. It is applied in a vast variety of application areas, from medicine …

Responsive Design is Not About Screen Sizes Any More

In March 2012, Guy Podjarny ran a test comparing the performance of hundreds of shiny new responsive websites across four different screen …

Nimrod: The Return of Pascal

Why learn Another Language?<p>The first answer is: because it's fun. Just as a botanist is excited to find a new plant, programming language nerds like …

MEGApwn

If your browser supports it, drag this bookmarklet to your bookmarks or favorites bar.<p>"Technically, we could serve you backdoored JavaScript code …

How to Choose Colours Procedurally (Algorithms)

Changing the colours of art can be a great way to increase the amount of content in your game, and add variety and richness. It is relatively easy to …

Re

CSS Sprites vs. Data URIs: Which is Faster on Mobile?

<i>This article is the final piece of a three part series investigating the performance of data URIs on mobile. You can check out my previous posts 'On</i> …

Web Development

Callbacks as our Generations' Go To Statement

This week, as I was preparing my presentation on C# sung on iOS and Android, I came to the realization that callback-based programming has somehow …

Reversing Bits in C – Square Corner Blog – Medium

A small performance investigation into innocent-looking code.<p><i>Written by</i> <i>Charles Nicholson</i><i>.</i><p>Thanks to readers <b>rjs</b>, <b>meteorfox</b> in the comments, and reader …

Hi everyone, welcome to my Haskell tutorial!

There's other tutorials out there, but you'll like this one the best <i>for sure</i>: You can just cut and paste the code from this tutorial bit by bit, and …

Tutorials

Learn c in Y Minutes

Ah, C. Still <b>the</b> language of modern high-performance computing.<p>C is the lowest-level language most programmers will ever use, but it more than makes …

High Performance Computing

Understanding garbage collection in .NET

Consider the below code:<p>Now, even though the variable c1 in the main method is out of scope and not referenced further by any other object when …

Hexagonal Grids

rhombus <br>array[r][q - max(0, N-r)] → array[2][q - 1] → array[2][2]<p>Notice in the diagram that the wasted space is on the left and right sides of each …

You are dangerously bad at cryptography

By Najaf Ali<p>The four stages of competence:<p><b>Unconscious incompetence</b> - When you don't know how bad you are or what you don't know.• <b><br>Conscious …

Information Security

Why MongoDB Is a Bad Choice for Storing Our Scraped Data

MongoDB was used early on at Scrapinghub to store scraped data because it’s convenient. Scraped data is represented as (possibly nested) records …

Why Go?

Intrigued by the Go programming language.<p>First published on 7 May 2012, last revised 27 Feb 2015.<p>Go was introduced on November 10th, 2009 as a new …

Concurrency

Funcy

A collection of fancy functional tools focused on practicality.<p>Inspired by clojure, underscore and my own abstractions. Keep reading to get an …

Haskell-like list comprehensions in Ruby

$stack, $draws = [], {}<p>def method_missing *args<p>return if args[0][/^to_/]<p>$stack << args.map { |a| a or $stack.pop }<p>$draws[$stack.pop(2)[0][0]] = …

Archive of Interesting Code

The Archive of Interesting Code is an (ambitious) effort on my part to research, intuit, and code up every interesting algorithm and data structure …

Programming