Blog, page 53
page 53 of 76Continuing through the writing archive.
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.
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 postFifty
Rules for Fifty, a quick two-dice game where doubles score five, double sixes score twenty-five, and double threes wipe you out.
Read postwinnt.h(5545) : error C2146: syntax error : missing ; before identifier ContextRecord
Fix for the winnt.h C2146 ContextRecord compile error: include windows.h before the offending header.
Read postDisarm The Bomb
A drinking game where four beer cans get taped into a cube, taped to your hands, and you have ten minutes to drink them.
Read post