HNHacker News
TopNewBestAskShowJobs

Cyykratahk

359 karma · joined March 21, 2013

[ my public key: https://keybase.io/lachlan; my proof: https://keybase.io/lachlan/sigs/xAUSn8v549wdW2fORf_IxXSCwwvAsSyPCz1vjERAX1E ]
submissionscomments
Cyykratahk··on ARM vs. Intel on Amazon’s Cloud: A URL Parsing Benchmark
I tried this benchmark on both my desktop (Ryzen 5800X3D) and phone (Sony Xperia 1 IV)

    Windows => time/url=364.626ns
    WSL2    => time/url=234.915ns
    Android => time/url=252.276ns
This benchmark feels flawed to me, but I'm not qualified to speculate why.
Cyykratahk··on What is triald and why is it taking so much disk space?
I suspect that the browser you are using is not spec-compliant. Pseudo-elements (like ::before and ::after) are not actually present in the DOM and are therefore not selectable.

edit: I see that you are probably referring to the z-index of the ::before element overlapping the text, preventing selection.

Cyykratahk··on Strype, a Python frame-based editor
It also shares a name with a prominent furry porn artist, as can be seen from the many NSFW results in Google images.
Cyykratahk··on Show HN: hue.tools – open-source toolbox for colors
A simple function is to calculate whether the total of each RGB channel reaches a certain threshold, with different weights given to each channel. For an example, see the YIQ contrast function used by Bootstrap v4 [0].

WCAG defines their own algorithm for calculating the contrast between two colours to ensure good accessibility [1][2]. Bootstrap v5 uses this [3].

[0] https://github.com/twbs/bootstrap/blob/v4.6.1/scss/_function...

[1] https://www.w3.org/WAI/GL/wiki/Relative_luminance

[2] https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests

[3] https://github.com/twbs/bootstrap/blob/v5.1.3/scss/_function...

Cyykratahk··on Large Eruption Near Tonga, Heard in NZ. Tsunami at Tonga and Fiji
Here's the Himawari-8 satellite viewer, centred on the eruption.

Press the right arrow icon in the bottom right to advance to the next 10min snapshot.

https://himawari.asia/himawari8-image.htm?sI=D531106&sClC=&s...

You can also download high-res images (11000x11000 PNG):

https://sc-nc-web.nict.go.jp/wsdb_osndisk/shareDirDownload/b... (you might have to click this link twice for the search to work)

Cyykratahk··on A guide to designing accessible focus indicators
Yeah it's still around, high-contast is an OS-level accessibility setting in Windows.

Here's a Microsoft article about designing for users who have enabled high-contrast mode (technically websites don't need to do anything at all, as the default browser behaviour gives a pretty decent result):

https://blogs.windows.com/msedgedev/2020/09/17/styling-for-w...

Unfortunately, if you want to test high-contrast mode, you'll need a Windows machine (or VM), as Edge doesn't yet have an emulation mode for it (AFAICT), and BrowserStack doesn't let you change OS settings, only browser settings.

Cyykratahk··on The human ear detects half a millisecond delay in sound
This is known as Delayed Auditory Feedback

https://en.wikipedia.org/wiki/Delayed_Auditory_Feedback

Cyykratahk··on Show HN: Tilemaker – DIY vector tiles from OpenStreetMap data
The submitter of this issue [1] reported that 64GB of RAM was insufficient to load an 18GB PBF. Considering the planet PBF is 58GB, you're going to need a lot of RAM (and time).

I tried the example tilemaker config (4 layers, zoom 11-14) on the 519MB Australia PBF. My 24 thread PC took a little under 20 minutes to finish generating 773,576 tiles, using about 10GB of RAM.

1. https://github.com/systemed/tilemaker/issues/238

Cyykratahk··on SVG favicons have some cool benefits
Great article

Earlier this year I created my own ICO editor for fun [1]. I learned a lot about reading and writing binary files, and decoding BMP data. While testing the editor on existing site favicons I kept finding that they were all uncompressed BMP data, and came to a similar conclusion to your article after checking the icons used on the Alexa top 100 sites.

I guess this is a combination of the ICO format being somewhat opaque (it's hard to tell if it's using BMP or PNG without using a hex editor), and that there aren't many applications available that create PNG-based ICO files in the first place (especially ones that are used in web development pipelines).

1. https://ico-editor.lach.app/ - Client-side ICO viewer/editor, can open and convert BMP to PNG.

PS. I noticed that your own site's favicon is uncompressed.

Cyykratahk··on A woman's battle to prove she isn't dead
I don't understand why the author leaves many words and phrases untranslated. They have translated everything else, but why leave "carte d’identité" or "grande école"? Why say "mairie (town hall)" instead of just saying town hall?

These are not loan words that exist in English, and the untranslated words themselves did not seem essential to the story.

I've seen a similar issue with Anime fansubs where the translator deems certain words to be untranslatable, and then adds an entire extra sentence of definition on screen upon the first usage.

Cyykratahk··on Australia opposes Great Barrier Reef ′in danger′ listing
Chris Bowen brought a solar panel into parliament just a few days ago: https://twitter.com/MichaelM_ACT/status/1405035688681111554
Cyykratahk··on The Shortest Possible Game of Monopoly (2010)
You are correct, I guess my reading comprehension isn't what it used to be. I thought I saw an error and got blinded by the rush of posting a correction.
Cyykratahk··on The Shortest Possible Game of Monopoly (2010)
Exactly, even this run is using house rules, as the official rules state that you are required to own all properties of the same colour before building, and also that houses must be built evenly on each property.
Cyykratahk··on Apple Card Disabled My iCloud, App Store, and Apple ID Accounts
There's precedent for banks doing this, so it's certainly possible.

