Better HN
topnewbestaskshowjobs
Log inSign up

floatrock

5,408 karma · joined May 1, 2013 (13y ago) · 961 submissions

Submissions

comment 3y ago · link · parent

Ease and iteration speed for complicated APIs. Why make notebooks when you can just make a single python script?

Well, same way that notebooks are a REPL that remembers things, it's helpful to rapidly tweak parameters in your API calls, flick a menu to point to a different environment, retry requests on your own local instance, etc. Then when you have it all ready, you just save and it's shared with your team, and the non-developers don't even need to learn what a virtualenv is. Even your CI can take advantage of it. Well, it could.

There's "nothing" Postman provides that you can't do with a python script and git, but it lets you move much faster and have a tighter iteration loop.

That said, paying $10/user/mo just to effectively share a bunch of json definitions was always a plan that only made sense with corporate credit cards. With this added artificial restriction, my team is going to be looking for other alternatives.

Dropbox gave a similar degree of convenience and that's why they took off. But once every cloud provider figured out they too can sync files in the cloud, the novelty became a commodity. This plan reeks of Postman being out of actual feature ideas so in their desperation they're just milking whatever they can get out of their corporates through artificial restrictions before "a cloud-sync'd API runner" becomes a software commodity and the lights go out.

comment 3y ago · link · parent

Alan Watts for philosophy / religion / zen.

It's almost a trite recommendation because his tidbits are sampled all the time in electronic or meditation music, but they're sampled all the time because he's known for opening western minds up to eastern mysticism in a very down-to-earth approachable, comparative, compassionate, and often humorous way. Who knew that philosophy can make you laugh.

His lectures just show you a different way of looking at the world, and it's a breath of fresh air for the soul.

comment 3y ago · link · parent

Minutes-to-midnight over time: https://en.wikipedia.org/wiki/Doomsday_Clock#Timeline

90's were nice.

comment 3y ago · link · parent

> An apple variety is only really rescued when it has found a home in commerce and some significant consumer base wants it.

This is such a sad viewpoint on the world when biodiversity is valued only if it is commercially exploitable. See other threads on what "home in commerce" really means: optimizing for transportability and uniformity at the expense of flavor and nutrition.

Late to the heirloom party, but this summer a friend offered me a cheese and tomato sandwich from her garden. I originally wasn't interested because tomatoes were always kinda meh for me. But after some encouragement I went for it and after the first bite, I realized I just never actually had a truly juicy and flavorful tomato in my life.

When you say something needs to be commercially successful to be viable, be careful what you're optimizing for. Our commercial agriculture systems don't always optimize for the things you're sold in the slick marketing commercials. There's alternative commerce systems out there, but they look like a farmer's market where you might be surprised by a variety you've never tasted before and might have a few blemishes rather than the scale of a national supermarket where both coasts and everyone in between always gets the same consistent but bland red delicious.

comment 3y ago · link · parent

Just the other day Italian police announced they found some old mafia boss who was hiding for 30 years because they got a tip he was sick, so they scoured the national health records for clinics treating someone around the right age with the same conditions.

comment 3y ago · link · parent

> if you intend to use most of it personally.

That's exactly the goal here: make grid export uneconomical so you need to pair solar with a storage system that banks your afternoon excess into self-consumption once the sun goes down and the duck curve kicks into peak territory.

comment 3y ago · link · parent

I want something like this for youtube or other streaming services

comment 4y ago · link · parent

Anyone assemble this into a jetbrains theme file?

Author links to a json file https://meat.io/oksolar.json but haven't done manual jetbrains theming so hoping more experienced eyes have taken a stab at it.

comment 4y ago · link · parent

Literally the point of the study

> “We encourage policymakers to consider utility rates that encourage day charging and incentivize investment in charging infrastructure to shift drivers from home to work for charging,” said the study’s co-senior author, Ram Rajagopal

comment 4y ago · link · parent

It's almost as if the logical conclusion is to invest in convenient workplace charging infrastructure so charging is simple when the car is conveniently parked at work doing nothing and the owner wants a car ready to go home in the evening...

