Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
abdusco
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
181.
▲
by
abdusco
4y ago
I liked using it. Though, most of the time, it was limited, in the sense that it could only offer completions using the code before the cursor as the context. I found it most helpful in setting up boilerplate in when writing tests. It could
182.
▲
by
abdusco
4y ago
any recommendation for an adblocker on ios that can block youtube ads?
183.
▲
by
abdusco
4y ago
> Read the stack trace / error message Unless you're using golang. There's no stack trace by default. It's left as an exercise to to programmer to wrap and add context to errors.
184.
▲
by
abdusco
4y ago
Jetbrains IDEs have a plugin called `Shell Script` that provides code assistance and warnings. It's also compatible with shellcheck too.
185.
▲
by
abdusco
4y ago
> One of the greatest things about the standard library HTTP handlers is that you have an io.Writer that you can do whatever you want with. > It looks like this library removes the flexibility of that and instead provides a worse API
186.
▲
by
abdusco
4y ago
I like that it provides a useful set of methods over raw stdlib types. If you need to integrate other libs, it's quite easy to wrap them and call ServeHTTP(w, r)
187.
▲
by
abdusco
4y ago
> pallbearer (n): a person helping to carry or officially escorting a coffin at a funeral. TIL. As a non-native speaker, I've never seen it written and always heard it like "pole bearer", which kinda makes sense: horizonta
188.
▲
by
abdusco
4y ago
Is there a similar resource for golang? One that goes over things you need when developing for a cloud native app, for example. There's gobyexample.com, but it contains usually basic stuff to get started with the language.
189.
▲
by
abdusco
4y ago
I launch a bash shell, which inherits parent fish shell's env, then run the command and exit back to fish.
190.
▲
by
abdusco
4y ago
One of the best features of mpv that I miss sorely on other players, (notably PotPlayer[0] on Windows) is that it has first class scripting support. You can write Lua/Javascript and bind it to a hotkey and run your own scripts, pass in
191.
▲
by
abdusco
4y ago
Maybe this would help in that regard: https://github.com/docker-slim/docker-slim
192.
▲
by
abdusco
4y ago
Better get a battery replacement before you need it. It becomes really difficult to find replacement parts after a couple of years because the device is not "popular" and most sellers stop keeping stock.
193.
▲
by
abdusco
4y ago
How is the serviceability? Can you swap ssd / battery?
194.
▲
by
abdusco
4y ago
Yeah. It's easy to write, easy to read. It takes zero effort to parse. Serializing as "python file" might be a bit awkward.
195.
▲
by
abdusco
4y ago
> But make sure you pop them from the os.environ dict once you read them to avoid accidental exposure. I've always accepted this was an attack vector, and some malicious library could extract env vars. This actually makes a lot of s
196.
▲
by
abdusco
4y ago
It strips type info and runs it as Javascript, though. There's no native typescript runtime, AFAIK (it doesn't enforce types at runtime, only at build time)
197.
▲
by
abdusco
4y ago
I tried 3 replacement batteries on my XPS13 (2016) before it started charging properly. It straight up refused to charge the first battery (power led flashes amber), stopped charging the second after a few days and required unplug&plug
198.
▲
by
abdusco
4y ago
Presumably, it doesn't sleep or wakes up inside a backpack. I had a 2016 XPS13 with that issue and I keep reading it still exists after all those years.
199.
▲
by
abdusco
4y ago
Or use logging module as you should, which prints to stderr by default. import logging logging.basicConfig() logging.info('something happened')
200.
▲
by
abdusco
4y ago
One great feature of Gitea is that you can create private repos without using the UI/CLI by adding a git remote. git remote add origin https://my.gitea/user/new_repo git push # user/new_repo is cr
201.
▲
by
abdusco
4y ago
Have to agree. His motivation was interesting but also could have been left out.
202.
▲
by
abdusco
4y ago
Oh, I needed to enable the shortcut. It's working now. https://i.imgur.com/mkuqSlw.png
203.
▲
by
abdusco
4y ago
I'm not getting a large popup. How do you get it to show up? I've been using this shortcut[0] to switch between input layouts. Before realizing that I could set a shortcut for it, I used this utility[1] + Alfred for it. This is st
204.
▲
by
abdusco
4y ago
what does `tbs=li:1` parameter do?
205.
▲
by
abdusco
4y ago
I usually opt for k3d, because it gives you a cluster (or multiple) that runs inside a docker container. If you already have docker running, it's a quick and easy solution for setting up and destroying local clusters. https:/
206.
▲
by
abdusco
4y ago
git clone -b $tag $repo_url
207.
▲
by
abdusco
4y ago
This is the way. In addition to `$` and `$$`, I usually have `$h` for creating elements: /** * @param {string} name * @param {HTMLElement.prototype} props * @param {Array<HTMLElement|string>} children *
208.
▲
by
abdusco
4y ago
Agreed. I also set up my IDE (Jetbrains) so that it switches between light and dark themes according to my system preferences (which reflects available daylight) Because reading code on a light theme is so much easier on the eyes during day
209.
▲
by
abdusco
4y ago
It doesn't really matter. Substitute 16 hours with however long you're fasting. You need to keep your eating habits in check when you break fast. I'm a muslim who fasts during Ramadan (no eating / drinking until sunset)
210.
▲
by
abdusco
4y ago
> ... All I got was headaches, tiredness, feeling sick and constantly thinking about food. I lasted 5-6 days, tried to keep my electrolyte intake as well as I could, and it was miserable.... Fasting is not just about not eating for 16 ho
More ›