Blog Archives

How to create a Bash completion script

Posted on March 22, 2018. Filed under: Uncategorized | Tags: , , , , , |

How to create a Bash completion script via /r/bash and /r/linux

Read Full Post | Make a Comment ( Comments Off on How to create a Bash completion script )

Finding the longest palindromic substring

Posted on March 11, 2018. Filed under: Uncategorized | Tags: , , , , |

Finding the longest palindromic substring Given a string, find the longest palindromic contiguous substring. If there are more than one with the maximum length, return any one. via /r/programming and /r/compsci [reddit]

Read Full Post | Make a Comment ( Comments Off on Finding the longest palindromic substring )

A fast and easy Docker tutorial for beginners

Posted on March 4, 2018. Filed under: Uncategorized | Tags: , , , , |

A fast and easy Docker tutorial for beginners Made these videos for my employer as a way of evangelizing Docker in the company, but thought it would be useful to the public as well. I’m still fairly new to Docker, so a lot of what I focus on in these videos were things that I […]

Read Full Post | Make a Comment ( Comments Off on A fast and easy Docker tutorial for beginners )

Creating a bash completion script

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

Creating a bash completion script I recently worked on creating a bash completion script for a project and I enjoyed it very much. In this post I will try to familiarize you with the process of creating a bash completion script. Also discussed on /r/bash, /r/programming, /r/linux and r/commandline [redddit]

Read Full Post | Make a Comment ( Comments Off on Creating a bash completion script )

It’s Time To Do CMake Right

Posted on February 20, 2018. Filed under: Uncategorized | Tags: , , , |

It’s Time To Do CMake Right This post explores the concepts of what is known as modern CMake, which advocates for abandoning a traditional variable-based approach for a more structured model based on so-called targets. My intention is to show how “new” (>= 3.0.0) features can be employed to reshape your CMake system into a […]

Read Full Post | Make a Comment ( Comments Off on It’s Time To Do CMake Right )

How to Write a Text Adventure in Python

Posted on February 15, 2018. Filed under: Uncategorized | Tags: , , , , |

How to Write a Text Adventure in Python People new to programming often ask for suggestions of what projects they should work on and a common reply is, “Write a text adventure game!” I think there are even some popular tutorials floating around that assign this as homework since I see it so much. This […]

Read Full Post | Make a Comment ( Comments Off on How to Write a Text Adventure in Python )

Using Git Hooks to Improve Your Day-to-day Workflow

Posted on January 4, 2018. Filed under: Uncategorized | Tags: , , , |

Using Git Hooks to Improve Your Day-to-day Workflow In this post I will expose some of the git-hooks we use in some projects here at WyeWorks to make developers life easier by preventing bad commits to even leave their computers. I will cover linting, tests and commit formating use cases. via /r/git

Read Full Post | Make a Comment ( Comments Off on Using Git Hooks to Improve Your Day-to-day Workflow )

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 )

« Previous Entries Next Entries »

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