HNHacker News
TopNewBestAskShowJobs

SCLeo

652 karma · joined December 4, 2018

submissionscomments
SCLeo··on JEdit – Programmer's Text Editor
Exactly this. I recently created a tiny DSL (can be trivially parsed with .split('\n') and regex) for a side project. I wanted to create a very simplistic syntax highlighter for it in VSCode, but I realized I needed to create an extension using a code generator, and write a bunch of manifest files. In addition, to use/distribute the extension without having to run VSC in development mode means I had to create a developer account, generate some token, and publish it to the marketplace.
SCLeo··on Why Lisp?
I honestly think most languages belong to this category. I can't really think of a language that changed so much that old code no longer works (other than python 2 -> python 3).
SCLeo··on Don't build your castle in other people's kingdoms
Are there aggregated lists of registrar and TLDs that match such criteria? (Read: Has anyone already done this homework for me?)
SCLeo··on Roblox has been down for over 24 hours
I doubt they are "built in Silicon Valley move fast style". I played Roblox when I was a child. In fact, it is what got me into programming.

(And they just rejected my intern application, which is very sad.)

SCLeo··on Git Command Explorer
> 'man' is not recognized as an internal or external command, operable program or batch file.

...which doesn't exist on Windows. So, are Windows git users are all doomed? Or should all Windows users download WSL in order to access this sacred tutorial?

SCLeo··on “looks like Firefox quietly added ads into the address bar”
Yeah, I think it might be A/B testing as well. I don't get any suggestions from typing K. Everything that popped up is from my history.

Also, not really related, but from my experience, Kahoot is really popular in education. I bet at least 80% of my classmates in college have used it at least once. I am a bit surprised you never heard about it.

