Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gbuk2013
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
241.
▲
by
gbuk2013
7y ago
Mindfulness is just a tool to train the mind. What you use that for is up to you. Zen employs mindfulness as well as other tools for spiritual cultivation.
242.
▲
by
gbuk2013
7y ago
According to the warrant[1] it seems to be a criminal case. Anyway, you should read up on the BSA copyright raids. Fortunately they seem to have fallen out of fashion. https://mobile.twitter.com/AntNesterov/status/
243.
▲
by
gbuk2013
7y ago
I have a subscription to Focus@Will and listen to either their “Focus Spa” or “Ambient” channels and don’t like the others. But for me it really does help me focus on a day when my head’s all over the place.
244.
▲
by
gbuk2013
7y ago
I try to stick to the facts and keep my biases out of the conversation and I wish the same to you.
245.
▲
by
gbuk2013
7y ago
Apparently some company called "Lynwood Investments CY Ltd" has bought the rights for copyright enforcement from Rambler Group - I guess this is classed as "copyright trolling"? Looking at the search warrant[1] the claim
246.
▲
by
gbuk2013
7y ago
Wow that is ... beautiful. :)) And if the individual functions have the custom error logic inside then a simple ".error(callback)" at the end it will just work.
247.
▲
by
gbuk2013
7y ago
I agree with you now that "async/await" is available (as I said in my article that I originally linked to). And thank you for providing a second use case to the one I listed in the article - it paid for all the time I wasted
248.
▲
by
gbuk2013
7y ago
You are right - got mixed up in the responses - serves me right for trying to do too many things async! I would do it like this (if I didn't have access to "async/await" which is sadly the case for me in Node sometimes):
249.
▲
by
gbuk2013
7y ago
(see below)
250.
▲
by
gbuk2013
7y ago
Yes this is true, as long as your error handling is the same for all calls (not necessarily the case, especially if logging is involved). I don't actually have a problem with the callback version because it is nice and explicit. But ag
251.
▲
by
gbuk2013
7y ago
And your error handling? ;) fetch((err, res) => { if (err) { // yay - error handling! :) } const myJson = res.json(); // do stuff } What's so unreadable about this? Even if it is 4
252.
▲
by
gbuk2013
7y ago
> the async-await code is much easier to read, write, and validate. With the exception of necessarily serial code that I referred to, this statement is not true in my experience. Your "legible" example is only legible because y
253.
▲
by
gbuk2013
7y ago
I appreciate that the author is trying to illustrate something with an intentionally contrived example, but there is really no need for "await" in his "chain()" function: function chain () { (function loop (i) {
254.
▲
by
gbuk2013
7y ago
No, I built it for this project. The canvas diagram was plain JS and for logos we used SVGs from company official PowerPoint icon pack to make it look consistent. The backend was Node.js that ran Ansible playbooks that provisioned things vi
255.
▲
by
gbuk2013
7y ago
https://en.wikipedia.org/wiki/America_First_(policy) as championed by the current US president. "America First refers to a foreign policy in the United States that generally emphasizes American nationalism, unilat
256.
▲
by
gbuk2013
7y ago
Proxmox is awesome. :) Back several years ago I worked on a project to build a system for making demos of network solutions. We ran Proxmox inside of an ESX virtual machine and then used it to virtualise various pieces of the demo architect
257.
▲
by
gbuk2013
7y ago
Local homeless shelter in London (obvious reason) Local food bank in London (obvious reason) World Land Trust (to try and protect what's left of wildlife habitat) Cauvery Calling (tree planting @ £0.6 per tree is great value) I am grat
258.
▲
by
gbuk2013
7y ago
I like Javascript so I use Metalsmith[0]. It’s a very simple core with functionality added by plugins, of which there are many, covering everything I ever needed to do with my site. Here’s a simple example of a blog + standalone pages, simi
259.
▲
by
gbuk2013
7y ago
Another advantage is that I can fit my 10-keyless mechanical keyboard in my backpack when I travel, which would not be possible with a full-size one.
260.
▲
by
gbuk2013
7y ago
Oh and it turns out this lady has actually met the Apopo rats. :) https://www.apopo.org/en/latest/2018/04/The-woman-who-smells...
261.
▲
by
gbuk2013
7y ago
There’s an organisation that trains rats to detect tuberculosis by smell. Sounds like this could be another candidate. https://www.theguardian.com/global-development/2017/dec/26/g... They also train them
262.
▲
by
gbuk2013
7y ago
Is there something more effective that you can suggest from your experience?
263.
▲
by
gbuk2013
7y ago
Back about 20 years ago I built a system for my Dad's company to generate export documentation, manage custom price lists for multiple customers and track inventory and factory production, all based around multiple Excel files and a fa
264.
▲
by
gbuk2013
7y ago
AKA “bus factor”: https://en.m.wikipedia.org/wiki/Bus_factor
265.
▲
by
gbuk2013
7y ago
Ethics affect the seeds you plant. If your seeds are bad you will not even have the opportunity to learn meditation. Meditation is for going beyond all that. > I am a practicing Zen Buddhist Who?
266.
▲
by
gbuk2013
7y ago
This is not the premise of Buddhism. Here is a good starting point for understanding what is: http://ftp.budaedu.org/ebooks/pdf/EN074.pdf
267.
▲
by
gbuk2013
7y ago
This is a difficult article to read because on the one hand there is a lot of truth in it, but on the other there is a fair bit of confusion. Trying to build resilience in the middle of a crisis is like teaching prevention to someone who is
268.
▲
by
gbuk2013
7y ago
It will be interesting to see in the report which trackers sneak past my uMatrix rules. :)
269.
▲
by
gbuk2013
7y ago
OK, after a bit more reading I now understand the difference, thank you for your patience. But it remains true that in Javascript you can not pass an object by value, because the language does not permit creating copies of objects. You can
270.
▲
by
gbuk2013
7y ago
This is what I am talking about: > function mutate (o) { o.foo = 'bar'; } > const o = { foo: 'foo' }; > o { foo: 'foo' } > mutate(o); > o { foo: 'bar' }
More ›