Rails Routes TextMate bundle
I love all the things that make daily life easier. And the easier is a keyword here.
I bet you were in such situations when you found something on lifehacker, in vim-plugins, or wrote on lisp by your own. Seemingly it's a shortcut, but after trying to use it you face that you need to tune it every time you using it, or learn a lot of Long+Opt+Shift-shortcuts.
Checkout a Rails Route bundle for TextMate. It adds two(it's 4 actually but other two is optional) essential shortcuts to rails bundle.
- go to named route action or view — Cmd-P
- go to routes.rb — Ctrl-Opt-Cmd-R
Also there is open TODO list for this bundle, so you can help author with development (It is what I'm planning to do)
PayPal reccurent payments with ActiveMerchant
If you ever done PayPal recurrent payments with ActiveMerchant then you probably took code from here. This code is a little incomplete and does not allow you to update your recurrence profile. I've made some changes so now it available to do. http://gist.github.com/340135
My GitHub updates
Hi there. There was no recent updates in my blog so... Here they are!
Recently I've had a freetime to organize some of my projects that I always want to share.
Crystal gallery
Is a wordpress plugin that replaces standart ugly wordpress gallery functionality. If you don't want to get your hands on to nGallery or other heavy galleries/almubs plugins - this is for you.
Url: http://github.com/shell/Crystal-Gallery
Magento module creator
This is small patch for Magento module creator. Made to separate frontend and admin parts of newly created module. When they both in one module you can face with issues like: protect with SSL only admin stuff or vise versa.
Url: http://github.com/shell/Magento-Module-Creator
Also I've came up with the idea that I need to force myself to set up goals. There a couple of things that I want to write for myself. In various languages. But this will be a topic of a new post.
Results of 2009 year
Now, several days before a new year, it is the time to make a summary. 2009 was all good for me. I've started from breaking with a girl that I dated 2 years and living in a hostel by 2 years. I came through hardworking in small web development company to freelancing. I've switched from php to ruby on rails.
- St. Peterburg. I've tripped to the St. Peterburg on the Sun Tech days at February, also I've take a very good time with Germans in the night clubs and hostel
- Flat. I've made it! Moved from university hostel where I lived by 2 and half years to a rented flat and living here by my own
- MacBook Pro. No comments. It's more than a half of me. This is my friend with whom i've spend most of a day, and working on it is a pleasure
- Kate. It was beautiful month Kate. I'm really dissapointed that we live so long from each others
- Rails. I've started to work on Ruby On Rails. Because php is no more delivers me joy of programming.
- Freelance. I've started freelancing. Thanks to Den Markin and Alexey Kucherento who support me with this decision and helped me with answers from the other side of barricade, while I was employee
- Blogging. Yep I've start blogging. It will also help me in programming.
- Still skating. I'm glad that I still skating. Not for a progress but by myself.
- Windsurfing. I've surfed about 6 or 7 times in summer. That was damn good!
That'all. I hope 2010 will be even more good.
Ruby 1.9.1 + Phusion Passenger POST request fails
I'm using ruby 1.9.1-p234 because it's damn fast. But there is the issue using it with passenger, I've faced it few days ago and solved only now. Passenger crashes on the POST request.
This link is helped me. And remember, follow every step, there is no need to recompile ruby
http://stackoverflow.com/questions/1627582/ruby-1-9-1-p234-passenger-2-2-5-rails-2-3-stable-closed-stream-on-post-request
Footnotes Rails plugin
Symptom:
Solution:
in RAILS_ROOT/vendor/plugins/footnotes/lib/rails-footnotes/notes/controller_note.rb
change 54 line from: to:
Ruby, Rails and UTF-8
I've faced some problems with utf-8 lately:
here some links that might help:
Rails 2.3.5:
- patch 1: ASCII-UTF-8
https://rails.lighthouseapp.com/projects/8994/tickets/2188-i18n-fails-with-multibyte-strings-in-ruby-19-similar-to-2038 - patch 2: UTF8 - ASCII
http://gnuu.org/2009/11/06/ruby19-rails-mysql-utf8/ - patch 3: US-ASCII .
Passenger not playing nice with ruby 1.9.1, merb, haml, and UTF-8
http://code.google.com/p/phusion-passenger/issues/detail?id=233










