Better HN
topnewbestaskshowjobs
Log inSign up

nodesocket

6,536 karma · joined Mar 10, 2011 (15y ago) · 4,329 submissions

Building a trading journal that helps investors log, tag, and review their trades and market insights with clarity. https://marketdiary.io

HN'er since 2011 when PG responded and was active.

Other companies: NodeSocket, Commando.io, Elastic Byte.

Living in Nashville, Tennessee. Charlie Munger "there are three ways to go broke... liquor, ladies and leverage."

  - GitHub: https://github.com/nodesocket
  - justin [at] HN-USERNAME {dot} com
Submissions

211.

Reentry – A Space Flight Simulator(reentrygame.com ↗)

7 points · by nodesocket · 1y ago · discuss

comment 1y ago · link · parent

Would love to see it added. I’m running a Flask app using raw SQLite3 without a ORM. I believe I could hack up a Span solution in Sentry to query track like:

    import sqlite3
    from sentry_sdk import start_span

    def execute_query(conn:   sqlite3.Connection, sql: str, params: tuple = ()):
        with start_span(op="db", description=sql) as span:
            span.set_data("db.system", "sqlite")
            cursor = conn.execute(sql, params)
            return cursor

comment 1y ago · link · parent

Does Telebugs support SQLite3 query performance tracking? E.G. top slowest queries, etc. I don't believe Sentry supports this

comment 1y ago · link · parent

- In late 2020, Scion sold its entire stake in GameStop. Scion missed out of the GameStop short squeeze which occurred only a few months later. Its 5.3% stake would have been worth over $1.5 billion at its height.

- In May 2021, Scion disclosed it acquired put options on Tesla shares.

- In August 2023, it was reported Scion anticipated a stock market crash and acquired $1.6 billion worth of put options to bet against the ETFs that tracked the S&P 500 and the Nasdaq-100.

- Scion also was noted to have held a large put option against the iShares Semiconductor ETF.

comment 1y ago · link · parent

His track record since “the big short” has been horrific. That’s the problem with being a perma-bear, eventually the market dips but you missed out on extraordinary gains vastly out weighing your negative thesis. It’s a hellva lot easier to be bullish American companies then try and time draw downs. Doesn’t make any sense.

comment 1y ago · link · parent

Nice to know, though I wonder how many companies are really using all private images? I've certainly had a client running their own Harbor instance, but almost all others pulled from Docker Hub or Github (ghcr.io).

comment 1y ago · link · parent

Congratulations, you’ve successfully managed to push out all entrepreneurs, high net worth individuals, and businesses. Enjoy what comes in your utopia.

comment 1y ago · link · parent

“ $600/month for NAT gateways”

I build my own NAT instances from Debian Trixie with Packer. The configuration is literally a few lines:

    sudo iptables -t nat -A POSTROUTING -o ens5 -j MASQUERADE
    sudo iptables -F FORWARD
    sudo iptables -A FORWARD -i ens5 -m state --state RELATED,ESTABLISHED -j ACCEPT
    sudo iptables -A FORWARD -o ens5 -j ACCEPT

    sudo iptables-save | sudo tee /etc/iptables/rules.v4 > /dev/null

comment 1y ago · link · parent

I got tired of waiting for JetKVM availability in the US and pulled the trigger on a GL.iNet Comet PoE. A bit more expensive on Amazon ($110) but supports PoE which the JetKVM does not. Honestly, it has worked great. I know the earlier Comet firmware had some issues, but apparently they fixed it up and it has been solid.

comment 1y ago · link · parent

I use UTC for all public/production servers, but for my homelab servers in my closet rack they all use local time. Makes grokking times in homelab servers much easier. The exception is database insert/update date/times which are always stored UTC.

comment 1y ago · link · parent

This is cool, does this actually hit all the services directly (in each region) instead of pulling from AWS Status?

comment 1y ago · link · parent

Don't see any issues in us-east-2 (Ohio) with my infra, but typically issues arise in us-east-1.

comment 1y ago · link · parent

Anybody used rqlite[1] in production? I'm exploring how to make my application fault-tolerant using multiple app vm instances. The problem of course is the SQLite database on disk. Using a network file system like NFS is a no-go with SQLite (this includes Amazon Elastic File System (EFS)).

I was thinking I'll just have to bite the bullet and migrate to PostgreSQL, but perhaps rqlite can work.

[1] https://rqlite.io

comment 1y ago · link · parent

Didn't know you can omit <head> .. </head> but I prefer for clarify to keep them.

comment 1y ago · link · parent

I did some quick tests increasing workers=2 and workers=3 and requests per second nearly scaled linearly so seems just throwing more CPU cores is the quick answer in the mid-term.

comment 1y ago · link · parent

"leaving rolling blackouts behind..." I'll take this bet CA blackouts aren't over.

comment 1y ago · link · parent

I'm running a Python 3.13 Flask app in production using gunicorn and gevent (workers=1) with gevent monkey patching. Using ab can get around 320 requests per second. Performance is decent but I'm wondering how much a lift would be required to migrate to FastAPI. Would I see performance increases staying with gunicorn + gevent but upgrading Python to 3.14?

comment 1y ago · link · parent

Would be interesting to test. I’m thinking there may not be a benefit to having so many workers on a vm instead of just the entire vm resources as a single worker. Could be wrong, but that would be a bit surprising.

comment 1y ago · link · parent

But why split up a vm into so many workers instead of utilizing the entire vm as a dedicated single worker? What’s the performance gain and strategy?

comment 1y ago · link · parent

> Each GizmoEdge worker pod was provisioned with 3.8 vCPUs (3800 m) and 30 GiB RAM, allowing roughly 16 workers per node—meaning the test required about 63 nodes in total.

How was this node setup chosen? Specially 3.8 vCPU and 30 GiB RAM per? Why not just run 16 workers total using the entire 64 vCPU and 504 GiB of memory each?

comment 1y ago · link · parent

Supply side constraints are typically bullish and good for a business. I was buying Intel stock hand over fist at peak media fear mongering as I knew their demise was greatly exaggerated. $INTC is up 90+% YTD.

comment 1y ago · link · parent

I'm currently running PostgreSQL in docker containers using bitnami/postgresql:17.6.0-debian-12-r4. As I understand it, Bitnami is no longer supporting or updating their Docker containers. Any recommendations on a upgrade path to PostgreSQL 18 in Docker?

A quick glance of swapping to the official postgres container shows POSTGRESQL_DATABASE is renamed to POSTGRESQL_DB. The other issue is the volume mount path is currently /bitnami/postgresql.

comment 1y ago · link · parent

Perhaps they are using MongoDB GridFS instead of storing files on disk.

comment 1y ago · link · parent

I don't recommend to my clients they use us-east-1. It's the oldest and most prone to outages. I usually always recommend us-east-2 (Ohio) unless they require West Coast.
1
789
145