HNHacker News
TopNewBestAskShowJobs

chrisdsaldivar

294 karma · joined November 22, 2017

submissionscomments
chrisdsaldivar··on Honey has now lost 4M Chrome users after shady tactics were revealed
I haven’t seen the videos and don’t know much about the space. Could your provide any insight into what’s wrong?
chrisdsaldivar··on Tell HN: I think there are major issues with Google –> Squarespace domains
Can I ask when/why you would use custom name servers? I’m unfamiliar with them.
chrisdsaldivar··on AI-generated sad girl with piano performs the text of the MIT License
Barely related but this reminds me of a video where Sir Elton John sings the text of an oven manual.

https://youtu.be/8GuI4UUZrmw

chrisdsaldivar··on Why Japan has blue traffic lights instead of green
Yes, on average women can perceive more colors than men [1]

Anecdotally, in high school we all took this test for a class [2] and the girls did a lot better than us. Although some guys were able to score pretty well on it. I don’t remember if this was the exact test but it’s very similar.

[1] https://pubmed.ncbi.nlm.nih.gov/21675035/

[2] https://www.xrite.com/hue-test

chrisdsaldivar··on Ask HN: Who wants to be hired? (March 2023)
Location: Jonesboro, Ar

Remote: yes

Willing to relocate: yes (USA only)

Technologies:

  Back-end: Node.js, Express.js
  Programming: Python, HTML5 / CSS3, C++, Swift, TypeScript
  Frameworks/Libraries: Jest, SocketIO, React, Vue
  Databases: PostgreSQL, mySQL
Résumé/CV: https://www.dropbox.com/s/sa0mdda7wgeuhb9/Christopher%27s%20...

Email: chrisdsaldivar [at] gmail.com

chrisdsaldivar··on Show HN: HN Avatars in 357 bytes
I've never heard of dweets/dwitter before; thanks for sharing. For anyone else:

Dwitter.net is a challenge to see what awesomeness you can create when limited to only 140 characters of javascript and a canvas. Give it a go!

https://www.dwitter.net/

chrisdsaldivar··on Welcome to Waifu Labs v2: How Do AIs Create?
Can you share any resources for reading on this particular topic?
chrisdsaldivar··on Native-like Navigation of Web apps
You can play sound with the audio API since the user is interacting with the page. However, the vibration API is only implemented in Chrome and Firefox on mobile. Safari removed it from WebKit.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_A...

https://developer.mozilla.org/en-US/docs/Web/API/Vibration_A...

chrisdsaldivar··on Node.js 16 Available Now
Can you provide some more details wrt issues with error handling?
chrisdsaldivar··on Walletmor Payment Implant
At that point you may as well just use a smart watch for payments.
chrisdsaldivar··on Amazon launches Halo: tracks activity, body fat, emotions
They don’t go into details; but they claim it’s “as accurate as methods a doctor would use” and that they tested accuracy against DXA.

https://blog.aboutamazon.com/devices/a-better-measure-of-hea...

chrisdsaldivar··on Code for The Economist's election model for 2020
This actually happened in the 1988 Mexican election. The PRI was losing the vote and their opposition was predicted to win using live vote tabulation. They hid the results by saying the system crashed and then declared themselves as winning. This kept many people from bothering to even vote.

However, they went much further and burned legitimate ballots and even made fake ones.

The difference here is the PRI actively used (fake) predictions to discourage voters.

https://en.m.wikipedia.org/wiki/1988_Mexican_general_electio...

chrisdsaldivar··on Why Lobste.rs Is Better Than Hacker News
Another reason for requiring feedback for downvoting is so others know why it was downvoted. There have been many times where I’ve seen a dead comment on a topic I’m not familiar. I know the general user disagrees with that statement but I have no idea what’s “wrong” with it. Conceivably it’s because it’s obviously wrong to anyone in that domain so nobody bothers commenting or it’s a contentious issue in that domain and people who agree or could provide further insight don’t think it’s worth the negativity to bother commenting.

Either way I have no clue. I read a comment recently about setting up a graphics pipeline that seemed reasonable enough but was downvoted to hell. I would have liked to know why.

chrisdsaldivar··on Too Much Dark Money in Almonds
I was taken off the sms list “effective immediately” because they asked if I was ready to Feel the Bern and I responded with a gif of Hulk Hogan in front of a giant American flag saying “Hell yeah brother!”

I was just trying to be a patriotic millennial but it got me off the sms list so silver lining I guess. Now I donate whenever I have the spare cash and I don’t have to worry about them blowing up my phone.

chrisdsaldivar··on Flawed Algorithms Are Grading Millions of Students’ Essays
We had this in my school for 8th and 9th grade so 2008-2010. We had to type the essays in class and submit by the end of the hour. I would only get maybe 3 paragraphs in before time was up because I was trying to build a strong argument for the prompts. Despite that I would usually get 3-4/6 and my teacher said she would read the essays and regrade but she never actually did. My friend literally copy and pasted the pledge of allegiance 20-30 times and scored a perfect 6/6. Later we found out if you repeated the words in the writing prompt you would get a guaranteed 5/6 and with a high enough word count you’d get 6/6. The essays were all bullshit and just a way for the teachers to get an extra free period once a week.
chrisdsaldivar··on Minnesota Will Pay Residents to Grow Bee-Friendly Lawns
They might. My sister and I would crush up plants when we were little to make “potions.” We stopped when we made a potion with Serrano peppers at my aunt’s house in Mexico, at least it wasn’t some deadly plants.
chrisdsaldivar··on Ask HN: How do I make sure my non-technical parents are safe online?
Just yesterday my mom called me asking me to check the logged in devices list on her email. She hasn’t been able to login and found out it had been hacked so she had to reset her password. I logged all the devices out and finally got her to stop using her last name as her password and we changed all of her passwords.

