On macOS we can turn Wi-Fi’s IPv6 off from the terminal:
$ networksetup -setv6off Wi-Fi
If prompted, we need to authorize with our password.
Ruby blocks
In Ruby we can write blocks either pairing do… end or {}. Although, at times, is necessary to switch one for the other. We may consider them syntactically equivalent, and restrict their use to show their intent.
We can show a block’s functional intent by using {}. That is, when we care about the block’s returned value, but also that it doesn’t change the system’s state.
When the block mutates the system’s state, and we don’t care about the returned value, we’d use do…end.
If a block is doing both, returning a significant value and changing the state of the system, consider separating any commands from queries being made.
Loading Times
End-user machine times, as opposed to developer machine times
A typical Ruby MVC app takes
Server response time
Status
Avg < 50 ms
Fast
50 ms > Avg < 300 ms
Avg
Avg >= 300 ms
Slow
For the front,
Browser load time
Status
Avg < 500 ms
Fast
500 ms >= Avg < 2 s
Avg
Avg >= 2 s
Slow
Simple JSON API servers take
Server response time
Status
Avg < 25 ms
Fast
25 ms > Avg < 150 ms
Avg
Avg >= 150 ms
Slow
Feed Changes
A brief notice for receiving this via RSS.
With all the changes this little site has been through lately, we forgot to mention that we have effectively moved our feed from a RSS to Atom.
If you subscribed to S&D’s Feed before July 22nd you’ll stop receiving new posts, and bits on October 1st.
You can already subscribe to our new Atom feed. Simply add https://search-and-deploy.gitlab.io/atom.xml to your reader.
Download Integrity
Some FLOSS provide md5 hashes to verify the integrity of the what we are about to download (installers, source code, etc.). On macOS, using ZSH, we can validate the integrity of our file with:
According to the archilinux wiki we can safely remove a few hidden add-ons which firefox includes by default. Beware, doing so will only remove these features until next update.