Better HN
topnewbestaskshowjobs
Log inSign up

kurtbuilds

175 karma · joined Aug 11, 2011 (15y ago) · 59 submissions

https://www.kurtbuilds.com
Submissions

comment 1y ago · link · parent

If you want equality testing with nulls, you want to use `is (not) distinct from` instead of `=` and `<>` / `!=`.

`1 is not distinct from NULL` => false

`NULL is not distinct from NULL` => true

`0 is not distinct from 1` => false

comment 2y ago · link · parent

What’s the process to deliver and test a quantized version of this model?

This model is 264GB, so can only be deployed in server settings.

Quantized mixtral at 24G is just small enough where it can be running on premium consumer hardware (ie 64GB RAM)

comment 2y ago · link · parent

Can you elaborate on why the `mixing` approach doesn't work? Specifically, if you want send bounds, doing this:

    trait HttpService: Send {
        fn fetch(&self, url: Url)
        -> impl Future<Output = HtmlBody> + Send;
    }

    impl HttpService for MyService {
        async fn fetch(&self, url: Url) -> HtmlBody {
            // This works, as long as `do_fetch(): Send`!
            self.client.do_fetch(url).await.into_body()
        }
    }

comment 3y ago · link · parent

You are anxious about things constantly breaking, and you work in Javascript. No surprise.

Try learning Rust.

Your anxiety of things constantly breaking will disappear.

I've been coding for about 20 years. My joy of coding would be gone if not for Rust. Instead, writing code is my primary hobby today, in addition to it being (part of) my job professionally.

comment 3y ago · link · parent

What did you migrate your clients to?

comment 3y ago · link · parent

That's great to hear!

Unfortunately, MySQL is less feature complete compared to Postgres and Sqlite. The migration auto-generation definitely won't work. Other features might be broken too. If you encounter any issues, please let me know!

comment 3y ago · link · parent

I've been working on `ormlite` for around a year, and it's now reaching the point where it's a massive boost in productivity for my Rust application server development. It's built on the amazing foundation of `sqlx`.

If you do Rust application server development, you might be interested for several reasons:

- It now auto-generates migrations from Rust structs. To my knowledge, it is the only Rust ORM with this capability.

- The join API, while in alpha, has far moving pieces than any other Rust ORM. It only relies on the table `struct`s themselves, and does not rely on relation traits (SeaORM) or modules (Diesel).

- There's little to no query builder syntax to learn. The query builder basically joins together &str fragments of raw SQL. It strikes the right level of abstraction between composability, and having near-zero learning curve for anyone who already knows SQL.

8.

Ormlite: An ORM in Rust for developers that love SQL(github.com ↗)

1 points · by kurtbuilds · 3y ago · 3 comments

comment 4y ago · link · parent

I'd recommend going full steam ahead with Rust.

Companies like Azure and Meta now recommend Rust as either one of several viable choices, or THE recommended option, for the use cases you describe, including CLI and web servers.

Personally at this point, just about anything that's not a frontend (android, ios, web), I think Rust is the best language for the job. It's the language I prefer, and feel most productive in, for the use cases you're describing (web server, CLI, small scripts and utils).

There's a learning curve, but at this point, I almost entirely forget about the lack of GC. It feels like writing code in any other language - except of course with all the benefits you call out (no null, ADT, typed error values, trait-based OO system, the best tooling of any language I've used, expansive 3rd party libraries).

comment 4y ago · link · parent

To clarify, the JSON parse error was data coming down from the server. The code generator accepts either a JSON or a YAML OpenAPI document.

I was looking at the server logs - are you the payments company with abbreviation CP? It looks like there are a few errors in your OpenAPI doc that prevented the generator for working in your case - I'm sorry the error message wasn't more clear.

If you're interested, email me, kurt at libninja dot com, and I can describe the spec issues and we can chat about working together.

comment 4y ago · link · parent

Are there APIs you have in mind?

One tool we have under development is a tool (might end up being a chrome extension) that will analyze web requests to turn them into a spec.

There are a few tools that are similar in purpose, though I've only seen ones based on proxying, rather than chrome's network request recording.

- https://github.com/alufers/mitmproxy2swagger

- https://github.com/adafruit/openapi-mitm

comment 4y ago · link · parent

Thank you - fixed!

13.

Show HN: Stripe-quality API client libraries with a single button click(libninja.com ↗)

27 points · by kurtbuilds · 4y ago · 10 comments

