Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smjburton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
smjburton
1y ago
We're discussing Python, not SQL or any other language. Using more arcane elements of a language like Python, which emphasizes readability, often makes your code less understandable, difficult to debug, and harder to maintain. I also s
32.
▲
by
smjburton
1y ago
> To simplify the tutorial, we'll impose the following feature constraints: > There is no search functionality. This makes sense for the tutorial, but search functionality would be awesome for discovery, both in terms of people f
33.
▲
by
smjburton
1y ago
That's exactly my point. Having to search for the meaning of the operator at all makes the code less readable. I recommend reading the Zen of Python, which covers the design principles of the language.
34.
▲
by
smjburton
1y ago
One of the main objectives of Python is readability. IMO, features that take away from this objective become a detriment to the language.
35.
▲
by
smjburton
1y ago
Some of these newer features don't seem like improvements to the language (e.g. the Walrus operator): ''' # ===== Don't write this ===== response = get_user_input() if response: print('You pressed:',
36.
▲
by
smjburton
2y ago
This is so cool. These flowing gradients have a mesmerizing effect (almost like watching a lava lamp), and seem like a great way to add visual interest to a page. I'll have to play around with this and see if I can incorporate these fl
37.
▲
by
smjburton
2y ago
Yeah that's right. You can use something like https://github.com/joohoi/acme-dns or something similar to validate the DNS-01 challenge.
38.
▲
by
smjburton
2y ago
Agreed, the ideal solution would be to control these devices without being on your home network at all.
39.
▲
by
smjburton
2y ago
> For better or worse, the engineers behind the service decided not to implement a standard protocol like DTLS. > We're not certain if each device has its own unique private key, but whether it does or not, both have downsides ..
40.
▲
by
smjburton
2y ago
If you really want to keep things local without paying any fees, you could also use Smallstep ( https://smallstep.com/ ) to issue certificates for your services. This way you only need to add one CA to your trust store on you
41.
▲
by
smjburton
2y ago
It's not, just a different way of satisfying the certificate challenge. Look into a DNS-01 challenge vs a HTTP-01 challenge. Let's Encrypt has a good breakdown: https://letsencrypt.org/docs/challenge-types
42.
▲
by
smjburton
2y ago
OP: If you're already using Caddy, why not just use a purchased domain (you can get some for a few dollars) with a DNS-01 challenge? This way you don't need to add self-signed certificates to your trust store and browsers/dev
43.
▲
by
smjburton
2y ago
I was just looking into charting libraries for React/React Native, and Apache ECharts seems like a great contender for cross-platform data visualization. The libraries that I came across - react-echarts ( https://github.com&#
44.
▲
by
smjburton
2y ago
Although it's good to look into alternatives to bootstrapping vs VCs, the funding source isn't the only factor to consider. Balancing how quickly you need to enter the market and how much ownership you feel comfortable having over
45.
▲
by
smjburton
2y ago
That's a fair point. Adding that to the original post would help provide context about why some of these quirks are still relevant to consider even when using a framework. I believe the assumption is often that frameworks abstract the
46.
▲
by
smjburton
2y ago
While interesting and possibly helpful to new coders, are these quirks of the language still relevant when most development in Javascript is done using a framework (React, Vue, etc) these days? How often do these "gotchas" factor
47.
▲
by
smjburton
2y ago
This is what I'm most excited about as well. Prior to 4o image generation, most GPTs I came across really struggled with this type of image generation. The only one that seemed to come close was Ideogram.
48.
▲
by
smjburton
2y ago
This is a great introduction to self-hosting, good job OP. As some of the other comments mentioned, discussion about self-hosted security and the importance of back-ups would be good to include. Also, you link to some great resources for di
49.
▲
by
smjburton
2y ago
I saw that too but took it to mean that he lives lean even when times are good by traveling as minimalistic as possible (cheapest flights, hotels, gear), and has set his life up in a way that he could survive even if he has very little to n
50.
▲
by
smjburton
2y ago
> Part of the reason I’ve been able to do this is because I’ve always designed my life such that it can benefit from having money (pinball arcade rooms and all that…) but is also compatible with having no money. Good observation from the
51.
▲
by
smjburton
2y ago
> But despite recent advances in AI image processing, Hershey said Claude still struggles to interpret the low-resolution, pixelated world of a Game Boy screenshot as well as a human can. > We built the text side of it first, and the
52.
▲
by
smjburton
2y ago
I've moved away from Gitea and suggest others do the same given the controversy in the project's management.
53.
▲
by
smjburton
2y ago
A better solution would be to use something like Forgejo Actions, Woodpecker CI, or Drone for a self-hosted, private setup and avoid the dependency on GitHub Actions altogether. Some of these self-hosted solutions have compatibility with Gi
54.
▲
by
smjburton
2y ago
That's great to hear! Hope to see an update on HN when the self-hosted version is ready.
55.
▲
by
smjburton
2y ago
> ... the old method was too hacky and involved the usage of redundant commands. > There must be an easier way, you might think. Especially if you experienced the convenience that Docker Compose provides. I really hope this new approa
56.
▲
by
smjburton
2y ago
This is really sleek. I like the focus on minimalism since what I often need is a simple interface to take down quick notes, thoughts, and ideas. Any plans to offer a self-hosted version?
57.
▲
by
smjburton
2y ago
Outside of disruptive measures like requiring accounts, captchas, or payment, one possible solution would be to use AI against itself by training machine learning models to monitor, flag, and issue challenges to web requests exhibiting &quo
58.
▲
by
smjburton
2y ago
> So what is happening right now is just a lot of denial. The honeymoon period between model providers and wrappers is over. > In short the dilemma for most successful wrappers is simple: training or being trained on. What they are do
59.
▲
by
smjburton
2y ago
If Mozilla needs additional funding, I'd much rather contribute to the project with an "opt-out" subscription plan (say for $20/year) to help support the project without giving away personal data. The author correctly po
60.
▲
by
smjburton
2y ago
> And so, all-too-often today's web developers turn to heavy JavaScript frameworks to build the user interfaces their designers are asking for. These custom interfaces are rarely fully accessible. They slow down the page, consume po
More ›