> /var/adm/sylog
fuser /var/adm/syslog
ps -p `fuser /var/adm/syslog`
tumblr dot com
official daine visual archive
TMBGareOK. The Official They Might Be Giants tumblr

#extradirty
The Stonewall Inn

bliss lane

blake kathryn
Color Me Curious
NASA
No title available
2025 on Tumblr: Trends That Defined the Year
No title available
Show & Tell
$LAYYYTER
let's talk about Bridgerton tea, my ask is open

titsay

❣ Chile in a Photography ❣

Game Changer & Make Some Noise
Xuebing Du
The Bowery Presents
seen from United States

seen from United Kingdom

seen from T1
seen from United States

seen from Maldives

seen from Brazil
seen from Australia
seen from Indonesia

seen from United States

seen from United States

seen from United States
seen from Costa Rica

seen from United States

seen from Japan

seen from Türkiye
seen from Brazil

seen from Brazil
seen from United States

seen from Ecuador

seen from Indonesia
@ror32-blog-blog
> /var/adm/sylog
fuser /var/adm/syslog
ps -p `fuser /var/adm/syslog`
Rails Blog & Conference
* blog
Crowd Interactive Tech Blog : http://blog.crowdint.com/archive
http://blog.bemga.com/?tag=ruby-on-rails
* conference
MAGMA RAILS : http://www.magmarails.com/
RailsConf2012 : http://www.railsconf2012.com/
http://www.confreaks.com/events/railsconf2012 presentations available
http://lanyrd.com/2012/railsconf/
Gem Server
gem server
Run your own gem server
http://guides.rubygems.org/run-your-own-gem-server/
Rails Logger
The default Rails log level is
info in production mode and
debug in development and test mode.
http://guides.rubyonrails.org/debugging_rails_applications.html#the-logger
http://engineering.freeagent.com/2011/10/12/understanding-the-rails-logger/
http://railscasts.com/episodes/56-the-logger-revised
[Tip]
http://syntaxionist.rogerhub.com/rotate-rails-logs-with-logrotate.html
http://zogovic.com/post/21138929607/running-time-in-rails-logs
https://github.com/wvanbergen/request-log-analyzer/
http://cbpowell.wordpress.com/2012/04/05/beautiful-logging-for-ruby-on-rails-3-2/
http://jasonseifer.com/2009/08/10/using-the-rails-logger-outside-of-models-and-controllers
http://mirakui.hatenablog.com/entry/2012/02/19/how-to-flush-rails-logger-if-unicorn-timeout
[Tip2]
def index
@articles = Article.all
logger.debug "Articles Count: #{Article.count}"
end
def index
@articles = Article.all
logger.debug { "Articles Count: #{Article.count}" }
end
Rails Custom Configuration
https://github.com/binarylogic/settingslogic
https://github.com/markbates/configatron
https://github.com/raavin/configatron-rails
http://stackoverflow.com/questions/592554/best-way-to-create-custom-config-options-for-my-rails-app
Bulk inserting data using ActiveRecord.
https://github.com/zdennis/activerecord-import
Run a single migration! @Rails
http://stackoverflow.com/questions/753919/run-a-single-migration-file
rake db:migrate:status
rake db:migrate:down VERSION=20090408054532
rake db:migrate:up VERSION=20090408054532
rails console
>> require "db/migrate/20090408054532_add_foos.rb"
>> AddFoos.up
script/runner 'require("db/migrate/20090408054532_add_foos.rb").first.constantize.up'
MySQL Data and Time Functions
http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html
SELECT NOW()
SELECT UTC_TIMESTAMP()
MySQL tips (MyISAM, InnoDB)
* Concurrent Inserts (MyISAM)
http://dev.mysql.com/doc/refman/5.5/en/concurrent-inserts.html
* INSERT DELAYED Syntax (MyISAM)
http://dev.mysql.com/doc/refman/5.5/en/insert-delayed.html
* Bulk Data Loading for InnoDB Tables
http://dev.mysql.com/doc/refman/5.5/en/optimizing-innodb-bulk-data-loading.html
* 13.2.6. LOAD DATA INFILE Syntax
http://dev.mysql.com/doc/refman/5.5/en/load-data.html
* 8.4.3.2. Disadvantages of Creating Many Tables in the Same Database
http://dev.mysql.com/doc/refman/5.5/en/creating-many-tables.html
* 13.2.5.3. INSERT ... ON DUPLICATE KEY UPDATE Syntax
http://dev.mysql.com/doc/refman/5.5/en/insert-on-duplicate.html
* Avoid Query Cache
SELECT SQL_NO_CACHE ...
* Packet too large
http://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html
MySQL Edition
MySQL Community Edition
http://www.mysql.com/products/
http://www.mysql.com/products/community/
MySQL query beautifier!
iPhone System Versioning Preprocessor Macros
/* * System Versioning Preprocessor Macros */ #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) #define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) #define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) #define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) /* * Usage */ if (SYSTEM_VERSION_LESS_THAN(@"4.0")) { ... } if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"3.1.1")) { ... }
http://stackoverflow.com/questions/3339722/check-iphone-ios-version
__IPHONE_OS_VERSION_MIN_REQUIRED = 30200.
node.js useful links
http://nodejs.org/api/
http://howtonode.org/
https://no.de/
https://github.com/nodejitsu/handbook
http://search.npmjs.org/
http://nodeup.com/
http://blog.nodejitsu.com/npm-cheatsheet
http://www.scoop.it/t/nodejs-code
http://openmymind.net/redis.pdf
CoffeeScript useful links
http://coffeescript.org/
http://ontwik.com/javascript/jeremy-ashkenas-coffeescript-for-the-well-rounded-rubyist/
http://arcturo.github.com/library/coffeescript/
http://autotelicum.github.com/Smooth-CoffeeScript/
http://railscasts.com/episodes/267-coffeescript-basics
http://peepcode.com/products/coffeescript
http://pragprog.com/book/tbcoffee/coffeescript
http://my.safaribooksonline.com/book/programming/coffeescript/9780132946155
http://coffeescriptcookbook.com/chapters/strings/capitalizing-words
https://github.com/languages/coffeescript
Rails Timezone
**
http://www.elabs.se/blog/36-working-with-time-zones-in-ruby-on-rails
* What time is it or handling timezones in Rails
http://databasically.com/2010/10/22/what-time-is-it-or-handling-timezones-in-rails/
config/application.rb
config.time_zone = 'Seoul'
Time.zone = current_user.time_zone || MyAppName::Application.config.time_zone]
http://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/time_zone_select
<%= time_zone_select( "user", 'time_zone', ActiveSupport::TimeZone.us_zones, :default => "Pacific Time (US & Canada)") %>
<%= time_zone_select( "user", 'time_zone') %>
<%= time_zone_select( "user", 'time_zone', /Seoul/) %>
<%= time_zone_select( "user", "time_zone", nil, :default => "Seoul" ) %>
* http://railscasts.com/episodes/106-time-zones-in-rails-2-1
add_column :users, :time_zone, :string
1.9.2p318 :002 > MyData.first.updated_at
=> Thu, 14 Jun 2012 15:46:07 KST +09:00
1.9.2p318 :003 > MyData.first.updated_at_before_type_cast
=> "2012-06-14 06:46:07.970776"
CoffeeScript & jQuery example
From CodeSchool
https://gist.github.com/2941940
https://gist.github.com/2941984