For example, Australian banks are required to provide a list of recurring payments for the last 13 months upon request [1]. The rationale is to make it easier to switch banks, forcing banks to be more competitive.

[1] https://bankingcode.org.au/resources/2019-banking-code-of-pr...

Cyykratahk··on Null
Found some GitHub issues [1] with something similar: an enterprise firewall blocking a repo because it contained the string "arglebargleglopglyf" [2] in some tests.

The text was flagged as malicious because of its presence in the repo github.com/wireghoul/htshells [3]. However, the whole point of the word in the htshells repo is that it's an invalid command that breaks Apache, so it could have been almost any random string.

[1] https://github.com/search?q=arglebargleglopglyf&type=issues

[2] https://mume.org/help/arglebargle

[3] https://github.com/wireghoul/htshells/blob/master/dos/apache...

Cyykratahk··on Malware on My Android Phone
Scrolled down until 1000 reviews had loaded.

Used the simplescraper.io Chrome extension (with a little bit of DevTools fiddling) to export a CSV.

Created a pivot table in Excel and charted the results.

Cyykratahk··on Malware on My Android Phone
Yeah, something's fishy.

I scraped the latest 1000 reviews (coincidentally almost exactly 12 months worth).

The "adware" reviews are all very recent with large amounts of votes.

They seem to start on December 18, with 162 1-star reviews in the following 25 days -- more than all the 1-star reviews in the 6 months prior.

I wouldn't be surprised if these reviews are not only automated spam, but are constantly being deleted and reposted to keep them "fresh", and at the top of the "relevant reviews".

Charts: https://imgur.com/a/QUyHcHu

CSV of review data: https://pastebin.com/ZanYgd5Y

Cyykratahk··on The FBI Is Breaking into Encrypted Devices – We’re Suing
Unfortunately, Android has a maximum password length of 16 characters.
Cyykratahk··on Automate any tasks that require multiple entries of data in a browser
Just from that one error message we can infer the following issues:

1. Not using the built-in WP_Http class or related helper methods (wp_remote_get) that provide headers, timeouts, useragent, auth, etc.

2. Unserialising remote, untrusted PHP objects (!) (Why does Vimeo provide/encourage this?)

3. Not handling HTTP error response codes.

4. PHP errors are not hidden from users.

Cyykratahk··on TeXMe Self-rendering Markdown and LaTeX documents
This script could be automatically injected before .md files using the nginx directive add_before_body. An instant static site of markdown files with no preprocessing step.

    location ~* /markdown/.*\.md$ {
      add_before_body "/markdown/header.html";
      types {}
      default_type text/html;
    }
And a little bit of CSS to keep the line breaks if the JS is disabled:

    <!DOCTYPE html><script src="https://cdn.jsdelivr.net/npm/texme@0.7.0"></script>
    <style>body > main { white-space: normal; }</style>
    <body style="white-space: pre-line;">
Cyykratahk··on Mutt email client 25 years old
To add to what you are saying, here is a short article highlighting which words should be avoided: https://css-tricks.com/words-avoid-educational-writing/
Cyykratahk··on Osborning the Mac, or not
Somewhat off-topic, but what a strange image to feature in the article: a composite of the Apple logo over the Sony PlayTV [1] logo, a PlayStation 3 accessory for watching television.

[1] https://en.wikipedia.org/wiki/PlayTV

Cyykratahk··on Bouncing DVD Logo
Exactly. This is what CSS Animations [1] were made for. And you don't even need to do collision detection, as CSS can already alternate directions and loop infinitely.

https://bouncing-logo-css.glitch.me/

Just needed a tiny bit of JS to set the sizes and randomise the logo colour.

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animati...

Cyykratahk··on I got my file from Clearview AI
I had the same issue. Found it was because I had set Firefox to block all cookies for medium.com (probably to get around the article limit).
Cyykratahk··on Putting Devs Before Users: How Frameworks Destroyed Web Performance
The linked Medium article is over 3MB, almost 2MB of that being JS.
Cyykratahk··on Why some apps use fake progress bars (2017)
Almost nine thousand lines of Javascript to show a fake loading screen for a few seconds...
Cyykratahk··on China Will Resurrect the World's Largest Plane
http://archive.is/LlIuW
Cyykratahk··on NASA Camera Shows Moon Crossing Face of Earth for 2nd Time in a Year
Clouds don't move very much on a planetary scale over a single day: http://himawari8-dl.nict.go.jp/himawari8/movie/720/coastline...

The Earth's rotation in the original gif makes it more difficult to see the cloud movement, but it's certainly present.

Cyykratahk··on Windows 10 Enterprise telemetry network traffic analysis, part 1
Data from OSX and some popular Linux distros would be good to see as well.
Cyykratahk··on Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
PowerShell can handle CSV files natively.

Here are the equivalent commands from the article:

  Import-Csv example.csv | Select-Object year, price   | Export-Csv -NoTypeInformation example-cut.csv
  Import-Csv example.csv | Sort-Object   year          | Export-Csv -NoTypeInformation example-sorted.csv
  Import-Csv example.csv | Where-Object  year -eq 1999 | Export-Csv -NoTypeInformation example-filtered.csv
PowerShell can also deal with JSON and XML in much the same way.
← PreviousPage 2 of 3Next →