palsecam

Joined 19 years ago

Karma
889
Submissions
176
Member since
Feb 7
https://paul.fragara.com/
View on Hacker News

Recent submissions

Comment · 11 months ago
Yes @ 444 (https://http.cat/status/444). That’s indeed the lightest-weight option.

> You have an image on your error page, which some crappy bots will download over and over again.

Most bots won’t download subresources (almost none of them do, actually). The HTML page itself is lean (475 bytes); the image is an Easter egg for humans ;-) Moreover, I use a caching CDN (Cloudflare).

Comment · 11 months ago
Comment · 1 year ago
Comment · 1 year ago
Btw, a Tor relay can be relatively lightweight. I run one on a $5/mo VPS (which does many other things). You need 1 GiB of RAM, but a single basic CPU core largely suffices. My relay sends/receives ~150 GiB of traffic per day (~15 Mbits/s). It’s not an exit node, so no legal worries.

Here’s my torrc:

  SocksPort  0
  ExitRelay  0

  ORPort     NNNN
  DirPort    NNNN

  Nickname     X
  ContactInfo  [email protected]

  RelayBandwidthRate    80 megabits
  RelayBandwidthBurst  120 megabits

  MaxMemInQueues  384 megabytes

  AvoidDiskWrites  1
  HardwareAccel    1
  NoExec           1
  NumCPUs          1
Here’s my override config for systemd (Ubuntu 24.04):

  $ sudo systemctl edit tor@default
  [Service]
  Nice=15
  CPUAffinity=0
  CPUWeight=60
  StartupCPUWeight=6
  IOWeight=60
  TimerSlackNSec=100us

  MemoryMax=896M
  MemoryHigh=800M
  OOMScoreAdjust=1000

  LimitAS=2G
  LimitNPROC=512
  LimitNOFILE=10240

  PrivateDevices=true
  ProtectSystem=true
  ProtectHome=true
Comment · 1 year ago
Oh but yes, Firefox (and Chrome) do support XSLT natively! See https://paul.fragara.com/feed.xml as an example (the Atom feed of my website, styled with XSLT).

FTR, there’s also XSLTProcessor (https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcess...) available from Javascript in the browser. I use that on my homepage, to fetch and transform-to-HTML said Atom feed, then embed it:

  const atom = new XMLHttpRequest, xslt = new XMLHttpRequest;
  atom.open("GET", "feed.xml"); xslt.open("GET", "atom2html.xsl");
  atom.onload = xslt.onload = function() {
    if (atom.readyState !== 4 || xslt.readyState !== 4) return;
    const proc = new XSLTProcessor;
    proc.importStylesheet(xslt.responseXML);
    const frag = proc.transformToFragment(atom.responseXML, document);
    document.getElementById("feed").appendChild(frag.querySelector("[role='feed']"));
  };
  atom.send(); xslt.send();
Server-side, I’ve leveraged XSLT (2.0) in the build process of another website, to slightly transform (X)HTML pages before publishing (canonicalize URLs, embed JS & CSS directly in the page, etc.): https://github.com/PaulCapron/pwa2uwp/blob/master/postprod.x...
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Ironic indeed.

For ref: https://en.wikipedia.org/wiki/Operation_Paperclip (I didn’t get it at first)

The Operation Paperclip was a secret United States intelligence program in which more than 1,600 German scientists, engineers, and technicians were taken from former Nazi Germany to the US for government employment after the end of World War II in Europe, between 1945 and 1959; several were confirmed to be former members of the Nazi Party, including the SS or the SA.

Comment · 1 year ago
“Reverse brain drain”, so to say.

Well, good for Europe. Like it was good for the USA when (jewish) scientists emigrated there in the 30–40s.

Comment · 1 year ago
You have a point, for sure; the _whole_ previous century (couple centuries, even) of Japan economical history is one-of-a-kind (as is Argentina’s).

However, wtr. “lost decades are quite easy to understand with conventional economics”: that’s more debatable. For example, stagflation is common(ly explained), but stag-deflation (as in Japan) is more unusual and has weirder effects. The US subprime crisis was also a real estate bubble (which, here also, rippled to the financial markets), but its burst had quite different fallouts.

Anyway, thanks for adding to the discussion, and disclaimer: IANAE (I Am Not An Economist — thanks God ^^)

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Vladimir Arnol’d (the famous Russian mathematician) touches on that subject in his essay « Sur l’éducation mathématique » <https://smf.emath.fr/system/files/filepdf/Gaz-78-Arnold.pdf> (in French; Arnol’d also taught in France).

According to him, mathematical teaching has become overly abstract, leading to students being disgusted by maths, seeing it as disconnected from reality. Some of these students then end up being ministers… Original quote:

« Comme de telles mathématiques scolastiques, séparées de la physique, ne sont adaptées ni à l’enseignement, ni à aucune application éventuelle à d’autres sciences, les mathématiciens se sont fait haïr des lycéens (dont certains ensuite sont devenus ministres) et des utilisateurs. »

Comment · 1 year ago
(2015)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton