Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

* Give me a bash one-liner to generate a secure random string

* I'm using a NextJS middleware function by exporting it from my page component like this ... Here is the middleware source ... But I get this error ...

* How can I tell if my site is running in production in NextJS?

* NextJS says localStorage is not defined. What should I do?

* Please adjust this Prisma schema so that there is an index on github_id

* How do I configure eslint to accept switch style that looks like ...

* Write hex bytes that represent a 16x16 bmp image favicon (didn't work lol)

* Please write me a React reducer and React context that holds state for a users's auth token and also synchronized that token into `localStorage` with the key `__auth_token`.

* How do I disable the rule "@next/next/no-img-element" on the next line?

* Here's my current page ... What changes should I made so that the footer is at the bottom of the screen when there isn't enough content to push it down to the bottom of the page. But if there is a lot of content it will sit right below the end of the content and not on the bottom of the screen.

Generally it works really well!



This is very similar to my usage. I'm awful about wiping from my memory every implementation detail unless I work in something every day.

awk and sed are great examples, I find them critically important just infrequently enough I barely have any idea how to use them.

or the once in 2 years I need to do something complex in a spreadsheet, a natural language description of the problem is easier for me to remember than some sequence of vlookup


I had a script with a huge chunk of spaghetti awk and sed I wrote years ago and couldn’t remember how it worked. I pasted it into ChatGPT and asked it to explain it to me and then make some small edits that changed the output. It did a remarkably good job.


I hadn't even thought of having it explain my own garbage to me, that's great.

For my usage patterns of sed and awk, it's not complex, but it's usually that if it comes to me using them, a series of bad and urgent things has occurred and I don't have time to grow a beard and ponder unix zen




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: