makandra Curriculum

...diam nonumy eirmod tempor. | | | | | | | | | | | | | | | | | | | +------------+-----------------------------------------+ | Footer | +------------------------------------------------------+ Here are some more details how the layout should behave: Give each element (header, sidebar, etc.) a distinct background color to see where boxes start...

...do not use them. Pay attention to the margins in your styles. Elements that belong together logically (e.g. two navigation sections) should be closer to each other than elements that...

github.com

...the company above # # # Example: # # class Gallery # has_many :images, :as => :owner # end # # class Image # belongs_to :owner, polymorphic: true # end # # # so container = Image.new; container.file = File.new… , container.owner = object # # Given the file...

...would possibly need in a clean way, I prefer to simply always use them. Behind the scenes, Open3 actually just uses Ruby's spawn command, but gives you a much...

Open3.capture3 Basic usage is require 'open3' stdout_str, error_str, status = Open3.capture3('/some/binary', 'with', 'some', 'args') if status.success? # okay else raise "did not work" end Open3 will raise...

...access and manipulate the browser's DOM tree. Using JavaScript we can add interactive behavior to our interfaces that would not be possible through declarative rules in HTML and CSS...

Unlike in Gnome, there is no graphical tool to set a mouse cursor in Xfce. Run this on a terminal...

Nobody needs HTML e-mails. However, you occasionally might have to write an HTML message for some weird reason. Here...

...Although this may be useful for debugging, when writing custom steps you may be better off using XPath...

...when the model has no database or database columns yet. Example: class Post < ApplicationRecord begin # Magically auto-strips all string attributes columns.each do |column| next if [:string, :text].exclude?(column.type...

Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet devices, number fields show a special virtual keyboard that shows...

SELECT enum_range(NULL::portal) # Returns an array of all possible values SELECT unnest(enum_range(NULL::portal)) # Unnests the...

robots.thoughtbot.com

git command line options for automating common rebasing tasks, like adding a fix to a commit that was already rebased...

about.gitlab.com

When full text search is overkill and like queries do not deliver this might be an approach you could try...

support.mozilla.org

You cannot find your account passwords in the Account Settings – that'd be too easy. Here is where you find...

robots.thoughtbot.com

Declare an enum attribute where the values map to integers in the database, but can be queried by name.

ghacks.net

Firefox 3.6 users will receive update notifications in April offered through the browser’s internal updating service that will update...

superuser.com

Ubuntu natty introduced new "invisible" scrollbars for GTK programs such as gEdit or Nautilus. If you do not like them...

Ubuntu 24 added some guarding for Python packages which no longer allows installing applications through pip on system level. Instead...

...scopes live on the child model, so merge can compose them: class Subscription < ApplicationRecord belongs_to :account enum :status, { active: 'active', canceled: 'canceled', expired: 'expired' } scope :recently_canceled, -> { canceled.where(canceled...

...you combine results from a classical and a vector search engine gets you the best of both with the cost of twice the complexity. See An introduction to Hybrid search...

This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...

navy 0.5.1+ gives empty navigation containers a CSS class .navy-empty which you can hide via .navy-navigation &.navy-empty...

bundler.io

...version you want to use for each bundler command, e.g. bundler _2.1.4_ update New behavior Bundler now honors the version specified under BUNDLED_WITH in the Gemfile.lock. The necessary version...

gem update --system Updating the bundler version for a project With the new behavior bundler should never update its version in a Gemfile.lock automatically anymore. Therefore, unless there are...

The buffer where text is put into when you double-click on text within X is called X selection.

If a users password for https://monitor.makandra.de/ is unknown one can set it like this: sudo python /opt/graphite/webapp/graphite/manage.py changepassword ${USERNAME...