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
ps aux | grep openerp | |
openerp 9558 64.0 0.3 248552 47208 ? Sl 13:04 0:00 python /opt/openerp-server/openerp-server -c /etc/openerp-server.conf | |
root 9567 0.0 0.0 6160 684 pts/1 S+ 13:04 0:00 grep --color=auto openerp |
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
ls -l /proc/9991/exe | |
lrwxrwxrwx 1 openerp openerp 0 Jul 31 13:19 /proc/9991/exe -> /home/openerp/virtualenv/erp_6_1_1/bin/python |
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
development: | |
version: '0.1.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
## application.rb | |
APP_CONFIG = YAML.load(ERB.new(File.read("#{Rails.root}/config/config.yml")).result)[Rails.env] | |
## a view: | |
<div id="footer"><%= APP_CONFIG['version'] %></div> | |
# error | |
Uninitialized constant ActionView::CompiledTemplates::APP_CONFIG |
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
stat /var/log/dummy | |
File: `/var/log/dummy' | |
Size: 4096 Blocks: 8 IO Block: 4096 directory | |
Device: 801h/2049d Inode: 3550687 Links: 2 | |
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 1002/dummy) | |
Access: 2012-08-01 18:32:25.842275352 +0200 | |
Modify: 2012-08-01 18:30:28.572368469 +0200 | |
Change: 2012-08-01 18:43:53.643157791 +0200 |
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
## initializer file | |
logfile = File.open(APP_CONFIG['log_path'] + '/phone.log', 'a') | |
phone_logger = PhoneLogger.new(logfile) |
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
logfile = File.open(APP_CONFIG['log_path'] + '/phone.log', 'a') | |
phone_logger = PhoneLogger.new(logfile) |
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
no decode delegate for this image format `images/I0K3aIqeVuk_chRYWeHHpSQGeMM/0' @ error/constitute.c/ReadImage/533 |
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
agent.page.search("//link[@rel='shortcut icon']") | |
=> [#<Nokogiri::XML::Element:0x11a8028 name="link" attributes=[#<Nokogiri::XML::Attr:0x11a7f88 name="rel" value="shortcut icon">, #<Nokogiri::XML::Attr:0x11a7f74 name="href" value="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">]>] |
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
/usr/local/lib/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError) | |
from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in `activate' | |
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1082:in `gem' | |
from /usr/bin/rails:18 |