Better HN
topnewbestaskshowjobs
Log inSign up

css

4,161 karma · joined Jan 22, 2016 (10y ago) · 497 submissions

https://chrissardegna.com
Submissions

comment 5y ago · link · parent

> Whitespace is needed between two tokens only if their concatenation could otherwise be interpreted as a different token (e.g., ab is one token, but a b is two tokens).

https://docs.python.org/3/reference/lexical_analysis.html#wh...

comment 5y ago · link · parent

CD Projekt's GoG client has a feature where users can write Python extensions [0] for third party account integrations. To enable this, they ship an entire Python interpreter alongside the app binary [1]. I guess this kind of makes sense, it is way easier than having users manage their own `venv`s and other Python environment stuff. Packaging Python apps for distribution outside of a Python development context is quite pesky.

[0]: https://github.com/gogcom/galaxy-integrations-python-api

[1]: https://support.gog.com/hc/en-us/articles/360024812473-GOG-G...

comment 5y ago · link · parent

Now I am unable to connect at all:

    ~# wget https://developers.facebook.com/status/dashboard/
    Connecting to developers.facebook.com (157.240.206.16:443)
    wget: can't connect to remote host (157.240.206.16): Operation timed out

comment 5y ago · link · parent

It loads fine for me and shows no downtime or incidents. It even says "Facebook Platform is Healthy"

comment 5y ago · link · parent

Thanks! Sometimes I worry that the text animation is too slow, but I think its a good balance currently.

comment 5y ago · link · parent

I'm sure JS devs will hate it, but yes: https://github.com/ReagentX/ReagentX.github.io/blob/master/j...

tl;dr: it appends text from a file to a div, pausing on a specific delimiter.

I only use Github pages for a development testbed, my "deploy" is an FTP copy to my personal web server.

comment 5y ago · link · parent

I tried to go for a shell aesthetic, but it is nowhere near as interesting as yours: https://chrissardegna.com/

comment 5y ago · link · parent

> If stock markets weren't horribly over-regulated, would the VC industry even need to exist?

It's not just the stock market, its almost everything about corporate finance. The straitjacket bank regulators have placed around the ability of banks to go outside of the government defined process of evaluating credit-worthiness is a big factor. These rules (mainly FDIC insurance requirements) make it near-impossible for many companies to get loans. This problem incentivizes companies to play financial games (e.g., Adjusted EBITDA) to get around the crazy restrictions.

This is why there is an emerging trend of non-traditional lenders (e.g. some VCs and PE firms). I’m sure the government will find a way to regulate them eventually.

comment 5y ago · link · parent

> it appears photos uploaded to unsplash were given to unsplash

This is incorrect, according to section 6 of https://unsplash.com/terms

comment 5y ago · link · parent

https://unsplash.com/license

comment 5y ago · link · parent

I was a contributor [0] to their second batch of photos (the first with user-generated content) when they initially launched under the name Ooomf because I love the philosophy of open-source. They even published an open-source photography book [1], which I was featured in [2]. It is very cool to stumble across my images across the web.

The initial model was to receive a handful of user-generated photos, then handpick 10 each week and feature them [3]. I don't even see this feature page anymore.

However, we all know that once you sell, you lose control of the product. While on day one the service will still exist, I doubt it will be around with its current philosophy for much longer, especially since Getty has already stolen all my images from 500px that do not have people (so they can sell them without releases).

[0]: https://unsplash.com/@css

[1]: https://book.unsplash.com/

[2]: https://unsplash.com/photos/bSmKli4OTIY

[3]: https://unsplash.com/collections/5/collection-%235%3A-crew

comment 5y ago · link · parent

Both the Terms of Service and Privacy Policy links 404. Why does this require an account?

comment 5y ago · link · parent

I think it’s more than WhatsApp, Instagram is offline for me as well. Facebook must be having problems. I get a 5xx for https://api.instagram.com/

comment 5y ago · link · parent

Vintage technology is often far more repairable than modern. My turntable and all the equipment I use with it included schematics and booklets with information about how they operate. Even cars used to be like this, but that has mostly been lost in the interest of operational simplicity.

Almost all of my old household appliances included schematics, but new stuff only includes operational instructions. It makes me sad we have lost this culture of tinkering.

135.

User Locked Out of iCloud Account for 6 Months Because Last Name is “True”(twitter.com ↗)

28 points · by css · 5y ago · 2 comments

comment 5y ago · link · parent

> The improvements Intel has made to its processor seem to do very little in our gaming tests, and in a lot of cases, we see performance regressions rather than improvements.

> The answer from our side of the fence is that Rocket Lake has some regressions in core-to-core performance and its memory latency profile.

comment 5y ago · link · parent

Russ Roberts recently interviewed Virginia Postrel [0] on the history of textile manufacturing; I found it absolutely fascinating.

[0]: https://www.econtalk.org/virginia-postrel-on-textiles-and-th...

138.

Governor Cuomo Announces Pilot Program Testing “Excelsior Pass” With IBM(governor.ny.gov ↗)

3 points · by css · 5y ago · 1 comment

comment 5y ago · link · parent

I missed the evenly distributed part; good point and good solution.

comment 5y ago · link · parent

As cool as they look when you write them, comprehensions this dense obfuscate your code. Splitting this into multiple lines helps, but it would be much easier to understand as a normal for loop.

If the goal is to just know the number of items in each slot, here is the first thing that came to my mind (and does not require any iteration):

    groups = [n // g + n % g] + [n // g] * (g - 1)

comment 5y ago · link · parent

Text of the relevant Australian law: https://parlinfo.aph.gov.au/parlInfo/search/display/display....

comment 5y ago · link · parent

I like using pattern matching as an if statement against the type system like the last example in this tutorial, where the author matches against the different variants of an enum. I know this is not the case for the Python interpreter, but it has always amazed me how much types can narrow the code paths in generated assembly instructions.

comment 5y ago · link · parent

TIL. I only have 45s and 33s. A lot of modern pressings are 45 RPM on 12” vinyl.

comment 5y ago · link · parent

The trouble with digitizing analog mediums (especially vinyl) is how much your equipment can alter the sound. Given a different tonearm, cartridge, amp, etc, the same record can sound very different.

I’ve had some luck digitizing some of my collection with a DP-450 [0] and Ortofon Blue [1], but had higher end stuff end up sounding less interesting to my ears.

This is the trouble with audio in general: people not only prefer different sound profiles but also perceive sound differently, which makes it difficult to get rips (at least in my limited experience).

There is a lot of sibilance in the recordings I sampled from the OP link, whoever did the digitization would have benefitted from cleaner records, probably an anti-static brush, a fresh cartridge, and possibly some post-processing since they’re already digital. It’s better than nothing, of course, but it could be a lot better.

[0] https://www.denon.com/en-us/product/turntables/dp-450usb

[1] https://www.ortofon.com/ortofon-2m-blue-p-333

145.

Making Python CLI Apps Faster(chrissardegna.com ↗)

1 points · by css · 5y ago · discuss

comment 5y ago · link · parent

What is the screen sharing performance of this like? When I tried to set up the Jitsi integration for Mattermost earlier this week, even with only 3 people in a call, we could not get the stream over 1-2 fps. Discord handles native-res 60fps streaming.

comment 5y ago · link · parent

I used to use an app for this called IM+ in the early days of iOS, looks like they're still around: https://www.plus.im
1
456
17