HNHacker News
TopNewBestAskShowJobs

diafygi

6,537 karma · joined May 16, 2011

Website: https://daylightpirates.org/

Email: hn at my handle dot com

submissionscomments
diafygi··on A guide to Oauth2
Are there similar posts like this for UI best practices for implementing OAuth 2.0 as an authorization server? I've been looking for guides on how best to display the scopes and client details to the user, but I've basically had to rely on other authorization servers themselves for inspiration (Google, Github, etc.).

Has anyone written a blog post about OAuth authorization server UI design?

diafygi··on Ask HN: What's the best setup for ad blocking and tracker blocking?
I'd recommend starting with Firefox, and configuring Firefox's cookie settings to always block third party cookies.

Next, if you have a good password manager that can auto-fill logins, set Firefox to delete all cookies (and everything else) when you close the browser. That way, every time you open your browser you're starting from a clean slate. I promise you'll quickly get used to logging in every time, and it won't be that hard.

Next, enable Firefox's Multi-Account Containers add-on. This basically allows you to isolate sites you commonly use into their own cookie realms. Create containers for the sites you want to isolate (Google, Facebook, LinkedIn, etc.) and set those domains to always open in that domain's container. That way, when you click on a link to Facebook it will auto open a new tab in that Facebook container.

Next, install uBlock Origin. I don't think there's a need to install Privacy Badger since you're already blocking third party cookies, but others please correct me.

Next, for websites that don't work with uBlock Origin, create a dedicated container for that domain and set to always open in that container. Then, whitelist in uBlock Origin whatever tracker on that site you need to run things properly. That way, the tracker is isolated to just that domain's container.

Overall, Firefox's Multi-Account Containers are extremely powerful for isolating site cookies and trackers. I wish they would allow you to set different cookie settings per container, so you could by default clear cookies when you close Firefox and add exceptions for specific containers, but even given that deficiency, is still the most powerful browser feature that's come out since tabs.

diafygi··on Startups from Y Combinator’s S19 Demo Day 2
I believe that's what Freewire (https://freewiretech.com/) is trying to do.
diafygi··on Chorded keyboard
https://techsolidarity.org/resources/basic_security.htm

"Don't use your fingerprint to lock/unlock devices."

"Use a long passphrase to lock your devices."

Seems touch id and face id is exactly what security experts tell you not to do.

diafygi··on Chorded keyboard
All the security experts on HN say you should use a passcode instead of a fingerprint for unlocking your phone. However, it seems fairly easy for someone to just watch you over your shoulder input your passcode (i.e. "shoulder surf"), or have it be recorded on increasingly ever-present surveillance cameras (e.g. buses, subways, food courts, etc.).

What about putting buttons along the sides of your phone and using chorded combinations as your passcode? Seems squeezing those buttons would be much harder to observe or record (intentionally or unintentionally).

diafygi··on Kaspersky in the Middle – what could possibly go wrong?
What would you suggest for Mac and Linux? I lot of enterprise contracts and security certifications require "anti-virus installed and up-to-date".

What's the best way of meeting that checkbox for Mac and Linux laptops?

diafygi··on How to Build Good Software
There's a saying in most other fields of engineering (civil, chemical, mechanical, etc.): "Regulations are written in blood." A whole lot of bridges collapsed and a whole lot of people died before strong requirements were put in place.

It seems we are on the path to repeat history with software engineering, what with how software and the internet is being developed with such little regard for public safety and long term consequences.

Unfortunately, it appears that the "free love" phase of software engineering is coming to an end, as society now relies more and more on software and major tech players for life and safety. It's starting to get real for software engineering.

Luckily, other engineering fields have been here before, so this sort of transition shouldn't be anything new.

Relevant Tom Scott video: https://www.youtube.com/watch?v=LZM9YdO_QKk

diafygi··on In the US, it's cheaper to build and operate wind farms than buy fossil fuels
Then why is wind + storage winning bids as the cheapest resource?

https://www.utilitydive.com/news/xcel-solicitation-returns-i...

diafygi··on In the US, it's cheaper to build and operate wind farms than buy fossil fuels
In exchange for providing an essential service to everyone, utilities are typically given monopoly protections and regulated by their local jurisdiction (e.g. a public utility commission). This means the business model for privately owned utilities must be pre-approved.

Up until now, the typical pre-approved business model was where the utility would go to the commission and say they needed to build something (e.g. a new substation), the commission would approve it, and the utility could then charge their customers for the cost to build plus a fixed rate of return (e.g. $300m + 7%).

However, that business model breaks down when you start moving away from a centralized grid, since customers are able to start using alternatives to your infrastructure (e.g. solar on their roof and batteries in their garage).

So, commissions are trying to figure out new business models that will ensure the continued operation of utilities while still imcentivizing reduction of carbon emissions. One way being explored in Hawaii is called "performance-based ratemaking" but is still being figured out. However, the interesting going (to my company, at least) is the increasing need for software and communication in these new business models. For performance-based returns to happen, you need to measure performance, which means software.

