HNHacker News
TopNewBestAskShowJobs

SCLeo

652 karma · joined December 4, 2018

submissionscomments
SCLeo··on Trapped in his body for 12 years, a man breaks free (2015)
Reading this makes me feel really uncomfortable. I can't imagine being him. This is literally nightmare fuel, except it is real. I hope human technology can soon evolve to a point where things like this won't happen.
SCLeo··on Tower Defense with a twist: all towers must be positioned with CSS Flexbox
I used to think programming games cannot actually help people learn. But now I believe, this game might have taught me more than my dozen visits to CSSTricks.
SCLeo··on Apple apologizes to WordPress, won’t force the free app to add purchases
He/she meant monopoly over iOS software market, not over the entire smart phone market.
SCLeo··on A new funding model for open source software
Or each package's maintainer can set a proportion for each of its dependencies, so that every time a donation is received, a certain amount of that donation is automatically transferred to those dependencies according to the proportion set by the maintainer. The donation sent to those dependencies is then propagated to their dependencies automatically according to ratios set by the maintainers of those dependencies.
SCLeo··on Show HN: Non-grid-based path finder
I just finished writing the code a couple hours ago, so I don't have any detailed explanation at the moment. However, it is open source, so you can always check the code: https://github.com/SCLeoX/non-grid-path-finder.

I will admit though, it is not super readable, because it really lacks a lot of comments/documentation.

SCLeo··on Show HN: The Book of Minecraft Modding
Although the book claims to be up-to-date, the way it registers items/blocks is already outdated. Please use DeferredRegister as oppose to RegistryEvent.

DeferredRegister: https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x...

Also, I find Cadiboo's Example Mod super helpful: https://github.com/Cadiboo/Example-Mod

SCLeo··on Speeding up function calls with lru_cache in Python
Concurrency.""There are three hard things in computer science: cache invalidation, naming things, off-by-one errors, and
SCLeo··on The Web We Want
The second I saw this, I knew what I wanted: CSS transition to auto heights/widths.
SCLeo··on Malicious code in the purescript NPM installer
I honestly don't understand why people use packages like this. If I need this functionality, I will simply write my own. Plus, I will never able to find this specific package. I guess PureScript uses this because its author is also the author of rate-map.
SCLeo··on Malicious code in the purescript NPM installer
Honestly, I think the reliability of those packages are not guarded by these people, but rather by the corresponding communities of those packages.

If one of the community failed to secure its package from malicious people, these people at debian are not going to be able to stop it.

Thus, those packages are still guarded by a huge community.

SCLeo··on SVG Jigsaw Generation in Clojure
> Add more curves and it gets even better!

Honestly, I think it looks better before adding more curves. :|

SCLeo··on ChaiScript – Easy to Use Scripting for C++
...Yeah, your joke isn't really successful... I didn't realize it is a joke either.
SCLeo··on A problem worse than Zoom?
But you cannot send a POST request without preflight. Preflight is done with a separate request without your payload.
SCLeo··on How we built a GDPR-compliant website analytics platform without using cookies
Looking at their live demo (https://stats.usefathom.com/#!p=1w&g=hour), I can see a lot of traffic is coming from ycombinator. So...

(I mean, I don't have a point here but I find it pretty interesting. xD)

SCLeo··on A problem worse than Zoom?
Not necessarily more depth, but here is one from mozilla. https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabl...
SCLeo··on A problem worse than Zoom?
I don't see any problems here. Even though they are on the same LAN, they are still on different host, thus subjecting to CORS restrictions.

That is, as long as your devices on LAN do not send a access-control-allow-origin header, the web pages are not capable of getting the actual response. Also, the only http method available to them is GET (when preflight is not required) and OPTIONS (when preflight is required), which are methods that are almost always side-effect free and only return some value - which the script cannot even get due to CORS restrictions.

SCLeo··on LaTeX Workflow on iPad
> The best thing about iPadOS is control.

Are you serious? It is not about control. It is about only Apple can "control". You and your software cannot "control" anything.

SCLeo··on Can we all stop using Medium now?
I am mobile and I have inertial scrolling. I think it is probably because you are using iOS safari.

iOS' inertial scrolling for some reason breaks very often. It happened to my website a couple times, and I had to fix with a bunch of css hacks.

Supporting iOS is just a pain. Sometimes, I would even rather support IE 11 than iOS.

(btw, all iOS browsers are forced to use safari render engine.)

SCLeo··on Fusuma – Make slides with MarkDown easily
Something really irreverent: it is Markdown not MarkDown.
SCLeo··on Jsonnet – A data templating language
If you are suggesting using Python is same as using JavaScript, you missed the point too.

In this case, JavaScript's syntax is very similar to Jsonnet. Or at least what is shown in the example can be accomplished in a very similar way. (maybe except anchors, which can be replaced by variables)

SCLeo··on Notion – All-in-one workspace for notes, tasks, wikis, and databases
Looks great, except I cannot use it because, I don't have a google company account nor a slack account. It seems that self-hosting solution requires those accounts too.
SCLeo··on I’m Chinese, Google’s DragonFly Must Go On
Please note, this only represents a (likely small) portion of Chinese audience. There were a lot of people opposing the idea. They initially posted their opposing view on GitHub issues so it was overwhelmed by disagreements. However, the author disabled the issues on that repo so it looks like it is the widely accepted opinion, which is not true.

Then, people start to write articles in order to show their disagreements. For example, there is one: https://github.com/CT-ABT/Also-as-a-mainland-Chinese-why-do-.... The only problem is that it does not have an English translation.

← PreviousPage 7 of 7