...of Matthew O'Riordan, who has spent more time than you ever will in order to produce a fix. You should probably use this solution. Note that I haven't...

shopify.com

Most web applications contain several examples of state machines, including accounts and subscriptions, invoices, orders, blog posts, and many more. The problem is that you might not necessarily think of...

superuser.com

...does not always reveal the plain HTML source, but some encoded byte mess. In order to inspect the HTML anyways, you can use a little trick: While composing a message...

tools.ietf.org

In order to use different encodings than ASCII for HTTP headers use the following syntax: Header-Key: Header-Value; Parameter-Name*=utf-8''parameter_value_in_utf8_and_encoded_chars...

github.com

The Ruby Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and...

ui-patterns.com

In order to lower friction and the hurdles to pass, users need to be provided with a reason to trust you with the information they supply. The time and effort...

beginrescueend.com

...It also allows you to pack different gemsets for each of your applications. In order to create on of those just type ... rvm use 1.8.7-p323@makandra_project_xy --create...

makandra dev
zeldman.com

...airline’s cancelled flight? They can do it because lateness is part of the order of things, and grownup professionals plan for it, just as they plan for budget shortfalls...

speakerdeck.com

Awesome slide deck about taking liberties with design requirements in order to keep the CSS simple...

makandra dev
api.rubyonrails.org

Methods to remove e.g. order or conditions from an existing scope chain...

makandra dev
github.com

Introspect the Ruby Heap by indexing, counting, locating references to and detaching (in order to release) objects...

makandra dev
github.com

Gem to get Rails 3's new ActiveRecord query interface (where, order) and the new scope syntax (chaining scope definitions) in Rails 2. You also get #to_sql for scopes...

superuser.com

If you do not like them: sudo apt-get purge liboverlay-scrollbar-* In order to have a tool recognize the changes you have to quit all its instances. Or...

github.com

Fixes all Flash elements on a page so that they heed DOM stacking order

beust.com

In a recent post, Stephan Schmidt makes several suggestions in order to write "Next Generation Java". Unfortunately, I disagree with most of them

gem-session.com

In order to find out whether I'm having a problem with link rot, I wrote a script that goes through my bookmarks and checks for dead links...

...errors by surrounding with ", e.g.: replace one: %{count} Objekt with one: "%{count} Objekte" date: order: [ :day, :month, :year ] to date: order: - :year - :month - :day fix incompatible character encodings: UTF...

...will serialize Ruby objects to JSON values (see the "value" section on json.org). In order to parse a JSON value generated by #to_json, use JSON.load(). So the solution to...

github.com

...can't have both of them, so I had to juggle the libs in order to install the required ruby version. To make things even funnier (or more complicated), Ruby...

In order to save the original value of a constant, set the new value and restore the old value after a scenario was completed, you can use the following helper...

makandracards.com

In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset precompilation can be skipped. This card automates the process.

...setting #id on .new, .create or create! you can include the attached module in order to whitelist #id on a model of your choice like this: class MyModel < ActiveRecord::Base...

Best results in other decks

makandra Operations

...connection summary: SELECT COUNT(*) AS cnt, usename FROM pg_stat_activity GROUP BY usename ORDER BY cnt DESC; Open transactions with their minimum needed transaction ID SELECT pid, datname, usename...

...state, backend_xmin FROM pg_stat_activity WHERE backend_xmin IS NOT NULL ORDER BY age(backend_xmin) DESC; Transactions To get the current transaction ID: SELECT * FROM txid_current...

...an SQL query. It simply returns a scope object for further chaining with #where, #order, etc. Scopes will make an SQL query when you use them like an array, e.g...

...an SQL query. It simply returns a scope object for further chaining with #where, #order, etc. It can be confusing that typing a scope into the Rails console will immediately...

Search in all decks