Anyway, it's a very interesting time in the utility sector, and I think there's a lot of opportunity for the tech sector to come in and have a big part of it. Unfortunately, most tech entrepreneurs are allergic to regulated sectors.

diafygi··on In the US, it's cheaper to build and operate wind farms than buy fossil fuels
> Better grid management also helped the economics of wind. At times, strong winds can cause wind farms to produce an excess of power relative to demand, causing a farm's output to be reduced.

I think this part is particularly relevant to the HN community. As we reach higher and higher penetration of renewables on the grid, we will need to dead with the intermittency more and more. A common phrase I hear at utility conferences nowadays is, "We used to forecast load and deploy generation, but in the future, we will be forecasting generation and deploying load."

I think this area will be the next wave of innovation that needs to happen in the energy transition, and it's going to be primarily software driven. Smart load management will be key to avoiding huge storage and infrastructure capital expenses. For example, in Hawaii, they are starting to explore new utility business models that don't just rely on a fixed rate of return for capital spent.

Anyway, as we cross 50%+ penetration of renewables, I think software is going to take a leading roll in connecting and managing everything so we can have the flexibility we need on the grid.

diafygi··on Launch HN: Dex (YC S19) – personal CRM that reminds you to keep in touch
My company doesn't. However, we've had a hell of a time finding a marketing firm that will work with us since we don't use Google Analytics. Seriously, we tell them over and over that we can't use Google Analytics (due to our site terms), and they are so confused and keep asking to be given access to it.

Anyone know and marketing firms that are privacy aware/friendly?

diafygi··on Solar now ‘cheaper than grid electricity’ in every Chinese city
Xcel in Colorado has already started retiring coal plants in favor of renewables+storage based on bids for actual projects.

https://www.greentechmedia.com/articles/read/record-low-sola...

https://www.greentechmedia.com/articles/read/xcel-retire-coa...

diafygi··on Solar now ‘cheaper than grid electricity’ in every Chinese city
Solar, when combined with energy storage, can serve as a dispatchable resource. Even with battery storage, solar is already cheaper that existing dispatchable coal generation.

http://ieefa.org/ieefa-u-s-solar-plus-storage-is-undermining...

diafygi··on Solar now ‘cheaper than grid electricity’ in every Chinese city
This quip is a common trope that has several problems with it and is years out of date. Please stop using it.

First, oil-based energy doesn't compete with solar to a large extent. That will change as EVs get more popular, but outside of islands like Hawaii, oil isn't used much for electricity generation (where solar competes).

Second, solar is already attractive for most new generation scenarios in many locations, including dispactchable situations where you also need storage. It's getting so cheap that it's starting to compete with existing generation.

http://ieefa.org/ieefa-u-s-solar-plus-storage-is-undermining...

diafygi··on Energy Storage Investments Boom as Battery Costs Halve in the Next Decade
> if I wake up on the morning of my vacation, and my car is at < 100%, I'm not going to be happy.

That will never happen, unless you intentionally jump through several hoops to shoot yourself in the foot.

For example, there's a company called OhmConnect that does aggregated demand response. You can sign up for it, optionally connect your smart thermostat/plugs, and bank account. When there's going to be a high load period, OhmConnect notifies you asking if you want to participate in an upcoming "Ohm Hour". If you do, they will pay you $5-10 for your trouble. So, if you had a vacation the next day, of course you wouldn't opt-in to the demand response event.

Disclosure: I am on a nonprofit board with OhmConnect.

diafygi··on Energy Storage Investments Boom as Battery Costs Halve in the Next Decade
Keep in mind that we're talking about single digit percentages of a battery's capacity being used. Also, its likely that many of the EV-to-grid arrangements will be for fleet vehicles (company/city cars, plus self-driving fleets when they happen), and they will be technically sophisticated enough to negotiate that capacity sharing with the grid operators.

So you won't ever actually have a scenario you describe where a private EV will have it's battery depleted.

diafygi··on Energy Storage Investments Boom as Battery Costs Halve in the Next Decade
Luckily, there's plenty of carbon to offset (peakers) by deploying batteries before we have to worry about long term (seasonal) storage.

However, I wouldn't be surprised if the electrification of transportation ends up making batteries be the default "long term" storage option by using EVs as flexible grid storage. There's going to be 100x more batteries rolling around than what you'd need to stabilize the grid (e.g. peakers), so I wouldn't be surprised if the grid asks more from EVs than just stability so it doesn't have to spend the additional capital for seasonal storage.

diafygi··on Steam Windows Client Local Privilege Escalation 0day
What are the alternatives for HackerOne for hosting a bug bounty program? My company is looking to set one up and H1 was way too expensive and tried to push all their extra features.

All we want is a place to host a bug bounty page and allow us to pay rewards through it. The only reason I'd prefer hosting that on a platform rather than just making a bug bounty page on our own site is that I feel bounty hunters would trust it more, since it's not just some random page on a company website they've never heard of before.

