blog.noizeramp.com
Speed-up testing when using Sorcery - noizZze
http://blog.noizeramp.com/2012/03/06/speed-up-testing-when-using-sorcery
Speed-up Testing When Using Sorcery. I’m using RSpec in most of my recent projects. In fact, whatever new I start gets RSpec installed by default. Recently I began using Sorcery gem for authentication. It’s a small and non-intrusive solution that I find very well-fitted for how I do things. If you are using Sorcery, you may be glad to find out that it’s possible to make your whole functional testing suite almost twice as fast. And without further ado… In your. You need to add the following 3 lines:.
blog.noizeramp.com
RubyC 2011 - noizZze
http://blog.noizeramp.com/2011/11/08/rubyc-2011
Is officially over and so I’d like to share my thoughts on the event – what went well and what desired to be better. What I really loved:. Great talks by all foreign guests and few fellow Ukrainians / Russians. These are what I adored:. 8220;Cut and Polish: Crafting Gems”. He wasn’t the last one, but I’ve got goose bumps even on my finger nails and felt the urge to leave the building on the spot just to keep the aftertaste for as long as I could. 8220;Literate code”. Thought provoking deck on p...8220;Fu...
blog.noizeramp.com
Scheduling Sidekiq (Resque) tasks from console - noizZze
http://blog.noizeramp.com/2013/04/08/scheduling-sidekiq-resque-tasks-from-console
Scheduling Sidekiq (Resque) Tasks From Console. In my projects, traditionally, I use cron to schedule periodical maintenance tasks and then do all the heavy lifting in the background. Cron would start a Rake task that would, in turn, schedule a job. Then Sidekiq (or Resque, previously) pick it and take care. Unfortunately, I couldn’t find any mention of starting tasks from the shell, so I went into the. Here’s what I run to push a job (. Class) with no arguments to a “default” queue:. The only part deser...
blog.noizeramp.com
Catching up - noizZze
http://blog.noizeramp.com/2012/11/09/catching-up
Oh, it’s been more than half a year since the last post! I figured, if there’s someone still following my blog, they deserve this post. So what’s up with us:. Max quickly becomes a fully formed man with the character, good dictionary and is already capable of building 3 or 4-word sentences. A couple of months ago we finally found a place of our own – a gorgeous 3 bedroom apartment with a spacious living room, fully equipped kitchen and great location in relation to our families. That’s about all I ...
blog.noizeramp.com
Installing Command-T plugin in MacVim - noizZze
http://blog.noizeramp.com/2011/12/28/installing-command-t-in-macvim
Installing Command-T Plugin in MacVim. Recently I’ve switched to MacVim from Textmate, and done so for a couple of reasons:. I use Vim remotely when administering servers all the time, and practicing it locally makes me much more productive. Vim is evidently more mature than Textmate. With the whole Open Source ecosystem around it, tons of plugins and superior text-editing features, it leaves Textmate far behind. Use the same Ruby version your MacVim was built with. In the last two-three lines. If yo...
blog.noizeramp.com
noizZze
http://blog.noizeramp.com/page/2
Asset URLs and Paths in Rake Tasks. One way I figured is this:. Assets master gives the access to helpers like #asset path from rake tasks. Module that includes the. This helper contains all path / url methods and some other asset-related goodness. Including this file would be sufficient in Rails 3.0, but it’s not in Rails 3.1 . In the latest version we need to have three more methods:. The first one should refer to the app configuration, and the other two can be. Bundle exec rake assets:precompile.
blog.noizeramp.com
Prime numbers challenge - noizZze
http://blog.noizeramp.com/2011/12/31/prime-numbers-challenge
In this post I’d like to share the submissions and figure who’s the winner. I need to say upfront that I’m the looser. I took it all lightly and was punished for that. :). Here are the submissions in the order of appearance:. Note: I didn’t check the second submission by @dpskftw. 8211; the one that’s based on the built-in Ruby check for primes. 0077 / 0.082 / 0.083 - 0.081 (Ruby 1.8.7), and 0.097 (Ruby 1.9.3). 3232 / 3.128 / 3.111 - 3.157. Congratulations, and Happy New Year everyone! Laquo; Erlang hints.
blog.noizeramp.com
Erlang hints - noizZze
http://blog.noizeramp.com/2011/12/29/erlang-hints
I’m reading excellent “Programming Erlang” by Joe Armstrong and find some new stuff I haven’t seen in “Erlang programming” by Francesco Cesarini. This is largely a self-note post, so take it with a grain of salt. If your code prepends elements effectively reversing the order of the original list, you need to call. As opposed to concatenating lists (. The reverse call is way more efficient and even though it’s defined in lists module, when VM sees the call, it invokes an internal version. The value of the.
blog.noizeramp.com
Using Sidekiq with Elastic Beanstalk - noizZze
http://blog.noizeramp.com/2013/04/21/using-sidekiq-with-elastic-beanstalk
Using Sidekiq With Elastic Beanstalk. I’m a big fan of Sidekiq. But recently, one of my clients asked for hosting their new application on Amazon’s Elastic Beanstalk. Which imposed certain limitations, that I had to overcome to get my normal setup working. In this post I want to describe some of them. That runs MySQL (in this case). Here’s what I finally came up with:. As an external Redis database. They host it on EC2 in the same zone and so the latency is super-small. Basically, after unziping (pre-ini...
blog.noizeramp.com
The Ruby 1.9 Walkthrough - noizZze
http://blog.noizeramp.com/2011/10/30/the-ruby-1-dot-9-walkthrough
The Ruby 1.9 Walkthrough. A couple of posts ago I wrote about the HTML5 Mobile Pro desktop edition the guys were doing a poor job with. Today I’d like to show what I consider a. I’m a big fan of everything that’s even remotely connected with Ruby. The language turned my world upside down and gave me my present life full of freedom, fun and amazing opportunities. That’s why when one of the guys I know pointed out that Peter Cooper is working on The Ruby 1.9 walkthrough. And runs Ruby Inside. Now the funni...