If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...
...in an encrypted YAML file. Usage is simple: each key in the credentials file becomes a method on Rails.application.credentials, returning the corresponding secret. # Credentials file file_storage_secret: superstrongsecret
In rare circumstances, you want to use a websites full domain (say https://mywebsite.com) while testing in dev mode. This...
This might be relevant for us since we're often managing customer documents in our apps. I played around with...
If you recorded a bad fix for a conflict, you can tell git to forget that bad resolution:
you should always has_many :join_models, :dependent => :destroy
We have now updated/created two gems that implement the requirements above using the best practices we know of: assignable_values: ActiveRecord macro to restrict the values that may be...
view_context.helper_method('args') Rails 2 ApplicationController.helpers.helper_method('args') Also see How to use helper methods inside a model...
It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...
To get your F12 key back for other shortcuts, stop Tilda: killall tilda To prevent Tilda from starting on boot...
...move elements to the back (e.g. background images, gradients etc). They will be rendered behind all other elements within the context (e.g. text), but not behind elements outside the stacking...
You can use this shell command: uniq -u input.txt output.txt
Your package-lock.json should always match and resolve all packages from your package.json. Coming from Yarn, I was looking for an...
The value of the Unicode byte-order character placed at the beginning of the file (BOM). The value given by the charset attribute of the Content-Type...
If you need to debug Analytics tracking, consider using this chrome extension. It will replace the tracking code with a...
Today I learned that you can animate HTML elements using the Web Animation API's method .animate(keyframes, options) (which...
...or newer versions for these libraries before you start. Maybe you can upgrade them beforehand which makes the migration easier. Here are some libraries that I had come across:
...implement the navigation on your own. Tip: Add a feature for your navigation bar beforehand and test links and their highlighting (don't forget dropdown submenus!). After upgrading to Bootstrap...
...number of options. Offers some pretty skins for downloading, but is hard to customize beyond that. SoundManager 2 Free. Only does audio. Awkward API. There seems to be no way...
Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine...
...will be short a window manager. This might be fixable, but it's probably best to simply log out (or shut down) using the Gnome panel...
The rubocop binary has a few interesting flags: rubocop (using the --parallel default ) scans the current repository for linting issues...
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.
Because systemd is the greatest thing ever it's not enough to stop the libvirt service. You need to disable...
How to define and call class methods in CoffeeScript classes: class Foo @classMethod: -> @otherClassMethod() instanceMethod: -> @otherInstanceMethod() @constructor.classMethod()