makandra dev
mailru.github.io

A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API...

makandracards.com

Chances are you're seeing the warning repeated a lot of times, maybe thousands of times. Here's how to...

If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...

svnweb.freebsd.org

If you have trouble updating something on FreeBSD you should always take a look in the UPDATING file.

The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...

makandra dev
blog.pixelastic.com

Angular 1.3 offers $setDirty for your ngModelController. If you are stuck on Angular 1.2, do this: model.$setViewValue(model.$viewValue...

airpair.com

A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...

askubuntu.com

Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \

airpair.com

In the Controller: // Instead of doing this: app.controller('TodoCtrl', function ($scope) { $scope.input = 'ex. buy milk'; }); // Do this: app.controller('TodoCtrl', function...

makandra dev

The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...

Sidekiq::Client.push('class' => 'WorkerClass', 'args' => [11, 5, 1993]) is equivalent to WorkerClass.perform_async(11, 5, 1993)

makandra dev
github.com

Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too...

The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...

Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout option.

When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...

github.com

BubbleTree is a library for interactive visualization of hierarchical data. Originally developed mainly for spending data, the library is now...

github.com

An amped-up alternative to Turbolinks that differs in points like this: It's opt-in instead of opt-out...

Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...

For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...

Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...

Google Calendar integration into Thunderbird suddenly did not work any more for me. Thunderbird kept asking me for my password...

github.com

Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.

makandra dev
draggabilly.desandro.com

Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.

To bind an HTML value to ng-bind-html, you need to mark it as "trusted" first. Among other ways...