HNHacker News
TopNewBestAskShowJobs

jpe90

502 karma · joined December 14, 2020

https://jeskin.net
submissionscomments
jpe90··on OpenJourney: Midjourney, but Open Source
If you use the webui it's a single git clone and an optional file edit to set some CLI flags and that's it. You download models and move them to a directory to use them. Recently they introduced a binary release for people that are unfamiliar with git.
jpe90··on Start a fucking blog
i just migrated my blog off my vps to sourcehut pages last night, it was easy peasy

https://srht.site/quickstart

jpe90··on Ask HN: Pros and cons of thinking in public vs. in private?
Blogging has positive in that it’s been very motivating for me to complete and share a couple projects that I otherwise wouldn't have bothered with.

But it’s also humbling, because if you’re not exceptional or writing about topics that most people find interesting, you’re not going to get much of a reception.

I nuked the reddit account I used for sharing posts and I'm planning to archive my blog after I write up a couple topics but it was a worthwhile experience overall.

jpe90··on Raspberry Pi security alarm – the basics
That’s super helpful, much appreciated!
jpe90··on Raspberry Pi security alarm – the basics
Wow! This is such a thorough post!

I slapped together similar (but much less impressive) take on this theme very recently. I use VNC for remote access rather than SSH'ing into my home network directly. Do you opt to just forward a port on your router and send it to your pi's SSH port? I wasn't sure how risky that would be or what options exist for that.

Also I noticed you mentioned a water sensor at the end, I did a similar project for that as well after I had some basement water issues. I just got a couple of super cheap humidity sensors and had them take a picture of the scene and email it to me if the sensors thought they were submerged. Great minds think alike! :)

https://jeskin.net/blog/raspberry-cam-home-monitoring/

jpe90··on Reasons a Raspberry Pi Belongs in Your Network Lab
I think duct-taped solutions are still worth presenting to the world :)

I’ll definitely read your write up if you get the chance to work on it!

jpe90··on Reasons a Raspberry Pi Belongs in Your Network Lab
You run a git server on a public facing machine:

https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protoco...

I run mine on the linode hosting my blog. The web interface is generated by stagit.

https://jeskin.net/blog/self-hosting-git-with-stagit/

jpe90··on Reasons a Raspberry Pi Belongs in Your Network Lab
If anyone is looking for projects/uses for raspberry pis, they are great for DIY home monitoring:

https://jeskin.net/blog/raspberry-cam-home-monitoring/

jpe90··on Nuklear – A single-header ANSI C immediate mode cross-platform GUI library
I used Nuklear for a little demo project I put together to wrap my head around matrix transforms in graphics programming. It's very easy to use and pleasant to work with!

https://github.com/jpe90/model-view-projection

jpe90··on Learning Rust with ChatGPT, Copilot and Advent of Code
I’ve been using copilot for advent of code as well, as well as in regular day to day coding. I have less luck with comment-based coding than the author, but in my usage it’s been handy for normal autocomplete.

There’s been a number of instances where I would write a comment describing a simple operation and it would struggle or generate a lot of noise, but if I just start writing an implementation it would give me a good suggestion pretty quickly. I guess the extra context helped.

I was disappointed that it wasn’t more useful as a discovery tool- when I’m not knowledgeable about a language or framework, it can be hard to judge whether its suggestions are subtly wrong. After a while, I started getting a sense for when suggestions are likely to be valuable, which is generally when I have a concrete idea of what I want and what it should look like. When i’m doing more exploratory development I often just ignore the completion. Using ChatGPT instead for learning new stuff is a great idea and i’ll definitely be trying that.

Something I wasn't expecting about copilot is that it actually has been giving me pretty good completions for emacs lisp. I think it’s going to be a very valuable tool in the long run and I recommend giving it a second thought if you’ve dismissed its utility.

jpe90··on Emacs 29 is nigh
You get plenty of, er, new old contributors as well! As long as the projects are interesting and compelling, people of all ages will keep comin' :)
jpe90··on Emacs 29 is nigh
Do you even get no stuttering with company-minimum-prefix-length set to 1 and company-idle-delay 0? I tried building --with-json, and `(json-available-p)` returns `t`, but it's still super stuttery.
jpe90··on Emacs 29 is nigh
Oh what a great idea! I hope this can get mainlined someday(perhaps behind a config option) since Eglot should benefit from that approach as well!
jpe90··on Emacs 29 is nigh
Looks like I’ve got that on my machine, and I built Emacs —with-json this time. Performance is still better but it’s still stuttery.