comment 4y ago · link · parent

Do you have plans to open source any of the work? Would love to use this for a course/training platform.

comment 4y ago · link · parent

Read the fine print. It's not a FDIC-insured account.

It's a crypto yield account that downplays the fact that it's crypto.

Do with that knowledge what you want.

comment 4y ago · link · parent

Depending on the size of your team, and whether you just need to "check a box" and say you do it, versus you're actually worried about employee mistakes re: cybersecurity (e.g. you have a big and varied enough team where training is geniunely important), it's pretty easy to design this yourself.

Write up or copy a few page doc outlining security best practices, then require every employee to read & sign an acknowledgement that they've read it. Now every employee has gone through security training.

comment 4y ago · link · parent

Instead, I highly recommend https://github.com/casey/just .

Add these two lines to the top to use node executables and load the dotenv:

``` set dotenv-load := true export PATH := "./node_modules/.bin:" + env_var('PATH') ```

comment 4y ago · link · parent

There's a good chance 115k TC is significantly less than what you could be getting.

I'm currently building a network of domain expert mentors, where companies can connect with experts for advising their existing team to solve business problems. Think of it like very low commitment consulting. It might be a great way to get a better feel for industry (and the salary you can command) before making a hard commitment.

If that sounds interesting, shoot me an email. My email is <my username> at gmail dot com.

comment 4y ago · link · parent

Three easy lessons:

1. Don't use MongoDB.

2. Don't use high level ORMs. Stay (reasonably) close to SQL. And yes, it should be SQL. Almost certainly Postgres.

3. Especially don't use Mongoid.

comment 5y ago · link · parent

The personal MBA is probably the best resource for solid foundation of all business topics relevant to entrepreneurship.

comment 6y ago · link · parent

"Laws of Human Nature" by Robert Greene (ironically, also the author of 48 laws of power, which is often criticized for advocating machiavellianism) is an extremely powerful book.

It has two chapters that are especially relevant for you: "Chapter 2: Transform self-love into empathy: The law of narcissism", which might be self-evident in its value from the title, and "Chapter 4: Determine the strength of people's character: The law of compulsive behavior", which discusses toxic personality types, how to avoid them, and what to do in case you notice those patterns in your own behavior. I think you'll find both of those chapters extremely illuminating.

The whole book is worth checking out too. And a relationship with a good executive coach or therapist works wonders too!

comment 8y ago · link · parent

Wanna email me your resume (email in profile)? We're tackling an underserved part of the consumer finance world, backed by top VCs and still early stage.

comment 9y ago · link · parent

Could I get your contact information to chat with you more about government contracting? It's a space I'm doing a lot of research in, and very curious to learn more about!

comment 9y ago · link · parent

Build a better mousetrap, and you'll learn how to build a better mousetrap. You need to market it (or partner with someone who will) if you want to make money.

1. Get some kind of market validation before you build. Get commitments from paying customers (or even pre-payment), or directly see them paying for a near-identical offering, and have a competitive advantage to deliver it more cheaply.

2. Do an inventory exercise of why these projects have failed. Doing a quick run-through, it looks like you didn't do marketing or user research for any of these projects. If making a side business still excites you, make sure you do these steps before going to build any future side business.

3. I know nothing about landscaping, but as an outsider, Bloom looks a promising product. Go talk to customers!

3. If the marketing side of things doesn't interest you, but you still want to make side money, reach out to me, my email is <hn username> at gmail. My background is pure engineering, but I have friends who are looking for technical co-founders and have ideas that I could use more technical talent on.

25.

Identifying Sources of Cost Disease(kurtsp.com ↗)

66 points · by kespindler · 9y ago · 37 comments

comment 9y ago · link · parent

This is amazing!

comment 9y ago · link · parent

I helped found www.onesalon.org , and from that have experience building global community. Happy to chat if you'd like. Username at gmail dot com

28.

See the gender ratio of Facebook events(producthunt.com ↗)

1 points · by kespindler · 10y ago · discuss

comment 10y ago · link · parent

Do your sales before building it. Who would buy it? Make a powerpoint or pen&paper mockup, get feedback from potential customers. Build a landing page, track conversion to a 'Buy Now' button.

For more info, check out 4H work week, Lean Startup, or http://firstround.com/review/90-of-feedback-is-crap-how-to-f...

30.

Show HN: Modern Python3 web framework(github.com ↗)

1 points · by kespindler · 10y ago · discuss

12