Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 9y ago · link · parent

Why not get it delivered to work?

comment 9y ago · link · parent

While the other comments talk about the benefits of switching to pgsql (and I concur whole heartedly) it seems no one has addressed your specific case. Your company isn’t really “switching” to anything, MariaDB was a fork of MySQL when the license kerfuffle was going on and there were issues with the stewardship of the project. It’s more of upgrading to a newer release of MySQL than switching to a different database engine.

i.e. “switching” to MariaDB is probably just a sysadmin upgrading the software and no changes to your code or database queries (unless replication is involved) but pgsql will certainly require more involved changes to the software.

comment 9y ago · link · parent

Anyone that's dealt with S3 in any capacity should be aware of this, it's literally one of the first encoding problems to come up when dealing with signing requests.

@dang can you please add (2010) to the title?

comment 9y ago · link · parent

What’s the point of an answer like that? Does Amazon have a history of sabotaging network links between, say, Google’s or MSFT’s networks and their own? Or is this just an attempt at being funny?

comment 9y ago · link · parent

That would be a benefit to him as a publisher you are proposing he give up, in that context.

comment 9y ago · link · parent

A _partial_ implementation without IO, pattern matching, or coroutines.

Nothing to see here, really. Just remaps basic Lua syntax to Go without actually _implementing_ what makes Lua useful.

comment 9y ago · link · parent

Thanks but due to imgur’s recent update these are even lower resolution than the quick finds in my original post (on mobile). I’ll post full-size links when I get to a PC.

comment 9y ago · link · parent

Thank you. For comparison, these are real cheatsheets:

* https://zeroturnaround.com/wp-content/uploads/2017/03/regex-...

* https://rumorscity.com/wp-content/uploads/2014/08/10-Best-VI...

* https://wch.github.io/latexsheet/latexsheet-1.png

comment 9y ago · link · parent

Of course they are. A leopard does not change its spots.

comment 9y ago · link · parent

Meh, this has been the problem from day <del>1</del> 2 with the iPad lineup. I'm a developer, I've watched the keynotes, and I couldn't tell you what the current iPad models are or which moniker describes which iPad or which size came first or what model is bigger or which has the latest features just by the names. Pro? Mini? Micro? 2? 3? X? Air?

comment 9y ago · link · parent

> iPhone 6S happened because Asian consumers expect phones with big screens.

