Better HN
topnewbestaskshowjobs
Log inSign up

code_biologist

1,562 karma · joined Aug 24, 2019 (7y ago) · 536 submissions

Submissions

comment 3y ago · link · parent

On an unrelated note, Python folks should check out OP's library funcy [1]: "A collection of fancy functional tools focused on practicality. Inspired by clojure, underscore and my own abstractions."

Thanks for the library Suor! I've used it happily for many years!

[1] https://github.com/Suor/funcy

comment 3y ago · link · parent

There's currently US congressional hearings going on about cryptocurrency regulation. This is admittedly from a very pro-crypto source, but great video overview of the most recent testimony: https://www.youtube.com/watch?v=xohK2W07F0Q

I'm very very glad for any consumer protection, but it does come across like the SEC is setting up a narrative of crypto risk as a reason to repress transactions between it and the traditional banking system.

comment 3y ago · link · parent

There are exceptions though. I'm the kind of person that would pin Jenkins to latest even if it is an antipattern. I'm way more concerned about security flaws than a temporary CI breakage. So for me: Everyone should be pinning Jenkins to latest to avoid accidentally staying on a release with security holes.

comment 3y ago · link · parent

I've heard good reviews of Shapr3d on iPad. Can't vouch for it myself, but I've heard positive sentiment.

comment 3y ago · link · parent

They better do an amazing job with the Shrike if they ever do this adaptation. The Shrike and the story of Paul Duré still haunt my sci-fi dreams.

comment 3y ago · link · parent

Mistborn by Brandon Sanderson So glad they mentioned it. I want to see the training, fights, and battles in this series done with Matrix style CGI so badly!

comment 3y ago · link · parent

+1. I really find that I hit my stride around 1am. Lovely for personal projects. Unfortunate for professional work.

comment 3y ago · link · parent

POSIWID is perennial: https://design4services.com/concepts/systems-thinking/posiwi...

comment 3y ago · link · parent

The continued decay of search quality will be painful, as the economics make "good" consumer-oriented results uneconomical. I also fear whatever monetization approaches Google comes up with in search of margin. Corporations do really dumb things in service of monetization (see Hasbro / Wizards of the Coast with the D&D controversy of late).

comment 3y ago · link · parent

My understanding is that's kind of a regional thing. California markets typically quote $/sf/month and pretty much the rest of the US does $/sf/year. Too easy to confuse. Been a while since I was in that game though.

But yes, you're right that typical high rise office space in the bay is around $50-80/sf/year or $4.50-7/sf/mo. Or $450-700/mo per employee at 100 sf per employee.

comment 3y ago · link · parent

I'll also point out that Louisville has amazing whiskey distilleries downtown, the "urban bourbon trail". Great for hashing out tech and product disagreements!

comment 3y ago · link · parent

I presume so: "You can also use psql, pgcli, Metabase, Tableau, or any client that can connect to Postgres."

comment 3y ago · link · parent

Thank you for the kind words and I'll check out your Discord when I next take a pass at it.

Let me preface and say that I'm an application dev with only a working knowledge of Docker. I'm not super skilled at infra and the application I struggled with has peculiar deployment parameters: It's a Python app that at build-time parses several gigs of static HTML crawls to populate a Postgres database that's static after being built. A Flask web app then serves against that database. The HTML parsing evolves fast and so the populated DB data should be bundled as part of the application image(s).

IIRC, I struggled with structuring Dockerfiles when the DB wasn't persistent but instead just another transient part of the app, but it seemed surmountable. The bigger issue seemed to be how to avoid pulling gigs of rarely changed data from S3 for each build when ideally it'd be cached, especially in a way that behaved sanely across DigitalOcean and my local environment. I presume the right Docker image layer caching would address the issue, but I pretty rapidly reached the end of my knowledge and patience.

Dokku's DX does seem great for people doing normal things. :)

comment 3y ago · link · parent

What PaaS providers / platforms do you like? I want to move some personal shell scripted boxes to PaaS, but dropped the idea with the decline of Heroku. Tried Dokku and struggled, but it seems like I should give it another try.

comment 3y ago · link · parent

If by simpler you mean there is literally zero content on the page:

    $ http https://coolify.io/
    HTTP/1.1 200 OK
    CDN-Cache: HIT
    CDN-PullZone: 355073
    CDN-RequestCountryCode: US
    CDN-RequestId: 196ca62f96058...
    CDN-Status: 200
    CDN-Uid: bb1c6a05-...
    Connection: keep-alive
    Content-Length: 0
    Date: Fri, 03 Feb 2023 20:46:54 GMT
    Server: BunnyCDN-ASB1-925

comment 3y ago · link · parent

I can't wait for my ChatGPT to talk to their ChatGPT and see who wins (ML providers I guess).

comment 3y ago · link · parent

Taxes aren't ideal, but a brief philosophical defense of the dividend investor mindset:

Before the 1920s stock bubble, buying stock in a company was buying a portion of the company's future free cash flow in return for investment. The value of a stock was fundamentally coupled to running a profitable business. The dividend was the point.

The 1920s saw a major shift of valuation philosophy to a speculative mode, focusing on the price of a stock. Now, occasional crazy things happen where the price of a stock can shift dramatically even without change in the dynamics of the underlying business. Prices should reflect future earnings... but they often don't. Portfolio construction and indexing are protections against this, but the underlying philosophy goes even further in treating stock prices as random walks with underlying market beta, not as real businesses. Indexing punts out of real valuation.

I won't defend "dividend investing" with weird dividend manipulation, but I really do like having an alternative valuation model: the value of an investment is not the result of an increase in price since my purchase of that asset, but instead my recurring cash flow yield from owning that asset. I certainly have money in index funds and speculative assets, but I get a lot from a yield based valuation philosophy instead of price based valuation:

- Prices are heavily manipulated and favor insiders and funds, not individual investors.

- It feels more connected with reality.

- The growth of passive investments probably poses systemic risks (Mike Green's talks and interviews are great) and I don't want to piss in the pool too much. Yield based valuation makes me more comfortable making active investments.

- Easier to value different asset classes against each other, for example buying a house to rent out vs stocks. The valuation is my dollar yield per time per dollar invested.

- Boomers retiring and pulling money out of the system plus decay of globalization will put heavy deflationary forces on markets in the coming years. I don't feel like a price based approach to valuation provides clear guidance on how to navigate investments other than "be smart". A yield based approach lets me walk away with a return even if stocks stay flat or go down.

Pretty much all of the above comes from the book Getting Back to Business by Daniel Peris. Bit dry and dense, but very thought provoking.

comment 3y ago · link · parent

Eh, I just read about oil on the internet but my understanding is that oil is not at all fungible. Refineries are constructed and operated with specific grades of crude in mind. Though they can can process other grades with a few years of process tweaks, it comes with an efficiency (ie. profit) hit.

Our gulf coast refining capacity is built with heavy sour crude coming from Central and South America in mind, but most of our indigenously extracted oil is light sweet. It's more profitable to just trade for the crude our infrastructure is built for than to refine the wrong crude, but this does expose us to the global market prices.

[1] https://www.fsmetals.com/about-us/blog/americas-light-sweet-...

[2] https://epic.uchicago.edu/news/why-do-we-import-russian-and-...

comment 3y ago · link · parent

I'll add that rework is an underestimated part of 10x, not that I'm 10x. The best engineers I've worked with create solutions that can be forgotten until the business changes, often 3-5 years later.

One variety of 10x pretender I've come across will slam out new systems that then require a lot of care and feeding. Flushing caches, re-syncing data, JVM or autoscaling tuning, regular addition of new special cases, version updates for yet another ecosystem... the list goes on.

Another facet of your "making it look easy" observation: management perceives the latter engineer as doing a lot more than the former, sadly.

comment 3y ago · link · parent

It'd be burning down your neighborhood to preserve CCP legitimacy and control of China, which seems to be a reasonable tradeoff from Xi's perspective.

comment 3y ago · link · parent

Am I crazy, or are those two sentences completely contradictory?

comment 3y ago · link · parent

+1. I mined on a few 3060s (and heated my house) last winter. All with cores underclocked, memory overclocked, all at ~60C temperature wise, each consuming about 120W.

comment 3y ago · link · parent

hell not even IPC is needed.

Uh... what's the trick? I don't see how you can have V8 and the JVM communicate without something that's inter-process.

comment 3y ago · link · parent

It's not good to see money burn... but it's not every day you get to see a 44 billion dollar pile doused with arrogance gasoline go up in flames.

comment 3y ago · link · parent

I typed out my original response hastily, but I personally think you are 100% correct!

comment 3y ago · link · parent

My criticism is painfully characteristic of HN, but to be blunt: the results of this are ugly.

I'm a recreational CAD user and recently I've tried to add more decorative flourish to my designs using ZBrush as a final processing step. Some recent examples: I've tried to add decorative moulding style carvings into a bracket. I've tried to fashion the ends of a workshop hook into rainforest vines. I completely suck to be clear.

My dream workflow for AI sculpting is an img2img/StableDiffusion style interface where I can select portions of my model to alter and iterate on the prompt, within something like ZBrush. "The moulding texture is good, but I'd like a more Greek inspired style", "Can you make the bark texture on this wood deeper?", "Can you turn this neutral face into an angry grimace?"

A simpler version that would still be really awesome is being able to generate texture brushes like [1][2] to easily sculpt with via prompts. "tight, densely packed neat feathers" or "the texture of a blanket with large, loose yarn knitting".

[1] https://youtu.be/VeC6WEZzbTM?t=26 (ornamental trim demo)

[2] https://environmentdesign.gumroad.com/l/mDbSP (rock textures)

(no affiliation with either)

comment 3y ago · link · parent

This has been one of one of the tragedies of the Covid pandemic, the way “defense of science” has identified science to the public as the institutions currently involved in science and then browbeaten anyone that doesn’t agree with their pronouncements. Science is not an institution, but a process and method of knowledge production that no institution holds monopoly on.

comment 3y ago · link · parent

The lack of variables is a major pain point for many devs when learning SQL. CTEs address one aspect. It's maybe not 1:1 or ideal, but lateral joins are a great way to get in-query variables and are extremely powerful for controlling cardinality!

https://sqlfordevs.com/for-each-loop-lateral-join

comment 3y ago · link · parent

You can abuse it, but the lineage of comprehensions (Haskell's list monad, SQL) make it clear that longer examples are certainly useful.

Haskell list comprehensions limited to two clauses, SQL queries limited to a single FROM and a WHERE, or a FROM and a JOIN sound pretty limited. I use Python comprehensions to do those same kinds of data querying without leaving the Python context, so seems weird to limit myself for the same reason.

Using imperative constructs certainly isn't wrong, but they tend to crawl off the right hand side of the page.

comment 3y ago · link · parent

What do you mean by the equivalent itertools expression? It's not clear to me how an expression like this is made more readable by itertools. I'm not sure how itertools is even relevant.

    sum(
        a + b
        for a in range(10)
        if a % 2 == 0
        for b in range(10)
    )
1
111213
18