You should look for rows with State: LISTEN. Rows for local address 127.0.0.1 or ::1 (IPv6) can only be reached from your own PC: Proto Recv-Q Send...

...Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:3000 0.0.0.0:* LISTEN 9630/ruby Rows for local address 0.0.0.0 can be reached from other PCs on your network...

makandra dev

...family: 'My variable font', Verdana, 'Helvetica Neue', Helvetica, sans-serif font-feature-settings: "kern" 1 ,"liga" 1, "calt" 1, "locl" 1 strong font-variation-settings: "wght" 700 font-weight: normal...

...you to reset font-weight on elements like , or :. strong font-variation-settings: "wdth" 100, "wght" 700 font-weight: normal // Ensure that the text is not fattened twice

makandra dev
unpoly.com

Unpoly 3.11.0 is a big release, shipping many features and quality-of-life improvements requested by the community. Highlights include...

...provides strong results at a lower cost. However, due to its significantly higher cost—$186.5 compared to $18.16 for o3-mini—o1 is best suited for highly analytical and complex...

makandra dev
github.com

...Rails App with a core model (class FatModel) that has many (30) attributes and 100k records (totaling 500MB of data) in the corresponding PostgreSQL table An API endpoint /fat_models/index.json renders...

...to be very slow Measurements (N=20) showed that it takes an average of 10 seconds to render The log output already suggests an optimizable SQL query, view rendering time...

...certificate for localhost, you can use the following command. openssl req \ -x509 \ -nodes \ -days 10000 \ -newkey rsa:2048 \ -keyout development.key \ -out development.crt \ -subj "/CN=localhost" This generates a development.crt certificate...

...file and development.key key file. Note that the certificate will be valid for 10000 days, just because we don't want to do this again in a month or a...

...node-sass with esbuild. See here - you have to downgrade esbuild-sass-plugin to 1.x for that, because 2.x does not support node-sass anymore.). add libraries, that...

:file => "CarrierWave::Storage::File", :fog => "CarrierWave::Storage::Fog" } config.storage = :file config.cache_storage = nil # (1) config.fog_attributes = {} config.fog_credentials = {} config.fog_public = true config.fog_authenticated_url_expiration = 600 config.fog_use_ssl...

makandra dev

...functionality with a lot of code: https://github.com/jquery/jquery/blob/master/src/event.js Overhead of adding and removing 1000 event listeners Method duration Element#addEventListener() 11.3 ms native code $.fn.on() 60.3 ms

...of userland code up.on() 15.9 ms ~ 130 lines of userland code Overhead of adding 200 elements to an Array vs. adding to a jQuery collection Method duration Array.prototype.push()

makandra Curriculum

# passes expect(movie1).to have_same_attributes_as(movie3) # Fails with 'Expected movie #112 to have same attributes as movie #113, but the attributes #title and #year differed'

...the setup's scope. describe Klass do describe '#foo' do it 'does basic thing 1' do # isolated test without shared setup here end it 'does basic thing 2' do # isolated...

...skip the rest. Also skip deployment to Heroku and upload to AWS S3 everywhere. 1 From zero to deploy Introduction 1.1 Up and running 1.2 The first application

7.3 Unsuccessful signups 7.4 Successful signups 7.6 Conclusion 8 Basic login All chapters 13 User microposts All chapters except 13.4.4 Image upload in production For each chapter:

...new style 'Delete %{count} users?' -- When using VIM you can use this command: :%s/{{\([^\}]*\)}}/%{\1}/cg Fix deprecation warnings with :overwrite_params Run tests Deploy See the commit log for...

...Fixes several serious vulnerabilities. Step-by-step upgrade instructions: Upgrade json gem to atleast 1.7.7, 1.6.8, or 1.5.5 Upgrade rails gem Change your environment.rb so it says RAILS_GEM_VERSION...

...allowing you to keep your integration tests as DRY as your application code. Option 1: Call other step definitions This is Cucumbers default way of sharing short setup steps or...

...use to create great-looking screen designers when you're not a designer. Part 1 contains: Light comes from the sky Black and white first Double your whitespace

apidock.com

end end end end Output: == AddUserToken: migrating ========================================= # ... == AddUserToken: now generating tokens ============================= -- For users #1 to #500 -> 1.542s -> 1 rows == AddUserToken: migrated (1.0003s...

makandra dev
gist.github.com

...blocks or methods n times. If you accidentally stepped, you can return with finish 1. next [n] -- Runs n lines of code within the same frame Stacktrace frame [n] -- Moves...

makandra dev
github.com

...XSS]: (javascript:prompt(document.cookie)) [XSS](javascript:window.onerror=alert;throw%20document.cookie) [XSS](javascript://%0d%0aprompt(1)) [XSS](javascript://%0d%0aprompt(1);com) [XSS](javascript:window.onerror=alert;throw%20document.cookie) [XSS](javascript://%0d...

...20document.cookie) [XSS](data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K) [XSS](vbscript:alert(document.domain)) [XSS](javascript:this;alert(1)) [XSS](javascript:this;alert(1)) [XSS](javascript&#58this;alert(1))

...async function helperFunction() { console.log("second") await backgroundTask() console.log("third") } // Stub function that resolves after 100 milliseconds, could be an API call function backgroundTask() { return new Promise((resolve) => setTimeout(resolve, 100...

...should wait for the remaining milliseconds until the next second starts. For example, at 13:23 and 441 milliseconds, atFullSecond(1) should wait for 559 milliseconds before triggering the callback...

boredzo.org

...the configuration file of the shell your using instead): man() { LESS_TERMCAP_mb=$'\e'"[1;31m" \ LESS_TERMCAP_md=$'\e'"[1;31m" \ LESS_TERMCAP_me=$'\e'"[0m" \ LESS_TERMCAP_se...

LESS_TERMCAP_so=$'\e'"[1;44;33m" \ LESS_TERMCAP_ue=$'\e'"[0m" \ LESS_TERMCAP_us=$'\e'"[1;32m" \ command man...

makandra Curriculum

...fully complete. Until then, we have to work with two versions. Concentrate on chapters: 1 (Introduction), 2 (Setting up RSpec), 3 (Model specs) and 4 (DRY enough specs) from the...

...Is Dead, Long Live CSP! Ergebnis: ~ 95% vorhandener CSP-Policies bieten keinen Schutz Grund 1 Meist offensichtliche Fehlkonfiguration (Wildcards, unsichere Domains, object-src fehlt etc) Grund 2 Bibliothek mit JSONP...

...JavaScript reflection gadget", Bibliothek erlaubt einen Weg DOM-Inhalte zu Code zu machen. Beispiel. {{ 1000 - 1 }} Grund 4 User kann Javascript zur Domain hochladen. Wichtig: User darf nie Dateien hochladen...

...remove) certain lines through navigating in the changes and select the current line with 1 Split a chunk with...

...in SQL this looks like SELECT `models`.* FROM `models` WHERE `models`.`id` = 23 LIMIT 1 FOR UPDATE You have to do this at the point where the object is loaded...

# This block is called within a transaction, # account is already locked. account.balance -= 100 account.save! end More on row locking http://dev.mysql.com/doc/refman/5.1/en/innodb-locking-reads.html http://www.postgresql.org/docs/current/interactive/sql-select.html#SQL-FOR-UPDATE-SHARE Other types of...

...card contains some advice that has helped me to use icon fonts more comfortably. 1 Map the font's icon names into your application domain You don't want to...

...repeat a 100 times that the icon for a "post" is actually icon-comment-alt, or that cancel buttons should be decorated with icon-remove because the shape fits so...