32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions
comment 8y ago · link · parent
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
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
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
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
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.”
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
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
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
comment 8y ago · link · parent
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
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
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
comment 8y ago · link · parent
comment 8y ago · link · parent
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.