Better HN
topnewbestaskshowjobs
Log inSign up

bitexploder

7,559 karma · joined Dec 23, 2010 (15y ago) · 2,430 submissions

I did not keep blogging.
Submissions

comment 5y ago · link · parent

I have increasingly felt alienated in my relationship with my computing devices. I started in the mid 90s with Linux and Win95 and you owned and could understand the whole computer. iOS and the trend of walled computing gardens were ostensibly done for security and user experience, but users have lost control of their devices. Not everyone needs that of course, but I t is a big reason I migrated to Linux this year after having an off again on again relationship with Linux on my primary computing device. macOS is good, but it used to be great. Way too many technologists are eating up things like M1 / Apple silicon without asking if it’s a good thing. It performs great, but does it really matter? I’m pretty sure it doesn’t help me code or do things in emacs any more efficiently. After Apple hardware quality dropping a lot I just don’t feel the experience is good enough to justify it anymore. Maybe M1 will be a big evolutionary step that we simply can’t ignore, but I know I can do everything I need to for the next few years on my Linux laptop. I will evaluate again when it’s EOL. Mid-2015 Mac was the last great MacBook IMO. It’s been downhill from there. It’s been a slow incremental decline in quality of both the hardware and the OS. And I really loves my Mac and Apple ecosystem a lot, but the writing is on the wall for these walled gardens. iOS is still solid and my iPhone 12 is great... but it may be my last iPhone as well. Same with Windows, honestly. Win 7 was probably the last great windows operating system. Win10 has been very okay for me. All the forced reboots and telemetry in macOS and Windows... yuck.

comment 5y ago · link · parent

Depends. With comparison functions you can implement a constant time comparison that takes the same amount of time. In this case it isn’t really a crypto problem, so anything where we are confident about things taking the same amount of time is fine. Basically in some parent method/func make sure we always spend 2000ms or whatever time is that is always greater than the max runtime of the slowest path. Secondary / defense in depth mitigations would be rate limiting this page and making it purposefully slow on response, just to make it that much harder to collect samples / abuse it without being noticed. The captcha is a nice touch, but it didn’t seem particularly strong (a good captcha solver could break it). Still, captcha will chase off a lot of script kiddies. You don’t have to be faster than the bear, just faster than the slowest person ;)

comment 5y ago · link · parent

See: https://rdist.root.org/2010/07/19/exploiting-remote-timing-a... and Crosby 2007. I got into infosec around 06 and tptacek, Nate Lawson and some others were my heroes. Now I run my own consulting firm with a bunch of cool people :)

Also in infosec: what is old is new. We still find shitty comparison routines (timing attacks) and SQL injection... some day :)

comment 5y ago · link · parent

100ms is /massive/ for a timing delta but you really need a lot of samples. I have exploited timing deltas that were not much more than a handful of machine code instructions in terms of execution time. But you really do need a lot of samples to confirm small deltas. It starts getting impractical for many APIs (someone will notice, hopefully).

comment 5y ago · link · parent

You could be right but I have found almost this exact bug in production systems (credit card oracle sitting on the public Internet of a big card processor with no rate limiting and a really obvious timing delta). Both scenarios (batch or live processing) are pretty likely IMO. Just depends on what mess of APIs you happen to end up on.

comment 5y ago · link · parent

You would hope that. I’ve been in infosec doing application security as a consultant a long time. Developers have often destroyed my hopes :)

comment 5y ago · link · parent

Caltopo and forest service roads are the best for last mile backcountry driving in my experience. Google maps is indeed really sketchy in those situations.

comment 5y ago · link · parent

Also, if there is any sort of timing difference on valid/invalid card numbers. Boom... timing attack / CC oracle :)

comment 5y ago · link · parent

Yeah, you can achieve the same educational aims with one of the thousands of crackmes out there. It’s pretty sketchy to demo cracking for pay software in a public place like this. Maybe that was old content and they forgot about it, but still, it does shed some light on it. Cybersecurity content in general, and especially that focused on tools and techniques, should be presented with at least some moral and ethical concern.

comment 5y ago · link · parent

Being a little cynical here: man discovers human condition and is unhappy with it. Writes many words about it. Snark aside, people have to be incentivized to do all of this automation. From a philosophy standpoint I agree and we should always be asking these questions about society and productivity. I think intrinsic motivation is great and money is a poor extrinsic motivator as the author points out after a certain point, but... I just can’t see innovation happening the way it does without some sort of massive societal reorganization. And it smacks of needing some sort of central control of everything to achieve this orchestration. My basic argument on why this probably won’t work is that people as a whole are simple in that we have been doing roughly the same things and having the same struggles about as long as we have existed. Yes it’s gotten better, we live in better less violent world (the least violent world we have ever known, in fact). Almost entirely due to technology and the industrial revolution. This is an interesting piece but nothing we haven’t been observing in terms of productivity gained and who is benefitting from all of this productivity (and why are people still working 40+ hour weeks in an ever more productive society?). I think it will take another order of magnitude technology revolution before the average person really questions any of this.

comment 5y ago · link · parent

Same with Magic The Gathering, Poker, etc. over a few games you can win. Long term, nope. The best players at MTG have maybe a 60-65% win rate in a professional setting. And that is considered very good. But they can do it consistently. So really the game is about how much better than 50/50 you can get. The difference in adding 5-8% to your win rate is an astonishing amount of skill. It’s part of what makes magic fun. Complete novices have a shot. Maybe that rankles some people, but that’s the game :)

comment 5y ago · link · parent

