...like the rest of your Bootstrap 4 application. Rome comes with very little basic styling. While we could redefine its classes, we can configure the classes Rome applies to its...

...This is because Rome also uses styles internally as selectors which breaks internal behavior for space-separated strings or when using the same CSS class for multiple properties (e.g. text...

Consider the following: describe '#something' do context 'with lots of required arguments' do it 'should work' do subject.something(:foo => 'foo', :bar => 'bar', :baz => 'baz').should == 'Hello world' end it 'should...

...is actually called. This way you can manipulate objects or other data before using the short-hand reference to your method call. Yes, it is quite similar to using variables...

...alpha channel value, you can use Gimp: Use the color picker tool Hold the Shift key while clicking the pixel A window will appear, containing color information, including the alpha...

...its advisor model to clarify its approach or to get "help" in more complex situations (like planning or debugging). How to use In Claude Code, type /advisor to open a...

...as an argument to the /advisor command. /advisor fable Your chosen advisor model is saved to your Claude Code settings file; new sessions will use it by default. Currently (August...

If you want to make your Rails application be capable of sending SMTP emails, check out the action mailer configuration section in the Ruby on Rails guide.

...will end up having an smtp_settings hash that looks something like this: smtp_settings = { address: ..., domain: ..., port: ..., user_name: ..., password: ..., authentication: ..., tls: ..., enable_starttls_auto: ..., } This hash can be...

mysqlperformanceblog.com

MySQL will use the index when your query is well-formed: mysql> EXPLAIN SELECT * FROM users WHERE email = 'foo@example.com'; +----+-------------+-------+-------+----------------------+----------------------+---------+-------+------+-------+ | id | select_type | table | type | possible_keys | key | key_len...

...ref | rows | Extra | +----+-------------+-------+-------+----------------------+----------------------+---------+-------+------+-------+ | 1 | SIMPLE | users | const | index_users_on_email | index_users_on_email | 768 | const | 1 | | +----+-------------+-------+-------+----------------------+----------------------+---------+-------+------+-------+ However, indexes are not used if you are passing incorrect data types...

gedd.ski

...intrinsic width of your content play together. The attached article explains the differences. In summary: If a flex-basis is set, that is used as the basis

...basis is set, the width is used as the basis If neither flex-basis nor width is set, the content's computed width is used as the basis

...applications now call an LLM for features that would otherwise be impossible or expensive: summarizing, extracting data from images, recommendations. In this card you build such features into MovieDB with...

...context windows mean for cost and limits. You keep instructions and user input in separate message roles: the system prompt is yours, user content goes into a user message and...

...to keep working. This card walks the spectrum from classic multi-page apps to full single-page apps, explains where we usually land and why — and prepares you for the...

...You can explain the three main web architectures — multi-page app (MPA), progressively enhanced MPA, single-page app (SPA) — and how each splits work between server and browser.

...the logic of every screen Uniform, very slim controllers; lean core models with few callbacks; screen-specific logic and side effects in form models Business logic in models is testable...

...Form models / presenters No default — a gap in the framework ActiveType form models and presenters Screen-specific validations, callbacks and virtual attributes (sign-up, checkout, wizards) don't belong on...

askubuntu.com

Luckily, this is simple. Just install three packages: sudo apt install ipheth-utils libimobiledevice-dev libimobiledevice-utils Then turn on the "Personal Hotspot" in iPhone settings, connect it to your...

paulgraham.com

...programmers dislike meetings so much is that they're on a different type of schedule from other people. Meetings cost them more...

whatsmydns.net

whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP Address and other DNS information against a selection of random...

...name servers around the world. This is especially useful to check the current state of DNS propagation after making changes to your domains zones...

beust.com

In a recent post, Stephan Schmidt makes several suggestions in order to write "Next Generation Java". Unfortunately, I disagree with most of them

makandra Curriculum

...items along one line and wraps, Grid controls both axes together, which makes page skeletons, card galleries and forms with aligned labels far simpler and removes many wrapper elements. As...

...a rule of thumb: Flexbox for one-dimensional flows, Grid for two-dimensional structures. Important Work on this lesson in teacher mode. Learning goals You can explain the difference between...

Let's say you have a gem which has the following module: # within the imaginary super gem module SuperClient def self.foo 'Foo' end def bar 'Bar' end end

...library extensions). Try to avoid it if possible. Add a lib/ext/super_client.rb to your project (see How to organize monkey patches in Ruby on Rails projects) Add the extension, which overrides...

By default parallel_tests will spawn as many test processes as you have CPUs. If you have issues with flaky tests, reducing the number of parallel processes may help.

...Flaky test suites can and should be fixed. This card is only relevant if you need to run a flaky test suite that you cannot fix for some reason. If...

richfrog.curzons.net

Get "PuTTY Link" and "Pageant" (an SSH key agent) from the PuTTY download page. Run pageant.exe, find its icon inside your system tray and add your SSH key.

...a cmd and put the full path to PuTTY's plink.exe into the GIT_SSH environment variable, e.g.: set GIT_SSH=D:\PuTTY\plink.exe You can then use Git like...

apidock.com

2.ordinalize # => "2nd" 1002.ordinalize # => "1002nd" 1003.ordinalize # => "1003rd" -11.ordinalize # => "-11th" -1001.ordinalize # => "-1001st...

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects Motivations are performance, bundle size and general trends for the web...

...can polyfill the missing pieces Unpoly 0.60.0 works with or without jQuery Is jQuery slow? From: Sven To: unpoly@googlegroups.com Subject: performance on smartphones and tablets Hello I just used your...

makandra Curriculum

...a bug resists you. Important Work on this lesson in teacher mode. A debugger statement ("breakpoint") opens a REPL ("console") at that line, where you can inspect the program's...

...debugging console if developer tools are already open. Do this. Note that since JavaScript is single-threaded, you cannot interact with your app's frontend while the debugging console is...

When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never use FLOAT or kittens will die. DECIMAL columns are parametrized...

...with a precision and a scale. These parameters describe which numbers can be stored in that column. E.g. a decimal with a precision of 5 and a scale of...