Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sakisv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
sakisv
3y ago
Yeah in this case between these 3 supermarkets there are 2 options: 1. You choose your general location or 2. You don't choose In the first option you get one less general category to choose from (for example they may not have fresh fi
62.
▲
by
sakisv
3y ago
My main drive was to document the crazy price hikes that's been going on in my home country, Greece, so I'm scraping its 3 biggest supermarkets and keep track of the prices of their products* Had a lot of fun building and automati
63.
▲
by
sakisv
3y ago
The way I'm bypassing it is by using tailscale to route the scraper's traffic through my home connection and take advantage my ISP's CGNAT. Works like a charm.
64.
▲
by
sakisv
3y ago
Came here to write about Playwright. I've been using it for the last ~13 months to scrape supermarket prices and it's been a great experience.
65.
▲
by
sakisv
3y ago
Ah yes, the fact that git brings the remote stuff locally when you `git pull` and all the `origin/<whatever>` are just branch names is something that I realised only too late. As for the refs, yes, good point ;)
66.
▲
by
sakisv
3y ago
> "Detached HEAD" means that HEAD is pointing directly to a commit, instead of pointing to a branch pointer. Ah, thanks for pointing it out, always good to learn the finer distinctions
67.
▲
by
sakisv
3y ago
A recent scenario had to do with me rebasing something to squash out some intermediate commits, and then I opened a PR, only to realise that some of the things I squashed I actually needed them. With reflog I was able to go back before my r
68.
▲
by
sakisv
3y ago
I was having a similar hard time to remember most of these (the remaining ones I just don't use often, so I still haven't quite grasped). The single thing that made everything "click" together is that most things are jus
69.
▲
by
sakisv
3y ago
Ah, but it's not switched! Remember that rebase essentially replays commits against a different branch/base commit: e.g. if you have your branch `feature-1` and want to rebase it on `main`, then you would do `git checkout feature-
70.
▲
by
sakisv
3y ago
For a moment there I hoped that this was about using some kind of new interface to manage profiles but unfortunately not. While it's been ages since I last used Chrome I remember that it was so easy to switch between different profiles
71.
▲
by
sakisv
3y ago
Wow Greece has a limit of 500 euro, but: "There is no cash limit for car purchases" wth? EDIT: Also this something that I didn't know about the UK > With regard to the change, there are unlimited payments of £ 5, £ 2 and £
72.
▲
by
sakisv
4y ago
Well, for me the whole replace-letters-with-numbers thing is idiotic and requires some inside knowledge to understand which letters are replaced by all the numbers in words like a11y i19n k8s, etc. On the bright side you can put whatever yo
73.
▲
by
sakisv
4y ago
If I may point out here that if we take the word "democracy" at face value (i.e. That the ruling entity needs to have the support of the majority of demos) then most countries are really not democratically governed: The people in
74.
▲
by
sakisv
4y ago
The lede is buried near the end: > To return to information overload: this means treating your "to read" pile like a river (a stream that flows past you, and from which you pluck a few choice items, here and there) instead of a
75.
▲
by
sakisv
4y ago
This is precisely what reflog shows you btw, i.e. all the things that HEAD has pointed to. Running it after a rebase it's very informative, for example it helps clarify things like "ours" and "theirs".
76.
▲
by
sakisv
4y ago
Yes, this another thing doesn't get said enough to a beginner: A branch is nothing more than a pointer (or mark) to a commit. This realisation along with the `git reflog` command I wrote above, made for a tremendous mental shift and su
77.
▲
by
sakisv
4y ago
The single best command that made working with `git rebase` infinite times easier is git reflog At the very least it will stop you from "oh I fucked up the <rebase/merge/cherrypick/whatever> so bad that I
78.
▲
by
sakisv
4y ago
Or, better yet, go from 0.5% to 0.6% or 1%.
79.
▲
by
sakisv
4y ago
Just a heads-up that cloudfront will return a 403 when it receives a GET with body. It's documented and all but I still find it a peculiar choice. A 400 would have been better and less of a red herring.
80.
▲
by
sakisv
4y ago
Assuming it's not a joke site, I could kinda agree with some of the "values" but not with the "pointless tests". I mean, I agree that some tests are, indeed, pointless, but I wouldn't trust someone who "ju
81.
▲
by
sakisv
4y ago
Maybe "createad a website", "built a website" are simpler and deliver the meaning. My thinking is that if by "launched" we mean "deployed to production" then it's useless for the end user. If it&
82.
▲
by
sakisv
4y ago
That's very nice, well done! For a moment there I had hoped that maybe it would solve the problem in the opposite direction: I'm typing the master password so mechanically when I'm on my laptop, that I really struggle to rem
83.
▲
by
sakisv
4y ago
For me only the last one is a big red flag. Apart from this, I'm of the opinion that one crucial job of a team lead/manager is protecting their team and, their product. One way to do this is saying "no" to feature reques
84.
▲
by
sakisv
4y ago
Nice, I like seeing new features being added - despite on my personal opinion about them. As someone else pointed out, the more feature parity we reach with WhatsApp (or other popular messengers) the fewer battles we'll have to fight t
85.
▲
by
sakisv
4y ago
> Heroku/Dokku > Public Cloud >Dedicated servers in someone else's DC > Custom Hardware in custom built data centers. I think stackoverflow and its siblings proved that having a handful of servers can go a very long wa
86.
▲
by
sakisv
4y ago
A bit of a tangent but a quick search didn't find any references to this so I may as well post it here: There's a big wiretapping scandal going on Greece since the beginning of August, accompanied by an equally big attempt to cove
87.
▲
by
sakisv
4y ago
Well following your reasoning, maybe they didn't want it that badly /shrug In both cases you trade your time for a ticket, either directly or indirectly. In both cases, having blackmarket as a service is not helping.
88.
▲
by
sakisv
4y ago
> It is not ‘just because’, it’s because there are more people who want to go than there are tickets. The emphasis is on the last part, i.e. "just because they could ". My point is that they should not have been allowed in the
89.
▲
by
sakisv
4y ago
Viagogo is one of the worst out there. Back in 2015 I bought 2 tickets for AC/DC through them and I paid ~£270. When I got the tickets in my hands I saw that the price was ~£75-£80 each and Viagogo added more than £100, just because t
90.
▲
by
sakisv
4y ago
Something which won't exactly inspire confidence for any similar attempts in the future
More ›