I think you meant 6+ ? (it would be funny if it weren't sad, how this proves there are simply too many models to keep track of)

comment 9y ago · link · parent

It's this assumption that "same experience on all platforms" (aka "branding") is desirable to "native experience on all platforms".

Facebook wants facebook to feel like facebook whether you're on an iPhone or an Android or your PC. Same with Chrome - it eschews native platform UI on all devices in favor of looking the same everywhere.

Good UI - by definition - doesn't get in your way. But "good UI" may not be "good marketing" or "good branding" and these companies are placing a premium on their brand at the cost of the user experience.

Good apps should _embrace_ rather than eschew the platforms they run on and their windowing toolkits so that their users can focus on the content rather than the presentation.

Think about it - how many people (as a percentage of users of an app) will use it on multiple platforms? (Windows and Mac or iPhone and Android?) How many people use facebook _both_ in the mobile browser _and_ via the app on the same device? (Especially given the obnoxious trend to block access to the website if a native app is available cough reddit cough pinterest cough messenger cough). Not many at all.

Hubris also comes into play. Obviously the UI models used in xxx platform are not perfect, but every app designer thinks "users will prefer this over xxxx's default, no question about it" because they view their layout/navigation/ui/style to be the greatest thing since sliced bread and cannot fathom that users might actually prefer the device's native windowing/widget toolkits to their abomination.

comment 9y ago · link · parent

It depends on what you're securing and what the weakest link in your chain is. The assumption is that your app is doing something valuable (i.e. there is value in compromising the app, not just as a means of compromising the host).

Perhaps I should have phrased that differently, but you've reduced the attack surface for compromising your _app_ via the environment (instead of the environment via your app).

(big disclaimer: this is assuming Xen bugs are much more valuable than app bugs and someone with a Xen exploit won't be focusing on you.)

comment 9y ago · link · parent

@dang could you please add (2015) to the title? The title is misleading as-is (and thus flagged) since it makes it seem like breaking news.

comment 9y ago · link · parent

Much smaller attack surface.

comment 9y ago · link · parent

I wish the SF font family included a Georgia lookalike with modern optimizations. Sans serif can become a problem in a wall of text.

comment 9y ago · link · parent

They should have held off until VP9.

Everything about VP8 (and, by extension, webp) was such a bungled mess. You come out with a format that barely competes with something released 5 years earlier then release an image format based on it while its superior replacement is being developed and close to release?

AVC was released 10 years prior to HEVC; it had a good run and that encouraged adoption. Google barely got people to support their inferior (though mostly free) replacement before they obviated it not five years later, thus guaranteeing no one would ever bother with hardware encoding for an ever changing always outdated on arrival family of codecs.

A real shame.

comment 9y ago · link · parent

One gets you guaranteed immunity if you sign up for three different patent pools and pay a massive arm and a leg. The other claims to be I encumbered but the reality isn’t so clear.. but you’d probably have Google’s lawyers to help you out if it came to that.

comment 9y ago · link · parent

Webp supports most of those features actually, iirc. I mean HEIF is to HEVC as WEBP is to VP8, right?

Not that webp is as incredible as Google claimed, but that was always a given with the inferior codec it’s based upon.

comment 9y ago · link · parent

I don’t know. All the objective literature I’ve read to date (sorry on a phone right now) has been to avoid harsh contrast, increase line spacing, avoid extreme contrast, and set a cap on max width. Just because you have a big screen (I wrote it on a 30” 4K monitor myself) doesn’t mean it’s wise to extend the content from Edge to Edge (not that this content is long enough to do that).

comment 9y ago · link · parent

(Replying to an earlier version of this comment):

You’re right. We’ve become - by and large - engrained to associate links with underlines, but in this context it’s not necessarily necessary (though probably a welcome hint for many).

comment 9y ago · link · parent

That’s actually the original purpose behind the relative sizing, so people could choose a base text size that best suited them.

comment 9y ago · link · parent

Fair enough!

comment 9y ago · link · parent

CSS Resets. Most you'll find only are out of date though, and only handle the basic, non-vendor-specific attributes.

comment 9y ago · link · parent

Every browser in use today has a default stylesheet that injects styles into every site (if not explicitly overriden). Even for sites that have their own stylesheets.

It's just that a) they're really ugly, and b) the mobile ones are ironically not mobile optimized.

comment 9y ago · link · parent

What animated GIFs are you talking about that are not several MB for a 5 second clip? It's 2017 and the only time my 2 gbps internet connection makes me think my browser has gotten stuck is when it's a gif (and not a recent mp4-masquerading-as-a-gif, I mean those uncompressed, "lets repeat all the content in the next frame even though nothing has changed" honest-to-god GIFs).

comment 9y ago · link · parent

Thanks. Yeah, I wasn't going for the byte-pinching approach (lots of good-old-fashion whitespace, not using css one-liner declarations, not bothering to refactor overlapping styles, etc); like you said, the intention was to simply show how a basic (user|site) stylesheet can result in a vastly more user-friendly result without going overboard.

(Now if you want to nitpick... I imagine the css has a better gzip/brotli compression ratio than the html by nature of its repetitive keywords.)

comment 9y ago · link · parent

Oh I know. I'm lamenting the fact that default browser sheets suck (any sane developer/designer is going to import a CSS reset as the first step, so there's no reason to make the default look so ugly).

Of course, depending on the reasons behind the existence of thin.npr.org in the first place, NPR could add something really simple that doesn't add more than a few bytes and make it look several orders of magnitude more palatable.

comment 9y ago · link · parent

I'm decidedly _not_ a conspiracist (being a firm believer in Occam's razor and all), but this does lend credence to some of the "it was a friendly operation gone wrong" and "we already know who did it but have our reasons not to say anything" lines of thought.
1
179180181
277