* Posts by Marco Fontani

256 publicly visible posts • joined 3 Dec 2012

Page:

You wanna be an alpha... tester of The Register's redesign? Step this way

Marco Fontani

Re: News Prioritization by Popularity not ideal.

The redesign alpha seems to show just a few of the most recent or perhaps pinned articles up top followed by a 'MOST READ' section which I presume is based on popularity.

It's one ROW of FOUR articles, with a distinctive grey-ish background. It's the same four articles which are shown on the forums or "old homepage" RHS.

The row below "continues on" with the chronological article list.

What I take from this is that it's not too clear to many that the "most read" bit only applies to that row of four articles, _despite_ the distinctive background.

Marco Fontani

Re: My Comments

On mobile: I can't really tell the difference.

That might've been due to a blunder on my (Apache config) part - as we have an "edition switcher", mostly for mobile, which allows you to always see the mobile site if you've got that cookie set; and the "redesign cookie" wasn't taking over.

It now is, so... even if you've got your edition preference set to mobile, you should be seeing the new homepage if you've opted into it AND are looking at "www", not "m".

Marco Fontani

Re: Date ordering

I like that the timelines are now correct

Both the new and "classic" homepages have stories ordered from descending published at date, save for 1) the "don't miss" story, which isn't currently shown on the "new" layout - but could; and 2) for "sticky" stories Editorial decides to place somewhere on the page; now replaced with a similar method.

The _bulk_ of stories are ordered; some are sticky somewhere. This hasn't changed in a long, long time.

Marco Fontani

Re: Not much of a difference

the huge white bar at the top with a single button ("Back to classic homepage") is not supposed to be there in the long term

That's indeed only shown for the opt-in users, to allow them to go back to the "classic" version without having to look up the article, go to the "red pill" page and have to figure out that clicking "rm" removes the cookie ;)

Marco Fontani

are you getting rid of mobile.theregister.co.uk ?

Not a definite answer, and not in any official capacity - but "likely".

The way things are going web development wise is towards having responsive websites, and this (if and when done right) negates the need for having multiple versions of the same site / content (disregarding AMP for a minute).

We've already gotten rid of the mobile article pages, in case you haven't noticed. They're responsive, and the "www, responsive" version suffices. Next up will likely be getting rid of the mobile homepage - as this new, responsive homepage + our current "edition switching" logic suffices pretty well.

Chances are we will likely make each "page type" responsive, and kill the related mobile-only version as we go.

Marco Fontani

Re: Don't be Facebook

Can we have a "most recent" articles? (If that's what "Top Stories" is - call it "Most Recent").

Articles are ordered by published at date descending, so you just have to look (usually) at the first row to find those, and work your way downwards.

There'll be some "don't miss" or otherwise editorially-picked articles in the middle somewhere, along with the distinctly styled "Most read" row, but in general the bulk of articles are ordered as above.

Marco Fontani

Re: Setting cookie already takes JavaScript

the drive towards JS-only websites is rather infuriating.

I wholeheartedly agree - we strive to ensure the basic functionality of "things" works without JS. JS provides an additional layer on top of the basic functionality. You can see (or maybe not, if you leave JS disabled) that for the up/downvote buttons, which are simple/standard HTML forms, but "morph" into AJAX-based things if you have JS enabled. Progressive enhancement might be the correct term?

Or you can (again, maybe not?) see it with the "mobile website" footer button - as that feature is entirely JS-based, you won't find a trace of it in the HTML for the page. It'd be otherwise silly to have a non-functioning button.

On the other hand...

with the new design I will have to enable JavaScript for the The Register domain

The design will continue to work without JS enabled, but you might be missing on a few lazy-loaded images and such. There's no reliable way to do that with CSS only, unfortunately.

On a bigger/wider note, though, JS is pretty much a prerequisite for seeing ads, and the site "lives and breathes" through ad impressions - so by disabling JS you might be getting a subpar experience and might complain about it, but El Reg might be complaining more ;)

Marco Fontani

