After the upgrade I had a ton of issues getting my rails environment back online which I could have avoided IF I just would have uninstalled all my ports. The problem was that I had both Ruby 1.8.6 and 1.8.7 installed as ports and that was conflicting to the new 1.8.7 that was installed from [...]
Archive for the ‘Uncategorized’ Category
4 Aug
Getting paperclip to work with passenger not running under root
After moving from Thin to passenger to save memory on one of my VM (with only 256mb every byte counts… ) I could not get paperclip to re-size images. This was the error I got: [paperclip] An error was received while processing: # [paperclip] Processing medium # in the thumbnail processor. [paperclip] An error was [...]
13 Jul
where does the php.ini file go?
The Problem I needed to add more memory to php but by default php installed from source (configure && make && make install) does NOT install the php.ini file. So where is waldo? The Fix Here is a code snip that shows what configuration file IS loaded when php is executed: [root@mybox php-5.2.10]# php -r [...]
5 Jun
Fancy Mac (OS-x) Prompt
The Problem Boring promt The Fix – Open a Terminal window. – Edit your .profile or create a file like so vi ~/.profile Add the following to the file: alias vi=’vim’ 3 4 alias ol=’ssh root@192.168.10.206′ 5 #alias cade=’ssh 74.86.232.5′ 6 alias cade=’ssh 74.63.12.158′ 7 alias oce=’ssh root@74.208.45.99′ 8 9 # colors 10 export CLICOLOR=1 [...]
3 Jun
check_apache.pl and perl module issue
The problem [nagios@den2lweb002 libexec]$ ./check_apache.pl Can’t locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./check_apache.pl line 32. BEGIN failed–compilation aborted at ./check_apache.pl line 32. [nagios@myserver libexec]$ ./check_apache.pl -H localhost Can’t locate LWP/UserAgent.pm in @INC (@INC [...]
28 Apr
Eclipse MemoryAnalyzer Exit Code=-1
I was looking for a nice tool to read java heap dumps and found that regular JHat was not a great way to go with the 1.6GiB dump files I have. A friend pointed me to a Eclipse project Memory Analyzer (MAT) http://www.eclipse.org/mat/ which is the old SAP analyzer… Starting it up I got the [...]
4 Apr
uninitialized constant CGI::Session (NameError)
After upgrading one project to Rails 2.3.2 I got an error on startup uninitialized constant CGI::Session (NameError) Looking into the source I found that I was loading this class CGI::Session::ActiveRecordStore::Session After a little hunting on Google I was directed to the Rails release notes and found this section: script/server has been switched to use Rack, [...]
30 Jan
Monitoring thins with monit…
Short story: Download and install the latest code from http://mmonit.org/monit/download/ (configure, make, make install.. done! ) edit /etc/monitrc # ========================================================# Monit global settings:# ========================================================set daemon 60set logfile syslogset mailserver localhostset mail-format { from: monit@cfandersen.com }# ========================================================# Monit http server settings:# ========================================================set httpd port 2812allow localhost INCLUDE “/etc/monit/thins.monitrc” /etc/monit/thins.monitrc check process thin-8000 with pidfile /app/shared/pids/thin.8000.pid group [...]
18 Nov
Mac(OSX) Jruby and Rails 2.2 — Part 2
Running webrick isn’t doing what we want… How about Tomcat? Or maybe Glassfish? Well I have heard that glassfish is VERY EASY, lets checkit out… Step 1:~$ sudo jruby -S gem install glassfishSuccessfully installed glassfish-0.9.0-universal-java1 gem installedInstalling ri documentation for glassfish-0.9.0-universal-java…Installing RDoc documentation for glassfish-0.9.0-universal-java… DONE… no I’m serious… THAT WAS IT!!! Lets start the [...]
17 Nov
Mac(OSX) Jruby and Rails 2.2
Not Sure why but I wanted to try JRuby and Rails(2.2) new threads… These are the steps I used to get a application on my mac running with Rails 2.2 and JRuby 1.1.3(I used ports to install JRuby thats why 1.1.3). Here are the steps: – First Install JRuby .. # sudo port install jruby [...]
Recent Comments