Notebook since 2001

Blog, page 56

page 56 of 79

Continuing through the writing archive.

Rants · 2 min

UPS vs FedEx

A cross-border shipping rant about a $13 UPS Ground order that turned into $53 once the brokerage fees landed at the door.

#Journal#Canada
Read post
Tips · 1 min

Cakephp - Add meta tags to views

How to inject per-view meta keywords and descriptions into a CakePHP layout using $scripts_for_layout and the HTML helper.

#PHP#Tutorial#Code#Web
Read post
Dice · 1 min

Indian Dice

Rules for Indian Dice, a five-dice poker variant for when you want to play poker but cannot find the cards.

#Ideas#Tutorial
Read post
Development · 1 min

Cakephp - Session->setFlash is not working any more.

Fix for missing CakePHP setFlash messages after 1.2: the template needs an explicit session check and flash call.

#PHP#Code#Tutorial#Web
Read post
Drinking · 1 min

Ice Cube Raft Race

A drinking game where each player fills an ice cube tray with beer and races to suck every slot dry through a straw.

#Recipe#Ideas#Tutorial
Read post
Development · 1 min

Cakephp - Using the same view for multiple controler functions

How to reuse one CakePHP view across multiple controller actions by disabling autoRender and calling render() with the template path.

#PHP#Code#Tutorial#Web
Read post
Dice · 1 min

High

Rules for High, the simplest two-dice game: each player rolls and the highest total takes the pot.

#Ideas#Tutorial
Read post
Dice · 1 min

Golf

Rules for Golf, a three-dice game also called Dragon Slayer where every non-double roll counts as a stroke over eighteen rounds.

#Ideas#Tutorial
Read post
Tips · 1 min

Convert HEX string to BYTE array, bug.

A C++ ConvertHexToBytes function posted as a find-the-bug puzzle using strtok_s and sscanf_s.

#Code#C++#Tutorial
Read post
Dice · 1 min

Fourteens

Rules for Fourteens, a ten-dice tavern banking game from the 1930s Midwest paying eight-to-one on fourteen hits of the point.

#Ideas#Tutorial
Read post