HNHacker News
TopNewBestAskShowJobs

MatmaRex

273 karma · joined September 15, 2013

https://www.mediawiki.org/wiki/User:Matma_Rex
submissionscomments
MatmaRex··on JavaScript: Search and Don’t Replace (2008)
.match() only returns the result of one match, rather than all the matches in the string. To do that, you'd need to use .matchAll() (which didn't exist in 2008), or write an awkward do…while loop. Using .replace() looks neater.
MatmaRex··on German digital bank N26 is facing outcry from its staff over management
Good one, but it looks like you need an /s on this board.
MatmaRex··on Wireless Is a Trap
There are wireless headphones using other technologies than Bluetooth. I'm currently using a Steelseries Arctis 7 and it has no perceivable latency (I play rhythm games with it).

And it indeed comes with a USB "dongle"/base-station, with a cable and about the size of a watch, so not really usable on a train etc. (I use wired headphones when working away from my desk).

MatmaRex··on USB-C is still a mess
I haven't seen one either but I can easily believe it, as there are proprietary magnetic USB-C adapters that do not support data (they only have 5 or 6 pins). I can imagine a "normal" cable behaving the same way.
MatmaRex··on With remote work plan, Facebook dashes hopes of paycheck arbitrage
I work remotely and my employment agreement actually states that "The workplace is determined in <my address>" in the first paragraph. Might be worth checking yours.
MatmaRex··on Does Zoom use end-to-end encryption?
It was a surprise for me as well, but people in the US dial into meetings using their phone all the time. I don't understand it either.
MatmaRex··on New System76 Laptop: Lemur Pro
Microsoft Surface devices use 3:2 (15:10), I've bought one pretty much only because of that and it's nice.
MatmaRex··on Windows: Interface Guidelines (1995) [pdf]
Recent Excel has a much more convenient interface for formatting pretty graphs than I remember from ~10 years ago. The available options are mostly the same, there indeed aren't really any new features in that, but it has live preview and more "visual" ways to modify the graph, compared to the gruesome modal interfaces that I remember where you have no idea what will happen until you "OK" it.
MatmaRex··on Unexpected places you can and can’t use null bytes
> ...But then again, shouldn't the Null symbol ␀ redirect to the page on the Null symbol, which it actually is, not the page on the Null character, which it only symbolizes?

Perhaps it should. That page actually did not exist when the redirect was created:

https://en.wikipedia.org/w/index.php?title=␀&action=history

https://en.wikipedia.org/w/index.php?title=Null_symbol&actio...

