Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mfontani
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
mfontani
6y ago
> In 2021 I don’t see any reason to use perl over python3 anymore Is there, in 2021, a "use strict" equivalent for Python, or can one still misspell variable names and not be warned about it?
92.
▲
by
mfontani
6y ago
I often see examples comparing one-liner worthy code written in one language with beautiful, linted, critique-passing indented code written in other languages, and on and on goes the Perl bashing based on examples of the former.
93.
▲
by
mfontani
6y ago
What would "all the badness of Perl" be?
94.
▲
by
mfontani
6y ago
> On Vim: <Shift>+; (:) nnoremap ; : I've never missed the default behaviour of ";" (to repeat the last "t"-like command), and the above has helped me tremendously
95.
▲
by
mfontani
6y ago
The memories.... I started learning C on my second PC, a 486SX, then later swapped its CPU to a 486DX2 which continued to run until early 2001, serving a website and a MUD from a desk at a local ISP until its final demise.
96.
▲
by
mfontani
6y ago
This past week The Register ran a "debate", with one article "for" the motion, and one "against" it. The topic was the use of the word "hacker". I found the results of the readers' poll quite int
97.
▲
ElReg debate results: don't use word 'hacker' when you mean 'criminal'
(theregister.com)
3 points
by
mfontani
6y ago
|
2 comments
98.
▲
by
mfontani
6y ago
Like the server's access log?
99.
▲
by
mfontani
6y ago
> Google Analytics fires even before the cookie banner That might well not be a problem, depending on how the configuration and setup of Google Analytics was done in that case. From https://www.cookiebot.com/en/googl
100.
▲
by
mfontani
6y ago
Thanks for the correction. My point remains that the "NoScript" extension doesn't do anything with those "noscript" blocks, so they're not shown to the user despite the user not executing JS on the site. This i
101.
▲
by
mfontani
6y ago
IIRC if you turn JS off in the browser, the "noscript" blocks on sites get executed. But if you turn NoScript on, the "noscript" blocks aren't executed.
102.
▲
by
mfontani
6y ago
Dokku is "it" for me, but I'm sure there are others. Works pretty well, but it's (to the best of my knowledge) for one node only.
103.
▲
by
mfontani
6y ago
Ha! Missed the tiny "mean" vs "median" difference between the first two. Thanks!
104.
▲
by
mfontani
6y ago
Both charts purportedly show stats for 2001-2011. Is it the case the first shows 2001-2011, and the second 2011-2021?
105.
▲
by
mfontani
6y ago
IIRC the (proposed? is it in place yet?) EU cap is 0.2% for debit cards and 0.3% for credit cards.
106.
▲
by
mfontani
6y ago
Not clicking "yes" would work if most sites weren't, in fact, sending all tracking/setting all cookies by default, which most are :/
107.
▲
by
mfontani
6y ago
It's great if you're happy having (effectively) one SSH keypair to log into _every_ service you might potentially log into. The minute you "wrongly" "ssh -A" into a pwned box, forwarding the agent - it's g
108.
▲
by
mfontani
6y ago
If you have configured "spt" -- see https://github.com/Rigellute/spotify-tui -- you can "spt playback --like" to like the currently playing song. That program will work regardless of which device is
109.
▲
by
mfontani
6y ago
indeed - this works well with i3 + spotify (I only use spotify as my media player nowadays): bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpr
110.
▲
by
mfontani
6y ago
When I need my programs to use specific colors, I tend to use the RGB variety - which works regardless of preferences: "\e[0;48;2;R;G;Bm" While my "color1" might be different than yours, terminals don't usually fidd
111.
▲
by
mfontani
6y ago
And... surprise! It's analytics, tracking, and advertisements!
112.
▲
by
mfontani
6y ago
In Italy the TV fee is automatically added to the electricity bill, and is IIRC non-optional. See: https://en.wikipedia.org/wiki/Television_licensing_in_Italy
113.
▲
by
mfontani
6y ago
There are many Perl projects used in serious applications. Here's a few: https://www.rexify.org/ -- an automation framework https://mojolicious.org/ -- amazing web framework https://metacpan
114.
▲
by
mfontani
6y ago
With HTTP/2 one is way better off using one connection to one domain instead. How has the world changed.
115.
▲
by
mfontani
6y ago
Randomize the answers to those things, and stick them in your password manager alongside (or separate from) the log-in information. Site asks for my mother maiden's name? Let me check "pwgen 18 1"... That'll be "Viq
116.
▲
by
mfontani
6y ago
I'm running a similar setup, whereby I run most applications (even the browser I'm using to type this reply) in docker or podman containers, opportunely created. Judging from the Git repo containing my dockerfiles, I've been
117.
▲
by
mfontani
6y ago
$ git config --global alias.praise blame # Who wrote this most beautiful piece of.. code?
118.
▲
by
mfontani
6y ago
Plenty room for more (concurrent) layers, too! I've only recently embraced using multi-stage build to concurrently split a build in two to four steps * (one or more) fetcher, for fetching (say) the source package or cloning a git repo
119.
▲
by
mfontani
6y ago
On Vim, ":set mouse" enables the use of the rodent inside the application. See ":help mouse" for more information. If it's set to "n" (for "normal mode") or "a" (for "all modes&quo
120.
▲
by
mfontani
6y ago
The vast majority of what I guess is "robotic, but javascript-running" traffic identifies itself as the (headless) browser it most likely uses, i.e. Chrome. When such crawlers use a distributed network of machines to crawl, there&
More ›