Blog, page 56
page 56 of 79Continuing through the writing archive.
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.
Read postCakephp - 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.
Read postIndian Dice
Rules for Indian Dice, a five-dice poker variant for when you want to play poker but cannot find the cards.
Read postCakephp - 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.
Read postIce 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.
Read postCakephp - 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.
Read postHigh
Rules for High, the simplest two-dice game: each player rolls and the highest total takes the pot.
Read postGolf
Rules for Golf, a three-dice game also called Dragon Slayer where every non-double roll counts as a stroke over eighteen rounds.
Read postConvert HEX string to BYTE array, bug.
A C++ ConvertHexToBytes function posted as a find-the-bug puzzle using strtok_s and sscanf_s.
Read postFourteens
Rules for Fourteens, a ten-dice tavern banking game from the 1930s Midwest paying eight-to-one on fourteen hits of the point.
Read post