codesections is a user on fosstodon.org. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

codesections @codesections@fosstodon.org

Modern media:

> Writes a glowing profile of Tim Berners-Lee's plan to reclaim web privacy from corporations determined to abuse it.

vanityfair.com/news/2018/07/th

Also modern media:

> Publishes that article with 20 separate javascript files, including *16* known tracking scripts blocked by PiHole.

Just discovered , a drop-in replacement for the Unix `cat` command. It supports automatic paging, line numbers, and syntax highlighting, and it is extensible with custom color schemes.

github.com/sharkdp/bat/

-tools

`cat` `bat`

codesections boosted

Link me to your absolute favourite README

(Or top few favorite, I want lots of asnwers.)

codesections boosted

I've recently learned a whole lot about how to use #iterator #functional #combinators in Rust (that is, functions like map(), fold(), filter(), et cetera), and how they interact with #optional and result types.

Here's a quick writeup on that: Chaining Fallible Operations with Combinators leotindall.com/tutorial/chaini

#programming #rust #rustlang #coding #functionalprogramming #fp

One thing I love about React/Redux development is having a single source of truth for application state.

But, from a decentralized web perspective, I *hate* how this pushes state out of the HTML. In my view, HTML should have all content, and state is (often) part of content; "view source" should mean something.

Would it be possible to invent an alternative paradigm that keeps all state in the HTML, maybe using data attributes? Or does that paradigm already exist?

codesections boosted

The Norwegian Consumer Protection Agency has just released an analysis of "dark patterns" used by Google, Facebook and Microsoft to trick users into giving up their privacy – in spite of #GDPR. You can download the 44 pages PDF here:

fil.forbrukerradet.no/wp-conte

codesections boosted

brutaldon release (tech) Show more

Python feels like a language written mostly in C by people who don't particularly care for C.

JavaScript feels like a language written mostly in JavaScript by people who really want JavaScript not to suck.

-gen v0.4.0 released!

This version adds the `--report-entropy` command, which shows various statistics about the security of passphrase pass-gen created for you. (screenshot below)

Source: github.com/codesections/pass-g

gitlab.com/codesections/pass-g

I've always wondered: when I enter my password on Linux, it accepts a correct password in well under 0.5 seconds. But if I mistype the password, it take ~1.5 seconds to reject the password.

Why does one operation take longer than the other?

codesections boosted

@mkb
@wakest @charlag @Gargron @rysiek
Just to chip in here and add: this frames the "victory condition" nicely. The goal of crypto is to make it too costly for State Actors to pick targets without careful consideration. If attacking you with certainty costs them 0.01c, they'll hit everyone. If it's 1c, they'll automate it. If it's 100, a human analyst will decide. 10,000, and it's a committee.

Just tweaked the CSS for my blog to add "cards" around my post. I'm not entierly sure about the look from a pure design perspecive, but it keeps the site looking a bit more up-to-date. Thoughs?

codesections.com/blog

codesections boosted

There's no such thing as useless knowledge. I keep finding actual practical uses for all kinds of trivia I've picked up over the last twenty years, and while it does surprise me every time, it certainly encourages me to keep accumulating it.

codesections boosted

(programing) Language design question:

In natural languages, it is common to say something like: "If the student is in 8th or 9th grade, then they eat at 12:30."

I would think that this could be expressed in pseudocode as:

`if (grade == 8 or 9) {
lunchTime = "12:30";
}`

However, I've never seen a language that lets you say that. Instead, you are forced to be more verbose:

`if (grade == 8 or grade == 9) {
lunchTime = "12:30";
}`

Is there a reason the first can't be allowed?

New blog post reviewing the static site generator , which I tried out before switching to

codesections.com/blog/hexo-rev

codesections boosted

OK, Apple people, I have a question and I'm hoping you can help me.

My wife's work computer won't start. It's a Macbook Air, and we're just trying to do some initial triage before taking it to their IT group.

It shows the logo and the progress bar fills all the way, but it doesn't go further.

I've tried booting in safe mode and I've tried resetting the SMC firmware (not sure this was required).

Anything else I should try (keeping in mind I have nothing but a power cord and a laptop here)?

Tweaked the of my website, focusing on mobile. I dropped the font size, but think it's still legible. Thoughts? Suggestions?

Before (left) after (right)