There does seem to be a disconnect between the numbe rof articles above the first row of imaged articles - looks to be about 1.5 box widths of whitespace on the right of the last box in the second row.

That "empty space" is actually for an MPU ad, which it seems you're either blocking or not seeing. Is it the former (not a bug) or the latter (a problem)?

Stern Vint Cerf blasts techies for lackluster worldwide IPv6 adoption

Marco Fontani

Re: They are just being frugal

The Reg make no efforts that way. Not even tokens. Not even tests.

The hostname used for most images, regmedia.co.uk, has been returning an AAAA record, and has been usable over IPv6, since at least (let me check the changelog) three years ago.

My last comment on the matter of IPv6 still stands: https://forums.theregister.co.uk/forum/1/2018/05/21/ipv6_growth_is_slowing_and_no_one_knows_why/#c_3521098

Soon®

I'd much rather read a good article on the systems behind the Reg

See the https://www.theregister.co.uk/about/company/website/ ("under the hood") page; you can always fire off an email to webmaster@ and I'll be happy to answer any questions you might have.

As to your question about project management and "technical embarrassment" - you might be right; after all, it's a very small team and we're bound to get things wrong, or done slowly :)

Specifically about IPv6 on thereg, the main reason progress has been slow on the matter for the past few months (couple years now actually) is that I've not been able to secure a "proper" IPv6 connection for testing things properly with. This obstacle has now been stepped over, and as soon as my schedule frees up to allow me to do such tests, fix bugs and enliven things - there'll be IPv6 on thereg.

Mind you that adding IPv6 to ElReg is a little bit like adding icing to the cake. I can work on that icing once the cake's actually looking and tasting good, but if it looks like somebody stomped on it, I can't work on the icing and need to hold it off.

Article Removed

Marco Fontani

Re: Why????

https://forms.theregister.co.uk/gg2b/

Click the "Paperback" tab.

Marco Fontani

Have you tried clicking on the "paperback" tab?

Finally: Historic Eudora email code goes open source

Marco Fontani

Oh, the memories.

