gamecreatures.com
activesupport – Gamecreatures' Blog
http://www.gamecreatures.com/blog/tag/activesupport
There is one post tagged activesupport. A small blog item, for remembering this method…. When using a (normal) Hash in Ruby on Rails accessing an element with a symbol key or string key results in a different item. Notice the use of a string and symbol to access a key). Normal = {'foo'= lish} normal[:foo] = 'bar'. Results in the hash:. Foo= lish, :foo= bar}. To solve this issue you can convert every Hash to HashWithInDifferentAccess. Special.class = ActiveSupport: HashWithIndifferentAccess.
gamecreatures.com
bundler – Gamecreatures' Blog
http://www.gamecreatures.com/blog/tag/bundler
There are 2 posts tagged bundler. Bundler / Passenger strange deployment Issue. Today I tried to deploy our Ruby on Rails application. Environment: Passenger with Ruby on Rails 1.9.3 (via system-wide-rvm) on FreeBSD. Deployment via a simple capistrano script. After a successful capistano deploy I get the following error when trying to view it in the browser:. Usr/local/rvm/gems/ruby-1.9.3-p392@generalrails/gems/bundler-1.3.5/lib/bundler/spec set.rb:85:in `materialize' /usr/local/rvm/g...No I don’t ...
gamecreatures.com
Gamecreatures' Blog - Software Development Adventures
http://www.gamecreatures.com/blog
Simple acces to your HTTP(s) services via SSH and a SOCKS Proxy. I didn’t know this trick:. Https:/ www.gypthecat.com/using-ssh-as-a-socks-vpn-on-mac-os. This blog entry describes how to use your normal SSH connection as a SOCKS proxy for web requests. Just connect to the SSH server with the -D option on port 8080. Ssh -D 8080 -p [port number] [username]@[IP address or hostname]. On Mac OS X just enable the socks proxy in the Advanced tab of your network/wifi card:. Encrypted offsite backups via rsync.
gamecreatures.com
calendar – Gamecreatures' Blog
http://www.gamecreatures.com/blog/tag/calendar
There are 2 posts tagged calendar. Forget the calendar I wrote yesterday about. It isn’t very easy to change the display format of the date it uses. I prefer to use a date in the form dd-mm-yyyy. Not with an English name. The project is for a Dutch client, so it isn’t acceptable to show “july 11, 2007”. I’ve restored my original implemenation. Found another Rails calendar popup. I finally found a more friendly date select plugin for rails: http:/ code.google.com/p/calendardateselect/.
gamecreatures.com
c++ – Gamecreatures' Blog
http://www.gamecreatures.com/blog/tag/c
There are 4 posts tagged c. Devise – Demo Event Tool. I’m a developer and I enjoy programming. :). One of my play-projects is a tool called Devise. It’s build for the demo group “Edge of Panic”. We’ve made several releases (see bottom of this page). Though I’m very busy, I’ve managed to find some spare time to work on Devise. Events can be as simple as on or off, or can contain spline data and in the future it should be possible to write code in the event bars. Some releases we’ve done:. 8211; Revision 2...
gamecreatures.com
apache – Gamecreatures' Blog
http://www.gamecreatures.com/blog/tag/apache
There are 6 posts tagged apache. This is page 1. Slow response testing localhost sites in Google Chrome on Mac OS X. Last week I noticed the response of localhost requests were slow in Google Chrome, but responded very quickly in Safari. I suspected Chrome was submitting my local requests to it’s data hunger servers to build an even better profile of me. I tweaked a lot of Chrome settings so everything would be kept private, but no success. After several attempts I found the problem:. For this one too?
gamecreatures.com
book – Gamecreatures' Blog
http://www.gamecreatures.com/blog/tag/book
There are 3 posts tagged book. Ruby’s “Begin Rescue” and “Try and Catch”. Thanks to the book “Programming Language Pragmatics”. I’m beginning to appreciate Ruby’s different notation for exception handling. Begin value = 7 / 0 rescue print Something went wrong! This is an error end. The code above is to catch an exception. (In Java or C you would use try and catch). In the sample above, result will be filled with the found filename. This can be. Agile Web Development with Rails 2nd Edition – Part 2. I sti...
gamecreatures.com
blog – Gamecreatures' Blog
http://www.gamecreatures.com/blog/tag/blog
There are 3 posts tagged blog. After a few months of offline time I finally reopened my Blog. I didn’t post often but the last few months I had several moments I would love to blog some technical solutions I found to certain problems. But I didn’t have a place to put it…. I quickly choose a standard layout, maybe I will update it later. So see you in the next post…. Adding Syntax Highlighting to WordPress. I tried the pugin wp-syntax http:/ wordpress.org/extend/plugins/wp-syntax/. To enable this, just:.
gamecreatures.com
Gamecreatures' Blog - Software Development Adventures - Page 2
http://www.gamecreatures.com/blog/page/2
Apache 2.4.17 and Phusion Passenger. Today I simply run a plain normal update on my FreeBSD server of the Apache server. Usually this works out without any problems. But tonight, big panic! The rails applications didn’t start anymore. I received a Forbidden Message. (Directory listing isn’t allowed). Passenger wasn’t working anymore. So I started trying several things:. 8211; Trying to recompile passenger. No success. 8211; Trying to upgrade an recompile passenger, No succes. Note to self *. I changed my...
gamecreatures.com
misc – Gamecreatures' Blog
http://www.gamecreatures.com/blog/category/misc
There are 14 posts filed in misc. This is page 1. Simple acces to your HTTP(s) services via SSH and a SOCKS Proxy. I didn’t know this trick:. Https:/ www.gypthecat.com/using-ssh-as-a-socks-vpn-on-mac-os. This blog entry describes how to use your normal SSH connection as a SOCKS proxy for web requests. Just connect to the SSH server with the -D option on port 8080. Ssh -D 8080 -p [port number] [username]@[IP address or hostname]. And enter as SOCKS proxy server 127.0.0.1, on port 8080. Today I simply run ...