HNHacker News
TopNewBestAskShowJobs

MatmaRex

273 karma · joined September 15, 2013

https://www.mediawiki.org/wiki/User:Matma_Rex
submissionscomments
MatmaRex··on Environment Variables and Path in Windows 10
There's a recent post from Raymond Chen about this, actually: http://blogs.msdn.com/b/oldnewthing/archive/2015/09/15/10641...
MatmaRex··on Ruby gaining a safe navigation operator: '.?'
PHP does this (with a warning). I'm not sure if this should be an argument for or against.

    <?php
    $foo = array();
    echo $foo['a']['b']['c']; // not an error
MatmaRex··on A story about &lt;input&gt;
The user's cursor will also be moved to the end of the inputted text with every keystroke.
MatmaRex··on Windows Certificate Manager does not display the complete trust list
It's true that the average user uses maybe 20% of Word's features, and Google Docs have 50% of them. The problem is that each person uses a different 20%.

One feature I personally needed and missed was to generate a table of contents with page numbers for each heading. I ended up exporting the doc to Word to do it, and in the process discovered that the exported document had a messed up layout in a few places.

MatmaRex··on How a keyboard changed what I look for in an editor
That's this keyboard design, not the keyboard layout. On full-size keyboards and many laptops it looks like this: http://cdn1.expertreviews.co.uk/sites/expertreviews/files/im... I actually go put of my way to get keyboards with non-US key layout.
MatmaRex··on Websites Prep for Google’s ‘Mobilegeddon’
That is an ancient bug report not related to the current mobile interface ("MobileFrontend"). I think it predates that by a year or two.
MatmaRex··on How we made editing Wikipedia twice as fast
There is an old proposal to use it, but it seems that not much effort was put into it.

https://phabricator.wikimedia.org/T34618 https://www.mediawiki.org/wiki/Requests_for_comment/Partial_...

Personally I doubt that it would help much – there are hardly any non-dynamic parts of the page in MediaWiki. (Everything is customizable using server-side configuration, modifying magical pages, or both; or dependent on user permissions or preferences; or both.)

MatmaRex··on Wikipedia needs an IDE, not a WYSIWYG editor
I believe it's simply because no one has yet put in the effort necessary to start using it. It might be a conscious decision, but if it was discussed anywhere, I completely missed that.

(English Wikipedians in general are very "territorial" in my experience, so to speak, and rarely appreciate efforts that put some piece of "their" articles beyond their "jurisdiction", like Wikidata does. Editors from other language versions are a lot more welcoming.)

