makandra dev

The bash offers control over the behavior of autocompletion. The most primitive example is this (just run it in your bash; if you want it available everywhere, put the complete...

...pattern and many more. complete -p gives you a list of currently defined autocompletions. Behold, thou might not define multiple completions for one command. I recently built a script that...

This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...

...session using the database. This could be the rails server, rubymine and many more. Beside terminating the session connection manually you can also find out the pid and kill the...

To parse XML-documents, I recommend the gem nokogiri. A few hints: xml = Nokogiri::XML(" foo bar ") parses an xml...

dev.to

...the tree structure, but just replicate all the needed data into the database, the best option is to use SAX parser. When you read very large XML files Nokogiri may...

makandra dev

...you usually group tasks by their domain/scope. An example crontab might look like this: # Begin Whenever generated tasks for: project100 MAILTO="log@example.com" MAILFROM="cron@example.com" # When server is booting up, ensure...

askubuntu.com

While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...

Some older Node modules rely on window.jQuery to be present. One suggested solution is to use this config in the...

makandra dev
plugins.jquery.com

SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...

When working with large Sass files you will notice that the first request after a change to a Sass file...

At times, it might be unavoidable to have different CSS rules for Internet Explorer than for sane browsers. Using Sass...

For two years we've been using SearchableTrait which gives models the ability to process Googlesque queries like this: Contact.search...

OAuth requires a set of params to be carried along requests, among which a nonce. Some libraries pass these along...

...initializer provides a default way to deal with this. You'll get the following behaviour: if the incorrect request has a HTTP_REFERER coming from the same application, set a...

...browser. You don't need CoffeeScript or an ES6 transpiler like Babel. A cosmetic benefit is that the module pattern works without the use of this or prototypes. Example

Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...

When running an older version of docker-compose you might see the following error: ERROR: Version in "./docker-compose.yml" is unsupported...

tableplus.io

...table names and execute a DROP TABLE statement for each. DO $$ DECLARE r RECORD; BEGIN FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = current_schema()) LOOP EXECUTE 'DROP...

In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...

If others on a call (Skype, SIP, ...) can not hear you loud enough, your volume levels are probably too low...

During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...

When such a virtual attribute should contain Date values you might get unexpected behavior with forms, because every param is a string and you don't get the magic...

Puma allows you to specify the max and min threads. In development this could be useful if you use a...

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