This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/b29b9ac9b43a5281 | |
seconds_to_wait_for_lock = 5 | |
begin | |
raise "Timed out while trying to acquire lock" unless connection.select_value("SELECT GET_LOCK('order_lock_for_product_#{@product.id}', #{seconds_to_wait_for_lock})") == "1" | |
# ... validate order availability ... | |
# ... create orders ... | |
rescue | |
# ... oh oh ... | |
# ... a stuck lock? ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Eric Meyer's Reset Reloaded – SASS version | |
http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, font, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
dl, dt, dd, ol, ul, li, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/path/to/rails_apps/*/log/*.log { | |
daily | |
missingok | |
rotate 30 | |
compress | |
delaycompress | |
sharedscripts | |
postrotate | |
find /path/to/rails_apps/* -name tmp -maxdepth 1 -type d -exec touch {}/restart.txt \; | |
endscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Mojo-Dojo connector */ | |
(function() { | |
if(typeof mojo == 'undefined') mojo = {}; | |
mojo.addOnUnload = dojo.addOnUnload; | |
mojo.clone = dojo.clone; | |
mojo.config = dojo.config; | |
mojo.connect = dojo.connect; | |
mojo.declare = dojo.declare; | |
mojo.destroyElement = dojo._destroyElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Creates a pronounceable random password | |
* @param string $len, optional length (default 8) | |
* @retrun string the generated password | |
*/ | |
function make_passwd($len=8) | |
{ | |
$letter=array( | |
array("b","c","d","f","g","i","l","m","n","o","p","qu","r","s","t","v","z"), | |
array("a","e","i","o","u")); | |
$pass=""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var countriesVisited = new Array(); | |
(function() { | |
var country_list = ["Afghanistan","Albania","Algeria","Andorra","Angola","Anguilla","Antigua & Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia & Herzegovina","Botswana","Brazil","British Virgin Islands","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Cape Verde","Cayman Islands","Chad","Chile","China","Colombia","Congo","Cook Islands","Costa Rica","Cote D Ivoire","Croatia","Cruise Ship","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Polynesia","French West Indies","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guam","Guatemala","Guernsey","Guinea","Guinea Bissau","Guyana","Haiti" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>This content lives on a remote server</h3> | |
<p>Hey! You did it! You fetched some remote content!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feb 19 10:42:02 Steven-Luschers-Computer kernel[0]: CoreStorageGroup::completeIORequest - error 0xe00002d9 detected for LVG "Untitled" (4429443B-1B86-420D-B309-C5556661A1CD), pv B10FEEFC-C4C2-452A-9A62-7640C9862D83, near LV byte offset = 161472323584. | |
Feb 19 10:42:02 Steven-Luschers-Computer kernel[0]: disk4: device/channel is not attached. | |
Feb 19 10:42:02 Steven-Luschers-Computer kernel[0]: CoreStorageGroup::completeIORequest - error 0xe00002d9 detected for LVG "Untitled" (4429443B-1B86-420D-B309-C5556661A1CD), pv B10FEEFC-C4C2-452A-9A62-7640C9862D83, near LV byte offset = 161473212416. | |
Feb 19 10:42:02 Steven-Luschers-Computer kernel[0]: disk4: device/channel is not attached. | |
Feb 19 10:42:02 Steven-Luschers-Computer kernel[0]: CoreStorageGroup::completeIORequest - error 0xe00002d9 detected for LVG "Untitled" (4429443B-1B86-420D-B309-C5556661A1CD), pv B10FEEFC-C4C2-452A-9A62-7640C9862D83, near LV byte offset = 161473298432. | |
Feb 19 10:42:02 Steven-Luschers-Computer kernel[0]: disk4: device/channel is not attac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie10 lt-ie9" lang="en"> <![endif]--> | |
<!--[if IE 9]> <html class="no-js lt-ie10" lang="en"> <![endif]--> | |
<!--[if gt IE 9]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tonight I Am New | |
IN MEDIAS RES | |
Guitar Tab | |
Transcribed by Steven Luscher (http://lakefieldmusic.com) | |
VERSE A | |
e|--------------------------|--------------------------|--------------------------|--------------------------| | |
B|--------------------------|--------------------------|--------------------------|--------------------------| |
OlderNewer