News for hackers. Stuff that matters.

0xml

Re:CLI tool to check the Git status of multiple projects on Thursday November 20, 2025 @09:54AM (#45993187)
I'm using Google's `repo` for multi-repo project at work.

https://gerrit.googlesource.com/git-repo

Oops, updated.
Last time I found a paper in Graphics Gems titled Solving the Nearest-Point-on-Curve Problem, which transforms the problem into a Bernstein polynomial form. Then an exact solution can be obtained using A Bézier Curve-Based Root-Finder. This is my implementation [1], but it's not very robust for high-degree cases.

[1] https://github.com/Long0x0/distance-to-bezier

Re:Microsoft PowerToys on Wednesday September 10, 2025 @01:24PM (#45200900)
Better if it allowed single-tool installs instead of the whole suite.
Re:Speeding up Unreal Editor launch by not spawning 38000 tooltips on Saturday September 06, 2025 @02:00AM (#45146970)
Don't have access to read the code, but I think ideally there should be only one instance created at startup, right?
If VPNs don't work for you, I recommend using an anti-censorship tool with an obfuscation protocol like v2ray which is commonly used in China.

https://github.com/v2fly/v2ray-core https://github.com/XTLS/Xray-core https://github.com/net4people/bbs https://en.wikipedia.org/wiki/Great_Firewall

Not exactly - encoding it twice increases by 4/3 * 4/3 - 1 = 7/9, which is about 77.78% more than the original.
Re:PDF to Text, a Challenging Problem on Wednesday May 14, 2025 @12:22AM (#43980779)
Maybe Printable Document Format.
Re:Hexagon Spiral Coordinates on Saturday March 15, 2025 @09:16PM (#43376278)
This was my first instinct as well, which makes sure numbers are adjacent. OP also mentioned this variant as lucidBrot/hexgridspiral in the older post.
Re:A bookmarklet to kill sticky headers on Sunday February 02, 2025 @04:19AM (#42907396)
Firefox expects your script to return undefined, so you can add one at the end (or even shorter: void 0).
Re:Non-random uniform disk sampling on Tuesday January 28, 2025 @12:46AM (#42849245)
Another interesting method is Fibonacci Lattice. https://observablehq.com/@meetamit/fibonacci-lattices
Re:A path to O1 open source on Sunday January 05, 2025 @07:52AM (#42601445)
This is a feature of arxiv that automatically converts text looks like a link into "this http url". The submitter missed the space after the "." in "...strong reasoning ability. OpenAI has claimed...".

https://info.arxiv.org/help/prep.html#abstract-required

Re:Dumping Memory to Bypass BitLocker on Windows 11 on Monday December 30, 2024 @10:18PM (#42556090)
Related: Bypassing Bitlocker using a cheap logic analyzer on a Lenovo laptop https://news.ycombinator.com/item?id=37249623
Re:A joke in approximating numbers raised to irrational powers on Thursday November 21, 2024 @12:42AM (#42201479)
pi^4+pi^5=e^6 lol
Wang Duoyu (王多鱼) is a character in the Chinese comedy film Hello Mr. Billionaire.

https://www.imdb.com/title/tt8529186/

I remember chrome has a flag for this.
Re:A Tricky Floating-Point Calculation on Thursday June 27, 2024 @07:44AM (#40809433)
Let x=1/d, then compute the Taylor series at x=0 and take the first 2 or 3 terms. It should be accurate and fast enough.
Re:Why you shouldn't parse the output of ls(1) on Sunday June 16, 2024 @12:31AM (#40694704)
That's why I kind of like PowerShell, object-oriented instead of string-oriented
Re:Super Simple Ways to Add Dark Mode to Your Website on Monday July 10, 2023 @12:56PM (#36669158)
It can be written as one rule: `body,img,video{...}`.
Re:The Password Game on Wednesday June 28, 2023 @05:24AM (#36504189)
A funny game! For anyone else struggling with the wordle, the answer is here[1]. For anyone else struggling with the country, you can fill in the names of all the countries, then run a bisection.

[1] https://www.nytimes.com/svc/wordle/v2/2023-06-28.json