Monthly Archives: December, 2009
King’s Cup
A classic drinking game that evolves filling a cup (the kings cup) with random shots of liquor for the unfortunate loser of the game.
As with all drinking games the point of the game is to get drunk.
You will need
A large cup (must be able to hold several shots)
A deck of cards (jokers removed)
2+ players
Set up
Place [...]
Jackpot
Jackpot is a dice game that was played in many taverns in the middle ages. People could often find the game’s layout on the taverns tables. In lower-class establishments the layout is often crudely carved into the tables surface, whereas finer establishments have been known to use specific tables set aside for the game.
This game [...]
links for 2009-12-19
Aurgasm » Yael Naim
When Paris-born, Israeli-raised Yael Naim met David Donatien, a West Indian drummer, the two sat down to share their rich musical experiences. Combining Yael’s classical education and love of pop and jazz, this collaboration lead into recording 13 beautifully arranged compositions, mostly sung in Hebrew, with instrumentation [...]
links for 2009-12-18
Desktop Nexus Wallpapers
(tags: background backgrounds wallpapers wallpaper desktop)
links for 2009-12-17
Meerkat – A jQuery Plugin
Meerkat, named for its pop up like behavior, is a jQuery plugin created by myself, Jarod Taylor. It was originally created to serve a specific purpose, however, by adding additional functionality to it, I've found several uses for it.
(tags: footer meerkat jquery-plugin slide javascript css ajax webdev)
Clocking IT
ClockingIT is a free [...]
CakePHP – Security.level
I been having reports from my users that they are getting randomly logged out of my web applications. After much debugging I found that CakePHP regenerates the session on every request.
File: core.php
/**
* The level of CakePHP security. The session timeout time defined
* in ‘Session.timeout’ is multiplied according to the settings here.
* Valid values:
*
* ‘high’ Session timeout in ‘Session.timeout’ x [...]
Get special folders with SHGetKnownFolderPath
This application will print the special folders that you should be storing your applcations data in.
UAC on Windows Vista/7 will no longer alowe you to write to files in the “C:\Program Files\” with out elevation to administrator. Instead you should be writting your settings file to the “LocalAppData” folder and your output and log file [...]
Why don’t we have free phones yet?
“Re:Should be” by canajin56 (660655) on Wednesday December 16, @12:21PM (#30459990)
At least you guys have a choice of providers. Here in Canada, we almost have government-backed monopolies with even higher monthly bills.
Are you kidding? It’s not like we’re limited to the big 3 (Rogers, Telus, Bell), we have all sorts of other providers! There’s KOODO, their [...]
I never
I Never is a drinking, word game.
This is an absurdly easy game. It’s not about how much you drink, but what you can find out about your friends. This is a game you don’t just want to play with your buddies, you will want some girls in the mix and preferably people that [...]
links for 2009-12-12
Easy front-end framework
Easy is a CSS/HTML/JavaScript framework started as a personal project and then grew into something more. The idea behind it is to reduce the amount of time spent on setting up the basic master HTML template by reusing the same coding techniques.
(tags: frontend template grid easy frameworks easyframework front-end)
links for 2009-12-11
Usability Testing Toolkit: Resources, Articles, and Techniques – Noupe
Usability is paramount in creating a good website or web app. If your site isn’t user-friendly, the majority of visitors won’t come back, regardless of how good your content is. You need to do everything in your power to make sure every website you design or web [...]
CakePHP – Disable validation in controler
When upgrading an old web application to start using CakePHP but the old systems was riddled with invalid data. When the creating the CRUD system I need a way of updating this invalid data.
The following line of code will disable the validation in the controller.
$this->Story->validate = array(); // Stop valadation on the story.
Source: Cakephp Save with a table [...]
CakePHP – Search bar
This code snippet will create a search box that uses can use to search for text in the database.
The control creates a query to search certain fields of publsihed stories
View or layout:
<?php
echo $form->create(‘Stories’, array(‘url’ => array(‘action’ => ‘index’)));
echo $form->input(’search_text’, array(‘label’ => false));
echo $form->end(‘Search’);
?>
Controler:
<?php
function admin_index( )
{
$conditions = array( ‘Story.terms !=’ => ‘0′ ) ;
if( isset( $this->data['Stories']['search_text'] [...]
Indian Poker
Indian Poker is a drinking, card game.
I just played this game for the first time this weekend. It was very simple to learn and really good after a few beers. It’s a pretty silly game and if you are in the right mood it can really make you laugh.
“They speak of my drinking [...]
links for 2009-12-04
PlotKit – Javascript Chart Plotting | liquidx
PlotKit is a Chart and Graph Plotting Library for Javascript. It has support for HTML Canvas and also SVG via Adobe SVG Viewer and native browser support.
(tags: chart graph svg charting css webdev javascript visualization)
10 tips for great sounding podcasts! | Geoff Hankerson
(tags: podcasting podcasts tutorial tips)
UPS vs FedEx
I ordered some cables from this online store in the states (I live in Canada) the cost in goods was $30 for both packages.
The first time I ordered the cables I was in a rush so I used FedEx air 2 day, it cost me about $26 in shipping and arrived in two days. Total 30+21= $51 CND
The [...]
links for 2009-12-03
Tags: Database schemas
Recently, on del.icio.us mailinglist, I asked the question “Does anyone know the database schema of del.icio.us?” .
I got a few private responses so I wanted to share the knowledge with the world.
The Problem: You want to have a database schema where you can tag a bookmark (or a blog post or whatever) with [...]
links for 2009-12-02
LibriVox
LibriVox volunteers record chapters of books in the public domain and release the audio files back onto the net. Our goal is to make all public domain books available as free audio books.
(tags: audiobooks podcast ebooks reading audiobook literature books)
Cakephp – Add meta tags to views
This is how you add well formated meta tags to a cakephp views even thou the meta tags are rendered in the layout.
In the head section of your layout, add this line:
<?php echo $scripts_for_layout ?>
And in the view template you can call the meta HTML helper function to dynamticly add tags and descriptions to pages.
$html->meta(‘keywords’, [...]


