Better HN
topnewbestaskshowjobs
Log inSign up

MatmaRex

273 karma · joined Sep 15, 2013 (13y ago) · 129 submissions

https://www.mediawiki.org/wiki/User:Matma_Rex
Submissions

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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).

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 11y ago · link · parent

There's a recent post from Raymond Chen about this, actually: http://blogs.msdn.com/b/oldnewthing/archive/2015/09/15/10641...

comment 11y ago · link · parent

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

comment 11y ago · link · parent

The user's cursor will also be moved to the end of the inputted text with every keystroke.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

That is an ancient bug report not related to the current mobile interface ("MobileFrontend"). I think it predates that by a year or two.

comment 11y ago · link · parent

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.)

comment 12y ago · link · parent

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.)

comment 12y ago · link · parent

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

comment 12y ago · link · parent

> 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.

comment 12y ago · link · parent

> 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>.)

comment 12y ago · link · parent

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".

comment 12y ago · link · parent

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)

comment 12y ago · link · parent

Perhaps you could commit the unit test in a separate commit, then `git cherry-pick` it as a part of the script?

comment 12y ago · link · parent

"ś" 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).

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.".

comment 12y ago · link · parent

There is actually a page that explains the differences between Wikipedia, Wikimedia and MediaWiki: https://www.mediawiki.org/wiki/Wikipmediawiki . Naming is hard.

comment 12y ago · link · parent

Ugh, I didn't realize :/ That sucks. But as the sibling poster says, Thinkpads are at least nicely upgradeable.

comment 12y ago · link · parent

I think you mean a 4:3 display?

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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).

comment 12y ago · link · parent

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 :)

comment 12y ago · link · parent

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.)
12345