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 AT&T Fiber in the SF Bay Area is flipping bits
Other options:

1) Sprout the streetlamp from the box, add a car charging port.

2) Hire an artist to paint the box with artwork (property owner gets to pick from option set). Consider it to be city owned art installations.

gwittel··on AT&T Fiber in the SF Bay Area is flipping bits
I've been having similar issues matching this as well (SF south bay), with ATT Uverse (fiber to neighborhood, 100mbit to home).

I really wish we'd just have municipal ISPs here. I'm only a few miles from Google HQ, but the internet options are crap.

gwittel··on Computer Graphics from Scratch (2017)
When I wrote one it was part of an intro to computer graphics class at university (sample syllabus https://web.cs.ucdavis.edu/~ma/ECS175/). There's probably a lot out there at the university level.

I took it well over a decade ago, but the current material is largely similar. Going in you were required to know C and C++, and math pre-reqs (Calculus, linear algebra). Other university classes might skip the rasterizer building, but I think its a useful foundation.

We started with basic OpenGL to render models. Then we replaced the OpenGL with our own rasterizer, adding features as you went. It was a tough class (10 week schedule), but very rewarding. Probably the worst part was debugging rendering issues. You could see the problem, but it was hard to locate where your math went wrong.

gwittel··on How to evaluate a cybersecurity vendor's ML claims
ML and security is tricky. Its a good tool, but shouldn't be the only one. With threats constantly changing, ML alone will fall short. Its great for so called 'easy' stuff or locating 'odd' stuff to prioritize.

On top of that you need explainability and reproducibility. Depending on the ML in use, this can be difficult. When a FP or FN occurs, customers want to know what happened and can you fix it. They don't like to be told things like "because the ML said so." Reproducibility is important for support. When things go wrong, they need to know how to right it. If you can't explain or reproduce, its hard to say the misclassification is resolved and won't happen again.

gwittel··on What distinguishes great software engineers? (2019) [pdf]
> Honestly, I envy the young Mavericks who code shit and get work done. They at least sleep at night.

Ignoring the burden shifting of on call rotations, I often find the young mavericks don't sleep at night -- they're fire fighting and debugging their work.

gwittel··on That company whose name used to contain HTML script tags Ltd
FWIW for most of these sorts of things you can scrub it via passing the text through an NFKC or NFKD transform. I'd hope that a screen reader can be updated to handle this case.
gwittel··on Comparison of Kubernetes Ingress Controllers
This is a nice summary. It would be nice if it included deployment model like daemonset vs replicaset.

With the plethora of options, what missing for me is what ones perform well under heavy loads. Its painful to find out after the fact since each ingress controller deploys in differing (and sometimes not compatible) ways.

For example, with nginx-ingress there are gotchas under heavy load. nginx-ingress doesn't support SSL session caching on the upstream (nginx<->your pod). This is a deficiency in the lua-balancer implementation. You can tune keep-alive requests on the upstream, but it isn't always enough. That 50% CPU savings from SSL resumption is costly to lose at times.

This has bitten me when a client side connection burst requires a connection burst in nginx<->service. Upstream services then burn a lot of CPU negotiating SSL, to the detriment of request processing. This then causes more nginx connections to open up due to slower request processing; and might cause healthchecks to fail. There just aren't enough tuning parameters to control how hard nginx hits your upstream PODs.

gwittel··on Ask HN: Why is Prime Day so hard?
Another thing to consider - as Amazon has further shifted inventory burden to 3rd party sellers, there is less Amazon owned inventory to discount.

How much do 3rd party/FBA sellers participate in prime days’ official deals? I could see manufacturers doing their own deals, not sure about others.

gwittel··on Ask HN: Why is Prime Day so hard?
The main goal is similar to other holiday sales -- a handful of loss leaders and a lot of crap they hope you buy along the way.

The first few prime days had a lot of real deals on name brand stuff. More and more, deals on name brand items are less common or supply constrained. Other 'deals' were fake deals (discount off artificially high list price) or deals on random no-name products (or garbage products).

gwittel··on 2.1M of the oldest Usenet posts are now online for anyone to read
Sort of like mailing lists with a dedicated client so you can see everything in nice threaded fashion. You could explore new groups through the client as well. I never found the web based Usenet mirrors comparable to a dedicated client.

Typically you synced the equivalent of headers and bodies separately (for the groups you were interested in). This way you only grabbed what you wanted. For binary groups, people settled on patterns in subjects, etc so that clients could automate downloading of files (binaries had to be encoded and split into parts due to post length limits).

On regular text type newsgroups you might set your client to download headers+bodies in one shot for offline mode. With offline mode you would then just download what's new vs your cache. Then work against your local cache for reading/replying. Once online again, your batched replies could be sent.

If your ISP didn't have the newsgroup you wanted, you would have to point to another NTTP server. For a while there were public ones that anyone could use. Over time, those public ones went away or dropped problematic areas like alt.binaries.*. These days Usenet is available as a for-pay service.

gwittel··on Ransom gangs increasingly outsource their work
tl;dr: PEBKAC

The less glib answer is that while best practices have gotten better, companies aren't necessarily better at following them (your company or your vendors). Additionally, on average people have not gotten all that smarter (while scammers have become more sophisticated).

Its all about defense in depth. Plan for compromise, trade off the costs (nothing is free).

At a technical level there are basic things like: separating dev from production, requiring 2FA across the board, strong passwords, certs, separation of privileges, up to date software, secret management, etc that form strong defenses.

Another way to approach this is to pose scenarios and understand defenses:

* What information could an employee give away that would then lead to a compromise? How do you stop it? Password to a phisher? Check in credentials to github? Wire money to a fake vendor/wrong account?

* If X was compromised, what is the impact? What would it take to recover? Where X is: dev box, production box, customer facing service, etc.

Two insidious scenarios that happen way too often:

* Latest malware distributed via legitimate sites (ad networks, sharepoint, dropbox, etc) -- Hard to prevent beyond up to date systems and content filtering. If paranoid, all browsing through VMs or other forms isolated environments. It won't stop compromise, but it will restrict scope.

* BEC -- Attacker studies your company. They impersonate an employee or partner (down to linkedin profiles) and convince someone to wire money. Or worse -- account compromise of a trusted partner. The attacker then uses this partners' account to hijack an email thread or send a 'normal' request like: "Our account has changed, future payments goto account YYYY."

Which brings us to vendors. Can a vendors' weak security break your company? Is it a good idea that your Microsoft Office 365 account allows unlimited password attempts (at least MS used to by default)?

gwittel··on Nakabonne/ali: Generate HTTP load and plot the results in real-time
drill is relatively new but shows promise:

https://github.com/fcsonline/drill

gwittel··on Ask HN: How did you get started in tech and/or Linux?
We always had a computer at home growing up. My dad used it for tracking finances, us kids used it for games. My first program was probably a bunch of print statements on our C64.

Things changed when my dad bought a modem in 93 or so. We had Compuserve but it was expensive. Through Boardwatch magazine I started to try out local BBSes (916). Eventually a few like 24th Street Exchange and this BBS sucks became my online homes. 24th was particularly interesting as it was large (10s of lines), had Fidonet and possible Usenet feeds. Oh and it ran on a BSD. I learned a lot there.

Two key inflection points came:

1) I saw my first demo which made me want to learn to code in 94 (heartquake by iguana ; thanks guys!)

2) around 94-95 I heard about Linux and ended up with a Slackware disc from Walnut Creek.

In 1995 came full internet access with a whole new set of rabbit holes. Usenet, cipherpunks, IRC, etc.

Over times my interest varied as a teenager would. Upon starting college in 98 I had amassed a lot of experience - coding, graphics, graphic design (2d and 3D), web dev, Linux, building computers, etc. At the time I didn’t realize it, but this constant exploration and learning helped me build a huge set of tools that have served me well in my career.

In the end, the biggest lesson? Learn. Follow your curiosity. Roadblocks? find a way around, worst case, spot the dead ends and try again.

gwittel··on Parrots separated at zoo after encouraging each to curse profusely at guests
A better link might be the original BBC story: https://www.bbc.com/news/uk-england-lincolnshire-54340425

> "I'm hoping they learn different words within colonies - but if they teach the others bad language and I end up with 250 swearing birds, I don't know what we'll do," he added.

This will be an interesting experiment.

gwittel··on Quarkus 1.8.1 – Kubernetes native Java framework
Not the OP, but I generally prefer JDBI for persistence in Java. Much less random glue/boilerplate vs Hibernate. It doesn't seem to have an official Quarkus integration, but you can just pull it in like any other dependency.
gwittel··on I no longer build software
Pretty much this at my high school as well. They had a shop class and auto repair class. I really wish I had taken those (I did take shop in middle school though).

Largely we had to choose -- take the college prep classes (AP whatever, languages) OR trades classes. There was definitely classism -- "trade classes are for poor kids". =(

I would much rather schools require things like: financial literacy, and building/repairs/cooking. They are lifelong skills and very useful. There's no reason its an either or proposition.

gwittel··on Study shows proof that a safer UV light effectively kills virus causing Covid-19
Distance is important too:

> ... placing the Far-UVC lamp 24 centimeters above the surface of the plates.

gwittel··on Study shows proof that a safer UV light effectively kills virus causing Covid-19
As others said, typically the required exposure is too long. On top of that, many household items may not be UV safe and will degrade (some plastics), or discolor (plastics, fabrics, etc.). To top it off, you can end up just killing the less UV resistant bacteria, and selecting for the stronger ones. Oops.

Proper UV sterilization takes time (minutes, hours). I'd worry that many people will just wave a light and think "its clean". It doesn't work that way.

gwittel··on Foreboding Skies over the SF Bay Area
Even with an SLR it didn't work right on full auto. I had to manually override the white balance to get it to look right.
gwittel··on Ask HN: Parents, how is virtual education going for your kids?
Slides are indeed a poor way to submit work. That feels more like a lazy way out vs a thought through curriculum. Writing is an important part of the learning process.

In our case most of the work is done on paper and they hold it up to the camera for the teacher to see or take a picture and submit it.

gwittel··on Ask HN: Parents, how is virtual education going for your kids?
Absolutely, but there’s no alternative short of no school.

Our first grader is still adapting. Historically he got maybe 20m of screen time a day max. Now it’s about 4.5 hours. There’s a lot of movement breaks and some non screen activity (quiet draw or read), but it’s still a lot of screen time. He’s often pretty bored.

For preschool when they could not open for in person the most they could offer was about 30m a day. That was basically story time and sharing so kids could say hi. Many families opted out.

gwittel··on Ask HN: Parents, how is virtual education going for your kids?
I have a 1st grader and pre-schooler.

While the district mandated google classroom for all kids, teachers of younger ages have been given the option of using Seesaw. For young kids its miles better. Even as an adult I find Google classroom to be awful. It feels like enterprise shovelware with bad UX, inefficient workflows, etc.

A lot of it is both how much work the teacher puts in, and how much leeway the school/district give. At this age, it requires an adult nearby at all times. It may be to help him stay on task, occasional assistance (finding something, tech issues, etc.), and even just company of another person. We've had to juggle help from family, and my wife is not working just to keep things going.

We were lucky last year to have an amazing Kinder teacher who did a lot to try and hold things together for the classroom (including 1:1s, summer penpals, and a lot of things on her own time). This year is a WIP, but our school has been very receptive and flexible. I worry most about the kids with two parents who must be at work and cannot give the same level of support we've been able to. They are likely to fall behind :( Thankfully teachers are trying to help those kids the best they can. It is not easy.

Last spring while my son was finishing kindergarten it was extremely difficult. Seesaw helped a lot because they enabled community sharing so kids could see each others work and reply to it. We had to put a lot of effort in to keep him engaged, doing as much work as possible, etc. There were many meltdowns over seemingly simple things like "write 1 word".

Preschool is different and in a tougher position. The primary goal is socialization and kinder-prep. Both are largely out the window for online only. Kids of this age just can't sit for that long in front of a Zoom type session.

In person is limited but now available. The main challenge is preschools are struggling. The regulatory burdens force class sizes to be a fraction of normal. Naps are basically non starter (physical space requirements), food is tricky. That means the pre-schools are losing huge amounts of money every month or laying off staff. To top it off, the recent fires create such pollution you have to choose: (1) Close windows and violate covid regulations (2) Close for the day.

gwittel··on Modern C
I agree. It makes his code very approachable, as well as providing an excellent model for complex projects. I try to follow this as well to provide good examples within our corporate codebase.

The main challenge I have is not all engineers are equally willing/comfortable/able to communicate their ideas in this way. Sometimes because of ingrained preference (comments are never necessary), other times because of language barriers.

gwittel··on Lightroom app update wipes users' photos and presets, Adobe says not recoverable
Lightroom’s is. Not sure about capture pro. In Apertures case, the photos and meta data are in one giant blob. I’d want to avoid that. Manage the files my way, then have a separate metadata store.

The downside of the SQLite dB is no network editing. I’d love to be able to edit from multiple machines without a cloud subscription or super slow NFS.

gwittel··on Lightroom app update wipes users' photos and presets, Adobe says not recoverable
How’s its catalog? One thing I like about Lightroom is the catalog is just files on disk vs a giant database in say Aperture. I like having my own file layout and would hate to give that up.
gwittel··on Lightroom app update wipes users' photos and presets, Adobe says not recoverable
How did you find the migration? I’ve been resisting Lightroom upgrades as I don’t want the cloud stuff. But as raw support for new cameras falls off it’s getting harder since the two step DNG import is such a pain.

Moving to Capture One or something else seems worthwhile. Tried Darktable but wasn’t a big fan.

gwittel··on How to contact Google SRE by dropping a shell in Cloud SQL
I’d agree. The main risk might be wider access within the customers VPC (so lateral move risk). But it’s hard to know without understanding the wider environment.
gwittel··on How to contact Google SRE by dropping a shell in Cloud SQL
Nice work and writeup. All stemming from very basic mistakes -- SQL and command injection.

Worrying that the CloudSQL internals (like the private IP range) aren't strongly walled off. It will be interesting to see how this changes in response to the researchers' work.

gwittel··on Effectiveness of honey for symptomatic relief in respiratory tract infections
Could be. Different honey also has differing flavor, consistency, etc. As an example, our local honey supplier suggested one type for sore throats - tarweed honey. It was thicker and had a much stronger flavor. Theory was it would stick longer (have yet to try).

Flavor wise it was not what I’d want to use for regular consumption, but if it works better when sick? Sure.

gwittel··on Slate, create beautiful, responsive API documentation
I’ve used this with the CLI wrapped version that’s linked to in the readme and it works well enough. There are shins bugs/gaps in the template where some OpenApi fields are not rendered though.

In the end I containerized the whole thing with defaults, logos, etc so we’d have standard docs with little effort.

← PreviousPage 4 of 6Next →