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

Following steps explain how to add new column in order and grid tables 1) Add the columns in order, quote and grid tables using declarative schema 2) Add arguments to...

...Magento\Sales\Model\ResourceModel\Order\Grid virtual class that already defined in Magento_Sales di.xml sales_order.channel 3) Create event.xml and Observer class to save the data to quote and order...

How to create order programmatically other than the basic currency? Step 1) After create your Quote object set the currency code that you want in the order $quote = $this->quoteFactory...

$store = $order->getStore(); $store->setCurrentCurrencyCode($order->getOrderCurrencyCode()); // Eg: AUD|GRB $quote->setStore($store); Step 2) Set again before add the product to Quote $store->setCurrentCurrencyCode($order->getOrderCurrencyCode()); $quote->setStore...

Search in all decks