Readit News logoReadit News
MitchellCash commented on Claude's API now supports CORS requests, enabling client-side applications   simonwillison.net/2024/Au... · Posted by u/simonw
MeetingsBrowser · a year ago
How are people using the Claude API as individuals?

Officially, individuals are not allowed to use the API.

https://support.anthropic.com/en/articles/8987200-can-i-use-...

MitchellCash · a year ago
I’m going to out myself, but you just do it anyway…
MitchellCash commented on Mullvad's campaign against EU chat control   mullvad.net/en/chatcontro... · Posted by u/cristiioan
why_at · 3 years ago
Does anybody understand the ad that is just a long string of numbers? They give a translation but it still doesn't make sense to me.

>9781529035698

>1

>12*

>*We placed this ad here for you to start practicing private communication in a public setting. This could be good to know if the European Commission's chat control law becomes reality.

What's even weirder is the numbers in the translation are different from the original.

MitchellCash · 3 years ago
It's the ISBN of Edward Snowden's book "Permanent Record: A Memoir of a Reluctant Whistleblower". The numbers in the poster differ because it's the ISBN of the Swedish translated copy of the book.
MitchellCash commented on PR that converts the TypeScript repo from namespaces to modules   github.com/microsoft/Type... · Posted by u/Kyza
MitchellCash · 3 years ago
> a change in the indentation used in our bundle files (4 spaces -> 2 spaces)

I find it interesting that one of the reasons given for the reduction in package size is due to such a simple indentation change from 4 spaces to 2 spaces.

Not interesting that 2 bytes are less than 4 bytes, rather, TypeScript is a large project and it would be interesting to know how much size was saved from this one specific change? Seems like a trivial change, so why not do it sooner? And assuming readability isn't required in the bundle output why not bundle with no indentation at all and put everything on a single line, would this not be even smaller again?

MitchellCash commented on Ask HN: Has anyone implemented Cloudflare Turnstile (free CAPTCHA alternative)?    · Posted by u/repeek
MitchellCash · 3 years ago
I replaced my companies Google reCAPTCHA validation with Turnstile and so far the implementation experience has been fine. Not so different from the Google implementation and no major issues I have come across thus far.

In terms of how it actually performs, it’s only been deployed in staging and a limited user preview version of the site so far, so it’s yet to experience much of the bad traffic or edge cases that might hit the production site.

MitchellCash commented on Why do cats love catnip?   oa.mg/blog/why-do-cats-lo... · Posted by u/sgfgross
bigmattystyles · 3 years ago
Sometimes I'm in a rush and don't shower out of the lap pool, I physically have to keep my cat away from chlorinated items. She comes up to me and will just start chewing on my chlorinated hair, it's crazy. FWIW, she couldn't care less about catnip.
MitchellCash · 3 years ago
As a child my cat would favour drinking water from our chlorinated pool rather than her water bowl. Interesting to read another anecdote about cats and chlorine. They say curiosity killed the cat, but maybe I’ll take the gamble and see if I can find an answer as to why!
MitchellCash commented on How the TypeScript Compiler Compiles   huy.rocks/everyday/04-01-... · Posted by u/knlam
LewisVerstappen · 3 years ago
Love the illustrations. How did you make them?
MitchellCash · 3 years ago
Not the author, but they look like they’re from Balsamiq.

I haven’t used it for a while, but I remember Balsamiq being a great tool, especially for quick low-fi UI wireframing.

https://balsamiq.com

MitchellCash commented on Cross-Compiling Rust for RISC-V   danielmangum.com/posts/ri... · Posted by u/hasheddan
unwind · 3 years ago
This looks very thorough, nice!

I haven't (badly) used Rust in over a year, but this was confusing:

x86_64-unknown-linux-gnu and other machine type identifiers are referred to as target triples.

Isn't that four components, i.e a quad? What am I missing?

MitchellCash · 3 years ago
The third field of the triplet is for the operating system identifier [1] which can be expressed as two fields in the form of `<sys>-<abi>` [2] as well as just `<sys>`, when applicable. The LLVM docs also refer to the second part of the operating system identifier as the "environment type" [3].

Examples of allowed operating system identifiers could be `freebsd`, `linux-gnu` or `linux-android`. So, while it seems like four components, the last two seem to get combined to refer to a single "operating system identifier".

I'm no expert here, so corrections welcome, I was just curious from your comment and thought I'd share what I had found.

[1] https://wiki.osdev.org/Target_Triplet

[2] https://clang.llvm.org/docs/CrossCompilation.html#target-tri...

[3] https://llvm.org/doxygen/classllvm_1_1Triple.html

MitchellCash commented on Pull Request File Tree Feedback   github.com/github/feedbac... · Posted by u/isbadawi
petepete · 4 years ago
For the stuff I work on I prefer the big diffs to be hidden. It's nearly always yarn.lock and I have no desire to see that monstrosity in all its glory.
MitchellCash · 4 years ago
I think we can get the best of both worlds by hiding lock files by default and always showing any actual code file diffs. Performance may be a factor for very large diffs, but this would actually be my preference to how the default behaviour would work as I agree with you and the parent post.
MitchellCash commented on Ask HN: How do you securely self-host a server?    · Posted by u/QuikAccount
MitchellCash · 4 years ago
I prefer to run Ubuntu machines and at least in terms of provisioning a new secure server I built an Ansible playbook I called 'ANU' (as in A New Ubuntu). I'd expand to other distros, but then I'd have to change the name!

https://github.com/MitchellCash/ansible-anu

It is based on the DevSec OS/SSH hardening playbooks, but I lean closer towards ease-of-use over security where I think it makes sense. For example, I disable forced password rotation and I keep the default umask value of '022' instead of the more secure '027'.

When I come across something the upstream playbooks change that "gets in my way", I will disable it if the security trade off makes sense for me. I'm not running highly sensitive systems, so these trade-offs make sense for me, and maybe they will for you as well!

In terms of ongoing security upkeep, I run the usual `apt update && apt dist-upgrade` when I can, but I’ll be keeping my eye on this thread for additional advice.

MitchellCash commented on Ask HN: Do you donate money to open source?    · Posted by u/reginold
MitchellCash · 4 years ago
Yes, to both Vue and Nuxt via Open Collective. I use both tools so I like to give back to ensure work continues. I also like the idea of backing the 2nd horse in the race, so to speak, to keep competition active. A lot of backing and money is already behind React and its ecosystem, so putting my money towards Vue development feels like a win for me as well as potentially keeping the other frameworks and tools innovative.

u/MitchellCash

KarmaCake day76August 16, 2016
About
[ my public key: https://keybase.io/mitchellcash; my proof: https://keybase.io/mitchellcash/sigs/PX5OzxkSr8RZsFZxwWJMVnOwN4dU7d_hqNWRm9So1KY ]
View Original