HNHacker News
TopNewBestAskShowJobs

itsuka

1,480 karma · joined May 15, 2022

artificier
submissionscomments
itsuka··on Choonsik's Diary
(this is not my project)

Case study: https://www.awwwards.com/choonsiks-diary.html

itsuka··on Best Online Teaching Methods That Will Change the Way You Teach
I think the article missed to attribute Cohort-Based Courses to Wes Kao, the co-founder of Maven (the website's competitor), who first coined that term.

I first learned about CBC from this article: https://future.com/cohort-based-courses/

itsuka··on Ask HN: How can I block posts about Musk, Twitter, Mastodon and related topics?
If you have uBlock Origin installed, you can add the following to My filters:

  # top (title / url)
  news.ycombinator.com##tr.athing span.titleline > a:has-text(/(Musk|Twitter|Mastodon)/):upward(tr)
  # bottom (stats / comments)
  news.ycombinator.com##tr.athing span.titleline > a:has-text(/(Musk|Twitter|Mastodon)/):upward(tr) + *
(warning: there is a side effect where it would mess up the formatting of the effected posts such as this one)
itsuka··on Tell HN: I was tired of being a perfectionist so I built an app within 24 hours
> it seems like iframing other websites should be legal based on what I read

I think embedding other websites in iframe may fall into a gray area. This is my reasoning: even though the target website can include X-Frame-Options: DENY in their header, a lot of them don't, and it opens their websites for abuse, whether intentional (from your POV, e.g. clickjacking), or unintentional (e.g. a DDOS attack on your website may also affect the target websites). Because of this, I have been careful not to embed cross-domain websites in iframe.

The issue that I was trying to bring up is actually not about iframes, but rather, other website code and assets that you copied and hosted in /sites/ directory. As you know, websites and their assets (logo, font, etc) are copyrighted materials - so we can't (directly) use it without the owner's permission. I don't know if this usage would fall under Fair Use though.

As previously mentioned, I'm not versed in legal stuff.

> Do you know of a way to automatically extract the palette or would you do it manually?

CSS Overview panel does the job. It groups colors by usage, such as by background and by text, and it also gives you the contrast level for each. I'm sure you can find other tools for extracting colors. Most recently, "HTML To Figma" by Builder.io is the one that gains a lot of hype. It basically converts any web page into figma layers that you can edit. From there, you can extract all of the design tokens, including colors.

I don't know any tools that can automatically extract and label a color palette with 100% precision. If you care about accuracy, I think you still need to do a bit of curation / manual work.

itsuka··on Tell HN: I was tired of being a perfectionist so I built an app within 24 hours
I wonder the legality aspect of hosting someone's else code as preview. If this is a problem, I think you can use a video preview like any other award websites. godly.website is one example that comes to mind. IIRC, they have responsive videos and good information density.

I hope this comment is not taken as a criticism, which you have received a lot already in this thread. I myself use Next.js (and Cloudflare stack) in almost all of my projects and I feel very productive with it.

Just throwing an idea here: since the viewer of your website may need to copy other website's design, it would be nice if you can save them a few clicks/keystrokes by providing a color palette. One thing I learned recently from creating a personal tools like yours (with additional types, elements, motion pattern, and tech stack) is that we can extract colors from any page easily using CSS Overview panel in Chromium Dev Tools.

Lastly, I just want to congratulate you on shipping!

itsuka··on The self-taught UI/UX designer roadmap (2021)
Solving a personal itch seems to be the learning method that would work best for me. So far, I have only been practicing through hackathon. Although it's practical (I think), it is not necessarily solving a problem that I care about, so it shares a similar motivational issue above.

Thank you for your thoughtful advice.

itsuka··on The self-taught UI/UX designer roadmap (2021)
I am a self taught (still a novice) with a background in development. I have difficulty in motivating myself to practice using resources like this. Perhaps due to its fake nature and lack of feedback loop.

The article touches on something that resonates with me, that is you may find yourself learning more (practical skills) on the job. So I wonder if there is a way to learn faster without having to switch careers, such as being a part-time designer at startups, practicing under a mentor, or indie-hacking a product. Does anyone have any advice on this?

itsuka··on Run Stable Diffusion on Your M1 Mac’s GPU
I followed the conda instruction which uses Python 3.9 and ran into the same issue. The workaround is to import TypeAlias from typing_extensions:

stable-diffusion/src/k-diffusion/k_diffusion/sampling.py

(before)

  from typing import Optional, Callable, TypeAlias
(after)

  from typing import Optional, Callable
  from typing_extensions import TypeAlias
This issue is tracked in https://github.com/lstein/stable-diffusion/issues/302
itsuka··on Release Notes for Safari Technology Preview 151
A summary from @jensimmons:

• Lazy iframe loading

• CSS color-mix() function

• specifying the interpolation color space in CSS gradients

• `scan` media query

• WebDriver – three Shadow Root commands

itsuka··on Avoiding image layout shifts (CLS): aspect-ratio vs. width and height
I also use the wrapper pattern for my recent projects, but the primary reason is for avoiding layout shifts (I didn't know a simpler solution exists until I read this article). The approach is quite different than what the article suggests: rather than setting a specific width and height on the img element, I simply set it to 100% for the wrapper and img elements (and the rest are the same as yours: I set aspect-ratio on the wrapper and object-fit on the img element).
itsuka··on Replace CAPTCHAs with Private Access Tokens
Related: https://blog.cloudflare.com/eliminating-captchas-on-iphones-...

Discussion: https://news.ycombinator.com/item?id=31669568

itsuka··on Remove YC “[company] is hiring” ads on HN
I have been using the following script on uBlock Origin for some time. It's quite an ugly selector though:

news.ycombinator.com##tr.athing:has(+ tr .subtext .age:first-of-type)

news.ycombinator.com##tr:has(> .subtext .age:first-of-type)

← PreviousPage 3 of 3