Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
JoshMcguigan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
61.
▲
by
JoshMcguigan
7y ago
I know the author has other goals (a desire to learn/practice kubernetes, and keep host their blog the same way as the other services they manage), but I'd like to point out here that if your end goal is a blog which auto-deploys
62.
▲
by
JoshMcguigan
7y ago
Hey HN, author here. Inspired by this great strange loop talk by Alan Shreve [0], which discusses a non-standard use for code coverage reports, I wrote a blog post about using kcov [1] and pycobertura [2] as a tool to help start understandi
63.
▲
Coverage Reports as a Code Reading Tool
(joshmcguigan.com)
3 points
by
JoshMcguigan
7y ago
|
1 comments
64.
▲
by
JoshMcguigan
7y ago
This was really neat, but I wish the author went into similar detail for the auto white balance step.
65.
▲
by
JoshMcguigan
7y ago
I may have overlooked some things, but I made a quick PR[0] just to see what this would look like using a Vec<u8>. Feel free to close if you prefer the original. [0]: https://github.com/tomarrell/rasp-ws2812b/
66.
▲
by
JoshMcguigan
7y ago
Thanks for sharing. One question about the code, why does the LedPanel struct use a String as a buffer rather than using a Vec<u8>? edit - I think I see the reason now. Using a string made it easy to print the u8 as a string of bits,
67.
▲
by
JoshMcguigan
7y ago
The article describes the downtime as being caused by a "severe BGP error Verizon made".
68.
▲
by
JoshMcguigan
7y ago
These [0] two [1] sections of the GNU Bash man pages were very useful. I also found that this tutorial [2] provided a useful perspective. I spent a small amount of time looking through the bash-completion [3] project as well as the git bash
69.
▲
by
JoshMcguigan
7y ago
I did come across this work by clap while doing research for this post. The major difference in strategy is that clap is generating completion scripts in Bash, while shell_completion is a library which helps writing completion scripts in Ru
70.
▲
by
JoshMcguigan
7y ago
Your characterizations are spot on. One major potential improvement for the shell_completion crate is to provide a higher level API for use by completion script writers. This will of course make writing completion scripts easier, but it wil
71.
▲
by
JoshMcguigan
7y ago
It is not possible for a shell to know how to perform completions for every binary on a users machine. Shell completion scripts define the auto-completion for each specific binary, so for autocomplete to work (well) it needs to be supported
72.
▲
by
JoshMcguigan
7y ago
Author here. This blog post is the result of my puzzling over how auto-complete works in the shell, and subsequently whether shell completion scripts could be written in Rust. It also introduces a new Rust crate, shell_completion[0], which
73.
▲
Shell Completions in Rust
(joshmcguigan.com)
150 points
by
JoshMcguigan
7y ago
|
20 comments
74.
▲
by
JoshMcguigan
8y ago
You can listen to the DHCP traffic caused by the button press (the button is sleeping until pressed, so every press causes DHCP traffic) and use that to trigger any action you'd like. I wrote a simple utility[0] to do just that. The lo
75.
▲
by
JoshMcguigan
8y ago
There is work being done now to improve this situation for clippy. https://github.com/rust-lang/rust-clippy/issues/2604
76.
▲
by
JoshMcguigan
8y ago
As I was thinking about an improved user interface for the shell, it seemed like at some point you'd hit the limit of what is reasonable given the current split implementation between terminal emulator and shell. Do you think you'
77.
▲
by
JoshMcguigan
8y ago
Thanks for sharing, your posts are very well written. I really like the idea of syntax highlighting before the user presses enter. Any reason you are writing your own posix parser and readline implementation, rather than using existing Rust
78.
▲
by
JoshMcguigan
8y ago
I'm not confident enough to say this for sure, but I think you are off base. I created a demo in the Rust playground [0] which shows that there is no implicit environment variable expansion. Also, the source for `std::process:Command`
79.
▲
by
JoshMcguigan
8y ago
I'd second the recommendation for rustyline. I played around with it a bit while reviewing the rush[0] project, another shell implemented in Rust for learning purposes. [0]: https://github.com/psinghal20/rush
80.
▲
by
JoshMcguigan
8y ago
I've linked my GitHub profile below. I really enjoy social coding, so feel free to open pull requests or issues on any of my repos. https://github.com/JoshMcguigan
81.
▲
by
JoshMcguigan
8y ago
Hi all, author here. I'm not sure of the rules around self promotion so I want to point out that I didn't submit this, but I'm happy to see that others are enjoying it. I wrote this blog post to document my process of buildin
82.
▲
by
JoshMcguigan
8y ago
Hi all, author here. I'm a long time hackernews lurker but I registered today when I saw traffic to a recent blog post I wrote coming from here. I wrote this blog post to document my process of building a simple shell using Rust. I lea