Skip to content

Instantly share code, notes, and snippets.

/* This is a small patch to make callbacks work - I'll con Mr Speaker
into getting some proper scm on this sucker soon */
/*
Do 1UP style notification
version 0.1
As inspired by Jeremy Keith post: http://adactio.com/journal/1626/
*/
(function($) {
helpers do
def mobile_request?
mobile_user_agent_patterns.any? {|r| request.env['HTTP_USER_AGENT'] =~ r}
end
def mobile_user_agent_patterns
[
/AppleWebKit.*Mobile/,
/Android.*AppleWebKit/
]
end
$ /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Feb 14 14:08:08 2010] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun
./configure
Check for program g++ or c++ : /usr/bin/g++
Check for program cpp : /usr/bin/cpp
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Check for program gcc or cc : /usr/bin/gcc
Check for program ar : /usr/bin/ar
Check for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
example.html:22comment: Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948)
elemental.js:56undefined undefined ">"
37elemental.js:56undefined undefined undefined
example.html:16text: undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
elemental.js:56undefined undefined ">"
135elemental.js:56undefined undefined undefined
example.html:16text: undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedund

#How I use Git-SVN

I've just realised that all my git and git-svn posts are on the Atlassian Extranet and thus lost to me. So here's a quick re-write of one of them, for Mike Cravey. Please feel free to fork and add your own recommendations or suggestions:

I've never used TortoiseGit and I barely remember Windows CLI (do they still call it DOS?) commands, but you know OSX shizzlit so I'll just write it as I know it and you can translate ;)

Checkout

I like to clone the whole repo, branches, tags and all. If you're in a rush, do this anyway, then check out just the branch you need right now somewhere else. I find it saves heaps of time and hassle later if you're set up right.

# to explain
# ActionView lets me write
# pluralize(something.length, "Thing") =>
# "2 Things"
#
# But in this case, I want to separate the number from the text in HTML (to put an icon in between).
# Since I'm using CSS sprites, the easiest way is to wrap the text in a span with a class on it to get the correct image
# Thus:
wget --secure-protocol=TLSv1 --no-check-certificate --user=username@yourdomain.com --password=passwordgoeshere https://mail.google.com/a/yourdomain.com/feed/atom
@lachlanhardy
lachlanhardy / margherita.md
Created February 12, 2019 04:58
Pizza recipes

Margherita pizza

Ingredients

  1. 2-3 tablespoons of tomato base
  2. 2 handfuls of finely grated pecorino romano (or parmigiano-reggiano)
  3. A handful of roughly grated (or finely sliced) semi-dry mozzarella
  4. Some extra virgin olive oil
  5. A pinch of sea salt
  6. 2-3 sprigs of fresh basil