SCLeo··on Parcel v2
I am just using parcel for my small projects because it is simple. It is actually zero configuration. Setting it up takes about 1 minute.
SCLeo··on “looks like Firefox quietly added ads into the address bar”
Not saying I ditrust you, but do we know for sure that those are paids ads not unpaid sugesstions?
SCLeo··on CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaught
Reminds me of HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor in Spring.
SCLeo··on Jellyfin: Free Software Media System
Although I cannot complain too much since it is open source, I have to say, my experience with Jellyfin is very painful. After fiddling with it for more than 10 hours, I still cannot get .ass subtitles to work on my Android Jellyfin client. :(

(My NAS isn't strong enough to burn subtitles in real time. Even it does, I just cannot get the fonts to work. All CJK characters are displayed as squares.)

SCLeo··on Mailchimp insiders react to employees getting no equity from Intuit sale
> 1. Nobody can promise to never sell. If you believe that you’re a fool. They held out longer than most.

I don't think this "nihilism-ish" view is healthy. Otherwise, you might as well just argue nobody can promise anything, and anyone who believes any promise is a fool.

SCLeo··on OpenRA: Red Alert, Command and Conquer, Dune 2000, Rebuilt for the Modern Era
That is so cool (...and quite cringe from modern standards).
SCLeo··on Problems with Oracle SQL
What?! How do they disallow people from benchmarking it? Do they just forbid people from benchmarking in legal terms? That sounds so fishy.
SCLeo··on How Doctors die. It’s not like the rest of us (2016)
Family members can pressure the patient to give up.
SCLeo··on Show HN: Neural-hash-collider – Find target hash collisions for NeuralHash
Oh, I think I misunderstood you. I thought you meant instead of "sending images that collides with perceptual hashes of known CASM", why not "send actual CSAM in 'Facebook Messenger or Gmail or Dropbox', and since those services also use some other detection algorithm, it will also incriminate the receiver."
SCLeo··on Show HN: Neural-hash-collider – Find target hash collisions for NeuralHash
I can't tell if you are being sarcastic. In case you are not, isn't the act of sending those pictures completely illegal?
SCLeo··on Zx 3.0
I am also a frontend dev. My experience has been completely opposite from yours. Node.js is my go-to tool for writing automation scripts.

I think these are some reasons why our mileages differ:

- I need my scripts to work in both Windows and Linux.

- I am not very experienced with bash or other shell.

- Most of my "automation work" only involves reading text from a file, transform it, and write to another file. (Generating SQL commands, doing stats about town names, etc.)

SCLeo··on All public GitHub code was used in training Copilot
I am not a lawyer but I do believe GPT-3 as a commercial product trained using copyrighted data constitutes infringement. I also think GPT-2 does not because it is for research purposes, which made it fair use.
SCLeo··on GitHub Copilot
> ...the jurisprudence here – broadly relied upon by the machine learning community – is that training ML models is fair use.

To be honest, I doubt that. Maybe I am special, but if I am releasing some code under GPL, I really don't want it to be used in training a closed source model, which will be used in a closed source software generating code for closed source projects.

SCLeo··on Simple test reveals if your mental images are more vivid than other people's
For some reason, staring at a blinking screen in a dark room really creeps me out. I got goose bumps all over my body. I had to give up after a minute or so.
SCLeo··on JavaScript Is Weird
I am not choosing a side here.

However, deciding which language to use for a certain task is a legitimate choice that people to make. When making such decision, people need to analysis the pros and cons of a language. For countless times, I have seen people claiming JavaScript is bad/inconsistent/weird for reasons like `"1" + 1 === "11"` but `"1" - 1 === 0`. All I am saying here is things like these should not weigh too much when deciding whether to use JavaScript.

SCLeo··on JavaScript Is Weird
Sorry to be pedantic, but `[,,,]` creates holes instead of undefined. They are different, because for example `[,,,].forEach(() => console.info(1))` doesn't do anything, but `[undefined,undefined,undefined,].forEach(() => console.info(1))` prints three "1"'s.
SCLeo··on JavaScript Is Weird
Probably unpopular opinion: Most of these are just the weirdness of the language caused by the (not-so-wise) design decision that those simple operators should never throw. In my opinion, these are not footguns and should not be used to attack JavaScript, because regular programmers are very unlikely to run into them (which is why when presented, they seem so obscure).

However, that is not to say JavaScript is without footguns. For example, the classic `[1, 2, 3, 10].sort()`.

SCLeo··on EFF Browser Tracker Simulator
If it doesn't take correlations into account, then the total # of identifying bits (aka entropy) will simply be the sum of # of identifying bits in each category, which does not seem to be the case. Therefore, I will guess it does take correlations into account (presumably by calculating the total # from uniqueness of the fingerprint only).
SCLeo··on Tour of our 250k line Clojure codebase
Pardon my ignorance, but can this spec thing automatically deduce that 8^n evaluates to "a number which is a power of 2" or log(2, "a number which is a power of 2") is an integer?

If yes, then I agree this is super helpful (and magical).

If not, how is this different from a normal constrcutor (with runtime input validation)?

SCLeo··on Finding CSV files that start with a BOM using ripgrep
Do you know why UTF-8 won? I feel textual data only constitutes a very tiny portion of memory used, but working with fixed size encoding is so much more easier than variable size encodings.
SCLeo··on Chrome extensions are tampering with security headers
I was developing an extension that automatically saves all loaded images without repeating requests by loading them into a canvas and extract the binary data. I was forced to modify CORS because otherwise the canvas is tainted with cross-origin images. (I consider CORS related headers to be security headers as well.)
SCLeo··on Aukey kicked off Amazon following fake reviews allegations
And their competitors who decided to play fair.
SCLeo··on Welcome to Visualizing Stanford Encyclopedia of Philosophy
The author could really use some user-select: none;

I kept trying to drag the graph, but ended up selecting a bunch of text, which is a somewhat unpleasant user experience.

SCLeo··on HTML Sanitizer API
Sorry for my ignorance, but why do you need to replace "<" and ">" etc with "&lt;" etc? If I am not wrong:

- When the user input is plaintext, you will output using .innerText, which means such replacement will actually break those special characters.

- When the user input is actual html (or contenteditable), such replacement will also break those tags. If you don't want tags in the first place, why make so that user inputs html?

← PreviousPage 5 of 7Next →