Some ramblings and write-ups about tech, music, travelling and other topics.
By using hash and the History jQuery plugin, you can navigate back and forth AJAX loaded contents. TKWeb is now partially AJAX-history-navigatable Source
perl -MCPAN -e shell
install Term::ReadKey exit perl -MCPAN -e shellinstall Term::ReadKeyexit
For a while now, I've been getting 403 on the SVN repo parent path http://tak.atso-net.jp/svn/. I finally decided to tackle this problem. After a bit of digging around, I've found this thread on the svn forum:http://www.svnforum.org/2017/viewtopic. ... 0c5af7d33. I've commented out the
AuthzSVNAccessFile ..., and changed
<Location /svn> to
<Location /svn/>, and now repository listing is back!
I've been trying to get Redmine running on my NAS drive for a while now and I've been getting weird Ruby/Rake/Rails errors (mostly related to version compatibility). I'm not familiar with any of this Ruby stuff at all so I haven't had enough time to solve these problems. But here is what I've done so far.
svn co http://redmine.rubyforge.org/svn/trunk redmineand followed http://www.redmine.org/wiki/redmine/RedmineInstall Then I got some errors related to not being able to find test/unit/error or something.http://newsgroups.derkeiler.com/Archive ... 02366.html So I've cleaned up gems using
gem clean. Since I'm using the latest trunk, I figured I should use Rails 2.3.4. But this version of rails is apparently incompatible with RubyGems. So I did a
gem update --systemto get the latest RubyGems. But now gem cannot find any rake install. So I installed rails 2.3.4 again. Waiting for the install to finish (taking a long time, being a NAS and all) Progress! I've installed the following gems
gem install mongrel...fail. Can't remember what the error was, but something to do with mkmf.rb... So I tried passenger, according tohttp://www.modrails.com/install.html :
gem install passenger...fail, again. But this time the error message was more helpful. It complained about the location of gcc. So I made a symbolic link to /opt/bin/gcc as
gem install passenger... success! And now for the apache module itself:
# passenger-install-apache2-module...fail. Something to do with missing apr-1-config and apu-1-config So I downloaded apache2 source, compiled srclib/ and made some symbolic links to the apr-1-config and apu-1-config I've just installed:
ln -s /usr/local/apache2/bin/apr-1-config /home/slug/optware/cs05q3armel/staging/opt/bin/ ln -s /usr/local/apache2/bin/apu-1-config /home/slug/optware/cs05q3armel/staging/opt/bin/ passenger-install-apache2-module...success! After the module build, I added a new file
LoadModule passenger_module /opt/lib/ruby/gems/1.9.1/gems/passenger-2.2.9/ext/apache2/mod_passenger.so PassengerRoot /opt/lib/ruby/gems/1.9.1/gems/passenger-2.2.9 PassengerRuby /opt/bin/ruby # <VirtualHost *:3000> # ServerName www.yourhost.com # DocumentRoot /mnt/array1/share/proj.web/redmine/public # <Directory /mnt/array1/share/proj.web/redmine/public> # AllowOverride all # Options -MultiViews # </Directory> # </VirtualHost> RailsBaseURI /redmine