leomayleomay.github.io

Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...

You can scale background images in CSS to the container size using background-size (Demo). Commonly, we use contain or...

Given the problem you have a new column postion and that column should be updated for all existing rows with...

github.com

Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...

ActiveRecord has a feature called counter caching where the containing record in a has_many relationship caches the...

docs.angularjs.org

In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...

patrickmarabeas.github.io

Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...

My front audio output would not work even though the front mic input did fine. The Pulse Audio mixer (= Ubuntu...

makandra dev

while true; do i8kfan - 2; sleep 0.2; done There should be a better solution and it will be posted as soon as it's found...

businesswire.com

...announcement makes clear that royalties will continue not to be charged for such video beyond that time. Products and services other than Internet Broadcast AVC Video continue to be royalty...

...bearing...

If your project depends on an old version of ImageMagick that you can no longer install in your system, you...

Cards can now be flagged as "Repeating". Every Wednesday, some of these cards will be moved back to the top...

makandra dev
github.com

It claims to be even faster and brings a new plugin that polyfills object-fit and object-position. This allows...

makandra dev

This will stash all modifications that you did not git add: git stash -k Note that newly created (and non...

miekd.com

...as be re-read for people who use screen readers. So how can we best author this into our mark-up...

caniuse.com

There is a kinda secret, yet well supported CSS feature called currentColor. It's like a special CSS variable that...

makandra dev

...rc1) must be separated by a dash, like this: 1.0.0-rc1 2.3.0-alpha2 3.0.0-beta3 Publishing to a pre-release tag npm packages have multiple "current" releases, identified by "tags...

crazylittlehacks.blogspot.com

I found a nice script on crazylittlehacks and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run...

Sometimes you want to load code on demand. For instance, when a a large library is only used on a...

teohm.com

The attached post shows some alternative ways to define Strings in Ruby using the percent notation. This can be useful...

Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...

docs.angularjs.org

If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...

makandra dev
linux.die.net

When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...

Passenger gives you the possibility to define in which environment your app should be started. This has to be added...