Hexagon grids: coordinate systems and distance calculations

Posted on December 11, 2017. Filed under: Uncategorized | Tags: , , , |

Hexagon grids: coordinate systems and distance calculations [A] poorly implemented hex grid, at the base technical level, has the potential to create massive headaches for me (the programmer) and millions of wasted CPU cycles. The reason for this is the very nature of trying to assign Cartesian coordinates to a honeycomb grid. Quite frankly, all […]

Read Full Post | Make a Comment ( Comments Off on Hexagon grids: coordinate systems and distance calculations )

Firefox Developer Tools | Browser Toolbox

Posted on November 17, 2017. Filed under: Uncategorized | Tags: , , |

Firefox Developer Tools | Browser Toolbox The Browser Toolbox enables you to debug add-ons and the browser’s own JavaScript code rather than just web pages like the normal Toolbox. The Browser Toolbox’s context is the whole browser rather than just single page on a single tab. Also discussed here: Inspect / discover editable css with […]

Read Full Post | Make a Comment ( Comments Off on Firefox Developer Tools | Browser Toolbox )

Fixing Legacy Perl Functions With Decorators

Posted on October 21, 2017. Filed under: Uncategorized | Tags: , , , , , , |

Fixing Legacy Perl Functions With Decorators Function decorators give us a way to modify a function’s behaviour without changing its source. This is useful in changing the behaviour of complex or legacy functions that you don’t want to touch. Although perl does not have a built-in syntax for creating or using decorators, typeglob manipulations are […]

Read Full Post | Make a Comment ( Comments Off on Fixing Legacy Perl Functions With Decorators )

Git bisect and Perl

Posted on August 9, 2017. Filed under: Uncategorized | Tags: , , , , |

Git bisect and Perl git bisect run treats certain exit values specially: 125 means the code cannot be tested, and 128 or higher will abort the bisect process. If Perl throws an exception it exits with 255 (instead of 0 for a pass and 1 for a test fail), aborting the bisect altogether. To fix […]

Read Full Post | Make a Comment ( Comments Off on Git bisect and Perl )

Data Structures and Algorithms Problems

Posted on May 24, 2017. Filed under: Uncategorized | Tags: , , , , , |

Data Structures and Algorithms Problems See this reddit post for discussion

Read Full Post | Make a Comment ( Comments Off on Data Structures and Algorithms Problems )

Getting started with XS

Posted on May 4, 2017. Filed under: Uncategorized | Tags: , , , , |

Getting started with XS eXtendable Subroutines (XS) are subroutines written in C that are callable from Perl code. There are two common reasons you’d want to use XS: there is a C library you’d like to use with Perl, or you want to make a subroutine faster by processing it in C instead of Perl. […]

Read Full Post | Make a Comment ( Comments Off on Getting started with XS )

A Simple Guide for Python Packaging – Small Things about Python

Posted on March 2, 2017. Filed under: Uncategorized | Tags: , , |

A Simple Guide for Python Packaging – Small Things about Python Code reuse is a very common need. It saves you time for writing the same code multiple times, enables leveraging other smart people’s work to make new things happen. Even just for one project, it helps organize code in a modular way so you […]

Read Full Post | Make a Comment ( Comments Off on A Simple Guide for Python Packaging – Small Things about Python )

Make files not war: How to write short, readable makefiles that work

Posted on March 1, 2017. Filed under: Uncategorized | Tags: , , |

Make files not war: How to write short, readable makefiles that work This article tries to explain make and it’s makefiles in slightly different terms than the original documentation or even most tutorials. It took me a long time to understand how to write short, simple and understandable makefiles that work, and I hope this […]

Read Full Post | Make a Comment ( Comments Off on Make files not war: How to write short, readable makefiles that work )

An Incremental Approach to Compiler Construction (2006)

Posted on December 19, 2016. Filed under: Uncategorized | Tags: , , , , |

An Incremental Approach to Compiler Construction (2006) I think the incremental approach is terrific, because it allows you to get to a program the emits assembly and builds a working binary in week one.

Read Full Post | Make a Comment ( Comments Off on An Incremental Approach to Compiler Construction (2006) )

Splitting a repo based on folder?

Posted on December 17, 2016. Filed under: Uncategorized | Tags: , , , |

Splitting a repo based on folder? [reddit] I have a repo that really should have been two different repos. Each project is in it’s own folder though (and I don’t think that no modification was made to both folders at the same time). Is there a way to split out this into two repos? Splitting […]

Read Full Post | Make a Comment ( Comments Off on Splitting a repo based on folder? )

« Previous Entries

Liked it here?
Why not try sites on the blogroll...