Right before the turn of the century my email was, for all intents and purposes, "on" a floppy disk I carried around (as space on the server was at a premium), which contained the "data" folder for Eudora, which was installed on all available Windows 3.11 for Workgroup computers at the ISP I physically *visited* to read it (I didn't have a home internet connection then).

It wasn't much after that I ended up moving my old 486 box at the ISP, and "just" started using Linux instead.

/sniff

IPv6 growth is slowing and no one knows why. Let's see if El Reg can address what's going on

Marco Fontani

Especially when Reg is behind Cloudflare. Cloudflare make it as simple as ticking a box to enable IPv6.

You're half right. Enabling IPv6 on Cloudflare is indeed a flick of a button. Unfortunately there are still a few internal systems which wouldn't work when clients start sending them requests using an IPv6 address. In fact, we _had_ it enabled "for testing" on the old channelregister.co.uk site, and that showed us we had a lot of things to fix before we could enable it on thereg also.

We have a branch which purportedly fixes everything IPv6 related on our systems, and I'm now in a position to properly test it.

So, Soon®

Time to ditch the Facebook login: If customers' data should be protected, why hand it over to Zuckerberg?

Marco Fontani

Re: @Wiltshire

Wrong... go to the FB link on the article page for this any other story... and then click the FB link. You'll see this:

Log in to use your Facebook account with TheRegister.

Yes, you'll have to be logged on to Facebook if you want to use the button to share the story on Facebook, same as the other "share with …" buttons next to it.

The OP was talking about the footer Facebook button, which along the others are mere links to The Register's presence on those platforms.

Amazon: Intel Meltdown patch will slow down your AWS EC2 server

Marco Fontani

You might want to consider the Rules Of Optimization Club. They've been written for Perl in mind, but I'm sure they apply in most cases. Repeated / amended below:

  • Don't optimize.
  • Don't optimize without measuring.
  • If your app is running faster than the underlying transport protocol, the optimization is over.
  • One factor at a time.

Or, in other words, "make it work, make it correct, and only then make it fast". I much rather have slow code which is correct, than very fast code which gives the wrong answer, performs the wrong calculation, or wreaks havoc.

As to the language of choice, I'm biased as this site's mainly Perl-based… but one surely has to consider the speed and ease at which things can be developed, and not only whether a few milliseconds can be shaved here and there. If gaining speed means having harder to read code, it might not be the best trade-off. It's not always best to optimize for development, rather than for runtime – but it can often be.

Just my 2c.

"pre" tag not working as expected

Marco Fontani

Forums has always had automatic paragraphs for HTML comments, and when we started allowing HTML in comments we wanted to preserve that behaviour despite it maybe not doing the "right thing" in some contexts; this is one of them; a blockquote with multiple paragraphs is another.

In fact, a simple pre tag with two lines inside it looks "weird enough". Thanks for the test case. I'll look into whether and how to disable auto-paragraphs inside the pre block, as that should likely do the trick.

page not loading

Marco Fontani

I'm not sure what you mean by that, sorry – is the page not displaying at all? Which browser, and which addons do you have installed?

In order to help you, it'd be advantageous if you could read https://www.theregister.co.uk/Page/problem.html and report back to webmaster@ with your details.

I wonder, though, if this is simply an ad blocker blocking the article as it contains "advertising" in the URL.

'Gimme Gimme Gimme' Easter egg in man breaks automated tests at 00:30

Marco Fontani

why would an automated test want to run 'man' without any parameters

It didn't. The automated process mentioned in the article needed to run man -w to get the "man path".

As per the article,

When you run man without specifying the page or with -w, it outputs 'gimme gimme gimme' to stderr, but only at 00:30."

So, running man -w (a perfectly sensible thing to do to get the man path) triggered it, which led to the problem.

IMHO, if it outputed the easter egg only on a man invocation, it wouldn't have caused any such problem, and removing the easter egg altogether is unwarranted. Just don't make it work on man -w and make it work on man alone. My $0.02.

New Forum Wishlist - but read roadmap first

Marco Fontani

Re: Idea for hiding/changing the look of certain commentards posts

You can easily do that today using JS – instead of CSS, as CSS doesn't support styling of a parent div based on properties of a child element.

$('.post .author a[href*="/53495/"]').parent().parent().css('background-color', 'pink')

That's all your posts on any forum page (but not on your own user's page) styled with a pink background.

Any "user scripts" addon should allow you to add the above and have it work.

If you don't like using jQuery (although we load it on all forums pages, so it will currently always be available) you can always Just Use Plain JS, provided your browser supports querySelectorAll:

(function(){ var posts = document.querySelectorAll('.post .author a[href*="/53495/"]');for(var i=0;i<posts.length;i++){posts[i].parentNode.parentNode.style.backgroundColor = 'pink'} })()

... or whatever floats your boat.

What's with the blasted captchas?

Marco Fontani

Why, when I'm ALREADY logged in to the Reg, have I suddenly started getting bloody irritating, crappy captchas?

We've had CAPTCHAs for various things since at least 2013, and they're usually only shown when "something triggers".

This "something" ranges from what you were doing at that time, your browser signature, your country, your ISP, your IP address, etc.

If it "started this morning" for you, the reason may range from having changed some of your browser settings or having switched to a different VPN than usual, to simply having posted some "trigger words" which make the web application firewall show the CAPTCHA, to err on the safe side before allowing the request through.

If you'd like to discuss this in detail, could you follow our problem reporting page and send us an email at webmaster@?

Commentards booted off m.register?

Marco Fontani

Re: m redirecting to www?

Then you seem to have a bug, because it's not working like that.

We hear you.

We've now tuned our edition setting functionality a little bit further as to not disrupt the navigation flow on mobile devices.

So, if you're on a mobile device and visit – say – the homepage, then go on a story and click the comments links, you'll be shown the mobile site. If on that same story you click the masthead logo or a section index page, you'll get the mobile version.

To have the same happen on your desktop size device, you'll have to opt in and click the "Mobile website" link at the bottom of most pages (not article pages, as those only exist on www now, and they're responsive).

