September 2010
3 posts
* /dev/null is not a character device!
do this shit:
sudo rm /dev/null
sudo mknod /dev/null c 1 3
sudo chmod 666 /dev/null
Update sqlite3
$ curl -O http://www.sqlite.org/sqlite-3.6.22.tar.gz
$ tar xzf sqlite-3.6.22.tar.gz
$ cd sqlite-3.6.22
$ ./configure —prefix=/usr/local
$ make
$ sudo make install
list all gem no versions
sudo gem list —no-versions
August 2010
8 posts
http://www.microsoftstartupzone.com/v2/Blogs/gettingstarted/Lists/Posts/Post.aspx?ID=117&ID=117
Steve is an old friend and keeps this great bibliography of great books for startups. It grows over time. He uses it in his classes at Berkeley and Columbia on entrepreneurship. He graciously provided them to me in unlocked format to share with you. Please share your own list of favorites and...
DM Sanitizer
http://github.com/pat/dm-sanitizer/
http://github.com/snusnu/dm-is-localizable
read-later
http://nickhalstead.com/what-motivates-programmers
read-later
http://scripting.com/stories/2010/08/04/googleVsIphone.html
varnish no cache for authentication
#no cache for authenticationg
if (req.http.Authenticate || req.http.Authorization) {
pass;
}
Verisign SSL certificate in Nginx
#check intermediate certificate
openssl verify my_interm_certificate_ssl.crt
» my_interm_certificate_ssl.crt: OK
#check verisign certificate
openssl verify -CAfile my_interm_certificate_ssl.crt my_certificate_ssl.crt
» my_certificate_ssl.crt: OK
#http://wiki.nginx.org/NginxHttpSslModule
#using a single file for Nginx SSL configuration (merging them together)
...
read-later
Happy Customers Through An Improved Checkout - http://bit.ly/aL1AMn
July 2010
20 posts
Helicopter
http://www.amazon.com/dp/8499000606/?tag=codinghorror-20
IVA localização:
http://info.portaldasfinancas.gov.pt/pt/informacao_fiscal/codigos_tributarios/civa_rep/iva6.htm
Artigo 6 > Alinea a)
http://info.portaldasfinancas.gov.pt/pt/informacao_fiscal/legislacao/instrucoes_administrativas/oficios_circulados_IVA.htm
3113/20/oct/2009
3112/20/Oct/2009
3115
Nginx password protection
http://jorge.fbarr.net/2009/08/28/password-protecting-folders-with-nginx/
read-later
http://www.theregister.co.uk/2010/07/22/nokia_manifesto_risku/page4.html
http://wiki.shopify.com/Tutorial_to_convert_existing_product_to_multiple_options
http://blog.shopify.com/2009/4/21/multiple-options-for-products-released
Product variants
http://wiki.shopify.com/Tutorial_to_convert_existing_product_to_multiple_options
Ruby encoding:
usually, you do the following: 1. read external data, 2. force encoding to the assumed external encoding, (2.5 check validity, but that has a speed cost), 3. use #encode to convert it to internal encoding
Install Ruby 1.9.1 on Ubuntu EC2
#Installing Ruby on EC2
#INSTALLING RUBY 1.9.1
apt-get uninstall ruby
curl -O http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p378.tar.gz
tar -zxvf ruby-1.9.1-p378.tar.gz
./configure —prefix=/usr/local
sudo make
sudo make install
» restart bash session (update enviroment).
$which ruby ( => /usr/local/bin/ruby )
??sudo gem update —system??
??sudo gem...
Install Ruby 1.9.1 on Ubuntu EC2
#Installing Ruby on EC2
#INSTALLING RUBY 1.9.1
apt-get uninstall ruby
curl -O http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p378.tar.gz
tar -zxvf ruby-1.9.1-p378.tar.gz
./configure —prefix=/usr/local
sudo make
sudo make install
» restart bash session (update enviroment).
$which ruby ( => /usr/local/bin/ruby )
??sudo gem update —system??
??sudo gem...
#later
http://mixergy.com/tobias-lutke-shopify-interview/
MysqlDump with compression
mysqldump -u root -pSomePass some_db | gzip -9 > some_output_file.sql
#later
http://blog.shopify.com/2010/7/8/using-social-media-with-your-store-2
How to move an ec2 image to a different region
http://www.dotanmazor.com/index.php?option=com_content&view=article&id=96:ec2-ami-move&catid=16:2008-11-14-08-43-34&Itemid=48
#later
http://www.vimeo.com/8569187
SQLite truncate table:
$ sqlite3 name_of_your_db.db
» delete from name_of_your_table;
This has the same effect as tuncating a table.
Nice to read.. bounced by accident.
ruby and google analytics
http://www.artweb-design.de/projects/ruby-on-rails-plugin-google-analytics
Icons, icon
http://www.iconshock.com/professional-icons.php
http://www.theamericanscholar.org/solitude-and-leadership/
#read-later
June 2010
28 posts
RVM guide Ruby.
Multiple Ruby versions
http://openhood.com/ruby/sinatra/2010/03/01/ruby-1.9.2-and-sinatra-1.0a/
Calendário Fiscal Portugal 2010
http://info.portaldasfinancas.gov.pt/pt/apoio_contribuinte/calendario_fiscal/
read-later:
http://www.fourhourworkweek.com/blog/2010/06/28/mba/#
Riby Liquid Colleciton Pagination
http://wiki.shopify.com/Paginate
Ruby Crash Course. Fuck I was needing this one!
http://www.atrus.org/presentations/ruby_crash/
Padirno Documentation
http://www.padrinorb.com/api/index.html
#read-later
http://www.youtube.com/watch?v=A3oIiH7BLmg&feature=youtube_gdata
Ruby QuickRef:
http://www.zenspider.com/Languages/Ruby/QuickRef.html
More on SSL / Nginx
http://nginx.groups.wuyasea.com/articles/how-to-setup-godaddy-ssl-certificate-on-nginx/2
SSL Certificates on Nginx Server:
http://wiki.nginx.org/NginxHttpSslModule
CREATE USER ‘tiago_user’@’%’ IDENTIFIED BY ‘xxx’;
GRANT ALL PRIVILEGES ON tiago_db.* TO ‘tiago_user’@’%’ WITH GRANT OPTION;
Wordpress migration:
UPDATE wp_posts SET post_content = REPLACE(post_content,
‘oldwebsite.com’, ‘newwebsite.com’);
UPDATE wp_posts SET guid = REPLACE(guid,
‘oldwebsite.com’, ‘newwebsite.com’);
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,
‘oldwebsite.com‘, ‘newwebsite.com’);
UPDATE wp_options SET option_value = REPLACE(option_value,
‘oldwebsite.com’, ‘newwebsite.com’);
UPDATE...
#read-later
Steve : Big Brother
http://opinionator.blogs.nytimes.com/2010/06/01/is-steve-jobs-big-brother/
Bring Ruby 1.9.2 to the mix and forget latin encoding problems
http://openhood.com/ruby/sinatra/2010/03/01/ruby-1.9.2-and-sinatra-1.0a/
Rail custom localization:
http://www.artweb-design.de/2009/7/19/experimental-extensions-in-i18n-pluralization-fallbacks-gettext-cache-and-chain
Sinatra Book:
http://sinatra-book.gittr.com/#
SEO
http://www.seomoz.org/blog/whiteboard-friday-get-indexed-faster-with-richard-baxter?utm_source=twitterfeed&utm_medium=twitter&utm_campaign=Feed%3A+seomoz+%28SEOmoz+Daily+Blog%29
Making Freemium work
http://dbarradas.tumblr.com/post/690529738/google-i-o-2010-making-freemium-work
All Ruby i18n stuff:
http://rails-i18n.org/wiki
Service:
http://99translations.com/