Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ww520
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
271.
▲
by
ww520
2y ago
Just curious. How does that work on changes between depending states within a cycle? E.g. [foo, setFoo] = useState(1); [bar, setBar] = useState(); setFoo(10); setBar(foo * 2); // Is bar 2 or 20 at this point?
272.
▲
by
ww520
2y ago
Why is state management so complicate in React?
273.
▲
by
ww520
2y ago
I don't want to come off as negative, but here's an off-the-shelf alternative. My home network has VPN set up that let me access the home video feed securely and privately. The NVR software doing the video recording can process th
274.
▲
by
ww520
2y ago
How do they measure the memory usage?
275.
▲
by
ww520
2y ago
How do you connect your VPN with your phone when you travel on the road?
276.
▲
by
ww520
2y ago
I’m using an internal machine for the VPN server and port forwarded to it from the router. I also have Tailscale set up but if I remember correctly Tailscale requires all devices participating in its VPN to install its software, which is to
277.
▲
by
ww520
2y ago
Setting up a dynamic DNS record to map a hostname to my home network’s dynamic IP actually makes private VPN usable. It’s really a game changer to be able to access all the local services and resources on the road without exposing them to
278.
▲
by
ww520
2y ago
I assume the fourth point is for billing clients for a high fee while paying a quarter to the associates. But some law firms will use the more efficient tools to take on more cases for the partners to bill on their higher rates. Competition
279.
▲
by
ww520
2y ago
One of my production web-based projects managing critical transit data hit the 12 year mark. It was based on straight HTML/CSS, plain Javascript, Knockout.js (yeah, this was before ReactJS and friends), JQuery, Bootstrap CSS, and with
280.
▲
by
ww520
2y ago
For "write everything twice" I would say write some parts many times. You don't have to write everything twice. Most code are optimal or good enough already, but you should be willing to re-write some parts over and over ag
281.
▲
by
ww520
2y ago
I found WSL2 to have similar performance to native Windows. The only slowdown is loading files from the Windows side via /mnt/ which goes across the VM boundary. Move the files to the Linux side and it’s good.
282.
▲
by
ww520
2y ago
Thanks for the wonderful article. I’ve tried running models locally. I found that collocating the models on my computer/laptp took up too much resource to impact my work. My solution is to run the models on my home servers since they c
283.
▲
by
ww520
2y ago
People have the urge to build arts and monuments. See the art pieces people built in Slab City, even in the off the grid, away from society place.
284.
▲
by
ww520
2y ago
Staff Engineer comes from the military. They are the advisors to the general. That means they have direct access to the highest office in an organization.
285.
▲
by
ww520
2y ago
Lying itself is not illegal, i.e. they cannot prosecute you based on the lie itself. But they can use your lying as unfavorable evidence for the case being pursued to nail you in the court. It’s better to invoke the fifth to state you don’t
286.
▲
by
ww520
2y ago
That's an excellent video. Before watching it I didn't realize there were so much physics involved in making the rick cookers.
287.
▲
by
ww520
2y ago
Many videos on hash table are great. I found this one particularly good. [ https://www.youtube.com/watch?v=M2fKMP47slQ ] C++Now 2018: You Can Do Better than std::unordered_map: New Improvements to Hash Table Performance
288.
▲
by
ww520
2y ago
Yes. Swiss is good for non-duplicate lookups. For highly duplicate data the extra memory fetch for the metadata byte really kills the performance. For this contest, there’re a billion lookups with only couple hundreds distinct keys. That me
289.
▲
by
ww520
2y ago
Ha. I didn’t know the detail of any of these tables beforehand. It’s just a matter of doing a bit of research. The main takeaway is there’s no perfect hash table. It all depends on the data and the operations. Contests like this are the per
290.
▲
by
ww520
2y ago
Besides the standard tricks to speed up the running time like threads and mmap, the biggest speed up is to use a custom hash table that is tuned for the data. I have implemented 5 different versions of hash tables including the Swiss hash t
291.
▲
by
ww520
2y ago
As part of learning zig I did an implementation in zig. It got under 1 second within the contest rules on a 6 year old desktop machine. I need to write up a blog when I get the chance.
292.
▲
by
ww520
2y ago
> Combining tabs and bookmarks into one cohesive display I've tried to experiment with different ways to present browsing information. One approach is to present the tabs, bookmarks, and history on one open cohesive page, and allow
293.
▲
by
ww520
2y ago
You don’t have a right to the money then.
294.
▲
by
ww520
2y ago
That’s the -F option to list all the formats, including the audio streams. Pick the audio format with -f to download the audio. I usually pick the .m4a format and then run it through ffmpeg to convert to mp3.
295.
▲
by
ww520
2y ago
If it were the editor's opinion, how is it any different from the opinion of anybody off the street? Why do the editors get the newspaper platform to publish their opinions?
296.
▲
by
ww520
2y ago
Yes, the boards of different states have quotas to limit the number of people passing the medical board exam each year. BTW, more doctors should follow what this doctor does. https://www.youtube.com/watch?v=yCtAdgpW_Vs . T
297.
▲
by
ww520
2y ago
I had $20 on the old magnetic strip card that was never used and got obsoleted. I had Clipper cards laying around with various remaining balances. I suspect the loose changes gained by the operators gave them less incentives to move forwar
298.
▲
by
ww520
2y ago
A lot of subways have accepted the use of contactless credit cards or debit cards by touching the readers at the gates to pay for the fares. BART and MUNI still use Clipper card only. I’ve asked someone work inside and he said the suppliers
299.
▲
by
ww520
2y ago
You give up control of your important file to a 3rd party who controls the encryption and the storage.
300.
▲
by
ww520
2y ago
Use KeePass and its variants, for storing the encrypted data in a local file. Use any of the file sync products to sync the file across devices, e.g. Dropbox, Syncthing, etc.
More ›