Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pedrovhb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
pedrovhb
4y ago
That's nice, but I don't see much value in learning about sockets for scraping; it's way too low a level. The lowest level I found useful was using a requests/httpx for requests and using regex to parse data when the dat
122.
▲
by
pedrovhb
4y ago
Not the replied-to user, but I also wasn't aware of the mathematical definition and my understanding of idempotency was that the main point was that performing the same idempotent operation multiple times wouldn't make a differenc
123.
▲
by
pedrovhb
4y ago
I've seen "unofficial" speed limit signs put up by residents of a given location. They look exactly like official signs, and I imagine it's tricky to properly police this. I wonder if this system opens up an attack surfa
124.
▲
by
pedrovhb
5y ago
I can't imagine malware authors being excessively concerned about their malware being non-compliant with open source licenses.
125.
▲
by
pedrovhb
5y ago
I'd love to see this! That exact idea has been tingling through my mind for a while. I did some experiments, but Prolog (and anything logic programming, really) is a bit of a pain to integrate nicely with Python, which is what I'm
126.
▲
by
pedrovhb
5y ago
> the text was sent to Grammarly's server unencrypted What does this mean exactly? That they were using HTTP instead of HTTPS, or some custom unencrypted format?
127.
▲
by
pedrovhb
5y ago
I've been daily driving xonsh for a couple of years too. It _sounds_ like a terrible idea for reasons you can't quite put your finger on, but other than a minor annoyance every now and then, it's been great. I especially like
128.
▲
by
pedrovhb
5y ago
Now we just need an integrated admin panel and templating engine and we'll have reinvented Django.
129.
▲
by
pedrovhb
5y ago
An extremely useful hidden gem in Rich is its `inspect` function [1]. When called on an object, it pretty prints a list of its public attributes (though you can also request private and dunder attributes) [2]. It can also be called on a cla
130.
▲
by
pedrovhb
5y ago
I almost never do, as it's a bit of a pain to get everything set up again. I've been working a little bit each day on building a NixOS config file with everything I need though, both to learn it, as I like the declarative model, a
131.
▲
by
pedrovhb
5y ago
Recently I started writing out all my ideas and designs of personal coding projects in a notebook of graph paper. It's pretty incredible how I can see and think about high level things (like general architecture) much more easily than
132.
▲
by
pedrovhb
5y ago
I've been thinking a lot about this lately. I've been using todopy (which works on the todo.txt format/spec) to manage tasks, and hledger to manage finances, and after having tried a myriad of solutions for organizing life, i
133.
▲
by
pedrovhb
5y ago
I raise you xonsh: bash in your Python and vice versa, all in the shell! https://xon.sh/ Also have to mention the fantastic Python Prompt Toolkit, which xonsh is based on - https://python-prompt-toolkit.readthedo
134.
▲
by
pedrovhb
5y ago
Can anyone recommend resources on understanding the inner workings and abstractions of reactive/declarative application models, such as Flutter and Vue? It seems to be the latest rage (see Google adopting it for native Android developm
135.
▲
by
pedrovhb
5y ago
That's amazing! I had the exact same idea, and just last week or so started picking up Kotlin to implement it. I've been using Tasker with AutoWear for a makeshift version of this and it _works_, but is obviously not ideal (bits o
136.
▲
by
pedrovhb
5y ago
Does anyone know how the story currently is for MITM'ing Android? I had fun reverse engineering app APIs a few years back, but I looked into it again more recently and found that Android has started pinning certificates by default even
137.
▲
by
pedrovhb
5y ago
I'd just like to chime in to offer a different opinion - around 1.5 year in with my Ergodox EZ, and I have no issues with the thumb keys at all. I use them for space, shift and delete/layer switch on one side, and backspace, layer
138.
▲
by
pedrovhb
5y ago
I'll have a look, thanks!
139.
▲
by
pedrovhb
5y ago
This is cool. I work with a large Python codebase that's been around for a while (hasn't been that long since it's been completely off Python 2). It's not a bad codebase, but naturally it has almost no typing annotations
140.
▲
by
pedrovhb
5y ago
Over a few years I switched from Ubuntu + i3 to Regolith to Pop_OS, and each switch felt like a step up in terms of "it just works", like it's a higher level WM. Regolith, even though it comes with in much saner defaults and
141.
▲
by
pedrovhb
5y ago
I started using KDE Connect via the Gnome extension just a few days ago, and it's been great so far. I have my phone muted all the time because notification sounds annoy me, but I don't mind the desktop notifications. I've be
142.
▲
by
pedrovhb
5y ago
Perhaps a kind soul could implement an OCR system to extract data from the timing screen and make that available via an unofficial API :)
143.
▲
by
pedrovhb
6y ago
Honestly, the rule is "don't use semicolons in Python". I don't think there's a single one in the large codebase I work with, and there's really no reason at all to use it other than maybe playing code golf. It
144.
▲
by
pedrovhb
6y ago
Can't find it now, but I've often seen a phrase to the effect of "If you don't regularly test that you can restore from backups, then you don't actually have backups", and it seems to ring quite true here.
145.
▲
by
pedrovhb
6y ago
Because that's extra work done by the DB for no reason if you don't intend on using the Friends field (say, you're only getting user data to render the "Welcome, {{username}}" text).
146.
▲
by
pedrovhb
6y ago
I think this is neat but I'm not sure it's the best way to go about things. > all(map(func3, filter(func2, map(func1, zip(a, b))))) > a.zip(b).map(func1).filter(func2).forall(func3) The original is indeed terrible and the se
147.
▲
by
pedrovhb
6y ago
I've heard it before as "The dog is there to make sure no one touches the equipment, and the man is there to feed the dog", may make a bit more sense.
148.
▲
by
pedrovhb
6y ago
I wonder if instead of heuristics, machine learning could be used to figure out the best parameters.
149.
▲
by
pedrovhb
6y ago
Well, it's obvious if we assume that neanderthals have close mental faculties to our own, but we don't really know that. Abstract thinking and forethought are things that we take for granted but can't just blindly assume othe
150.
▲
by
pedrovhb
6y ago
> Photography is one of those areas where devices don't go obsolete very quickly. True, and kudos to the photography industry for that. My fully mechanical, analog, 1992 Zenit camera has the same hot shoe flash system and tripod mou
More ›