MatmaRex··on Text Rendering Hates You
It probably depends on the OS. I assume screenshots in the article are on Linux. On Windows it looks different still: https://i.imgur.com/ri2yUrR.png
MatmaRex··on Fluent 1.0: a localization system for natural-sounding translations
It's certainly complicated but I think there is no way around it if you want to have correct translations. The same kind of system is used for translating MediaWiki and it seems to work great there. Example message: https://translatewiki.net/w/i.php?title=MediaWiki:Logentry-b...
MatmaRex··on Zombie Processes Are Eating Your Memory
Interesting. On my machine, Razer mouse drivers (RzSDKService.exe) seem to be leaking 2 handles every second.
MatmaRex··on Introduction to HTML Components
These were widely used for at least one thing in practice: adding support for :hover pseudoclass on arbitrary elements (not just <a>) in IE6. https://peterned.home.xs4all.nl/csshover.html
MatmaRex··on Talos II
Depending on the merchant and the bank, debit cards might not work. For example, the debit card from my bank will not work if used to pay at Amazon (allegedly the bank is too strict about payment details and Amazon doesn't provide something). I had to get a credit card specifically because of this (the debit card works everywhere else I tried it).
MatmaRex··on New Surface Pro
I have a Surface 3 and it's doable. Mind that the device is also a bit smaller than the usual laptop, so there's enough space (on my knees at least) to place the kickstand.
MatmaRex··on Craig Newmark donates $500k to reduce harassment on Wikipedia
The reasoning can be found here: https://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletio...
MatmaRex··on Carrie Fisher has died
There was a CGI young Arnold Schwarzenegger in Terminator Salvation, in 2009. Admittedly, that scene did not require many facial expressions: https://www.youtube.com/watch?v=L7YYfgx_cHo
MatmaRex··on Tabs or spaces – Parsing a 1B files among 14 programming languages
MediaWiki uses tabs for indentation and discourages alignment. https://www.mediawiki.org/wiki/Manual:Coding_conventions
MatmaRex··on Ask HN: How to prepare for a Front-end Developer interview?
Right, recursion is elementary, I missed that one. (It's even pretty much a prerequisite for depth-first graph traversal.) As far hash tables, I agree it's important to vaguely know how they work and to know the performance characteristics, but I wouldn't consider it critical to know how to implement one from scratch.
MatmaRex··on Ask HN: How to prepare for a Front-end Developer interview?
Depth-first and breadth-first graph traversal does come up. Example: you're implementing a task tracking system, where tasks can have dependencies. Boom, that's a graph. You want to display a whole graph of dependencies of a task (and dependencies of dependencies, etc.). Boom, there's graph traversal. You need to limit the number of tasks displayed in that graph, because someone added a thousand dependencies somewhere and now the graph rendering is choking up. Boom, traverse breadth-first and stop displaying more tasks after some preset number. This is an actual issue I ran into in actual code.

Now, about most of the other things that were mentioned… I'm not convinced.

MatmaRex··on Ask HN: How to prepare for a Front-end Developer interview?
I think OP's list of essential algorithms is a bit too long. I agree that knowing what a binary search is, or graph traversal, is something that everyone writing code should know, and something that does come up reasonably often. (And recursion, heh.)

But binary trees? Last time I needed them was in a CS class. Linked lists? They only came up when I had to convince a coworker that we really don't need to implement one in JS, we only have 50 items here, and someone is going to forget to update a linked list if we use one.

MatmaRex··on Lumen: Auto brightness based on screen contents
I have a tablet/convertible that does this (Thinkpad Tablet 2) and it's the most infuriating thing. It doesn't seem possible to turn it off.
MatmaRex··on Gimp 2.9.4 Released
They changed it a long time ago.
MatmaRex··on Hacking my Tesla Model S
That screenshot is labelled "dramatic reenactment", which I believe is just another expression for "fake".
MatmaRex··on Abandoning Gitflow and GitHub in favour of Gerrit
The git-review plugin is not required, you can instead do `git push gerrit HEAD:refs/for/master` to push changes for review and use the snippets from the change's page to pull them. But it's easier to do `git review` and `git review -d` instead, and it doesn't require understanding or memorizing the weird push command. (I work on MediaWiki, by the way.)
MatmaRex··on Abandoning Gitflow and GitHub in favour of Gerrit
I use Gerrit everyday (I work on MediaWiki) and I'm not having any problems submitting multiple dependent commits. Yes, you need to rebase the newer ones if an earlier one was non-fast-forward-merged or if an earlier one is amended, but most of the time (if there are no conflicts) this is just a click on the "Rebase" button in Gerrit's interface.
MatmaRex··on Wikipedia Turns 15
It should be. There are sometimes banners for other things, though, like to announce the Wikimania conference: <https://meta.wikimedia.org/wiki/CentralNotice/Calendar >. There are apparently also smaller fundraisers aimed at different languages/countries at different times of the year, so maybe you remember one of them.
MatmaRex··on Wikipedia Turns 15
The design evolves, just very carefully. There were typography tweaks in 2014: https://www.mediawiki.org/wiki/Typography_refresh (mostly increasing the font size of the main page text and changing headings to use a serif font).
MatmaRex··on Wikipedia Turns 15
I for one sure hope that Wikipedia never falls so low as to have to run ads. :)

Which doesn't mean that there aren't any alternative revenue streams for the Wikimedia Foundation. But it's a very touchy topic here. Ideas I've heard is finding/accepting more large grants (rather rare now, since it affects the independence of the organization), collaborating with companies wishing to crawl the content (like search engines; nothing that isn't public, just easier access) or hosting MediaWiki wiki instances (many people want to run "their own Wikipedia" and there aren't very many good providers now).

Not that anyone is planning to switch to one of these models, as far as I know. But it's an alternative in case people stop donating.

MatmaRex··on SHA-1 Deprecation: No Browser Left Behind
In addition to what sister comments said, it's also a matter of your threat model. While SHA-1 might no longer be sufficient protection against targeted attacks by powerful attackers, it's still good enough to protect against a random person snooping on another random person on an open WiFi network.
← PreviousPage 3 of 5Next →