HNHacker News
TopNewBestAskShowJobs

gwittel

453 karma · joined August 29, 2019

Computer security Anti-spam / malicious content filtering Backends Scaling

glwittel [at] gmail [dot] com

submissionscomments
gwittel··on Benzene detected in many sunscreen products
Currently using:

* La Roche Posay Dermo Pediatrics Lotion SPF 50. There is a USA version, but its a different active ingredient vs the EU version. EU version has UVA/UVB ratings, US version is UVB only due to different active ingredients.

* UltraSun Face Fluid SPF 50

Previously used:

* Anessa and Shiseido. Preferred the above for both feel and performance.

* Think Kids/Baby SPF 50 (Zinc). Its OK as a physical barrier, but lacks UVA protection. They also just reformulated it so unclear how performance is impacted.

I'm not sure what EWG will say about the EU ingredients. EWG tends to be very cautious, possibly too cautious. They give me vibes of natural=best or over alarmist; leaving out context (requires 100000x normal dose, etc.).

gwittel··on Benzene detected in many sunscreen products
We went through a similar search recently. Part of the challenge is that the US rules are well behind Europe and Asia in terms of whats OK or not ingredient wise. With the new push toward reef friendly ingredients, it also complicates things. Physical barriers like Zinc generally offer reasonable UVB (this is the SPF rating) protection, but poor UVA (not sure there is a rating in US, but you'll see PA++++... on imports).

Ingredients approved in EU and Asia that offer solid UVA and UVB protections are not yet legal in the US [1]. So we get older 'less good' or 'less reef friendly' ingredients instead.

We ended up buying some imported from EU sunscreen. The US market formulation was actually different and lacked the UVA protection.

[1] https://www.ewg.org/news-insights/official-correspondence/co...

gwittel··on Awk is the coolest tool you don't know
awk is quite handy. I often use it in place of other tools like sed and cut depending on what I need. Usually I use it for quick oneliners, and on occasion bigger things. But typically more than few lines I end up reaching for a shell script or Python/Perl.

Minor simplification on the line numbering example, there's a builtin variable for counting records (NR or FNR) so no need to introduce your own counter:

   awk '{print NR "\t" $0}' < somefile
There are other builtins that are quite handy as well. The only thing that bugs me at times is when I want to print a range of records like column 5 to end, where the total number of columns varies. I wish there was a simpler way to do that like a column range selector. This is where I sometimes use 'cut' since its so simple to do column ranges (unless the column separators have consistent whitespace; then cut doesn't work).
gwittel··on Ask HN: How to deal with an employee that won't share code?
You're being scammed or the person is incompetent.

If the code isn't going to be handed over, then at least need full access to the AWS footprint to see what exists or not. If its web based, another way would be to ask for the URL to access the demo.

If you gain full access, then I'd image/backup everything for analysis. I'd also see if there's a way to split access controls so that resources cannot be destroyed by Ava in the event you need to revoke access.

If its all under Ava's control, you're screwed.

I don't really see any way to proceed other than kill the contract for non-delivery. Cut off any AWS access if possible before notice is served.

If the contract did not specify delivery of source code, then might be in trouble that way as well.

gwittel··on The Hotdog web browser and browser engine
I had hoped this as well. I spent so much time in that program building web sites long ago. We have a plethora of excellent dev oriented editors today, but a purpose built one can be so much better by simplifying workflow.
gwittel··on Ask HN: I feel my career is at a dead end. Any advice on what could I do?
It really depends on the company (or even part of the company if its bigger).

As a Principal I do code less than I used to as Staff or Senior. But I still do a fair amount of coding (along with design, arch, mentoring/guiding). I've made it clear that I want to remain a hands on engineer, and my company has let me remain so.

Not everyone is so lucky to have a choice, but if you do -- In the end, its finding a place where you can get the balance that makes you happy.

gwittel··on Bevy 0.5: data oriented game engine built in Rust
If you can't get to the bevyengine.org web site, you can view the release announcement in the Bevy projects' web site Github repo:

https://github.com/bevyengine/bevy-website/blob/master/conte...

gwittel··on Ubiquiti accused of covering up ‘catastrophic’ breach– and it’s not denying it
I'm in a multi-level home. Previously I had 1 centrally located Ruckus AP. Its signal was strong everywhere (solid RX signal strength), but devices could not transmit strongly enough back to the AP.

In the end I went with 3 Unifi APs + a controller. You can use wired or wireless for backhaul. The main thing is that the APs have to be able to communicate with each other.

There isn't a great way to test out the wireless backhaul without buying the equipment. I suppose you could use a scanner to test the RX signal strength with your AP in varying places. If the 2.4/5ghz signal is strong in the (AP, scanner location) pairs then you know the APs might be able to talk to each other.

If you're looking for a less work setup, the Amplifi line, or Eeros might work.

gwittel··on Problems with low DNS TTLs
The major cases revolve around failure recovery, and traffic distribution. A 5 minute outage is not acceptable in many industries or at scale.

If a load balancer or DC fails we need to ensure traffic moves away fast. Similarly if you want to take a system out for maintenance or perform migrations.

gwittel··on Why hasn't Presto become industry standard?
Presto gets most of its speed from parallelizing work and taking advantage of columnar formats when it can.

In the case of a RDBMS can you get performance gains if you try to parallelize a query from many clients? It will depend on the DB adapter and query. In a random case, if you slice a query into N shards it’s not necessarily going to go faster. It’s still the same DB underneath bound by the same HW performance boundaries.

gwittel··on Ask HN: Is OpenAPI Documentation Superior?
Widdershins works pretty well. IIRC their README also links to a CLI tool that wraps Widdershins.

I containerized it and added some wrapper scripts so we can just drop the YAML spec in our repo and have build automation to generate/deploy a web site with all the relevant docs.

gwittel··on Why hasn't Presto become industry standard?
Lots of general reasons, inertia, etc. Often companies stick to 1-2 preferred technologies and adding Presto isn't seen as a gain (even though it helped Facebook quite a bit). I also suspect Amazon re-packing it as Athena reduced adoption to some extent.

If looking at Presto (now Trino), the main thing to keep in mind is that you inherit the limitations of the underlying data store.

Its best when the underlying store (+ the Db adaptor implementation) lets you parallelize work and keep each node busy, and avoid processing data unnecessarily. Hive/S3 columnar format data works great for this (IIRC this was a major early use case). Other sources like RDBMS will have natural limitations. Kafka has its own issues since each query generally means re-scanning a topic, etc.

I see the data bridges as most useful as a way to bring data into the native/optimal format. Then do the heavy lift work in Presto.

gwittel··on Ask HN: Alternatives to Suicide?
If you need to talk to someone ASAP please call the suicide prevention hotline: 1-800-273-8255

If you have healthcare, please try to connect with a psychologist or other form of councilor. They can help, though it sometimes can take a few tries to find one you click with.

Mental health is tricky. I can offer ideas, but it’s hard to know what will help you. Throwing various ideas out there:

Exercise helps.

If you’re not getting enough sleep get more. Meds can help in the short term if your mental health is interfering with sleep. You can also look into melatonin (helps for some) if it’s falling asleep (vs staying asleep).

You can try various meditation apps as well as activities that let you get out or at least people watch (nature walk, hanging out at a busier park/cafe, etc.)

Would a more hands on activity or screen free hobby help? Maybe volunteering at an animal shelter, or other similar org.

I’m not sure where you are located or your finances but are there absolutely no other housing options? (Shelter, friend, Airbnb room).

Would a short getaway help? Camping is cheap if that’s your thing.

gwittel··on 12 requests per second: A realistic look at Python web frameworks
SSL handshaking is definitely a bottleneck. I can’t speak for the benchmarks but with SSL typically this scales via using persistent connections (keep alive), and SSL session resumption (much lower cost to setup vs a full handshake).

In the end you want to measure perf with and without SSL so you can identify the real bottleneck. Otherwise you might just benchmark your SSL implementations handshake performance and not what you really want.

As an example, I found that Kubernetes nginx-ingress can’t cache SSL sessions on the upstream side (nginx to your app). So request bursts can really hurt your application unless your pool has enough open connections to handle the burst (keep alive and keep alive requests). Without benchmarking my app in different ways I wouldn’t have figured this out as easily and might have just assumed my app was slow.

gwittel··on Ask HN: Any tips for a programmer wanting to switch into security?
I’ve worked in computer security for over 15 years as an engineer. In my case I often work closely with threat researches building infrastructure or things to make their lives easier (eg automate or detect the “easier” attacks so they can focus on the novel). I’ve had the same Internal career debate recently, in my case going back to roots. I enjoy CTFs and working with our threat researchers. With this skill set I figure out how to scale them. If I know more, can I help more? Probably.

Beyond general security it sounds more like you’re interested in the blue team side (defense). To that I’d look into things like https://cyberdefenders.org/ hack the box and other CTF work first. OSCP is nice and maybe even mandatory for pen testing (Hr) but hands on is key. From there you can figure out if certain are worth it to you. The ejpt is a cheaper starter as well.

In practice you need both technical skills and report writing skills. You have to tell a security story to technical and non technical people. The better you are at both, the further you can go. As a counterpoint, we still have a hard time finding solid security minded engineers. You can be a triple threat :)

gwittel··on Making Vaccine
While interesting, even if anti-bodies are detected in the end we have an N=1. The average random person doesn't get this. A single result is not generalizable. It kind of reminds me of the @justsaysinmice twitter account [1] which replies to relevant studies with "IN MICE".

So many factors can confound this type of work. Some big ones:

1) Does this work in general population?

