News for hackers. Stuff that matters.

twy30

Show HN: D4pi: Diablo4 Item Filter Inside Web Browser

https://d4pi.com/

D4pi turns Diablo4 item screenshots into searchable, filterable data.* Hassle-Free Click-and-Go Demo right on the Landing Page* Everything runs locally inside your web browser -- Thanks to Next.js, OpenCV.js, and Tesseract.js. Source Code: https://github.com/d4pi/web-app* Configurable -- the default settings work the best with 1080p (1920*1020) screenshots taken with the default in-game...

( Read More... | no comments | 2 points | on HN )

Show HN: D4pi: Show/Share Diablo 4 Item as Text/Link (Alternative to Screenshot)

https://D4pi.com/

Frontend newbie here trying to learn by doing :)Feedback is much appreciated; especially around security, since D4pi takes arbitrary user input text, sanitizes it (by removing & < > " '), transforms it, and then renders it as HTML. I will be very happy to learn about anything I missed or some other way to do it better.Thank you.Source code:...

( Read More... | no comments | on HN )
Re:Ask HN: How to build empathy? on Saturday March 20, 2021 @01:16PM (#26524505)
> How did you develop your listening skill?

By being rational -- the following method works well for me. YMMV.

I reframe this problem as: Always assume the other person's limbic system has been activated; what will it take to calm their limbic system?

I do not have the exact source handy, but IIRC it can take any time from 15 minutes to 4 hours. From experience, I concluded that the only rational moves during that time are:

* Listening (the feeling of company and support)

* Pleasant sensory stimulations, for example:

- Scent: hot tea, fresh fruit

- Touch (only when appropriate): pat on the shoulder/arm, hand-holding, hugs

In contrary, during that time, any move that requires the other person's prefrontal cortex functions (planning, decision-making, abstract thinking, etc.) is almost always a wasted effort. (So don't make this type of irrational moves.)

Thank you. I agree. Exploration beyond the technical domain will be beneficial, especially with the right listening mindset.
Thank you. I will check out that course.

The link you shared is very interesting. It reminds me of "perverse incentive" [1] and "unintended consequence" [2].

[1]: https://en.wikipedia.org/wiki/Perverse_incentive

[2]: https://en.wikipedia.org/wiki/Unintended_consequence

Thank you. I like your idea of support. Let me try summarizing it with bullet points:

* Maintain a healthy ratio between the knowns and the unknowns.

* Allow time and space to explore, experiment, and especially err -- to build up experience.

I understand. It can be a double-edged sword.

I wish you find a place where your talent is valued and appreciated.

Thank you. That's a great example.

It gave me 2 new directions:

(1) Are there people helping others learn critical thinking? How do they do it?

(2) What does it take to have "user-friendly, tool-assisted critical thinking"? ("formal methods" [1], perhaps?)

I will dig around those 2 directions and see if anything interesting turns up.

[1]: https://en.wikipedia.org/wiki/Formal_methods

Thank you. I like your idea. Let me try putting it into a bullet point form:

* Get/give healthy feedback to mitigate against tunnel vision or unknown unknowns.

* Learn from failures and mistakes.

Thank you. Let me try repeating your advice in my own words:

* Collect all assumptions (regarding data and actions).

* Attack each assumption by throwing known/common/trivial edge cases at it.

* Explore each assumption's necessary conditions: what they are ; how they could possibly be false/broken/absent.

Ask HN: How do you help junior developers learn finding edge cases?

Edge cases are nature's way of telling us how lousy our programming is. (*1)Is there a systematic, step-by-step approach to help junior developers improve their awareness/senses of edge cases?There are some low hanging fruits that are easy to explain and demonstrate. For example, boundary-value analysis [1], division by 0, removal of an item from an empty container, etc. However,...

( Read More... | 17 comments | 7 points | on HN )
Re:Ask HN: Do you block JavaScript? why? on Tuesday March 16, 2021 @01:28AM (#26473359)
Yes; for (1) speed, and (2) security.

* The gain of speed is noticeable. I love it.

* The benefits of security is qualitative/theoretical. I do not have any quantifiable data here.

* The change of UX is usually acceptable. I consume mostly textual information.

A few website's contents and/or services are valuable enough so that I whitelist them. For example, GitHub, YouTube, and HN.

Re:Campaign to make CA politicians wear their donors' logos on Tuesday December 29, 2015 @05:01AM (#10806003)
The actual ballot initiative "15-0097" can be found at https://oag.ca.gov/system/files/initiatives/pdfs/15-0097%20%...?

Source: https://oag.ca.gov/initiatives/active-measures

I am also trying to compile all information I have found so far and put them here: https://caisnotforsale.github.io/