> “We encourage policymakers to consider utility rates that encourage day charging and incentivize investment in charging infrastructure to shift drivers from home to work for charging,” said the study’s co-senior author, Ram Rajagopal

comment 4y ago · link · parent

> > Today, California has excess electricity during late mornings and early afternoons, thanks mainly to its solar capacity. If most EVs were to charge during these times, then the cheap power would be used instead of wasted.

> How are people going to charge their cars during commutes?

Come on, you're saying most commutes are "late morning and early afternoon"? I too would like a job where my commute in is at 11 and my commute home is at 2.

Rather than spreading EV FUD, can we instead discuss what the article is actually talking about, like installing charging infrastructure in daytime parking lots so we can take better advantage of the cheap, plentiful, and often curtailed solar energy?

comment 4y ago · link · parent

> but come back when you've got something with hundreds of [megabytes] that could serve as an actual... competitor to [IBM]

For someone hanging out on hackernews with the name Christensen, I imagine you would have stumbled upon The Innovator's Dilemma by now.

Tiny competitors disrupting established incumbents by playing a different game that is fundamentally incompatible with the incumbents' business model is the very story of tech disruption.

comment 4y ago · link · parent

Great, sounds like you engineered things for your expected temperature ranges.

Story here is a major piece of infrastructure is experiencing temperatures outside of its designed-for temperature range.

comment 4y ago · link · parent

a brief peek into infinity

comment 4y ago · link · parent

Classic Hanlon's razor "never attribute to malice that which is adequately explained by ignorance"

Copy-pasting a template and just not being aware of accessibility and functionality requirements is most likely explanation here. Or devs being given 4k UHD monitors and never looking at their work on a small laptop.

comment 4y ago · link · parent

Then lets hear some actual concerns.

All this is just a disingenuous "the industry can't develop because the supporting infrastructure isn't there", while if you look at their actions, they've been building the supporting infrastructure along with the developing industry.

It looks like disingenuous FUD because it seems like the market is saying they've bet on the wrong kind of infrastructure.

comment 4y ago · link · parent

"the chicken can't exist before the egg"

Come on, all of these are things that grow WITH the EV industry as the EV industry develops.

Given how much Toyota has helped the hydrogen industry develop hydrogen infrastructure over the last decade as they put all their eggs into the hydrogen bucket, they very much know all this.

comment 4y ago · link · parent

Article also mentioned the “The thoughts you water are the ones that grow" idiom.

CBT is often about reframing or "reconstrueing" a negative or damaging viewpoint into something less emotionally charged. Venting is just watering and reinforcing the emotionally charged pathways -- the "gasoline on a fire" analogy.

comment 4y ago · link · parent

Shit point for who? The commuters who drive in from the outer burbs, or the people who live within the walkable area and provide the density needed to support a rich ecosystem of shops and restaurants within a close proximity?

The point of this urban design trend is to not think of these regions as destinations, but rather as places you live in and so can avoid the car trips in the first place. If you can walk there, why is parking relevant?

Is it friendly towards the people who live in suburban housing developments who need a car to get anywhere? No. But those people chose to live in a place where you need a car to get everywhere, so they shouldn't be surprised their lifestyle isn't accommodated in districts that have made a conscious decision to be less car-centric.

"But only the rich people can afford to live in the cute small downtown!" Great... that's telling you something about the market desirability of small, dense walkable regions. Why don't we get rid of more zoning codes and build more places that the market demands?

comment 4y ago · link · parent

personally I just think of them as the Song of the Suburbs.

But yes, 2-stroke lawn-care engines are egregious offenders in the climate and air quality battles. At least make it all electric like CA's been doing.

comment 4y ago · link · parent

Not in the graphic arts, but this is the most appropriate use of an .xyz domain I've yet seen.

comment 4y ago · link · parent

I get it’s the practical answer given the state of how things are, but wanting to change the car instead of the infrastructure that forces the use of the car betrays a lack of imagination for how things could be.