Marco Fontani

Re: Commentards booted off m.register?

Nope, the link to comments should display fine so long as the article allows them.

The AMP page comments link isn't styled, though - as we're pretty restricted when it comes to style on AMP pages… and the AMP pages kinda mimic the mobile page layout.

Are you sure you're looking at an article page on the mobile site, and not at an AMP page?

Ye Bug List

Marco Fontani

Yes. I even closed the browser session and re-opened. I know that posts don't immediately turn up in the threads, but they also weren't showing when I clicked on the "my posts" link.

Your request to post… well, a "post" on a forum… is "done" (shows up on the forum, shows up on "my posts", etc) only when it's been completely processed by our backend.

Until then, it's just a JSON file on a disk, nothing more.

Marco Fontani

The posts don't update immediately like they used to.. Some server side caching I suspect

Your "requests" to post a comment, or edit a comment, are placed into a "FIFO queue" along with other things.

If the queue is not empty, your post may take a little while to show up on the site - depending on how many requests there are before yours, their type, and how long they take to be processed.

As the message shown after your post has been sent says, "be patient".

On top of that, if we're making sweeping changes to our backends, we may temporarily stop the processing of new forum posts. You're still able to post, and your posts will be recorded - they'll just not appear on the site until maintenance is complete.

Marco Fontani

Re: Odd HTML error.

I've tracked this down. Your original submitted text contained newlines at the end of the href, just before the ending double quote… which in turn later made the auto-paragraphs feature spit out horribly invalid HTML.

I've "fixed" your original post, and I've made it so that newlines found within those hrefs now constitute an error.

Marco Fontani

Re: @Drew Spurious Blank lines at end of comments

Could you email us at webmaster@ this domain?

See https://www.theregister.co.uk/Page/problem.html for the kind of information we'll likely need, i.e. the exact url you're seeing this on, the browser, IP, etc. etc.

Look forward to hearing from you!

The Webmaster ;)

Marco Fontani

Re: Website unusable at the moment

Specifically the NetApp animation, that takes about 3 minutes to load.

I've alerted our ad/ops team to this, thanks for your report!

Official: Perl the most hated programming language, say devs

Marco Fontani

Re: Python whitespace

There's tremendous value (for any language) to get something that can really lint your code, preferably inline in your editor. It looks like lack of that is one of the complaints against PERL?

Dunno what to say, I use (neo)vim and ale is perfectly capable of linting both my and ElReg's Perl (not "PERL") modules and scripts using both perl -c to check the syntax, and perlcritic (with per-projects overrides in .perlcriticrc) to ensure nothing too unwieldy is being typed. Coupled with a simple pre-commit hook to, again, check syntax and ensure we're not committing too much crap, it seems like kinda what you'd have with any other language, unfortunately sans "completion hints" as it's an interpreted language, and omnicompletion really only seems to work for the most basic of classes.

I've got something similar setup for HTML, JS, CSS and SASS using the exact same system, so Perl isn't an outlier here.

Rather, I feel that there's not enough options in perltidy to match my or ElReg's "house style", unfortunately. I'd love for Perl to have something as pleasant to use, and read, as gofmt, but unfortunately perltidy doesn't seem to be enough for me. I might just have weird syntax preferences!

And I am keenly aware it's super hard for most people to read and understand a PERL program of any real complexity.

IMVHO, you can write maintainable or unmaintainable code in any language. I've seen scary stuff in C, C++, Perl, ASM, and I've seen maintainable code in ASM, Perl, C++, C. /shrug

Marco Fontani

Re: Perl.... Arrggh

I started to learn perl - from books - and it was the worst experience ever. (in regards to what i was learning from a book, that is).

I'd recommend you read Moden Perl, then. Good book to read if you already know how to program and don't need your hand held.

Marco Fontani

Re: common::sense

Now if only I didn't have to open files with 'open FILE, "&lt;:encoding(UTF-8)", $fn' every time ...

You might want to look into utf8:all, then :)

