May 2012
17 posts
Looking into better local storage
Looking for some basic persistant local browser storage for a simple mobile web based game (Deal Breakers).
Two Resources…
http://coding.smashingmagazine.com/2010/10/11/local-storage-and-how-to-use-it/
http://paperkilledrock.com/2010/05/html5-localstorage-part-one/
Two libraries for storage abstraction…
http://www.jstorage.info/
...
Some agencies are such a laugh!
Just lobbed a quick softball job to an outsourcing firm that charges by the half-hour for atomic tasks. It should’ve been 2-3 hours.. just a little test job ($150) and they sent back and estimate for $800.
That’s a no.
Genertic Git Users :(
Looks like setting up genertic Git users for generic remotes (for production, etc) is actually harder than it might seem. https://github.com/tizzo/Project-Git-Auth
Bummer.
Extra fields are lame, and occasionally useful
Been using Drupal’s new extra fields ability in D7 to add on programmatic fields. This seemed awesome at first; very little work to attach a field with NO database involvement. However, it turns out…
They’re not exposed to views.
Their display configurations get saved to the general system variable table.
But display settings don’t actually save via the UI.
The only way...
2 tags
cinemagr.am →
(Taken with http://cinemagr.am)
Everything is Mobile Now, are CMSs Dead?
I’ve felt some pressure in the last few years to get up-to-speed regarding “mobile.” I’m guessing if you’re a nerd you’ve felt that too, or you already have a job doing that.
Mobile stuff is actually kind of a time warp because suddenly you have to think about meager performance again and more limited layouts. It’s like 1999 again, but on the go.
As I...
Gorce, 3D code repository visualization
https://code.google.com/p/gource/
ZOMGZ!
Drupal Design Patterns: Creating your own hooks →
Cheat sheet for inter-module love.
2 tags
cinemagr.am →
(Taken with http://cinemagr.am)
"git add -N" Made My Day (--intent-to-add) →
Perfect for creating a patch that will include new files.
Swap display formatters for RSS (absolute links)...
Ever need images to render as absolute links when RSS feeds in Drupal views? Of course you have. In Drupal 6 + Views2 + contrib CCK you are forced into node display mode which leaves you pretty limited. Additionally, any image display widgets only generate relative links. So you either need to create an alternate display widget or do this…
#1) Tell this field to follow another display...
"Safe" CSS Hacks... as a concept →
Alter items displayed on pages after the first...
NOTE: These instructions are from a Drupal 6 + Views 2 setup, but I’m sure the technique is transferable to D7 and I may update this if/when I do that same thing on one of my D7 sites.
Here’s a super quick technique for showing more items per page once you’ve entered pager mode. This is particularly useful when you use an block view attachment to show a first set of bigger...
revert-a-faulty-merge ... Thanks Linus! →
Feel like this is the most official primary source on dealing with reverting bad changes.
Right from the horses mouth.
Linus Torvalds
Take the Code Sniffing even farther →
My new Content Code (asset loader module) →
April 2012
3 posts
Create time-based interactive media →
Move core block settings to a new theme (Drupal) →
This mySQL will help you move core block settings across from one theme to another. It also include two region name replaces. http://drupalbin.com/21207
# Reset blocks to remove standard placements.
UPDATE block SET status = 0, region = -1 WHERE theme = 'OLD-THEME';
# Pull data across.
UPDATE block AS export_blocks
INNER JOIN block AS import_blocks
ON import_blocks.module =...
March 2012
6 posts
Setup Drupal Coding Standards Sniffer
Nothing quite as lovely as knowing your code is squeaky clean when it’s going out for public consumption. Well there is… when you can automate the nit picky bits. Here’s how to setup the Drupal coding standards sniffer tool within your IDE or via command line (online version here, only for live git repos).
First of all PHP Code Sniffer is a PEAR extension, so you’ll need...
Pick a domain name
Picking a domain name is hard. Here are a few great sites (two new resources for me from @RobOusbey).
Combine words, check availability, and make use of alternate TLDs…
leandomainsearch.com
bustaname.com
domai.nr
Find new words you hadn’t thought of yet…
OneLook Reverse Dictionary (my secret weapon)
Simple Touch Enabled Web Form App
I recently needed to create a simple, few-slide, info capture, mobile web-form survey, “iPad app” via the web. You can create a pretty slick app-like experience, certainly not quite native feeling, but there are lots of little pieces and gotchas. I’ve collected some of the key tips here.
The final result is this: datageek
First things first, make it so adding the webpage to the...
jQueryUIswipable, for coding it yourself →
Recently started a mobile web project with JQtouch, but it ended up a big hassle since I didn’t need to conform to their UI standards… and didn’t have time to create a theme, etc.
This library is a great, light-weight alternative if you just need to add swipe detection to jQuery + jQueryUI.
Fix broken iPad form label clicks →
Dumb error
Simple solution
Extra simple with jQuery
Fields or Taxonomy
Little philosophy of organizing systems…
#1) Use taxonomy to classify content.
#2) Use taxonomy to manage permissions.
#3) Use fields for everything else.
Bottom line: You don’t want to organize just by virtue of data matching. (At least not when you’re designing a schema.)
The post I was reading, while trying to make a...
February 2012
8 posts
Colossal | An art and design blog. →
Excellent works.
Setting up PHP & MySQL on OS X 10.7 Lion – Rob... →
Addendum for Code Sniffer
http://blog.8bitplateau.net/drupa-code-sniffer-komodo/
JavaScriptMVC →
Will be spending some time with this soon.
Paper.js — Chain →
OMG This interactive javascript drawing framework is responsive!!! and amazing.
Jeditable - Edit In Place Plugin For jQuery →
Woohoo!
Taxonomy Content Coverage (in Drupal)
I’m looking for an admin solution to determine content coverage by multiple taxonomies. To keep it simple I’d like to create a matrix of two vocabs with a count of content nodes tagged with those two terms, and of course choose the node types.
This is super useful for a content team to make sure all bases are covered or at least understand why/where content holes are.
Can’t...
JStween →
Great movement for Space Cats.
http://jstween.sourceforge.net/moveSquare.html
1 tag
The word "module" (Drupal)
BTW: nerd topic.
It recently come to light in my day-job that the word “module” within the Drupal lexicon is actually somewhat misleading and can cause bad policy. This is mostly likely due to assumptions based on other systems and especially from people not family with open-source or rapid web application iteration.
When a sys-admin is supporting and/or managing a number of systems...
January 2012
5 posts
Wat — Destroy All Software Talks →
this isn't happiness.: William Safire's Rules for... →
nevver:
Remember to never split an infinitive.
The passive voice should never be used.
Do not put statements in the negative form.
Verbs have to agree with their subjects.
Proofread carefully to see if you words out.
If you reread your work, you can find on rereading a great deal of…
Board Game, Lessons Learned, Draft Three
Played the Space Cat board game for reals for the first time: start to finish. Rules were actually read as printed out, we used actual pieces and drew actual cards. Few things emerged:
It was too easy to move into trading the expensive units, and the cheap units were almost more of an annoyance than a resource. SOLUTION: Start with less (batteries), so it takes a little more effort to trade up.
...
Quick timezone format converter (Drupal to WC3)
// Convert timezone from second in Drupal to WC3 standard
function timezoneConvert($val, $toSeconds = false) {
if(!$toSeconds) {
// Starts like: "-28800" and becomes: "-08:00"
$sec = substr($val, 1);
$hours = intval(intval($sec) / 3600);
$minutes = intval(($sec / 60) % 60);
$w3cTZ = substr($val, 0, 1) .
str_pad($hours, 2, "0", STR_PAD_LEFT) .":".
...
December 2011
3 posts
Use dabblet.com to mess around with CSS. →
It’s the visual version of JSfiddle.net
HockeyApp - Home →
Super rad looking service for distributing app betas and collecting crash reports.
@HockeyApp
icotrip – Each day a new (ico)trip →
November 2011
12 posts
Prefixr →
Quickly add the cross browser CSS junk we’re still dealing with.
The Spotify iPhone app in CSS3 →
POC just to show it can be done makes me real happy sometimes.
American Censorship - Join the fight to stop SOPA →
Mobile Frameworks Comparison Chart →
Use click events right... rather left (JS) →
It’s super easy to take over click events with tools like jQuery and attach whatever you want to links, be it an AJAX event or making non-links clickable. However, you often end up changing the norms of click behavior… which is annoying, especially when someone wants to open the link you’ve made in a new tab.
Ginger snaps, fuck snickerdoodles
1 1/2 c. margarine (works better than butter)
2 c. sugar
2 eggs (stir up well first)
1/2 c. light molasses
- - - - - - -
4 c. flour
2 tsp. baking SODA
2 tsp. cinnamon
2 tsp. cloves
2 tsp. ginger
- - - - - - -
Cream margarine and sugar together.
Add and stir in eggs well.
Add molasses and stir in.
Mix up dry ingredients and add to creamy mixture.
Preheat the oven to 350...
Plays ~ reorb.it →
Great looking follows!
Intervue →
“A quick and easy tool for publishers who are looking to gather short video responses online from anyone with a webcam.”
Nice.