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 8y ago · link · parent

I don’t know. If I were designing that system, I’d note that most queries would be extremely similar and would benefit insanely from being compressed in situ or would (given were talking DB here) be a perfect fit for normalization.

You mentioned SQLite - a second “querylog.db” with a table of queries and a table of instances (query time, parameters, whatever) would be an obvious option (at the expense of slightly exaggerating your db response times, but I’m sure debug mode is already slower as is).

comment 8y ago · link · parent

Not directly pertaining to the article but in relation to the comments here, I feel it’s necesary to remind that the real problem with GC isn’t average processing time/max simultaneous requests but rather the large standard deviation resulting from GC pauses (and not to mention the poor cache friendliness, memory evictions, and more as a result - but those are taken into account in the the average run times so we can ignore them in this context).

As a related metric, sometimes it’s not your average response times and scale that matters but how much headroom you’ve got for a sudden influx of traffic. If memory/pagefile thrashing and hard faults bring your system screeching to a halt, you won’t be happy no matter your scale when you can’t benefit from the eyeballs and pageclicks coming your way.

comment 8y ago · link · parent

> Again, most people are NOT Instagram or Google

And, again, can we stop with these pointless comparisons? Past 1 front end server the only cost that matters is how many requests your one node can handle and how much that one node costs. If you’re not a VPS and you have your frontend http cache correctly configured, then it doesn’t matter how much smaller than Google you are, comparisons are valid (although, of course, the fewer servers you have the more you can afford to spend on them; though you probably aren’t making as much money as IG/FB/Google either...).

comment 8y ago · link · parent

Do you mean intranet bank apps? Or public facing sites?

comment 8y ago · link · parent

Net connections means nothing. How many servers does IG dedicate to this task? Compare IG’s server budget with another company’s and then divide by the number of servers. Not so unimaginably, out-of-reach big any longer.

comment 8y ago · link · parent

Who keeps a running, unbounded log of all connections in memory?

I’m not a pythonista, so please forgive my ignorance here, but: is this just the default configuration for Django? Does it ship out-of-the-box with adapters to log that to MySQL or similar instead? Why does it not log the last n connections for some sane (and configurable) default value of n instead?

comment 8y ago · link · parent

It’s not about being offended. If that’s what you got out of it, you are missing the point. The author even wrote that there’s an option to report an ad as offensive but she chose not to use it because she wasn’t offended.

Clearly the author is comfortable with her body and sexuality enough to not find these images and ads offensive per se, but that doesn’t mean there’s nothing wrong with them and the industry that pushes them.

I’ll go do far as to say people thinking the way you do is the reason these exist. I can just see a timid voice at a meeting about ad content venturing “what if people find these intrusive, creepy, or esteem damaging?” And a brusque and carefree reply from the loud alpha male in the room “psssh it’s 2017! I can’t believe people get offended over an ad! But ok, well just add an “hide because it’s offensive” link and we’re good.”

comment 8y ago · link · parent

Thanks for the link. I missed it, but you’re right, the image of the egg with scales on it in the linked article says “representational image.”

I do wonder about that picture, however.

5169.

A Scientist Works to Resurrect the Ice Age at Pleistocene Park(theatlantic.com ↗)

1 points · by ComputerGuru · 8y ago · discuss

comment 8y ago · link · parent

I was wondering the same thing. They were about to blow the site sky high with dynamite. The article didn’t mention how they went from thinking they looked like rocks to looking like fossils:

A construction team in China were shocked to discover that what they thought was a collection of "oval-shaped stones" was in fact a nest of perfectly fossilised dinosaur eggs. The group were using explosives to excavate the ground at a site in the Jiangxi province on Christmas Day when they came across the prehistoric find.

Suspecting them to be dinosaur eggs, they stopped construction in the area and contacted the police. The site was sealed off and experts from the county museum were called in to recover the find.

It went from finding what they thought were “oval-shaped stones,” and then it’s suddenly “suspecting them to be dinosaur eggs.”

comment 8y ago · link · parent

Are those scales on the egg itself?

comment 8y ago · link · parent

I don’t get it. You are acting as if the brownouts are typical behavior of a year-old battery in a phone?

The real scandal is the shoddy design and engineering that led to brownouts that necessitated either a massive recall or this throttling.

comment 8y ago · link · parent

Have you tried extracting the .deb?

comment 8y ago · link · parent

Yes it is. The “fix” was introduced to avoid these crashes by throttling instead of browning out. It’s in the article.

comment 8y ago · link · parent

Except it’s still on the front page five hours later.

comment 8y ago · link · parent

I don’t like it, but WhatsApp does that.

comment 8y ago · link · parent

