Better HN
topnewbestaskshowjobs
Log inSign up

weiming

1,099 karma · joined May 8, 2018 (8y ago) · 246 submissions

未名
Submissions

comment 6y ago · link · parent

There is also the AWS CDK (https://aws.amazon.com/cdk/) which is essentially lets you use your favorite language like Typescript or Python to generate CloudFormation, with an experience similar to Terraform. We've been experimenting with instead of TF, hoping it's here to stay.

comment 6y ago · link · parent

A good friend actually used June Advisors Group mentioned in the article a couple of years ago. The firm (really a sole attorney) sounded very helpful and got his business set up with a residence card pretty easily. IIRC it took a couple of months end-to-end.

comment 6y ago · link · parent

"Peter Thiel sells most of remaining Facebook stake (2017)"

https://www.reuters.com/article/us-facebook-stake/peter-thie...

comment 6y ago · link · parent

What me and my family talked about today is that, as immigrants, we are so sad how much the "native born" people of the US hate their own country. They seem to never waste an opportunity to remind others of their disdain and it is more and more visible these days e.g. in big news media or on Twitter.

Makes me sad and I hope this can change.

comment 6y ago · link · parent

Nitpick but I hope the overtly (about 10px) rounded corners of running app windows aren't there to stay. Looks heavy/dated.

comment 6y ago · link · parent

Curious question as I am not a compiler expert.

I have to do front-end iOS work from time to time and it's surprising how bad auto-complete can be in Xcode with Swift even after all these years: still randomly sluggish, randomly stops working inside closures including completely losing syntax highlighting inside the closure, and even Cmd+clicking to see the definition is a hit-or-miss as it sometimes opens up a blank editor and just spins. I would have thought that Swift having a strict type system would have made the IDE experience better, not worse. Don't know if the grammar is too complex or if it is the bridging with ObjC stuff or something else that made it difficult to build a robust solution. Can anyone shed light on this?

My points of reference are rust-analyzer, or just VSCode with Typescript, both very snappy although of course the languages are very different. If anything I'd expect Swift to be closer to Rust experience-wise since they both have pretty strict grammars.

comment 6y ago · link · parent

Twitter has been indispensable for on-the-street/real-time video reporting (just search for city name). Even reached normally quiet Portland.

comment 6y ago · link · parent

ﱞ

comment 6y ago · link · parent

And so I use create-react-app anytime I need to start a front-end JS/TS project, even if I am not using React at all. Basically avoiding dealing with troubleshooting the soup of build time dependencies and mismatching package versions, which unfortunately comes with the modern JS (or node) ecosystem.

comment 6y ago · link · parent

Anecdotally/to add a counterpoint, my experience using RA over the last few weeks has been very very positive.

comment 6y ago · link · parent

Except in this case it's not the government, but private corporations taking some kind of political stance.

Google in particular has been very "active," not to forget also: https://www.businessinsider.com/youtube-will-ban-anything-ag... ("video that 'goes against' WHO guidance on the pandemic will be blocked")

comment 6y ago · link · parent

You can also overlay your own text in Preview, ignoring the PDF's own textbox.

comment 6y ago · link · parent

HSV always seemed particularly poorly understood in the society to me, e.g. with many people getting it as children due to careless parents/extended family, and the benign branding of "cold sore" as if it is related to a cold. Given that the vaccine for 1 or 2 has proved to be extremely challenging, always wondered if the public simply being more well-informed on this topic could help reduce the incidence in the population.

Asymptomatic shedding of HSV has to be considered, too. "Transmission commonly occurs from contact with an infected partner who does not have visible lesions and who may not know that he or she is infected. In persons with asymptomatic HSV-2 infections, genital HSV shedding occurs on 10.2% of days, compared to 20.1% of days among those with symptomatic infections." (https://www.cdc.gov/std/herpes/stdfact-herpes-detailed.htm)

comment 6y ago · link · parent

I've had good luck with Hellofax (YC company) for sending a fax from time to time. Not literally using your phone, however.

comment 6y ago · link · parent

TIL Rust is also sponsored by Amazon. (https://aws.amazon.com/blogs/opensource/aws-sponsorship-of-t...)

comment 6y ago · link · parent

Now I'd like some native Rust bindings for Cocoa/UIKit, perhaps as an "official"/higher-level alternative to https://crates.io/crates/objc. There are some crates already attempting to replicate all of Apple frameworks, but they are community-supported/require a bit of `unsafe`.

comment 6y ago · link · parent

I also had trouble getting VSCode workspaces to work (i.e. multiple project roots.)

Also at times, when adding a new crate dependency to Cargo.toml or installing a rust-analyzer update, it seems necessary to reopen the VSCode project (not restart VSCode itself) to get it to work again.

This said RA has been indispensable over the last few months, thank you to the authors!

comment 6y ago · link · parent

I've been using https://docs.rs/assert_cmd/ for this. (Helps spawn the binary and assert output.)

comment 6y ago · link · parent

Yep. AWS commands take the --profile argument to choose one of the items from the credentials file.
12345
9