News for hackers. Stuff that matters.

bed147373429

> What happens if the original folder is renamed? Then, intuitively, the pinned one get the new name. So you always know what folder is pinned.

I disagree. I would expect MY bookmark to automatically have its target destination updated (renaming a folder should trigger not invalidate pointers that point to it) while preserving the name I gave to it.

Think of the following: You program in three different languages, and they all have a project directory called "src". You want to have direct access to these directories so you pin them in the explorer. Now you have three pins that are all called "src" and I am not allowed to renamed them "C src", "C++ src" and "Rust src". I do not want to use shortcuts because these would only be available in one folder, while sth that is pinned in the explorer is always right there.

I just thought the average diablo gamer will not know how to do that or which of these hundred files will be required. I also tried statically linking but I VisualStudio kept throwing errors at me so the easiest way to make the tool accessible for non-tech people was just uploading the dlls too

Show HN: Diablo 2 runeword calculator in C++ using wxWidgets

https://github.com/downIoads/cpp_diablo2r_runewordCalculator

I have programmed this a few years ago and I use it while playing. I decided to publish it because it might be useful to others. Feel free to give feedback! I am also interested in people who have used QT and wxWidgets, because I have never really used QT and would like to know about pros and cons of QT vs wxWidgets!

( Read More... | 3 comments | 3 points | on HN )
Re:A comprehensive guide to running Llama 2 locally on Wednesday July 26, 2023 @04:42PM (#36884699)
I also wrote a small Python script that you can also use if you do not want to use Powershell to talk to your Llama model: https://downioads.github.io/posts/llama-python/
Re:A comprehensive guide to running Llama 2 locally on Wednesday July 26, 2023 @11:15AM (#36879100)
It's ok, I just followed your instructions and with that model is works well. But are you sure that this uses CUDA? My CPU utilization is at 50% while my GPU utilization is at 1% while the output is being generated..
Re:A comprehensive guide to running Llama 2 locally on Wednesday July 26, 2023 @08:35AM (#36876601)
I have a question: Last week I downloaded llama-7b-chat from meta's github directly (https://github.com/facebookresearch/llama) using the URL they sent via e-mail. As a result, I now have the model as consolidated.00.pth.

Your commands assume the model is a .bin file (so I guess there must be a way to convert the pytorch model .pth to the .bin file). How can I do this and what is the difference between the two models?

The facebook repo provides commands for using the models, these commands don't work on my windows machine: "NOTE: Redirects are currently not supported in Windows or MacOs. [W ..\torch\csrc\distributed\c10d\socket.cpp:601] [c10d] The client socket has failed to connect to ...."

The facebook repo does not describe which OS you are supposed to use, so I assumed it would work on Windows too. But then if this can work why would anyone need the ggerganov llama code? I am new to all of this and easily confused, so any help is appreciated

Re:Playing around with NFC using Python on Sunday July 09, 2023 @10:31AM (#36654740)
Also features a brief introduction into which different NFC tags exist and which ones you should use. Feel free to correct errors in the comments or share cool NFC project ideas you had or implemented!

Ask HN: How to NDEF-format Mifare Classic 1k tags (not manufactured by NXP)?

Hi everyone, I hope a Mifare Classic expert sees this post. Here is the problem: I have bought Mifare Classic 1k tags (blank) and I am able to read them using the Android App "NXP TagInfo" (full scan shows the exact memory content). The tags are blank with default passwords (FF..) for A and B. "NXP TagWriter" supports NDEF-formatting Mifare Classic tags but ONLY if they were manufactured by NXP...

( Read More... | no comments | on HN )
Re: on Wednesday July 05, 2023 @03:21PM (#36605706)
Thanks, fixed
Re: on Wednesday July 05, 2023 @08:23AM (#36599382)
Hi, thanks for this question! On leap years the code for January and February is decreased by 1. Everything else stays the same! I updated the blog and the Go code to take care of this.
Re: on Wednesday July 05, 2023 @05:21AM (#36597835)
If you know the code for year x, you can quickly calculate the code for year x-1 or x+1. If you want to be able to quickly do this for any given year you would have to know the code for every year by heart. Today, I will write a small script that generates all these year codes so that you can at least have an overview and I will update the blog post. In order to impress people you need to learn a lot of year codes, but for everday usefulness it's enough to remember this year's code.
Re: on Tuesday July 04, 2023 @08:18PM (#36594162)
All it takes it to remember 12 single-digit numbers and reading through a blog post for 5 minutes! :)