2) How long does the antibody response last?

3) Does this work on variants?

4) Are there cases when this should not be used?

I remember a reference to one of the early SARS vaccines. It was promising, until they found it caused immune responses resulting in lung damage on people who had SARS (can’t find the exact paper but [2] highlights some of the concerns then and now).

[1] https://twitter.com/justsaysinmice [2] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7318931/#!po=2....

gwittel··on Covid-19 rarely spreads through surfaces. So why are we still deep cleaning?
IIRC KF94 were designed as an easier to make general population mask in event of a pandemic (after SARS etc). It wasn’t meant to match N95 (or Korea’s equivalent), but to get close.

Ideally the US would have an equivalent, or have encouraged manufacture of one long ago, but we all know how that went.

gwittel··on Ask HN: Cybersecurity Career and Foreign Languages
It can help. At times my company has sought experts on varying threat actors.

Sometimes studying these come with language needs based on the actors’ origin (Russian, Chinese, Farsi, Korean, etc.). While not technically a requirement, it can make things harder when tracking, reversing, etc if you don’t speak the language.

Looking at the current threat landscape and where things often come from Russian or Chinese would be very useful. Looking beyond security, I’d ask if a one language or another in particular is useful or interesting to you.

gwittel··on Ask HN: Communities for Staff+ Engineers?
Rands in repose runs a leadership slack server which has a staff-plus eng channel:

