Notebook since 2001

Blog, page 52

page 52 of 76

Continuing through the writing archive.

Tips · 1 min

CakePHP - Security.level

Why CakePHP was logging users out at random, and the Security.level setting that fixed the session regeneration.

#PHP#Security#Tutorial
Read post
Tips · 1 min

Get special folders with SHGetKnownFolderPath

A small Windows C++ sample that calls SHGetKnownFolderPath to find the right per-user spots for app data and logs under UAC.

#Tutorial#Code#C++#C
Read post
Rants · 4 min

Why dont we have free phones yet?

A rant on Canadian carrier monopolies and a thought experiment about a mesh-networked open phone with no cell towers.

#Ideas#Journal
Read post
Drinking · 1 min

I never

Rules for I Never, the drinking word game where you find out way too much about your friends.

#Recipe#Ideas
Read post
Development · 1 min

CakePHP - Disable validation in controler

A one-line CakePHP trick to skip model validation in a controller so you can update legacy records full of bad data.

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

CakePHP - Search bar

A CakePHP snippet that wires a search box to a paginated index, matching the query against story titles and author names.

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

Indian Poker

A drinking card game where you lick a card to your forehead and bet drinks on whether yours is higher than everyone elses.

#Recipe#Ideas#Tutorial
Read post
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