I practice a grappling martial art. If you bruise the tissue in your ear too much small pockets of fluid can form between your ear and the cartilage. If this fluid is not drained and the ear kept compressed it can harden forming cauliflower ear, deforming the ear. Some people are more susceptible to it than others. I imagine that would be a worst case injury. I don’t know of this happening with headphones, but it seems plausible.

comment 5y ago · link · parent

Just curious why exclude Tesla? Their lane keeping and autopilot is better than anyone else’s I think.

comment 5y ago · link · parent

I think it’s more than taste bud pleasure. Animals are an easy source of protein with a complete amino acid profile. It takes real effort to learn how to eat a vegetarian diet (even one that incorporates eggs and dairy). Excluding eggs and dairy increases the difficulty even further. I’m not ready to be so pithy about it. And I have gone on extended vegan and vegetarian dieting phases due to ethical concerns. It’s hard.

comment 5y ago · link · parent

This is why I love Greek philosophy so much. They were keen observers of the human condition, but they didn’t bind it all up in (formal) logic. Their philosophies were aimed at being practical life philosophies. How to live a good life (according to the philosophers). I find much in stoicism to be of particular use in modern life. CBT, cognitive behavioral therapy, has many similarities with and could even be viewed as strongly influenced by stoicism. CBT really works for a lot of people and is one of the most successful therapeutic approaches in modern psychology at improving people’s outlook and fighting depression.

comment 5y ago · link · parent

To society as a whole, yes. To the company itself, there is definitely competitive advantage to protect trade secrets so harshly. It’s hard to argue it doesn’t have some value for Apple. I think it’s a little extreme and disagree with the degree to which they enforce it on all of their teams, even knew where it clearly has minimal competitive advantage.

comment 5y ago · link · parent

Their recommendation engine is really bad IMO. I was hoping for a futuristic machine learning + listening based recommendation engine that could find similar songs based on what they actually sound like. Mostly they just find songs based on what other playlists your song exists in. It's really boring and not good at finding new music for me. It does OKAY and it isn't why I use Spotify, but I can't help but feel like they are missing the boat here. I remember working with Gracenote software like 15 years ago and it could fingerprint songs and find similar music at least that long ago.

e: my overall sentiment on Spotify is very positive, I just wish recommendations were better.

comment 5y ago · link · parent

High risk, high reward.

comment 5y ago · link · parent

This would be too hard for the average computer user. I love the concept and could see it working for more technical users, though. There are definitely some risk trade offs over traditional password managers, though. To start: Humans have biases. Randomly generated passwords don’t have any biases. I would have to think more on this from a cryptography perspective as well, but I think it’s a cool idea :)

comment 5y ago · link · parent

Depends on the language. In general I find the way many unit tests are written to be very brittle. There is a balance here. If the 80 lines are clear and easy to understand they will likely be easy to test also. It’s very situational though. An 80 line function isn’t that bad. Check out the SQLite code base, which is extremely well tested, or the linux kernel. C code tends to push out the line count. Whereas 80 in Python is probably a bit much. Some libraries, especially GUI code tend to take a lot of lines, mostly just handling events and laying things out and there you often see big functions as well.

comment 5y ago · link · parent

The key concept they always helps me is to minimize side effects per function. One thing goes in, one thing comes out (in an abstract sense). Multiple side effects starts getting dodgy as it makes the function harder to predict and reason about. I do err for longer easier to read functions. And don’t compose into functions until it’s clear you will actually reuse the code or you actually need to reuse it :) DRY is good but premature composition is just as annoying as premature optimization.

comment 5y ago · link · parent

There is a point where fitting a little more code on one screen actually helps. Usually not though. Our brains can only see a screen at a time. There is some optimal mix of terseness, especially when you know your reader (probably you in a few months!) will grok it, vs verbosity. If I find myself untangling a single line down the road in my brain it was too complex. Python is already so expressive! We all find our style, but generally I know I did it right if I look back at code at think “wow that’s easy to understand” vs “hmmn, what was I thinking there?” Heh.

comment 5y ago · link · parent

I meant to write “not too many” functions of course :)

comment 5y ago · link · parent

As I get older my code gets a little more verbose and a little less idiomatic to the language I am writing. I’ve been writing code, starting with C, since 95. Mostly Python these days, but I try to make it clear and easy read. Mostly for myself. Future me is always happy when I take the time to comment my overarching goals for a piece of code and make it clean and well composed with enough, but not too many, functions.

comment 5y ago · link · parent

We almost never have to touch the screen with driving our Model 3. All controls you need are physical or very easy to interact with on the screen.

comment 5y ago · link · parent

I tell everyone I view Tesla as a software company first and that their tech was a decade ahead of other car makers. I think it will still take another 5-8 years for a traditional automotive manfacturer to get close. Apple, they could do it.

comment 5y ago · link · parent

This is really cool. I am always in Org mode which lets you do "literate" programming as well. I think NoteCalc is a little more streamlined, but I am very used to throwing a little Python or elisp into my notes when I need to do math. Great to see more options on this front. Org-babel is a nice package, though it does have some limitations.

comment 5y ago · link · parent

Depends on if you knew about it or not IMO. Or if you knew the deal was too good to be true.

comment 5y ago · link · parent

Everyone has to start somewhere. No Linux purity guardians here :)

comment 5y ago · link · parent

Thanks. I wish text could convey the attachment of emotions experienced when writing it. I deeply care about the humans I work with. At the same time, I have experienced what happens when you try to sugar coat things too much in the guise of kindness. You literally cheat people of their opportunity to improve. At the same time, getting the best out of people as a manager means balancing truth and emotion. It’s a very, very human thing. I just try to remember we are all humans blasting through time as only humans can. It’s worked well so far. As long as you can truly meet another person, its hard to be crass and ignore their perspective
1
444546
81