https://randsinrepose.com/welcome-to-rands-leadership-slack/

gwittel··on We’re Rebranding PrestoSQL as Trino
Pretty terrible behavior by Facebook. I hope that the community is able to overcome the name recognition problem and follow the founders to Trino.

Dain, Martin, and team have very high standards and it shows in their work. I wish the Trino team the best of luck!

gwittel··on Show HN: Building an E-Ink Calendar and a UI Toolkit along the way
Great work! I had been thinking about buying an Inkplate but as a hobby project I had wanted to focus my limited time on the application vs all of the glue (UI, Oauth, etc.). This might be the nudge to move me along. Thanks!
gwittel··on Ask HN: How to protect an abused spouse from a software engineer?
I’m so sorry your friend is going through this. Thank you for helping.

FYI - If you file a USPS change of address they mail your old address a confirmation. IIRC the confirmation includes the new address. Maybe someone who has done this recently can confirm.

Are there any shared access online accounts to worry about? Like banking or shopping. Anything where access can be gained to get updated addresses.

gwittel··on Daily U.S. death toll will exceed 9/11′s for months, CDC director says
Note the US data for 2020 ends in early November; before the large November surge.

I would not take that much comfort given the surge in case counts. I don't doubt we are better handling cases now vs April, at the same time hospitals will soon hit the triage stage.