I own a car, I’m not a “destroy all cars” guy. I just don’t want it to be the only option. The American suburban experiment has resulted in the least active, the least healthy, the most indebted, the most isolated, and the loneliest generation. Yes, of course there’s many other factors. But when you look at the studies of where people know the fewest neighbors by name, it’s in the little boxes on the hillside. Sprawl ain’t helping.

I get it, we all want plentiful cheap land after we’re done living with roommates. I do too. But there’s gotta be a better way than strip malls nestled between HOA-gated subdivisions, connected only by 45mph 6-lane stroads. There’s gotta be a way to build human-centric. Let’s talk about what the next suburban experiment will look like instead of perpetually adding more lanes, always straining to connect our increasingly disconnected subdivisions.

comment 4y ago · link · parent

You're right.

Sorry noslenwerdna, that should have been worded more kindly. Internet should be a kinder place.

comment 4y ago · link · parent

It's about a facebook inside joke on a facebook opensource project. You are aware of the corporate info on the reactjs.org page footer right?

comment 4y ago · link · parent

EV's are better than fossil cars, but they too have most of their emissions in operation rather than manufacturing.

So the significant question isn't "will driverless lead to fewer emissions because of fewer cars", the significant question is "will (electric) driverless lead to fewer emissions because of fewer miles driven?"

It's no question that electric is more efficient on emissions per mile, but if the number of trip-miles increases because driverless cars eg are constantly circling the downtown waiting for passengers, or they make more low-occupancy trips possible so they induce demand of low-occupancy miles, well it could be worse emissions wise!

comment 4y ago · link · parent

> The manufacturing of a car is responsible for a very significant amount of the emissions it produces over its life.

Nope.

The embedded energy in manufacturing a gasoline car is maybe 1/8th or 1/10th its total lifetime emissions. This is why EV's are so much better cradle-to-grave than gasoline cars -- yes, EV's require extra energy to manufacture the batteries relative to a gasoline car, but even so, that extra energy cost is more than offset within the first few months of electricity-powered driving, even if your local grid is primarily coal powered. By far most of a car's lifetime emissions are from operating it, not manufacturing it.

See chart on page 3 of this Union of Concerned Scientists report: https://www.ucsusa.org/sites/default/files/attach/2015/11/Cl...

comment 4y ago · link · parent

My car does this. Unfortunately, it's a Honda/Acura, and there's a downstream bug in the way the receiver sends the info to the clock display that this year, almost all older Hondas/Acura's are reporting the wrong time:

https://didhondafixtheclocks.com/

> Honda’s head unit receives a GPS signal for date and time including a number representing a week, coded in binary. These digits count from 0-1024 and rollover to 0 after the completion of week 1024. Honda’s head unit supplier did not code their head units to account for the rollover and, on January 1, 2022, reverted to a date and time 1024 weeks in the past [1024/52 = 19.7, so 20 years in the past or 2002]

So despite all the almost-magic level of engineering that has gone into the GPS system that has stayed consistent for 40-some-odd years, a classic integer overflow has ruined it all because some subcomponent test engineer didn't think to check the inputs against the expected lifetime duration of the car's equipment.

Another fun issue with these is DST databases. The satellites will tell you the time, but it's up to you know how your location translates into a DST zone. And if you have long-running offline equipment (say, a car), and the DST dates change, well, your smarts are only as smart as the update procedure.

comment 4y ago · link · parent

I've always been a bit confused by this deployment model.

gunicorn bills itself as "Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model."

uvicorn's one-liner "Uvicorn is a lightning-fast ASGI server implementation, using uvloop and httptools."

So it seems redundant at first to be running both, but what the gunicorn+uvicorn-worker-process pattern really does is throw away the "WSGI HTTP Server" part of gunicorn and just use the "pre-fork worker" process management part, with the underlying processes actually being ASGI.

If you run in a different kind of process-management environment like k8s, does running gunicorn+uvicorn give you anything else?

comment 4y ago · link · parent

Great news honestly. A parking garage costs something like $20k/space / $10M/garage.

If city's hands are tied for more car-centric infrastructure, now they can spend that budget on bike lanes, citibikes, and other transit projects.

1
131415
33