Marco Fontani

Re: common::sense

$ perl -le 'use utf8; my $a = { 私 => "あな た"}; print $a->{"私"};'

Wide character in print at -e line 1.

あなた

That "use utf8" only told Perl that your _program_ is encoded thusly, and did nothing to say that your standard output or standard error should output utf8.

$ perl -le'use utf8; binmode *STDOUT, ":encoding(UTF-8)"; my $a = { 私 => "あな た"}; print $a->{"私"};'

あな た

There you go, no warning.

Oh, you wanted to warn instead of print? There we go again…

$ perl -le'use utf8; binmode *STDOUT, ":encoding(UTF-8)"; my $a = { 私 => "あな た"}; warn $a->{"私"};'

Wide character in warn at -e line 1.

あな た at -e line 1.

So, you've got to set STDERR to also encode stuff as utf-8:

$ perl -le'use utf8; binmode *STDERR, ":encoding(UTF-8)"; my $a = { 私 => "あな た"}; warn $a->{"私"};'

あな た at -e line 1.

… or just do what we do, and create a module which does the above for you, as unfortunately common::sense removes a little too many warnings that we want to instead keep enabled... and we don't always want or need to have the utf8 encoding layer enabled on either stdout or stderr.

Computers4Christians miraculously appears on Ubuntu wiki

Marco Fontani
Joke

It has enough problems with the daemons it has

thought they renamed SystemD to SystemG in that distro :/

El Reg is hiring an intern. Apply now before it closes

Marco Fontani

let's be honest that's only because you're using CloudFlare

The CMS, whitepapers, and other subdomains have been on TLS way before Cloudflare. Neither is on cloudflare currently, either.

"Real" IPv6 is a clusterfuck I'll delay for as long as I can.

If you want to ask more, or discuss etc there's always webmaster@ :)

Login screen messages

Marco Fontani

This is not current Best Practice™.

I tend to agree, but "El Reg isn't your bank" (or Equifax *cough*) - so we opted to make it easier for users to gauge whether they had already registered with an address or not, or whether they simply placed in the wrong password - rather than giving the exact same confusing message "either email or password was wrong, use a magic eight ball to guess which".

Current Bestest Practice® would likely be to generate a unique email and password per service, so there's that ;)

CBS's Showtime caught mining crypto-coins in viewers' web browsers

Marco Fontani

Re: BOFH?

If I were to wager a guess, I'd say a marketing plod with the ability to push JS changes (via analytics, tag manager, you-name-it) to production without proper review.

Stack Overflow + Salary Calculator = your worth

Marco Fontani

Re: No server side development, no Unix

No server side development

Well, there's Javascript which can be used as a server-side development language

/sigh

What happened to my Silver Badge

Marco Fontani

Re: You've dropped below 100 posts in the last year.

Yup, you have ~76 live posts this year, only a few more for the bronze badge!

El Reg Topic Forum Layout Problem

Marco Fontani

And fixed :)

Marco Fontani