MatmaRex··on Wikipedia needs an IDE, not a WYSIWYG editor
You can embed statements from a Wikidata item in the corresponding article on Wikipedia using the {{#property:…}} parser function. This is largely unused on the English Wikipedia, but some language versions already use this for their infoboxes – for example the infobox on this page is partially generated from Wikidata: https://pl.wikipedia.org/wiki/Ankara
MatmaRex··on Wikipedia needs an IDE, not a WYSIWYG editor
> Visual Editor was rolled out in 2013. Thing is, editors hated its bugginess so much that the roll-out was reverted shortly afterwards. (…) Why did the Visual Editor fail? Because it tries to deny the basic fact that Wikipedia is a program, not a word document.

Eh, I can't really agree with this. VisualEditor rollout was indeed premature (critical features like template editing were developed literally days before it), but a year has passed and it's gone a long way since then. Haters still hate it, but personally I find it more pleasant to use than wikitext for many tasks.

This was a really interesting read, though. I still this there's value in the WYSIWYG paradigm, even if we have to fall back to "IDE mode" for infoboxes and such (right now if you double-click a template, you're shown a key-value table to fill in; there's no live preview…). After all, most of the content of Wikipedia is text with some light formatting.

MatmaRex··on Wikipedia needs an IDE, not a WYSIWYG editor
> First, it relies on the function Wikitext->HTML being injective. But isn't it trivial to create two different Wikitexts that compile to the same HTML? Whitespace is just the start of this story.

Yes, and Parsoid works around this by preserving some metadata about wikitext in HTML (such as information about whitespace around syntax elements) and, since this preservation isn't perfect, only reserializing HTML→wikitext where the content was changed during editing.

> Second, apparently the template language is Turing-complete. Let's say I write a prime sieve in order to generate a page that lists the first 100 prime numbers. What would it then mean to edit "31" to change it to "30"?

Assuming we're talking about VisualEditor, you currently just can't do that (you can only delete the entire template inclusion and replace it with normal text, or edit template parameters).

(As a nitpick, wikitext is not Turing-complete (there is no loop or recursion construct, recursion is explicitly checked for and causes an error), you can only write complicated algorithms by manually unrolling enough loops. However, for some time now you can also write templates in Lua, which is a proper Turing-complete programming language, see <https://www.mediawiki.org/wiki/Extension:Scribunto>.)

MatmaRex··on The curious case of the cyclist’s unshaven legs
The article states that the previous results didn't involve any subjects at all, but a "fake lower leg in a miniature wind tunnel with or without hair glued onto it".
MatmaRex··on 🌉
https://en.wikipedia.org/wiki/💩

I'm pretty sure every Unicode character will (unless somebody missed any). There are Unicode character charts on Wikipedia too, and they're fully linkified, e.g. https://en.wikipedia.org/wiki/Arrows_(Unicode_block)

MatmaRex··on Tracking down a kernel bug with git bisect
Perhaps you could commit the unit test in a separate commit, then `git cherry-pick` it as a part of the script?
MatmaRex··on Why does Outlook map Ctrl+F to Forward instead of Find?
"ś" is input in Polish using AltGr+s (or Ctrl+Alt+s), but AltGr is not labeled as such on Polish keyboards (it's simply the right Alt key, and people will refer to it as such when asked).
MatmaRex··on In Sweden, Sverker Johansson and His 'Bot' Have Created 2.7M Wikipedia Articles
Ram-Man is a human account. The same person operates the Rambot bot account. You can click on their usernames on the history page to see their user pages, which usually describe these things.
MatmaRex··on JSZip: Create, read and edit .zip files with JavaScript
You can embed the images in the CSS as data: URIs, preferably automatically as part of the build process, and get the best of both worlds.
MatmaRex··on Does your browser rejected revoked certificates?
I think that's the point. My browser (Opera 12) says "Unable to complete secure transaction" and "The certificate has been revoked by its issuer. It is no longer valid. In the worst case it may be used by criminals for fraudulent purposes. The website owner must immediately replace the certificate.".
MatmaRex··on Cunningham's Law
There is actually a page that explains the differences between Wikipedia, Wikimedia and MediaWiki: https://www.mediawiki.org/wiki/Wikipmediawiki . Naming is hard.
MatmaRex··on Keyboard innovation is making them worse
Ugh, I didn't realize :/ That sucks. But as the sibling poster says, Thinkpads are at least nicely upgradeable.
MatmaRex··on Keyboard innovation is making them worse
I think you mean a 4:3 display?
MatmaRex··on Keyboard innovation is making them worse
Thinkpads T500-series (T500, T510, T520, T530 and variants) and their W counterparts are 15' (or larger) and have no numpads. The new ones are pretty expensive too, though.
MatmaRex··on We switched from an icon font to SVG
A good thing about SVG icons is that it's possible to provide a PNG fallback: http://pauginer.tumblr.com/post/36614680636/invisible-gradie... (apparently people in OP's post did this too).
MatmaRex··on The shok command shell
map, fold and filter can approximate the pipeline pretty well. Personally I only use shell scripting when I actually want to record a set of commands I ran (or, well, when working in a shell); in all other cases I whip out proper tools.

Here's a comparison of code to do the same thing written in Ruby:

    Dir['**/*.py'].map{|f| File.readlines(f).length }.inject(:+)
    find . -name '*.py' | xargs cat | wc -l
That's 60 characters versus 39 (most of these are just because the "commands" are longer – and I don't think anyone would even try to argue that 'cat' or 'wc' is more readable than 'File.readlines' or 'length').

I ran them on Python 2.7's library directory and my version counted four lines more – I didn't investigate, but I think yours missed lines when cating files without trailing newline. I'd argue that's a bug in your code :)

MatmaRex··on Developer and Power Users Tool List for Windows
It takes a few seconds to start up for me too. And if it's already running, unrelated tabs appearing are annoying. I use Sublime usually, but Notepad2 when I just want to edit something quickly or have a scratch pad. (I actually replaced Windows' notepad with it.)
MatmaRex··on Gitless: an experimental version control system built on top of Git
You can, but last time I tried it was only via editing the diffs ('e' command in `git add -p`), which is unpleasant and sometimes pretty annoying (ah, how many times I missed the leading space on context line to have it shout at me with incomprehensible errors). (And yeah, I'm just using `git gui` for this now.)
MatmaRex··on Apple Tells Gliph to Remove App's Bitcoin Transfer Function
Bitcoin was not illegal last time I checked.
MatmaRex··on When We Lose Antibiotics, Here's Everything Else We'll Lose Too
I'd say this would be worse. "many experts" is a weasel word, implying an authority behind the statement, but providing no proof of it. And "trust me" is at the least plain and honest.
MatmaRex··on Pencil
I almost upvoted because I thought this was a joke and it seemed funny. Thankfully I scrolled to the part where they mention USB inside the "Pencil".
MatmaRex··on Humans.txt
The Google one apparently is a 404 on HTTPS, and a text file on HTTP.
← PreviousPage 4 of 5Next →