That's literally what I said in the comment you're replying to! (yes, we're on the same page. Not arguing, just found it funny that this was your reply.)

comment 8y ago · link · parent

I agree with you, it's not there yet. It's the same problem over and over again with all these Make alternatives: close but if only xxx or if only not yyy.

I agree that the installation approach is a total copout, I would have hardlinked all the files from their installation destination to the build artifacts. (presuming state is intended to be thrown away on rebuild.)

comment 8y ago · link · parent

And that link can be changed.

comment 8y ago · link · parent

I think the threat from keyloggers is not as severe as the threat from clipboard scrapers. Apple and Google absolutely need to make a secure password transport mechanism to allow one app to fill a field in a web browser or field in another app that does not rely on the clipboard because even just expiring it after n seconds is not secure enough.

comment 8y ago · link · parent

The only drawback to that is the difficulty of logging in while out of the house (I understand making priority accounts “on site access only” but what about others?) and the fact that you’re deincentivized from making more secure passwords because (even if only subconsciously) you’re going to have to type in all those characters and symbols each time you want to log in.

I think the biggest security failure is session cookies that expire too quickly or too eagerly. Having people need to enter their password so often is more dangerous than keeping them logged in (from the same IP) for a longer period of time.

If my bank would keep me authorized for basic access (review transactions, pay bills, transfer money between own accounts) without logging in each time, but required a password to add a payee or make changes to the account, I’d keep the password in a journal in a safe.

comment 8y ago · link · parent

Do they ask you to confirm your master password over the phone so they can check on their end and see if they can reproduce the issue?

comment 8y ago · link · parent

Not directly. It’s more like, “Daring Fireball, brought to you by John Gruber, brought to you by Apple.”

comment 8y ago · link · parent

The code, tech, and mindset behind LastPass is a joke. They started just after the “dark ages” of security but don’t seem to have upgraded their mental model of security since. I’ll share with you the moment I discovered something that made me cancel my schedule for the day, research alternatives, write a LastPass to 1Password converter [0], and cancel my LastPass account and subscription.

Are you ready?

You log in to their support forums and online community with the same password you decrypt your vault with.

[0]: https://neosmart.net/blog/2017/a-free-lastpass-to-1password-...

EDIT:

To answer some of the comments, since understandably not everyone is a security expert:

What happens if LastPass’s web forum is compromised and all their additional security counts for nothing?

Even if not: you have no problem with people being conditioned to enter the password securing all their passwords repeatedly into random pages for random content not related in any way, shape, or form to their vault in a web browser?

Containment is the name of the game. It’s hard enough making one app secure enough to enter your password into. Then extending that with an SSO, relying on The security of none other than notoriously crappy phpBB, vulnerable to upstream code injections, XSS, phishing attacks, and god knows what else, and you still think you can trust them to keep your master password secure?

LastPass is such a juicy target and this is such an easy attack vector that I can virtually guarantee at some point phpBB - or, more accurately, their abuse of it - will be a massive liability and the source of a huge catastrophe for them, if it hasn’t secretly already.

Of course they know to treat changes to their authentication apps very carefully and code review each and every syllable added or removed (well, I hope so). But do they review upstream patches to the forum software they use? What about the third party template they have installed? Do they hold off on patches after a security bug is discovered in phpBB so they can review the code changes? Do they even upgrade their forums? What about a vulnerability in PHP itself? Do they secure the server hosting their authentication apps in the same manner as the server hosting their forums? Do their web developers undergo the same background checks and scrutiny their core developers undergo? How many sysadmins have access to the website? Do they provide the same access monitoring to people managing an ancillary feature like their forum software?

The list just goes on forever. You’re as secure as the weakest link. All anyone that want to break into LastPass has to do is get some code into phpBB or the random phpBB themes and plugins they use and it’s game over for millions of LP users and billions of credentials worldwide.

See the problem?

comment 8y ago · link · parent

I would say that’s definitely a huge benefit to the end users (though not the maintainers, that’s for sure) as “one build system to rule them all” is pretty much the dream, right?

Presuming tup is good, of course. I played with it but I hated the fuse dependency and ended up switching to meson (though I despise the build-time python dependency, see [0]) for cross-platform projects and plain jane gmake or pmake Makefiles for others. I also hand code ninja build files for stuff that’s not too crazy and platform dependent, basically for things that gulp would normally be in control of.

comment 8y ago · link · parent

Have you tried FreeBSD before? It ships with an awesome binary package manager and a virtual tree of sources for all the packages in the package manager at the same time. You can install the binary (sudo pkg install foo) or cd into the source dir, fetch the sources, patch on a whim, then “make” (even if the project upstream does not use make) and install.

comment 8y ago · link · parent

The entire source tree is based off of git submodules and an automatic build system, right? I wonder what would happen if you ran “git submodule —update” (presuming the submodules point to master, though I am unsure if that functionality was around in git when this was published) and then tried to build it with tup.

comment 8y ago · link · parent

Sorry, your terminology threw me off. I get what you’re saying, and as you can see from my quality-of-life replies in this comment thread, I don’t disagree.

comment 8y ago · link · parent

I’ll give you a more realistic answer: if you’ve never done microelectronics interfacing, you won’t have much luck until someone develops a driver (“software api”) for a particular eInk display for a platform you’d like to use.

I’ve never used MicroPython, but the C APIs I’ve seen for LCDs for micro controllers are usually pretty straightforward. Depending on the level of abstraction, they might offer a basic “put this B&W/R&G&B pixel at location x,y” or a higher-level “print text xyz” type of interface, both of which are easily exposed to python’s ffi and consuming it from there should be no problem.

But the trick is waiting for someone to get that driver made.

I’ve been meaning to play around with mine, if there’s sufficient interest I could see how realistic writing up some Arduino-compatible code to interface with it and some instructions would be.

1
172173174
277