I guess it’s related to either the json parsing happening on the main thread and/or the LSP servers using company-capf which I think is a synchronous backend?

It seems like coc.nvim, lsp bridge, kak-lsp, and other editor solution’s i’ve come across all opt to use sidecar processes that manage lsp. Perhaps Elisp isn’t the right tool for that backend processing.

jpe90··on Emacs 29 is nigh
Oh I see, I build from source but I’ve been using the same configure options forever (just native comp and rename the ctags binary). I’ll look them over again.
jpe90··on Emacs 29 is nigh
If you are familiar with python I totally believe that. I find LSP to be the most useful in languages that I rarely use, of which Python is one. That way I can constantly, immediately and instantly see that I am doing it wrong.
jpe90··on Emacs 29 is nigh
vim's stewardship is a lot more conservative but neovim has gotten a fair amount of press with recent releases
jpe90··on Emacs 29 is nigh
LSP is so much better than alternatives to work with that I feel compelled to make it work and work well. Even for python, running pyright pays dividends for me. But luckily lsp-bridge looks promising so I don't feel like I need to jump ship for VS code quite yet.
jpe90··on Emacs 29 is nigh
I'm also on an AMD 3700X, 32G of RAM, with Emacs native compilation branch. I'm totally unaware of elisp vs native JSON parsing though, I was just using stock Eglot that came bundled with Emacs.
jpe90··on Emacs 29 is nigh
Emacs can and should be a good choice for programming though!
jpe90··on Emacs 29 is nigh
When I wrote that comment, in the depths of my soul, I knew someone would give a solution that needs me to invest more time in figuring out how to incorporate it into my oversized configuration.

But seriously, thank you, that is the performance I was looking for.

jpe90··on Emacs 29 is nigh
I really want to use Emacs but I can't get Company + any LSP to come close to vs code or coc.nvim. When I configure company to trigger instantly on a single keystroke, Emacs completely locks up pretty much every time I hit a key.
jpe90··on Emacs: Feature/tree-sitter merged into master
Has anyone been able to replicate vscode/coc.nvim’s instant lsp autocompletion on each keystroke with emacs when eglot/company are enabled? I tried configuring company to lower the idle delay to 0 and set the minimum prefix to 0, but the gui locks up on every keystroke
jpe90··on Ask HN: What colorscheme are you using in your code editor?
default
jpe90··on RIPE meetings: IP addresses as spoils of war
Personal webpages and blogs still very much exist, though. I started one recently and I'm positive it gets more traffic than it would if I started it 20 years ago. I don't think censorship is the issue so much as the fact that many more people hopped on the internet and are more interested in social media than small blogs, even though they coexist.
jpe90··on Zig Is Self-Hosted Now, What's Next?
Wow, that was incredibly helpful. I could read writeups of straightforward code all day. I also love how his ethos extends to the design of the website as well. Thanks so much for sharing.
jpe90··on Zig Is Self-Hosted Now, What's Next?
when i have an idea for a program i want to build, i struggle to express it in terms of structs, pointers, and C/zig’s language features. but with C, i can often find similar programs and find good examples of how to do what i want.

for example right now i’m working on an SDL/opengl app with an immediate mode gui, and there’s enough code in the wild for me to pour over to understand how and why they structure their programs

but when i started with zig i would often get stuck, unable to really understand the c code i was interfacing with and struggling with the language basics a bit

jpe90··on Zig Is Self-Hosted Now, What's Next?
the source code was very well laid put from what i remember, and tests were particularly helpful for understanding how to use library code. i just didn’t feel like i quite had the knowledge to architect low level code in general, you must have picked up on that naturally
jpe90··on Zig Is Self-Hosted Now, What's Next?
I started trying to learn Zig as my first non-GC language but switched over to C because I had trouble finding learning resources for Zig, while there are plenty of books and C code written to ISO standards to learn from. It felt like a language for people already proficient in C/C++ and systems programming.. but props to you for proving that wrong!
jpe90··on Codeberg: A GitHub alternative from Europe
The intent was clear from the context, no worries!
← PreviousPage 2 of 5Next →