jquery.maskedinput jquery.metadata
VALIDATION: jquery.validate metadataRules classRules attributeRules staticRules
jquery.blockUI[http://jquery.malsup.com/block/]
#!/bin/bash | |
# vim: syntax=sh | |
. /etc/rc.conf | |
. /etc/rc.d/functions | |
daemon_name=php-cgi | |
BIND=/tmp/php-cgi.socket | |
USER=gimi |
diff --git a/gc.c b/gc.c | |
--- a/gc.c | |
+++ b/gc.c | |
@@ -77,6 +77,41 @@ void *alloca (); | |
#ifndef GC_MALLOC_LIMIT | |
#define GC_MALLOC_LIMIT 8000000 | |
#endif | |
+#define HEAP_MIN_SLOTS 10000 | |
+#define FREE_MIN 4096 | |
+ |
<?xml version="1.0"?> | |
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> | |
<cross-domain-policy> | |
<allow-access-from domain="your.domain.com" /> | |
</cross-domain-policy> |
jquery.maskedinput jquery.metadata
VALIDATION: jquery.validate metadataRules classRules attributeRules staticRules
jquery.blockUI[http://jquery.malsup.com/block/]
#!/usr/bin/env ruby | |
require 'syntax/convertors/html' | |
require 'rainbow' | |
filename = ARGV[0] | |
puts ARGV[0] | |
line_num=0 | |
tokenizer = Syntax.load "ruby" |
Specify RAILS_CACHE directly in environment.rb, like: RAILS_CACHE = ActiveSupport::Cache.lookup_store :memory_store
.
Use config.cache_store=
, like: config.cache_store = :memory_store
. In fact, it calls ActiveSupport::Cache.lookup_store
.
Another example of cache_store
usage:
config.cache_store = [:mem_cache_store, 'memhost:11211', {:namespace => 'gimi', :autofix_keys => true}]
By default, ActionController::Base.cache_store
will be set to RAILS_CACHE, but it can be changed by using ActionController::Base.cache_store=
.
About session store: ActionController::Base.session=
will set ActionController::Base.session_options
. ActionController::Base.session_store=
decides which store will be used.
<!doctype html> | |
<html lang='zh'> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- For mobile devices. --> | |
<title>Google map</title> | |
<style type="text/css"> | |
#map_canvas { width:299px;height:234px; } | |
</style> | |
<script type="text/javascript" src="http://ditu.google.cn/maps/api/js?sensor=false"></script> |
def tip(msg); puts; puts msg; puts "-"*100; end | |
# | |
# 30 Ruby 1.9 Tips, Tricks & Features: | |
# http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/ | |
# | |
tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2" | |
tip "Ruby 1.9 supports named captures in regular expressions!" |
module Rack | |
class MemoryBloat | |
def initialize(app, logger) | |
@app = app | |
@logger = logger | |
end | |
def call(env) | |
memory_usage_before = memory_usage | |
result = @app.call(env) |