Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
CyberShadow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
CyberShadow
5y ago
From a security perspective, I don't think it's possible to do with the standard OS APIs. When an application makes data available in the clipboard, it's a free-for-all for every other application. The clipboard manager would
92.
▲
by
CyberShadow
5y ago
I'm using CopyQ (and SyncThing) right now. Its design limits the number of entries, and sync doesn't work very well.
93.
▲
by
CyberShadow
5y ago
Thanks for sharing! As I understood, I think many clipboard managers already allow this, or at least, CopyQ and Ditto do. The approach is to just copy all the items you need, and then press "Win+V 5" five times. 5 would paste the
94.
▲
by
CyberShadow
5y ago
I'm working on a clipboard manager, because I'm not happy with any of the ones currently available. Here are my design goals: - The system should be able to efficiently store, manipulate, and search an unlimited number of clipboar
95.
▲
by
CyberShadow
5y ago
If you mean as a shebang (#!/bin/sh -eu), I would suggest switching to using "set" instead, because the shebang will not be interpreted if the script is ran as "sh script.sh" (as opposed to ./script.sh).
96.
▲
by
CyberShadow
5y ago
That's quite a number of bad-faith assumptions in your comment, which are also incidentally wrong. > e makes it super annoying I rest my case?
97.
▲
by
CyberShadow
5y ago
> e doesn’t work for (subshell | commands) That's not an argument against enabling it. In bash, -o pipefail addresses this. > and u is inconvenient when appending to PATHs PATH should always be set. Try: env -i sh -c 'echo $
98.
▲
by
CyberShadow
5y ago
I have not tried the multiple cursors package, but regarding the problem of manipulating several lines at once with instant preview, you could look at the visual-regexp package: https://github.com/benma/visual-regexp.el
99.
▲
by
CyberShadow
5y ago
Fighting against idiomatic Emacs keybindings is an uphill battle, but the hill is not very steep. The recipe that works for me: 1. Bind the behavior you want in the global map. (global-set-key (kbd "<key-here>") #'the-a
100.
▲
by
CyberShadow
5y ago
That's very cool, but I've personally greatly enjoyed learning and programming in Emacs Lisp. Not only does its ability to immediately evaluate and hot-patch anything work very well with the way it's used in Emacs, but also i
101.
▲
by
CyberShadow
5y ago
When I was choosing the next editor to settle on and invest into, what convincingly swayed me towards Emacs was the number of reports of vim users who later moved to Emacs, vs. the number of reports of users who moved in the other direction
102.
▲
by
CyberShadow
5y ago
> For example, comparing two URLs in Java is not deterministic. Well, it does network access, so it would excluded. > For another example, iterating through a set in Python will give you the elements in a different order on 32- versus
103.
▲
by
CyberShadow
5y ago
Most programming languages are already generally deterministic. Pick any programming language. Now, remove access to I/O (except standard input and output), networking, time, random number generators, threads, OS syscalls, etc. Given a
104.
▲
by
CyberShadow
5y ago
You can use pretty much any Turing complete language to achieve this constraint, as long as its inputs and execution are deterministic. The language itself doesn't have to be purely functional.
105.
▲
by
CyberShadow
5y ago
> it would be infuriating if you had to view an ad before being able to use the subway ticketing system What about using a gas pump? https://www.reddit.com/r/assholedesign/comments/ozu1up/havin... See
106.
▲
by
CyberShadow
5y ago
No. I am not in the program nor requested access. This is my last reply in this subthread; feel free to assume the same answer for all questions along the same line. I also invite you to review the HN comment guidelines: https://
107.
▲
by
CyberShadow
5y ago
"The 76ers" is the name of a professional basketball team in the United States. (Not related to System76.)
108.
▲
by
CyberShadow
5y ago
I own zero shares of anything directly or indirectly.
109.
▲
by
CyberShadow
5y ago
I am not, and have never been a Microsoft employee. You can search online for my name / username to find my open-source contribution history, if you would like. I hope that sufficiently answers your query.
110.
▲
by
CyberShadow
5y ago
If I were to guess, it would be that the action performed here (or the basis of the code implementing this action) was intended to be done on internal Microsoft repositories that should be open-sourced.
111.
▲
by
CyberShadow
5y ago
> It works for everyone except you. The Content-Type is right there, in the header. I don't know what to tell you. It's not there. https://dump.cy.md/9b2a31fa5184397159fe42a85c197242/16404476... It is ther
112.
▲
by
CyberShadow
5y ago
> Here is an example. This Go program (a compiler) generates and serves its own website: https://NN-512.com Not a very good one - clicking the link produces a download dialog on Firefox (I'm guessing because the website
113.
▲
by
CyberShadow
5y ago
> An accident still needs to be flagged, and still needs to be corrected. Yes. Additionally, the way such actions are performed is not great because the mechanism used does not provide any way to provide feedback - if the change was done
114.
▲
by
CyberShadow
5y ago
The account which did the change has this description: > This is the open source management service account used for performing key GitHub operations on behalf of Microsoft employees and users. Combined with the nonsense README change, t
115.
▲
by
CyberShadow
5y ago
It's by design. The option calc-multiplication-has-precedence controls this behavior.
116.
▲
by
CyberShadow
5y ago
Emacs Calc (not unlike much of the rest of Emacs) is a little ... special. By default, it calculates 4/2*2 as 1, because multiplication has a higher precedence than division. https://orgmode.org/manual/Formula-synt
117.
▲
by
CyberShadow
5y ago
This related project, on the other hand, embraced it (for better or for worse): https://github.com/jzelinskie/faq
118.
▲
by
CyberShadow
5y ago
I think, except for very large volumes, automated paging is inferior to terminal scrollback. It is conditionally modal (thus conflicts with muscle memory) and you can't see previous output and the paged output at the same time (quittin
119.
▲
by
CyberShadow
5y ago
I'm finding the website much more exciting than the tool itself. Which is not a criticism of the tool - the website is just really neat!
120.
▲
by
CyberShadow
5y ago
No. Also, I tried that with youtube-dl but it doesn't work reliably (throttling still takes effect, with all but one connection simply timing out). [1] yt-dlp uses a different method than youtube-dl (I believe it uses the API used by t
More ›