Positive tests tend to trail exposure by 1-2 weeks, while hospitalizations trail another week or two behind positive tests. Deaths can lag even further (not sure on the numbers here). So we're only just getting into the beginning of the post-Thanksgiving spike impacting hospitals.

While most serious cases hit those with compounding factors (age, health, etc.) if you look at the percent of excess deaths, it spans all age groups (again data ends early Nov):

https://ourworldindata.org/grapher/excess-mortality-p-scores...

The other good resource is John Hopkins has a chart overlaying date of policy changes vs cases (or deaths):

https://coronavirus.jhu.edu/data/state-timeline/new-confirme...

gwittel··on Daily U.S. death toll will exceed 9/11′s for months, CDC director says
For those downplaying the scope of this, the death counts / excess deaths data is most illuminating.

This page has a number of good breakdowns, but here's the US chart comparing 2020 vs other years:

https://ourworldindata.org/excess-mortality-covid#excess-mor...

Can you spot the anomaly?

gwittel··on Experts: Evidence to support search warrant on Rebekah Jones' home flimsy
Having read the warrant request they:

Claim an IP was found by examining logs (no logs shown)

Claim they used “investigative procedures” to identify the IP as belonging to Ms Jones.

Both seem weak but I don’t know usual practice.

Seems odd no actual logs (easily forged) are included. Also odd they don’t just say “Comcast said at time X the IP belonged to her” so unclear what strength of evidence they really had.

gwittel··on IMAP API – self hosted daemon to access IMAP and SMTP accounts via HTTP API
IIRC It has to be enabled by your Office365 admin. Office365's IMAP also doesn't support 2FA so if your org uses that, then IMAP is out.
gwittel··on Florida posted the password to a key disaster system on its website
Interesting. So basically they say:

1) Trust us that the IP we gave was really from the person who triggered the alert. (vs real log samples)

2) trust our magical computer powers that we know it belongs to Jones’ address at the time in question (Vs say we spoke with X at Comcast and they verified....)

Is that all it takes in terms of “evidence” to get a warrant like this?

gwittel··on Florida posted the password to a key disaster system on its website
Might be good to update this with the current article title: COVID data manager investigated, raided for using publicly available password

Reading the affidavit used to get the warrant, they don't seem to cite any evidence beyond the fact that the user triggering the alert had an IPv6 IP allocated to Comcast. Nothing about say, Comcast verifying the IP was issued to the Jones at the time of the 'intrusion'. Unless that is in the redacted section. Would that sort of know-how require redaction?

gwittel··on AT&T Fiber in the SF Bay Area is flipping bits
Could be crappy/buggy middle boxes. Especially if they’re inspecting packets or messing with SSL.

My ATT modem (Arris bgw-210-700) may have gotten a firmware upgrade recently as I found some settings I shut off got re-enabled. I use it for VDSL but the same model family is used for ATT fiber.

gwittel··on AT&T Fiber in the SF Bay Area is flipping bits
Yeah, amusing in a perverse way.

Years ago I had gotten an "ATT fiber coming soon" notice, but still not here. In the end its simply the usual issue with internet access in the US -- ISPs have zero incentive to invest/improve, there's no meaningful competition. With everyone WFH its even worse -- oversubscribed networks are causing trouble all over (esp if you use a cable ISP).

When a city (or someone like Google) brings fiber in a meaningful way, it only then lights a fire under the incumbents' ass. In theory cities with non-buried lines (like Mountain View) may be easier to upgrade; but it still depends on ATT granting pole access (which they promptly slowwalk).

← PreviousPage 3 of 6Next →