So, after years of my sister and me trying to get her to have proper passwords it took her getting hacked and seeing a bunch of failed spam emails to finally change her passwords. Maybe people reading this could “hack” their parents themselves so they could take security seriously. Yeah it’s lying but it’s safer than letting it happen organically.

chrisdsaldivar··on Quants Think Like Amateurs in China’s Wild Stock Market
Not all that surprising. A couple years ago a company called Long Island Ice Tea Corp. changed their name to Long Island Blockchain and their stock shot up 289%.

https://www.bloomberg.com/news/articles/2017-12-21/crypto-cr...

chrisdsaldivar··on Gwern's Law: Ads cost you a tenth of your users
Yeah seems so; it's not too bad though. However, I have high index lenses and they bend red and blue light up or down if I look at the source from the top or bottom edge of my lenses. There's the interesting effect where dark red or blue text on a black background looks like its in 3D. The text even shifts when I move my head around. Honestly, I should really just get lasik; people I know that got it swear by it.
chrisdsaldivar··on Gwern's Law: Ads cost you a tenth of your users
I’m 24 man I ain’t even thinking about having kids; I’m just putting information out there. Tbf I spent nearly every waking moment of my childhood outside and I’m extremely near sighted. I can’t even see my laptop screen without my glasses.
chrisdsaldivar··on Gwern's Law: Ads cost you a tenth of your users
Another reason to limit screen time for kids is to prevent developing nearsightedness. Although this is just anecdata, I was talking to my optometrist at my last appointment and he told me he's seen far more kids coming in with myopia than ever in his 30 years of practicing and he attributes it to kids spending too much time on phones and tablets.

edit: Here's an article from nature which compiles some research on the topic. https://www.nature.com/news/the-myopia-boom-1.17120

chrisdsaldivar··on Ending our Medium integration
You’d be surprised.
chrisdsaldivar··on Ask HN: What are must-know concepts for back end development?
I have never attempted this particular use case but, as far as I can tell this isn’t possible. While it is possible to grant privileges to change another user’s password, you would have to either make the team admin a super user (this grant all possible privileges) or by granting the Create Role privilege (which would allow them to create a new role with privileges they aren’t intended to have and switch to that role) so neither of these options are really any good.

A clarification on my previous comment: The way I’ve used Postgres RBAC is to create roles for each service in my application that needs DB access. For example say you have a service (in my case typically a lambda function) that only ever reads data from the DB and only from specific tables. I would create a role that only grants SELECT privileges for those specific tables. This also disallows UPDATE, DELETE, ALTER etc. privileges. Then assign this service that role. This mitigates the possible damage done if that service is compromised and shrinks your applications attack surface.

chrisdsaldivar··on Ask HN: What are must-know concepts for back end development?
Security is absolutely important. You’re right that most programmers don’t consider it and even my CS degree programming never emphasized security. However, I did a cybersec emphasis so I always consider the security implications of a system at the design stage. It’s significantly easier to build a secure system than it is to retrofit an insecure one.

One of the most important concepts is the principle of least privilege which is rarely ever discussed. Every tutorial I’ve seen, even paid ones, (this isn’t to say all of them) give their app master DB credentials. You could vastly improve your applications security just by leveraging your DB engine’s native access control.

For those using Postgres here’s a great resource for setting up RBAC: https://www.postgresql.org/docs/9.0/user-manag.html

chrisdsaldivar··on Ask HN: What are must-know concepts for back end development?
Postgres has been my go to DB for my projects. It's fast, simple and has decades of research and battle tested systems to pull knowledge from.

Your comment reminds me of a PyCon 2017 talk by Raymond Hettinger where he details the improvements in Python dictionaries from 2.7 to 3.6 which effectively amounted to rediscovering and re-implementing what was standard in databases decades ago.

"Modern Python Dictionaries A confluence of a dozen great ideas" https://www.youtube.com/watch?v=npw4s1QTmPg&ab_channel=PyCon...

chrisdsaldivar··on Ask HN: What are must-know concepts for back end development?
Oh thank you, I didn't know that was referred to as "observability" I thought it was just logging. This article from Etsy's engineering blog [1] was part of the inspiration for this question. Funnily enough when I googled "Etsy engineering logging" the 5th result was for a position on Etsy's observability team.

[1] https://codeascraft.com/2011/02/15/measure-anything-measure-...

chrisdsaldivar··on Ask HN: What are must-know concepts for back end development?
I've been looking at this book the past couple of days; have you read it yourself? If so what did you think?

Edit: I decided to go ahead and buy it since it was pretty cheap on Amazon. The table of contents had a lot of the information from the other comments. Thanks for the recommendation!

chrisdsaldivar··on Ask HN: What are must-know concepts for back end development?
Yes: reliability, monitoring, and error handling were the types of things I’m looking for more information on. Do you have any recommendations for more information on these topics? I should have clarified that my question was geared towards important concepts agnostic of languages/frameworks/etc. This is a great list of further reading, thank you.

Also what does observability mean is this context?

chrisdsaldivar··on A most unexpected answer to a counting puzzle [video]
He built a python library for his visualizations called manim available on his github [1].

[1] https://github.com/3b1b/manim

chrisdsaldivar··on Google admits changing phone settings remotely
I've seen some analogies on here that were reaching but this one really threw me.
Page 1 of 2Next →