Andy
@Andy@programming.dev
- Comment on Tool to manage CLI tools 11 months ago:
Great! If you get a chance, I’d be interested to hear about your rtx complaints.
- Comment on Tool to manage CLI tools 11 months ago:
I’m not who you asked, and not a user of pkgx, but one of the reasons I prefer rtx (which supports asdf plugins) to asdf is that by default it doesn’t use shims, but updates the PATH instead.
So for example, running
which python
will show me a clearly versioned python executable path, rather than a mysterious shim that represents a different realpath at different times. - Comment on Waveterm 11 months ago:
No Zsh support for now, and maybe no user fonts?
- Comment on Community Programming stuck ? 11 months ago:
Well I’m not experiencing the bug, so can’t provide proper information. If you are, it would be helpful to report it.
- Comment on Show me a better text format for serializing 11 months ago:
Ah, well I love that policy (types being in code, not configs). FWIW I sometimes use it as a hand-edited document, with a small type-specifying file, to generate json/yaml/toml for other programs to load.
- Comment on Show me a better text format for serializing 11 months ago:
Ever tried NestedText? It’s like basic YAML but everything is a string (types are up to the code that ingests it), and you never ever need to escape a character.
- Comment on Monaspace - Microsoft presents a new font family for code 11 months ago:
- Comment on Which language you wish would really grow and reach mainstream adoption? 1 year ago:
I mentioned it in a reply but it deserves its own top-level answer.
- Comment on Which language you wish would really grow and reach mainstream adoption? 1 year ago:
Sorry I don’t know how to kbin yet. Maybe the link provided by the bot that replied to me is better?
Are there any concatenative/stack/Factor kbin magazines you know of?
- Comment on Which language you wish would really grow and reach mainstream adoption? 1 year ago:
There are some concatenative-related discord links in the sidebar of programming.dev/c/concatenative you may or may not be able to stand.
Anyway answering the main post: Factor (stack/concatenative), Nim, Roc, Zsh
- Comment on What non-IDE tekst editor do you use? 1 year ago:
- Sublime Text
- micro
- less + highlight/rich-cli/bat
- Comment on What is your favorite programming language? 1 year ago:
The ones I can get things done with:
- Python
- Zsh
My current obsession:
- Factor
Honorable mentions:
- Nim
- Roc
- Comment on Microsoft's mobile keyboard app SwiftKey gains new AI-powered features | TechCrunch 1 year ago:
Your example was probably not a real case, but I checked with my swiftkey and after “Roman” it suggested “reigns” “catholic” and “Empire”
- Comment on I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice? 1 year ago:
I meant to communicate that the Redirector addon uses the given pattern to see if the entire URL string matches, not part of it. So the malicious URL does not match.
I’m wondering if there’s a real URL for which the Redirector approach will not work.
- Comment on I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice? 1 year ago:
I’m not trying to be combative, I’m trying to understand. I’d like to see the failure in action so I can appreciate and pursue the proposed solution.
But when I added the community bit to the first URL, the browser resolved it and stripped the credentials, so the resulting URL matched. But the example credentials weren’t real so it’s not a great test; if there’s an real example I can test, please share it. Though I don’t see why I’d auth to an instance just to view it from a different instance.
When I added the community bit to the second URL, it was not a match, as it shouldn’t be. The pattern must match the entire URL.
- Comment on I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice? 1 year ago:
user:pw@lemdro.id:443 is a valid url to lemdro.id and should match but will not
Well that one:
- technically shouldn’t match, because it’s not a community URL
- is not the form I expect and want to be using for this case
- may actually work (if it were a real community link, which again, it’s not), because after authentication I think the browser strips the credentials
maliciouswebsite.to/?q=http://lemdro.id will match but should not
No, it does not match.
AFAICT, this solution is working properly, but if you can find a URL that breaks it, please let me know.
- Comment on I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice? 1 year ago:
Can you provide an example URL that breaks this solution?
- Comment on I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice? 1 year ago:
I just posted this on the post you linked, but yeah I am hardcoding a list of instances into my solution. Here’s my comment, copied:
I’m using the Firefox addon Redirector, and one of my rules there redirects community links using regex. I keep adding to the pattern as I encounter more instances. Currently it’s:
Pattern: https://(lemdro\.id|lemmy\.run|beehaw\.org|lemmy\.ml|sh\.itjust\.works|lemmy\.fmhy\.ml|lemmy\.dbzer0\.com|lemmy\.world|sopuli\.xyz|lemmy\.kde\.social|lemmygrad\.ml|mander\.xyz|lemmy\.ca|zerobytes\.monster)/c/(.*)
Redirect to: https://programming.dev/c/$2@$1
- Comment on Whatsapp has begun working on support for third party chats (Telegram/Signal) 1 year ago:
Do you know why it wasn’t deemed a gatekeeper?
- Comment on NYC police have spent millions on a tech company that claims it can use AI to monitor social media and predict future criminals 1 year ago:
Absolutely unaccountable. Is that different where you are?
- Comment on Whatsapp has begun working on support for third party chats (Telegram/Signal) 1 year ago:
Does the law apply to Telegram the same way? If not, why not?
- Comment on Lawnchair alternative? 1 year ago:
I don’t know what features you’re after, but I like Niagara.
- Submitted 1 year ago to linux@programming.dev | 1 comment
- Comment on What is the best file format for configuration file? 1 year ago:
It’s like yaml but simple, consistent, untyped, and you never need to escape any characters, ever.
Types and validation aren’t going to be great unless they’re in the actual code anyway.
- Comment on What is the best file format for configuration file? 1 year ago:
It’s like yaml but simple, consistent, untyped, and you never need to escape any characters, ever.
Types and validation aren’t going to be great unless they’re in the actual code anyway.
- Comment on Announcing August! An Emmet-like language that produces JSON, TOML, or YAML, written in Rust 1 year ago:
I wanted to try using yamlpath (
yaml-set
in particular) to recreate the first example, even though the usage model doesn’t quite match up. It’s a bit tedious because I don’t think you can do unrelated replacements in a single command:$ <<<'{}' yaml-set -g ignored.hello -a world | yaml-set -g tabwidth -a 2 -F dquote | yaml-set -g trailingComma -a all | yaml-set -g singleQuote -a true -F dquote | yaml-set -g semi -a true -F dquote | yaml-set -g printwidth -a 120 -F dquote | yaml-get -p .
Trying to make it neater with Zsh and (forbidden) use of
eval
:$ reps=(ignored.hello world tabwidth 2 trailingComma all singleQuote true semi true printwidth 120) cmd=() $ for k v ( ${(kv)reps} ) cmd+=(yaml-set -g $k -a $v -F dquote \|) $ <<<'{}' eval $cmd yaml-get -p .
- Comment on How do you manage your dotfiles? 1 year ago:
I’m surprised it’s not already mentioned in these comments: yadm.io