News for hackers. Stuff that matters.

rement

Re:Stop Using Ollama on Thursday April 16, 2026 @08:23AM (#47791961)
I switched to using LlamaBarn to manage local models on macOS.

https://github.com/ggml-org/llamabarn

No, Chimpanzees also have tribes and fight over territory

https://en.wikipedia.org/wiki/Gombe_Chimpanzee_War

Re:The Beauty of Having a Pi-Hole on Monday May 05, 2025 @01:27PM (#43897360)
Be aware that if you run it on the internet other people will find it. I had one open to the web for a bit and was a bit surprised how many systems started making requests to it.
Re:Hacking misconfigured AWS S3 buckets: A complete guide on Tuesday September 10, 2024 @08:13AM (#41499959)
I suspect they are using the 50-75 character rule for the text [0]. It makes the page look empty with so much white space. For me 100 characters is a better line length as I prefer to scan text on the web over reading it and the page doesn't look as empty.

[0] https://en.wikipedia.org/wiki/Line_length#Electronic_text

Re:Organic Maps on Friday September 01, 2023 @10:04AM (#37351000)
Sounds like you have the opportunity to make the map better for yourself and everyone else. The data comes from Open Street Map which is community edited and maintained https://www.openstreetmap.org
Re:Debian Celebrates 30 Years on Thursday August 17, 2023 @09:11AM (#37161014)
Awesome little project! I went through the US state flags and found that you are using the old Mississippi flag.

https://en.wikipedia.org/wiki/Flag_of_Mississippi

Re:GitHub Broken Download URLs on Sunday November 28, 2021 @08:42AM (#29368827)
Fun ASCII gotcha: [A-z] includes [ ] \ ^ _ and `
Re:Making Emacs Popular Again (2020) on Thursday November 04, 2021 @02:34PM (#29110891)
Nvim has some plugins and features that do some of the things you might be interested in. Telescope[0][1] which is a fuzzy finder for anything you can think of (files, symbols, color themes, etc.[2]). The LSP and Treesitter stuff in nvim 0.5+ is also pretty cool. If you want to just try it without much work the Lunarvim[3] project comes with sane defaults and included plugins (including Telescope).

Lua as the default configuration language makes things simple to configure as well.

Having said all that...if someone told me [insert-text-editor] had everything I would want I would probably check it out and go home to vim (but I do enjoy learning about new stuff and features).

[0] https://github.com/nvim-telescope/telescope.nvim

[1] https://www.youtube.com/watch?v=65AVwHZflsU -- demo video

[2] https://github.com/nvim-telescope/telescope.nvim#vim-pickers

[3] https://www.lunarvim.org/

Apollo: Missions to the Moon[0]

There is no narrator for this documentary. All of the "narration" is from recorded tv, radio, and home movies from the time. It is really inspiring to watch humans overcome Earth's gravity to get to the Moon as it happened over 50 years ago.

[0] https://www.natgeotv.com/int/apollo-missions-to-the-moon

Re:I loved jQuery, and still do (2019) on Tuesday June 29, 2021 @12:22PM (#27678089)
The HN js actually does just this. The file isn't very long but has some great functions at the top

https://news.ycombinator.com/hn.js

Re:I loved jQuery, and still do (2019) on Tuesday June 29, 2021 @12:10PM (#27677931)
You can define your own `$` function. This way you can have the clean code without the entire jQuery library

    function $(arg) {
        if (arg.charAt(0) == "#") {
            // HTML spec does not support ids to start with numbers [0]
            // (you may not need this conditional on your website)
            return document.getElementById(arg.slice(1))
        }
        return document.querySelector(arg)
    }
Using this function you can select your comment with

    $('#27677234')
jQuery does add many extra features but if clean code is the only thing you are after there are other options.

[0] https://www.w3.org/TR/html4/types.html#type-id

Re:Bug in Notepad Involving Asterisk in Title Bar on Tuesday April 20, 2021 @11:30AM (#26875983)
I believe this is what is know as a "nerd snipe" https://xkcd.com/356/
Re:Deliveroo April Fools' joke backfires in France on Friday April 02, 2021 @04:47PM (#26675798)
I'm pretty sure this is how many of those scam refund emails start...
More a demo of how GitLab pipelines and terraform work together. In this case the app was deployed to AWS.
In this case I think it is more an ecosystem of build and deploy scripts that use the tools GitLab already provides (gitlab pipelines, terraform, etc.). GitLab is not providing the server space, instead you provide credentials to any supported cloud space and GitLab pipelines deploy the application.
Re:Princeton astrophysicists re-imagine world map on Saturday February 20, 2021 @04:15PM (#26208055)
I really like the Fuller/Dymaxion map for this. It limits the distortion and you can "rebuild" the earth by folding the map back into an Icosahedron. (It is displayed in the article)
Re:Princeton astrophysicists re-imagine world map on Saturday February 20, 2021 @04:08PM (#26207996)
Map projections are tools that all have pros and cons. I do not really see how pasting two Equidistant Azimuthal Projections on both sides of paper "re-imagines" the world map.

The choice of having the focus of this map on the poles (the two most uninhabitable places on earth) is interesting. These two points are the least distorted on the map.

Here is an observable that lets you drag around landmasses in different projections [https://observablehq.com/@fil/synchronized-projections]

Re:Ask HN: Advice for finding an entry-level remote job? on Wednesday February 17, 2021 @06:26PM (#26173261)
Fixing mistakes, typos, and errors are good things. Many articles and people suggest fixing typos in documentation for your first open source contributions. I would be interested if I found a new GitHub account with multiple accepted/pending PRs fixing things.
Re:IKEA to discontinue its annual catalog, ending a 70-year run on Wednesday February 17, 2021 @10:57AM (#26167818)
Reminds me of when I was in elementary school and we would have "phone book" drives. The class that collected the most phone books to be recycled would get some kind of prize. I remember walking around my neighborhood with a wagon collecting phone books. Good times.
Re:Pattern matching accepted for Python on Wednesday February 10, 2021 @09:28AM (#26089550)
I haven't but that is awesome. That is a much better syntax than just outputting data with `print(x, y)` and remembering which came first (when debugging of course).
Re:Pattern matching accepted for Python on Tuesday February 09, 2021 @04:46PM (#26082772)
I have never seen f-strings! It's my lucky day! https://xkcd.com/1053/

Time to refactor the project I am currently working on that is loaded with `str.format()`

Re:No support Linux hosting shutting down from hack on Tuesday February 09, 2021 @01:16PM (#26080762)
duckduckgo has a !bang for hacker news `sudo !hn` redirects to hn.algolia.com with the thread at the top of the list
Re:Bluetooth Trackball Mark II on Wednesday February 03, 2021 @12:46PM (#26016506)
I don't know what part of the world you are from but my local library has a 3D printer you can use for free. All you need is a library card in good standing and to take a 1 hour orientation. After that you just need to reserve the printer for the day (no overnight printing).
Hosting it yourself does not give you any extra features. You still need to pay (the same price) for the premium features. The only benefit to self hosting is you have complete control of your data (which is important to some companies)
Re:Ask HN: Show me your half baked project on Saturday January 09, 2021 @10:31AM (#25701115)
This is a project I built to help with my job search. It pulls Stack Overflow job listings (using the RSS feeds) and maps them based on the city. It only supports cities in the United States or fully remote companies at the moment. It's functional but definitely half baked.

Main tech: Rails and Leaflet.js

https://railsmap.tuckerchapman.com/

edit: I would love some feature suggestions if anybody has any

Re:U.S. Capitol Locked Down Amid Escalating Protests on Wednesday January 06, 2021 @04:58PM (#25663170)
Not only that but the "call to go home" will be limited because it can't be retweeted or liked.

Older »