HNHacker News
TopNewBestAskShowJobs

yegle

3,081 karma · joined September 17, 2012

submissionscomments
yegle··on The privacy nightmare of browser fingerprinting
https://en.wikipedia.org/wiki/Google_Contributor was the ideal solution IMHO.
yegle··on Performance hacks for faster Python code
FWIW: the `x in foo` test calls the `foo.__contains__` magic method.

For a list, the only way to implement it is by iterate through it (see the `list_contains` function in the CPython code).

But for the special `range` object, it can implement the `__contains__` efficiently by looking at the start/stop/step (see the `range_contains` source code).

Although the Hack 1 is for demonstration purpose, in most cases you can just do `999999 in range(1000000)`.

In my test, the same `999999 in foo` is 59.1ns for the range object, 27.7ns for the set, 6.7ms for the list. The set is the fastest, except converting the range object to the set takes 21ms.

yegle··on Google is killing the open web, part 2
Isn't the decision made by all the browser vendors (including Apple and Mozilla)?
yegle··on I finally understand Cloudflare Zero Trust tunnels
Not sure if you are a representative from Cloudflare. But regardless, Cloudflare intentionally made it ambiguous so that they can selectively enforce it.
yegle··on I finally understand Cloudflare Zero Trust tunnels
Free Cloudflare account cannot be used to serve my Plex server. To me that's a no-go.

The specific term is: https://www.cloudflare.com/service-specific-terms-applicatio...

yegle··on The overengineered solution to my pigeon problem (2022)
> Pigeons are very pleasant to touch. The feathers have a silky feeling and they are warm, warmer than people.

My first language is not English, so I learned this late: pigeons are perceived as dirty birds due to its presence in urban environments, but they are the same species of doves which is perceived as clean. In my first language they are just called "pigeon" and "white pigeon".

yegle··on Removing XSLT for a more secure browser
FWIW the original post explicitly mentioned this use case and offered two ways to workaround.
yegle··on FFmpeg dealing with a security researcher
Please stop spreading this misinformation. At least in Debian this is enabled by default (and as another post indicates, Ubuntu as well).

Run the following command to confirm:

ffmpeg -codecs|grep sanm

yegle··on Unlocking free WiFi on British Airways
FWIW this is called https://en.wikipedia.org/wiki/Domain_fronting
yegle··on Scripts I wrote that I use all the time
The markdownquote can be replaced by (at least in vim):

^ (jump to the beginning)

ctrl+v (block selection)

j (move cursor down)

shift+i (bulk insert?)

type ><space>

ESC

yegle··on I built physical album cards with NFC tags to teach my son music discovery
Hmm w/o using Plex, I think the same can be done using a RasPi w/ an NFC reader to send a command to a remote MPD server to start casting to my Google Home devices. The NFC tag to album mapping can be managed using a plaintext file.
yegle··on Ladybird passes the Apple 90% threshold on web-platform-tests
As a consumer I definitely want my browsers to always be up to date and be able to address 0day bugs as soon as the browser vendors are aware. Any potential delays on fixing security issues make me nervous.
yegle··on PEP 810 – Explicit lazy imports
I recall chg was a must.
yegle··on How the AI Bubble Will Pop
I used BofA chat bot embedded in their app recently because I was unable to find a way to request a pin for my card. I was expecting the chat bot to find the link to their website where I can request the pin, and would consider a deep link within their app to the pin request UI a great UX.

Instead, the bot asked a few questions to clarify which account is for the pin and submitted a request to mail the pin, just like the experience talking to a real customer representative.

Next time when you see a bot that is likely using LLM integration, go ahead and give it a try. Worst case you can try some jailbreaking prompts and have some fun.

yegle··on Companies are lying about AI layoffs?
Genuine question: what's the relation between "beneficiaries approved" and "# of layoffs"?

In Prometheus' term, the "beneficiaries approved" is neither a counter nor a gauge. It doesn't tell you the percentage of H1b holders amongst all full time employees and certainly don't include H1b contractors. It also don't include other temporary visa types like L1 or H4, both could be "cheap foreign labors".

The "# of layoffs" also doesn't provide much information about how many H1b holders are part of the layoffs.

The goal of combining the two columns seems to be giving reader a fuzzy feeling that they are correlated, to support the author's narrative.

yegle··on What is “good taste” in software engineering?
How to distinguish "good taste" vs "opinionated" though?

If you can articulate why certain code is better with convincing justifications, I would say that's "good taste". Coding styles are often examples of these.

But if you can't articulate or don't have a convincing reasoning for preferring certain coding patterns, isn't it just "opinionated"?

yegle··on She Sent Her iPhone to Apple. Repair Techs Uploaded Her Nudes to Facebook (2021)
Oh I meant it should not be a discovery issue if this is the standard procedure. The user don't have to know the feature exists.
yegle··on She Sent Her iPhone to Apple. Repair Techs Uploaded Her Nudes to Facebook (2021)
Shouldn't it be a standard procedure for the Apple Store Genius to instruct the user to enable Repair Mode before accepting the device?
yegle··on When I say “alphabetical order”, I mean “alphabetical order”
TIL they are called "hives". Windows Registry is an interesting thing. Even casual users have to interactive with it once or twice w/o fully understand it.

https://learn.microsoft.com/en-us/windows/win32/sysinfo/regi...

yegle··on The DHS has been harvesting DNA from Americans for years
California is ahead of the curve:

DNA of every baby born in California is stored. Who has access to it? - CBS News https://www.cbsnews.com/news/california-biobank-dna-babies-w...

yegle··on Not all browsers perform revocation checking
I wonder if any free certificate issuers still support Must-Staple?
yegle··on Not all browsers perform revocation checking
[citation needed]
yegle··on Public Suffix List
TIL! Guess I have to do a `go get -u golang.org/x/net/publicsuffix` now.
yegle··on Bookmarks.txt is a concept of keeping URLs in plain text files
My way of managing bookmarks is to just print the page as a PDF, save PDF in a Google Drive folder. Then you can do full text search quickly.
yegle··on The Fancy Rug Dilemma
Mentioning the man hours would make sense, if the ones producing the product taking the majority cut from the purchase price.

Otherwise, it's more of a strategy to set a higher price tag, and the reseller and all the middleman taking all the extra revenues.

yegle··on An Update on Pytype
fwiw the original pytype team was laid off as part of laying off the Python team last year.

Google lays off its Python team | Hacker News https://news.ycombinator.com/item?id=40171125

yegle··on I'm worried it might get bad
AFAIKT 1. was reverted in the OBBB. And I suspect my recent influx of recruiter outreaching email is related to that. Give it 3 more months and things may trend upward.
yegle··on Zig's Lovely Syntax
> As Zig has only line-comments, this means that \n is always whitespace.

Do I read this correctly that it replaces `\n` at the end of the line with a whitespace? CJK users probably won't be happy with the additional whitespaces.

yegle··on Slow
This reminds me of the US Navy's Oak forest for ship building: https://en.wikipedia.org/wiki/Naval_Live_Oaks_Reservation
yegle··on Carbon Language: An experimental successor to C++
A similar example is Facebook/Meta inventing Hack to progressively replacing the old PHP code.
← PreviousPage 4 of 23Next →