August 2011
1 post
Ночь, улица, фонарь, аптека,
Бессмысленный и тусклый свет.
Живи еще хоть четверть века -
Все будет так. Исхода нет.
Умрешь - начнешь опять сначала,
И повторится все, как встарь,
Ночь, ледяная рябь канала,
Аптека, улица, фонарь.
Александр Блок
April 2011
3 posts
November 2010
6 posts
It’s not about fighting, it’s about balance.
It’s not about...
Launching a New Website: 18 Steps to Successful... →
A thorough check list of things you should do when launching a web site.
People were created to be loved. Things were created to be used. The reason why...
Updated the blog
Finally found time to breath some life into my good ol’ tumblr. I must say tumblr guys did a pretty good job last year. The whole experience of configuring a blog became even more polished and fun. Everything just works.
Within two hours I was able to buy and setup a theme, integrate with Disqus for comments, setup twitter integration and other cool stuff.
Disqus is also awesome. I...
September 2009
1 post
Mac-friendly Autotest — almost no CPU usage while... →
May 2009
1 post
Absolutely awesome and inspiring Railsconf talk on dynamic languages and TDD. Best of everything - humor, knowledge, experience and actor talent of presenter.
March 2009
1 post
If someone asks you, “Who is that guy?” then you probably...
– “Architect” is a swear word.
February 2009
2 posts
Get Ruby 1.9.1 running on OS X Leopard →
January 2009
2 posts
MemoryUsageLogger Plugin
I’m sure everybody knows about it already, but in case you don’t: http://github.com/binarylogic/memory_usage_logger.
Adds amount of memory used by current process to every line of Rails log, so that you see how memory usage grows during the request processing. Should be very useful for tracking memory leaks.
Thanks to EngineYard for the link! Best hosting ever, as usual.
December 2008
2 posts
anyway, 3rdrail just crashed, so I’m back to textmate. I don’t trust tool for developing software that was badly developed itself
3rdrail ide has very good code structure analysis engine that provides some neat tools. still miss textmate, but trying to get over it
October 2008
3 posts
Why Phusion Passenger better than Mongrel for...
It starts new processors for new requests automatically, and kills them after they are not needed. So if you have a big site running locally, and you don’t want to setup mongrel cluster and load balancer, my advice is to go with Passenger. It’s really a piece of cake to setup if you have apache installed (and you do, if you’re on Mac or Linux).
Official Git Autocompletion Script for BASH →
Installation instruction are in the header of the link. For the lazy it’s:
$ cd ~; wget [link]
$ echo 'source bash-git-completion.sh' >> ~/.bashrc
The script is just awesome, it’s very thorough and proivdes completion for commands, commands options, branch names, and all kinds of stuff.
The link to a file I posted points to my server, but if it’s down for some...
[PDF] Printable version of Git Cheatsheet →
Taken from http://cheat.errtheblog.com/s/git and post-processed to be easier on eyes when printed.
September 2008
3 posts
My StringTidy plugin
This is really tiny one.
About
Wraps Tidy gem into String for easier usage.
Allows you to clean up portions of HTML code in strings,
without any effort.
Requires Tidy gem and Tidy C lib (which is installed on Mac and most Unixes by default).
Defines String#tidy(options={})
Usage examples
Installation
gem install tidy
./script/plugin install \...
2 tags
No broken tests in git repos
Following code forbids commit to repository if tests don’t pass. Script for rspec, but should probably work with anything else - just replace rake spec with rake test.
We live in illusion and the appearance of things. There is a reality. We are...
– Kalu Rinpoche
August 2008
2 posts
ConfigurationFile plugin for Rails
My plugin to handle YAML configuration files in Rails apps.
For most cases just YAML::load will work, but in my case I needed string interpolation, so I decided to make a little plugin out of that.
Here’s simple usage pattern:
Feel free to fork and do whatever you want with this.
Update:
Forgot the link to plugin itself: http://github.com/railsmonk/configuration-file-plugin
Programming today is a race between software engineers striving to build bigger...
– Quote of the Day
June 2008
9 posts
life freezes without github
Awesome Git cheatsheet →
$ open -a MyFavouriteApp # opens mac application from Terminal
“We cannot direct the wind, but we can adjust the sails.”
My attempt at ActiveRecord models code guidelines: http://tinyurl.com/6yqwel
1 tag
Setting cookies in RSpec
def cookie(name, value)
@request.cookies[name.to_s] = CGI::Cookie.new(name.to_s, value.to_s)
end
Found on google.
MagLev could be our chance to do some Smalltalk without learning Squeak. YAY!
May 2008
5 posts
Tip: re-apply latest migration
rake db:migrate:redo
my twitter →
Productivity: Nice background noise generator →
Creates really pleasant pink noise. For Mac.
Google AdSense made no sense for me. Turned it off
2 tags
Rails tip if you use association proxy methods
I like doing following in my code:
class Blah < ActiveRecord::Base
has_many :somethings
end
class Something < ActiveRecord::Base
def self.for(person)
find(:first, :conditions => {:owner_name => person})
end
end
# And then later
@the_blah.somethings.for("dima") # => #<Something ....>
But I also can accidentally do this and break the expectation for the code,...
April 2008
2 posts
Coworking: Social club or work space? →
I started working at Indy Hall almost two weeks ago. Indy Hall is a coworking space in Old City, Philadelphia where people who would normally work at home can now work in an office with…
Viddler API RubyGem →
This week we released a RubyGem for Viddler’s Video API. We created it for our Beanstalk help system so we could upload video in each post, then pull back the player code to embed screen casts….
March 2008
6 posts
Beanstalk is moving to Engine Yard →
If you haven’t noticed, Beanstalk has been growing. With the growth we’ve also had some pains. In the last couple months our servers have been far from what we (or anyone else) would consider…
ING: Nice UI Transition →
I logged into my ING account and noticed a different welcome screen. They made an update to the navigation and instead of just making the change, I was notified upon login. This says a lot to me,…
Free Beanstalk Accounts! →
We are running contests on two sites, giving away multiple paid Beanstalk accounts for one year. If you like Beanstalk and want a free paid plan for a year, check out these sites.
Working With…
How to clean .svn folders from your project →
If you use Subversion to manage your projects you probably have noticed hidden .svn folders in your checked out projects. A Subversion client creates them to store any information about the…
Beta Testers for Deployment Tools →
We are launching a new tool for Beanstalk. It will allow you to deploy files to a staging and production server from your Subversion repositories. If you want to be part of the VERY small beta…
The first Beanstalk design rip-off →
I noticed a couple incoming links in our account stats for a site called Pointyhack. Usually I check these out to see who reviewed Beanstalk and send out a thanks. Although, when I visited one site…
February 2008
6 posts
Monday Productivity Boosters →
Developing for the web on a Mac is a breeze, thanks to a banch of products like Parallels Desktop, Textmate (and numerous related bundles) and Terminal. Today I want to highlight another 2 great additions to the Mac OS X Leopard wich may make a developer’s life even easier and help getting things done even faster.
(more…)