Use the PDF toolkit: sudo apt-get install pdftk To rotate page 1 by 90 degrees clockwise: pdftk in.pdf cat...

docopt.org

docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...

To only run the next two migrations: rake db:migrate STEP=2 To revert the previous two migrations:

...for all exceptions (previously true) :none: It will raise for all exceptions (previous default behavior, value false) Using the new default needs to change a RSpec test like this:

Whenever you deploy using Capistrano, a new folder is created within the releases directory on the remote server containing the...

How to ignore new files Globally Add the path(s) to your file(s) which you would like to ignore...

makandra dev

Compromised npm packages have become a weekly occurrence. This is being accelerated by AI tools that find and exploit vulnerabilities automatically. Below you will find minimal configuration to harden your...

yarn add --dev cowsay yarn cowsay hello Further reading Awesome npm Security Best Practices Defending Against NPM Supply Chain Attacks: A Practical Guide

makandra dev

...branches return ranked pages, but we want a ranked list of documents with their best pages attached. So we aggregate results by their corresponding document first, then rank pages within...

...literature default. A page ranked 1 in one branch and 5 in the other beats a page ranked 3 in both. RRF is well suited here because the absolute scores...

makandra dev

...than JSON's keys. That extra clarity is part of why XML sometimes works better than JSON, especially with smaller models. It can also be more compact for nested data...

...in the Qwen 3.5 and 3.6 series. If you use them, you might be better off inlining the schema definition in the prompt instead of passing it via format:.

Deep dive Okay, so the example above has at least one obvious benefit: You do not have to put self.table_name_prefix = "universe_" into each of your classes...

...it. It's not read at all. Here is why (follow links for a better understanding): An ActiveRecord class will pick the table_name_prefix of any of its module...

...Yourself (or DRY). In Ruby on Rails we keep our code DRY by sharing behavior by using inheritance, modules, traits or partials. When you reuse behavior you want to reuse...

...module that you include in the Cucumber world. This way the module's methods become available to all step definitions. Think of it as enhancing your Capybara API with app...

Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...

When you get this error: No word lists can be found for the language "de". An aspell dictionary is missing...

If you need to revert only parts of one or several commits the following workflow can help:

mail-tester.com

You can use mail-tester.com to check your application's e-mails for issues that might cause e-mails to be...

When a spec only runs when it is called directly, but not as part of the whole test suite, make...

makandracards.com

A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch

dev.mysql.com

The next version of MySQL will include a built-in memcached daemon. This daemon can quickly get and set key/value...

If you need a postgresql extension for your database it isn't a good idea to give your applications database...

...changes it for the current repository. Since it's hard to remember which project behaves how, you should find a suitable global setting. Regardless which option you use you can...

...current branch. Caveat with current For most of us, current is the safest push behavior. However, it has a small side effect: When a branch with your local name does...

Background information about session storage in Rails Rails has a default mechanism to store the session in the CookieStore. This...

I was experiencing the following problem: It seems your ruby installation is missing psych (for YAML output). To eliminate this...

In Capistrano 3, your Capfile requires 'capistrano/rails/migrations', which brings two Capistrano tasks: deploy:migrate and deploy:migrating. The former checks...

Each time thin boots, it prints a boot message : Thin web server (v1.6.3 codename Protein Powder) Maximum connections set to...