diafygi··on Documentation – Your Secret Weapon
For external-facing APIs and libraries, one reason I've found motivating to write documentation first is that you can "playtest" very quickly as a user/dev who comes in and starts wanting to use your thing.

If you (or another teammate) have to write a use-case snippet of code similar to how you want your thing to be used, based on your docs, you often find friction points and inconsistencies that should be streamlined and simplified.

It allows you to start iterating much faster than having to wait until you have a functioning product. It also often lets you avoid sunk cost fallacies where you run into that friction point later but don't want to go back and rewrite/redesign code to streamline the friction point.

diafygi··on Oil Needs to Fall Below $20 to Compete With Green Alternatives
As more and more electric vehicles hit the road, the price of oil will start to compete with the price of electricity. While you're correct that in the past oil and renewable cost comparisons weren't very relevant, electrifying transportation is changing that paradigm.
diafygi··on Bypassing anti-incognito detection in Google Chrome
When framed correctly, a stateless browser is totally acceptable for general users. General users have no concept of cookies, so if you describe browsers as just a dumb window to let you load websites, it totally makes sense that you would have to log back in when you close the window.

For example, I set my Mom up with a Firefox configuration that doesn't remember anything when you close the window (basically incognito by default). She has used that configuration for years and never complained. In fact, she always compliments me for how safe and reliable I've made her browser. When she sees other people on other computers just load their logged-in websites without having to log in, she thinks they're totally unsafe and exposed.

She associates closing the window == back to safety, so whenever she ends up on a scary website or sees a scary popup, she just closes firefox and opens it back up again. It's wonderful. I didn't have to teach her about cookies or sessions or anything. All I had to teach her was that if she ever got into a situation where she didn't know what to do, just close the window and you're safe again.

Anyway, I feel pretty strongly that if browsers were incognito by default and you had to opt-in to persist sessions (e.g. whitelist cookies), general users would get used to it pretty quickly and end up thinking the time back before was a very unsafe place (like the free love era before the AIDS epidemic).

diafygi··on AT&T to Face EFF Class Action for Selling Customers’ Location to Bounty Hunters
I like donating what I call "The Orwell Tax". $19.84 per month (or year, if you can't afford monthly).
diafygi··on WeWork Co-Founder Has Cashed Out at Least $700M Via Sales, Loans
Isn't this exactly how McDonald's did it?
diafygi··on Predictable, passphrase-derived PGP keys
And that's fine. It is a great way to bootstrap a small circle of trust that can be used apart from any large centralized infrastructure.

It seems like everyone is trying to find a way to make a global trust network (keybase, LinkedIn, etc.), when all you need most of the time are small circles of trust (dev groups, activism organizations, etc.).

I think the decentralized nature of WoT is actually a better way of structuring things, since it makes mass surveillance much more difficult.

diafygi··on Facebook is embedding tracking data inside the photos you download
Is the difference now that the tracking metadata used to be set at upload time, and now it's set at download time? Presumably, if you set it at download time, you can not only track the uploader but also the downloader.
diafygi··on Zoom fixes major Mac webcam security flaw with emergency patch
I'm confused. Does the patch now make it to where if you drag the app to the trash, it actually uninstalls?
diafygi··on Ross Perot Has Died
If you're ever in Dallas, TX, the Perot museum is one of the best children's science museums in the world. Highly recommended for both kids and adults.
diafygi··on Vulnerability in the Mac Zoom client allows malicious websites to enable camera
> But insisting Zoom change the software because it's possible some doofus might be duped into joining a meeting with someone is kinda ridiculous, IMO.

In my experience (the energy sector), most of the people I interact with on Zoom would definitely fall for joining some random meeting that popped up. They are incredibly good at their field of expertise, but certainly doofuses when it comes to knowing how to click on things in zoom.

diafygi··on Climate Change is real and you can prevent it. Be the change
I'm curious why you think it's not an option? And what makes you think it's a luxury? A cleantech job is just like any other job.
diafygi··on Climate Change is real and you can prevent it. Be the change
For HN, there's an extremely important item missing from this list:

* Get a job in cleantech.

I got into the climate-change fighting industry 6 years ago when I became a project engineer for a commercial solar company, then eventually I started my own cleantech software company. By working in the industry, I have had orders of magnitude more impact on fighting climate change than adjusting my lifestyle to be more carbon neutral.

Luckily for the HN crowd, there's a huge need for software and other tech skills (data science, sysadmin, etc.) needed for the energy transition. With the deployment of so much "intermittent" generation like solar and wind, we need tons of software and communications infrastructure to run a new "flexible" grid.

So if you're thinking what can you to help fight climate change, the best thing you can do is get a job in the climate change fighting industry. Start googling around for jobs with climate change keywords ("solar", "wind", "clean energy", etc.). Start showing up to clean energy events (if you live in the bay area, check out my bayareaenergyevents.com). There's so many people in this space who came from other sectors, and it's incredibly easy to move up or start your own company doing some specific thing you think is needed for the fight.

← PreviousPage 3 of 26Next →