`
nathan.wu
  • 浏览: 48711 次
  • 性别: Icon_minigender_1
  • 来自: 南京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
1.apt-get install shorewall 2. cp /usr/share/doc/shorewall/default-config/policy /etc/shorewall/policy cp /usr/share/doc/shorewall/default-config/rules /etc/shorewall/rules cp /usr/share/doc/shorewall/default-config/interfaces /etc/shorewall/interfaces cp /usr/share/doc/shorewall/default-config/zone ...
ok first how can we get load average info from linux use uptime cmd also you can get that info by top cmd the output will be: 19:11:40 up 6 days,  3:04,  2 users,  load average: 5.55, 3.17, 2.34 the load average have three numbers each numbers mean 1min,5mins,15mins and the definition of load averag ...
today I decide setup soft raid with my new 1u box the hardware config is: amd 4400 cpu 64bit harddisk 2 * sata 250g 8gb ram finally I decide to setup ubuntu 7.10 on my box though gentoo maybe good for performance the reason that I didn't choose gentoo for my production env cos 1. maybe need too much ...
rails action cache can help performance a lot but there is a drawback with action cache, it just can output text/html header content-type, eg: can not output text/xml header content-type for your blog rss feed. I think there may need a hacker with reverse proxy server like nginx. the config will l ...
centos 5 x86 default do not support 4gb memory there is a way to solve that try to install kernel with PAE support cmd: yum install kernel-PAE kernel-PAE-devel changing one line in /etc/grub.conf then reboot your server
rails performance optimization 1.Algorithmic improvements always beat code tweaks 2.As a general rule, maintainability beats performance 3.Only optimize what matters 4.Measure twice, cut once I think second one may conflict link_to helper methods somebody said replace link_to with real <a href=&q ...
gem install thin new rails app server thin thin is better than mongrel, cos it use event-machine with mongrel c parse engine also you can use thin with nginx
http://www.51cnnet.net/ebook/3-ajax-on-rails http://www.51cnnet.net/ebook/8-rails-recipes http://www.51cnnet.net/ebook/11-the-rails-way http://www.51cnnet.net/ebook/38-rubyisms-in-rails http://www.51cnnet.net/ebook/88-ruby-for-rails http://www.51cnnet.net/ebook/16-rails-solutions-ruby-on-rails-made-e ...
How to truncate a log file using Linux Have you ever wanted to truncate a log file that was being written to by a running process without stopping the process to do so? If so then all you need is the following to clear out the active log file: cat /dev/null > some_log_file.log
CFLAGS="-O3 -mpentiumpro -fomit-frame-pointer -pipe" CXX=gcc CXXFLAGS="-O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer -pipe" ./configure --prefix=/home/mysql --enable-assembler --with-mysqld-ldflags=-all-static --with-charset=utf8 --with-colla ...
cd your [rails app dir] if your system is win ruby script\plugin install svn://errtheblog.com/svn/plugins/classic_pagination i have problem with classic_pagination c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependenci es.rb:266:in `load_missing_constant': uninitialized co ...
one day you feel that your server slow down. ping timeout occasionally and users have report that they encountered virus when they visit your site. how to detect arp spoofing on your server? and how to solve arp spoofing problem? you need install arpwatch use yum or apt-get then use cmd: arpwatch - ...
better late then never hehe a lot of stuff to learn and read
that's great!! hehe
sudo apt-get install vim-ruby cp /usr/share/vim/vim70/vimrc_example.vim ~/.vimrc and you need set your term=xterm colorful can not work with vt100 enjoy it
Global site tag (gtag.js) - Google Analytics