Sorry, not seeing on the page you linked to, nor on the actual index page for articles ( https://forums.theregister.co.uk/section/article/ )

Could you please submit a screenshot, and a little information about your browser (the contents of https://www.theregister.co.uk/cdn-cgi/trace would help) to webmaster@ please?

Thanks!

FREE wildcard HTTPS certs from Let's Encrypt for every Reg reader*

Marco Fontani

Re: Oh, I wish it was just as simple as that

yet the browsers are starting to complain that the site is insecure when logging in. Do I really need HTTPS?

Do you value giving all eavesdroppers on the connection between your computer and your server (both included) the ability to log into that site as yourself and do as they please with it?

… because that's effectively what's happening when you're logging in over HTTP.

It's even worse if you used a password you've re-used elsewhere… as now they also have access to that other thing. Or, worse, things.

Use https, use a password manager and create long, secure passwords… and don't use a password on more than one site.

Marco Fontani

Re: An admirable effort.

It's nothing more than a generic cert from CloudFlare

Well, not quite "a generic cert"… the certificate contains another couple second-level subdomains in the cert – a "generic wildcard cert" wouldn't be able to secure "m.forums" or "m.search".

Once another CA will make it as frictionless and cost-effective to have the same, I'll reconsider… We already use another wildcard cert on whitepapers, for example – and that's not under cloudflare, it's RapidSSL.

Unfortunately, the above situation means while we probably could also enable HSTS, we'd be doing that using Cloudflare's certs (something I'm neither strongly for or against, but I'd rather those were "our" certs)… and having two different CAs means we can't yet implement HPKP.

I guess once LetsEncrypt starts giving wildcard certs we'd be able to… so long as they offer one cert for all (?:sub)?domains we require ;)

Marco Fontani

Re: An admirable effort.

Complaining that you hadn't adopted HTTPS on every article in which you tell people to adopt HTTPS was one of the few pleasures I had left in this world!

The most common complaint du jour is lack of IPv6 support, you can jump right in!

Shiny AJAX up/downvoting

Marco Fontani

Re: Please don't

I've got the gold badger and everything

You're welcome to install NetBSD on it ;)

Marco Fontani

Re: Please don't

ElReg's current methodology behind thumbing people is all but useless.

… as it's always been :)

up/downvotes "just" serve as an indication of whether commentards are liking or not a given comment.

I just need the tool to see who's downvoted me

Ain't gonna happen.

Marco Fontani

This is going to be addressed Soon®: we'll be showing a slightly different icon depending on which way you up/downvoted a post

The time has come ;)

Marco Fontani

I just upvoted everyone. Then logged out and back in again. And was allowed to upvote everyone again. Hooray!

You've always been allowed to "do" that.

I say "do" as our forums code simply "records your vote preference", and then kicks off a separate task to actually "make it so".

In the end, the last vote wins and gets recorded – as each "per forum post, per user" vote can be expressed only once, but you can change your mind anytime.

Unfortunately, the front-end code isn't currently showing which way you voted, so by tricking things a little you can make it appear as if you managed to (up- or) down-vote somebody into oblivion… but in reality, so long as you're using the same user account to make your "tests", all you've accomplished in the end is to choose whether to upvote or downvote a post.

This is going to be addressed Soon®: we'll be showing a slightly different icon depending on which way you up/downvoted a post (even with JS disabled, obviously), and (while still allowing you to re-cast your vote anytime) the numbers should be quite a bit more clear in the end – as the JS will also be able to take into consideration whether you had or hadn't already up/downvoted a post – and it not being currently able to do so is the source of the "visual bug".

The other "bug" is that we don't currently have a way for you to reverse your vote choice, i.e. if you upvote somebody then you decided that you actually didn't want to either upvote nor downvote the post, you can't go back to "no vote preference given": once up- or down-voted a post, you can only pick which way to vote. We're unlikely to fix this anytime soon, to be honest. Little to gain for a very small corner case.

Marco Fontani

But you can't upvote, downvote, then upvote again

Well spotted! You now can ;)

Re the feature request – yes, it's been something we've had on the back burner for a while, along with showing which way you voted – if you did – on posts.

It'll come soon®

Software dev bombshell: Programmers who use spaces earn MORE than those who use tabs

Marco Fontani

Re: My code won't run but the spaces are great

Whilst tabs or spaces makes no difference to the compiler/interpreter

*cough* Makefiles *cough*

Kill Google AMP before it kills the web

Marco Fontani

Re: Oh, meant to say - the Reg site is really slow on mobile

The thing that annoys me about El Reg comments pages, much as I love the content, is the Web 1.54382 design of voting…

Yup, that's coming Soon®

China launches aircraft carrier the length of 13.6 brontosauruses

Marco Fontani

Re: Bollocks

There seems to be a bug in El Reg's unit conversion page : It clocks the brontosausus at 138 m instead of the more reasonnable 22 m.

Thanks for pointing this out! It looks like this specific unit conversion has been wrong for quite a long time.

I've just now updated it to have a more meaningful value, i.e. exactly 157 linguine.

Page: