HNHacker News
TopNewBestAskShowJobs

AbundantSalmon

49 karma · joined October 31, 2021

submissionscomments
AbundantSalmon··on Trouble with Getting CORS to Work with AWS Sam and Lambdas
Just posting this in case anyone else has problems with getting AWS Lambdas to send CORS headers when using SAM. I spent a few hours before eventually getting it to work.
AbundantSalmon··on Taming the beast that is the Django ORM – An introduction
Good topic for a second blog post/skill share. Are there any other interesting topics you can think of? I think I know so much but in it too deep to remember what is unusual. These came up with the recent onboarding of some new devs.

Thanks, I will update the data migration code!

AbundantSalmon··on Ask HN: What is the best way to get into building electronics as a programmer?
Practical Electronics for Inventors by Paul Scherz is pretty good, but hard for me to tell if it is good for a complete beginner as I come from a non-electrical/electronics engineering background and we still get taught the basics in first year and have the fundamentals.
AbundantSalmon··on Ask HN: PRK worth it and recovery time?
No side effects for me. I've always had bad night vision even with glasses so no noticeable effect for me, and no dry eyes like someone else reported on this thread.

I guess my question for you is what is your prescription? Because mine was high enough (-5.5 + astigmatism) that even with glasses due to how thick they were, chromatic aberrations always existed especially in my peripherals, and contacts would cause dry eyes after 8 hours which would then drop visual acuity. So my reality never existed with "perfect vision" like you are worried about having to deal with... It was just a different type of aberration that eventually went away, became unnoticable. I definitely knew my glasses never corrected to perfect vision. Remember 6/6 (aka 20/20) also isn't "perfect vision", it is just the average vision person for a person doesn't "need glasses", people have a whole range of visual acuity.

While I am definitely a fan and would recommend it people who were thinking about it. If your prescription is low enough I believe surgeons will usually suggest that you probably don't need it, though my experience is not in the US so YMMV...

AbundantSalmon··on Ask HN: PRK worth it and recovery time?
I am in my early 30s and got PRK in my late 20s and absolutely do not regret my decision at all! It's been such a quality of life improvement. I am also a BJJ/Judo player and it really beats having to deal with contacts/glasses all the time. I believe they usually will have wanted you to have tried contacts for a time to make sure that contacts aren't a good use case for you, as with any surgeries there are always risks involves which the ophthalmologist will run through with you.

For me, this is so much better than contacts, not having to fumble around for glasses in the morning and being able to see clearly stuff that is further than 20 cm from my face is life changing (my prescription was -5.5 + astigmatism, so not the worse but still pretty bad) which I haven't been able to since I was like 12 years old. I know a bunch of people who have had it done and very happy as well and I do mention it to other friends. Though it is a personal choice as it is a very elective surgery.

1 week is the bare minimum to be able to took a screen again for a long length of time and "full" recovery can be months (you'll still be able to drive and use the computer fine but there will be some "fuzziness"). I was able to work after the one week. One of my eyes was over-corrected, as basically there is a bit of art of these types of surgery as it relies on the body's healing factor, and after a year of monitoring (which would have been standard even if the over-correction wasn't detected) hoping that it would work it self out, we had to redo the that eye and both eyes were fine after that.

You definitely want to not force it, just take sick/annual leave and don't stress out about working. I'm not based in the US but if you are, I would really recommend you research who you're getting your treatment from and what laser/approach they might be using. Because when I was researching before my decision it seemed like a lot of horror stories were US based (this just might be due to the demographic of the internet posters though). Stories of no contact with an ophthalmologist before the surgery, the surgery being done by technicians and not the surgeon, the responsible surgeon was based out of the state and only approved the surgeries, no follow up monitoring after surgery etc.

If you have an specific questions post then below and I am happy to answer.

AbundantSalmon··on Ask HN: What are your favourite macOS “Automator” automations?
I use hammerspoon (https://www.hammerspoon.org/) to run a lot of shortcuts for myself, I find that the lua language whilst a little strange but still more easier to grok than automator/applescript.
AbundantSalmon··on Getting Started with Tmux
This sounds like my setup! I literally have 1 button startup for starting all my normal programs (including split tmux windows, each running appropriate startup commands for what ever process they need) and it moves all my windows into their regular positions. I usually get into to work, plug in the laptop, press my button and go make coffee :)
AbundantSalmon··on AutoCAD is f-ing terrible. Let's talk about it
Developer now but was originally a mechanical engineer and have dealt with some CAD software in my time. Solidworks > Fusion360 >> AutoCAD 2D has been my experience. Though I have to admit that the AutoCAD 2D was not my day to day software and I had originally come from 3D CAD as opposed to starting with 2D/AutoCAD initially. When I used AutoCAD for the first time I had an instant distaste for it and can see where you are coming from, the interface and the way of "drawing" was unintuitive, and I could never work out how make my lines be parametric instead of having to redraw them when related dimensions changed (though that could be a me problem).

I think the reasons it is still popular are:

- People who learnt to draft with pencil and paper are still around

- Legacy, still so many drawings that they don't want to have to remodel. The open format exports are never perfect.

- 2D layouts are just practical for a lot of industries (electrical, HVAC, MEP, etc) where they are just need to convey connection information or everything is nice boxes on planes and they don't need spend more time extruding out a 3D when they can just easily just draw an arrow and go "AxBmm". But apparently Revit, which haven't used, is becoming more popular int the MEP/HVAC space apparently?

I know my friend has lots of drop in templates and scripts that they have built up over the years.

AbundantSalmon··on Ask HN: Boring but important tech no one is working on?
I think a key point that people fail to remember or marketing just oversells, is that there is no silver bullet for all the problems, especially for an industry that has so much history, precedent and inertia. People want to try and solve (and from the other side, want perfect full solutions) all problems at once, whilst in reality small improvements in key areas are probably the 80/20 that is needed to bring business value. I think continuous feedback and good "translators" would be key for any product in those industries. Manufacturing people are busy and will tell you what the surface level pain point is, but they don't have the time or maybe don't have the idea fully thought out on what the underlying problem/goal is.

After typing up all that, I realise that most of this is applicable to every industry.

AbundantSalmon··on Ask HN: Why does the C K&R Book not talk about threads?
Must be a legacy name, as they still have it as a unit at a Uni I've been to: https://handbook.curtin.edu.au/units/unit-ug-unix-and-c-prog...
AbundantSalmon··on Ask HN: For devs, any regrets on getting the M1 MacBook Air?
Same, the air was a great machine and probably would have been fine, but work was willing to upgrade my machine to the pro and hand down my air to the new non-dev hire.
AbundantSalmon··on Tell HN: Have just discovered that I can use any key as Ctrl on my keyboard\
I have it set as a "super" modifier, i.e. cmd + ctrl + option + shift, perfect as then you can use it as a modifier for shortcuts as no programs use that a default keyboard shortcut
AbundantSalmon··on Ask HN: How did you learn a new programming language as an experienced dev?
Not sure what your requirements are but `virtualenv` would be the standard for python environments outside of `venv` which is in the standard library. I would have considered it solved.
AbundantSalmon··on Ask HN: How often do you make a fresh OS install?
Every year with windows, never since switching to macs.
AbundantSalmon··on Ask HN: The Expected Style for Tech Résumés
I have a love hate relationship with my resume being in LaTeX. It's annoying cause I find myself having to relearn LaTeX (I've never used LaTeX professionally since uni) when I need to make changes to it, sometimes I wish it was just in Word but the cost of migration is too great .

But it's great because if I need to customise it for a specific application, I can just comment out sections and regenerate it, all my work history is there, just hidden, so when I need to recall dates it's great. It also looks decent and different from Word resumes with minimal effort.