quando se tem muitos assets, como javascripts, é considerado boa prática “minificá-los”, ou seja, otimizar ao máximo a quantidade de bytes eliminando supérfluos como espaços em branco e quebras de linha, nomes de variáveis e funções longas, etc. E além disso concatenar a maior quantid...
EU Cookie Directive rack-policy Posted by pmurach on July 01, 2012 — 0 comments I've released rack-policy gem v0.3 that helps any rack based web app implement so called EU 'Cookie Law'. Comments Post a Comment Comment abilities for non registered users are currently deactivated, p...
Getting the most out of FactoryGirl Posted by avdgaag on July 01, 2012 — 0 comments I blogged about a few tips and tricks for using FactoryGirl . TLDR: use traits and ignored attributes; don't use random data and test for explicit values. Comments Post a Comment Comment abilities ...
A refactoring story Posted by rubiii on July 01, 2012 — 0 comments I recently refactored some code and would like to share what I've learned. Comments Post a Comment Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve...
I've written a little plugin to show the message from administrator site-widely in Redmine. I've added an entry in the plugin list with the usual information: http://www.redmine.org/plugins/banner . There is a sample screenshot: I made this because I personally feel the news or welcom...
Splitting hairs over "resource": the case for the affirmative (Part 2) April 24th, 2008 In part 1 of this two-part post, I explained my concern that the word “resource” has become too closely associated in Rails-related usage with some combination of model, database table, and control...
James Edward Gray II joined the Ruby community in 2004 and they just haven't been able to get rid of him since then. James writes Ruby code for fun and profit, pens books with a good deal of Ruby in them, gives speeches about the language, and runs the local support group for Ruby add...
Splitting hairs over "resource": the case for the affirmative (Part 1) March 22nd, 2008 I’ve commented on the main Rails mailing list and elsewhere about some concerns I have about the way the term “resource” has been adopted into Rails practice and discussions. I’d like to explain th...
A Ruby wrapper for the OAuth 2.0 protocol built with a similar style to the original OAuth gem.
Cron is great for handling recurring tasks, but it is an external dependency with a crazy syntax. In this episode I show you how to use Whenever to create cron jobs with Ruby.
# p014constructs.rb # In Ruby, nil and false evaluate to false, # everything else (including true, 0) means true # nil is an actual object # if else end var = 5 if var > 4 puts "Variable is greater than 4" puts "I can have multiple statements here" if var == 5 puts "Nested if else pos...
OS Xを使用しているのであれば、Railsをインストールする前にHomebrew をインストールするのがいいでしょう。それによって必要となるソフトウェアのいくつかをずっと簡単にインストールできるようになります。これをインストールするにはひとつのコマンドを実行するだけですが、それはインストールについてのページ にあります。Homebrewがインストールできたら、それを使っていくつかの便利なパッケージをインストールします。具体的にはソースコード管理のためのgit と、データベースのsqlite です。その他のパッケージをセットアップするためにはまずこれらが必要で、次...
quando se tem muitos assets, como javascripts, é considerado boa prática “minificá-los”, ou seja, otimizar ao máximo a quantidade de bytes eliminando supérfluos como espaços em branco e quebras de linha, nomes de variáveis e funções longas, etc. E além disso concatenar a maior quantid...
German court rules child’s religious circumcision can be a criminal offence FREE PUSSY RIOT! , “At time of writing, the women have spent 117 days in jail, with the trial postponed for months longer.” goomwwm is an X11 window manager implemented in C as a cleanroom software project. It...
The other day I wanted to do some queries in production, but our servers are pretty locked down to the outside world. I was well aware that I could just make an ssh tunnel to connect to the database server, but I decided I wanted to do it in Ruby. I am not the brightest of crayons in ...
PostgreSQL can act as a worker queue which can replace the need for a separate process to manage the background jobs. Here you will learn how to do this with the queue_classic gem.
This will show how to create a new facebook application and configure it. Then add some authentication with the omniauth-facebook gem and top it off with a client-side authentication using the JavaScript SDK.
Creating a wizard form can be tricky in Rails. Learn how Wicked can help by turning a controller into a series of multiple steps.
If a user's authentication cookie is sent over an insecure connection it is vulnerable to session hijacking, or more specifically, sidejacking. Learn how this is done, and how you can prevent it.
gmail-imap 1.0.0 Use with Net::IMAP to interact with Gmail's IMAP extensions. install gem install gmail-imap Download Documentation Subscribe Stats Authors Paul Rosania 19 total downloads 19 for this version Owners Links Homepage Gemfile gem "gmail-imap", "~> 1.0.0" Versions 1.0.0 Jul...
fluent-plugin-rewrite-tag-filter 0.0.3 Rewrite Tags with data matches any of specified regexp patterns in specified attribute. install gem install fluent-plugin-rewrite-tag-filter Download Documentation Subscribe Stats Authors Kentaro Yoshida 144 total downloads 14 for this version Ow...