News for hackers. Stuff that matters.

jh3

Re:Living Dangerously with Claude on Friday October 24, 2025 @01:10PM (#45696726)
What are you doing to keep a JSONL per session? Or is this something built in? I’m interested in estimating token costs in this way.
Re:Shave and a Haircut on Thursday February 29, 2024 @08:15AM (#39548865)
Wow, so "two bits" is what Roger says in response to Judge Doom in Who Framed Roger Rabbit. I can hear it now, but I never actually knew what was said.
Sounds like you're the miserable one?
Re:Acquia, My Drupal Startup on Friday December 01, 2023 @12:31PM (#38489458)
I thought Drupal 6 and 7 were great, but this was about 5-10 years ago. Haven't looked at it since then. It was the first CMS I worked with professionally, so I may be biased, but once I "got it", it became quick to add features (not "Features", which wasn't very fun). This was before everything went headless and javascript :)
First time hearing about this client. I primarily use the Reddit iOS app, which seems fine. What's better about Apollo?
Re:Ask HN: Heavy Metal Music for Programming? on Thursday April 28, 2022 @11:37AM (#31193833)
To name a few: YOB, Animals as Leaders, Neurosis, Pelican, Russian Circles, Isis :)
Re:The hunt for Nigerians who can change into cats on Monday March 21, 2022 @02:05PM (#30757569)
Exactly! Parental relief.
Re:The hunt for Nigerians who can change into cats on Monday March 21, 2022 @01:21PM (#30756963)
Now that I have my own children, I'm convinced this myth is a delay tactic perpetuated by parents :)
Re:Ten years of OP-1 on Thursday April 15, 2021 @07:32PM (#26827472)
Yeah I can see that. The one I had saw regular use when in my possession, but I had it for less than 6 months iirc. It was still in excellent condition.
Re:Ten years of OP-1 on Wednesday April 14, 2021 @01:35PM (#26810368)
They retain value. You could buy one used and sell it for more, if not the same price you purchased it at. I think the worst case is you'll essentially be renting it for $100-200 if you really don't like it. This was my experience, anyway.

It's a great device even if your job isn't music production. Easy to use, lots of fun, though I didn't enjoy the form factor.

Re:Ask HN: Who is hiring? (January 2018) on Tuesday January 02, 2018 @09:53PM (#16057900)
You can copy/paste the code into the console of your browsers dev tools.
What you're saying is false, but what you're quoting is correct. I definitely wouldn't say "always".
Re:Get started making music on Tuesday May 09, 2017 @03:27PM (#14303099)
The Octatrack is a fun box that can basically replace Ableton: https://www.youtube.com/watch?v=yjavTXRvZBE
Re:Squash your commits on Friday April 01, 2016 @04:05PM (#11408099)
> I still fucking hate rebasing and get tripped up by it on the few times I end up having to deal with it.

When I had no understanding of what was going on, I didn't like it either. Now that I use it frequently, I understand it better, so I don't hate it anymore.

I like running `git rebase <main-branch>`, where <main-branch> is typically master, in my-new-thing branch because it lets me deal with any conflicts from upstream one by one.

I also like running `git rebase -i` in my-new-thing when I have a bunch of commits with redundant messages that I want squashed into a single commit before I push the changes. Basically anything that requires messing around with a range of commits is a good use case for `git rebase -i`.

Why do you hate it so much? There's really not much going on that you should have to hate. To me it's like a bunch of small, compartmentalized merges.

Re:Move Fast without Breaking Things on Monday March 28, 2016 @04:02PM (#11376931)
> You don't see structural engineers slapping together the first thing that works and patching the building later when parts of it fall down.

That's because if they mess up the first time people can die.

I'm guessing the likelihood of death due to a bug in most web applications is probably much less than that of a bridge :)

Software is great because it's possible to iterate quickly. But ultimately, you have a point. Developers should be willing to fix bugs they've created and/or come across in their projects. We should also try to limit the potential of bugs by releasing small chunks of functional work as often as possible. "Releasing" in this sense can mean to production or just to your qa/test/dev/stage environment. It's just important to have many eyes on the product before it's live.

Re:Real-Time Django: Get Started with Django Channels on Thursday March 17, 2016 @04:50PM (#11307493)
"Django was born in the fall of 2003, when the web programmers at the Lawrence Journal-World newspaper, Adrian Holovaty and Simon Willison, began using Python to build applications. It was released publicly under a BSD license in July 2005. The framework was named after guitarist Django Reinhardt."

Source: https://en.wikipedia.org/wiki/Django_(web_framework)#History

Re:If a thing is worth doing, it is worth doing badly on Friday March 11, 2016 @08:56AM (#11266587)
Everyone else is just overanalyzing everything :)
Taking notes on a computer by itself never really helped me learn. I would always write down on paper everything I typed on a computer during class. Doing this would help solidify the lesson in my mind.
Re:Drupal 8.0.0 released on Friday November 20, 2015 @06:52PM (#10604665)
project_root/sites/example.com

project_root/sites/example.com.a

project_root/sites/example.com.b

project_root/sites/example.com.a.123

project_root/sites/example.com.a.234

Create these directories. Add a settings.php file to each. Add stuff to sites.php if needed. example.com.a and example.com.b should definitely work. Not too sure about the other two because I haven't created a site in a multi-site setup that is 2 subdirs deep, but it is easy enough to try.

You may also need to symlink the subdirectories (e.g. a) in project_root. See "Subdirectory multi-site" here: https://www.drupal.org/documentation/install/multi-site

Re:A Good Vimrc on Saturday October 10, 2015 @02:11PM (#10366357)
Here's what works for me:

capslock remapped to ctrl jw for escape in vim

jw is convenient if capslock is used as a control key. I had to pay attention to what I was doing in a vim file in order to remember what I had escape mapped to :)

Re:Michael Crichton and Computers on Thursday August 20, 2015 @04:51PM (#10094565)
I remember reading Timeline and Prey in high school. They were amazing books to me at the time. I just couldn't put them down. I never cared too much about how scientifically accurate they were though. That's like complaining about the plot holes in Back to the Future. It's entertainment, so to me he did his job well.
xdebug and phpstorm is great.
Re:GitFlow considered harmful on Friday June 19, 2015 @02:29PM (#9746697)
Committing often allows you to remember the small changes you made throughout the feature. If you let a file sit in the staging area for hours, days, weeks, you will most likely have a hard time remembering why you made all the changes.

Is there a way to do this with the staging area? o.O

Yup :)
bdunn on justifying your costs as a freelancer: https://news.ycombinator.com/item?id=8705179

patio11 and the Fair Credit Reporting Act: https://news.ycombinator.com/item?id=7135833

spolsky on detecting toxic customers: http://news.ycombinator.com/item?id=1987223

tptacek on naming your company: http://news.ycombinator.com/item?id=4684845

The journey of Flappy Bird: https://news.ycombinator.com/item?id=7207943

Programming is terrible: https://news.ycombinator.com/item?id=6469360

On being a consultant: https://news.ycombinator.com/item?id=6443135

Why Do So Many Incompetent Men Become Leaders? https://news.ycombinator.com/item?id=6263458

Are designers crazy? http://news.ycombinator.com/item?id=5002262

Why learning to code is so hard: https://news.ycombinator.com/item?id=4933178

"I don't understand": http://news.ycombinator.com/item?id=4930262

death and regrets: https://news.ycombinator.com/item?id=4540459

Re:Wearing a Suit Makes People Think Differently on Saturday May 02, 2015 @10:05AM (#9477070)
Depending on how you think about it, purchasing a suit is an investment.
Re:Make Money Online: Documenting 10 Years of Failure on Friday March 20, 2015 @12:33PM (#9238668)
> How come you never tried to make something people wanted?

When you're making tens or hundreds of thousands of dollars a month in your 20s, why would you want to do something different?

Re:Show HN: The Daily Drop – Discover the Newest EDM Tracks on Wednesday March 11, 2015 @05:07PM (#9187307)
This is how it's done :)

Also, have you actually gone into record stores and previewed records before buying them? I may purchase this record player[1] as a way to check out records at the store, but I wasn't sure if this was a thing store owners typically allow. Any insight?

[1] http://www.amazon.com/Vestax-VES-HANDYTRAXUSBBLK-Handy-Trax-...

Re:Finish one thing today on Monday January 12, 2015 @12:47PM (#8875238)
That's procrastination :)
Re:Computers Are Not Designed for Productivity on Friday November 07, 2014 @02:13PM (#8574128)
Run everything in X11. I wish I knew of another way to run a decent tiling manager.

Older »