Readit News logoReadit News
ncann commented on Git-Annex   git-annex.branchable.com/... · Posted by u/keepamovin
Borg3 · 2 days ago
Why? WHY?! Why the heck are you using (D)VFS on your immutable data? What is the reasoning? That stuff is immutable and usually incremental.. Just throw proper syncing algoritm on it and sync w/ backups.. thats all. I wonder aby logic behind this...

Docs and other files you often change is completly different story. This is where DVFS shines. I wrote my own very simple DVFS exacly for that case. You just create directory, init repo manager.. and vioala.. Disk wide VFS is kinda useless as most of your data there just sits..

ncann · 2 days ago
I am looking into using Git for my photos/videos backup external HDDs and the reasoning is simple. It's not about keeping track of changes within the files themselves since like you said, they (almost) never change. Rather, it's about keeping track of changes in _folders_. That is, I want to keep track of when I last copied images from my phones, cameras, etc. to my HDDs, which folders did I touch, if I reorganized existing files into a different folder structure then what are the changes, etc. Also it acts as a rollback mechanism if I ever fat finger and delete something accidentally. I wonder if there's a better tool for this though
ncann commented on Debounce   developer.mozilla.org/en-... · Posted by u/aanthonymax
ncann · 20 days ago
I needed an implementation of debounce in Java recently and was surprised to find out that there's no existing decent solution - there's none from the standard library, nor popular utilities libraries like Guava or Apache Commons. There are some implementations floating around like on Stackoverflow but I found them lacking, either there's no thread safety or there's no flexibility in supporting the execution of the task at the leading edge or trailing edge or both. Anyone has a good recommendation on a good implementation?
ncann commented on DJI couldn't confirm or deny it disguised this drone to evade a US ban   theverge.com/report/71410... · Posted by u/sea-gold
bastard_op · a month ago
Same as 99% of Chinese sellers on amazon - make a bad product, just rename, and have deepseek make you a new random short-as-possible company name with random characters and as human as possible.
ncann · a month ago
DJI drones are nowhere near "bad", they're the best and nothing else comes close. It's a shame how they're sanctioned given there's no viable alternative. I always wonder why there's no Western company that has the same product offerings.
ncann commented on USB-C hubs and my slow descent into madness (2021)   overengineer.dev/blog/202... · Posted by u/pabs3
geor9e · a month ago
Because the USB Consortium made a terrible mistake. Instead of speccing USB-PD power supplies to default to 5V <3A when there are no resistors in the port of the other device, the default is do nothing. So in order to be in spec, you have to refuse to charge non-compliant ports. This means the compliant power supplies are worse, in a way. So you need to use a "dumb" USB-A power supply and USB-A to C cable, which does default to 5V <3A to matter what. As for why some devices choose to use non-compliant ports - I assume it's extreme cheapness. They save a penny on a resistor.
ncann · a month ago
I guess this is only partially true, as I have a A-to-C charger cable from Huawei that works with everything except my Pixel 4A phone. And my Pixel 4A phone works with everything except that specific cable.
ncann commented on USB-C hubs and my slow descent into madness (2021)   overengineer.dev/blog/202... · Posted by u/pabs3
whatever1 · a month ago
The problem that I have is that I have a ton of usb cords in my drawer. I DONT KNOW WHAT THEY ARE CAPABLE OF.

Is it a charge only cable (no data)? Is it usb3 5gbps ? Is it 100 watt power delivery? Is it thunderbolt 3/4/5?

ncann · a month ago
You can test them to a certain extent using a USB tester device like RYKEN RK-X3
ncann commented on Async Queue – One of my favorite programming interview questions   davidgomes.com/async-queu... · Posted by u/davidgomes
ncann · 2 months ago
> Here's a naive, faulty implementation

For this first implementation, I don't see anything ever added to the queue. Am I missing something? New task is added to the queue if the queue is not empty only, but when the queue is empty the task is executed and the queue remains empty so in the end the queue is always empty?

ncann commented on $70M in 60 Seconds: How Insider Info Helped Someone 28x Their Money   data-and-politics.ghost.i... · Posted by u/pulisse
huijzer · 4 months ago
Overall the argument by the author is very convincing and well put. One part I don’t fully agree with is

> If the trades hadn’t worked out, the losses would have been swift and total. Zero-day options don’t forgive bad timing. The entire $2.5 million could have evaporated by the close of trading. Even with SPY shares, any unexpected reversal would have meant millions in losses.

This has exactly been Taleb’s strategy. Buy option where the writeoff is small when wrong and the payoff huge when correct. As described in the post, the ratio was 1 to 25. Also it was likely that the market would go through huge shifts because the policy is so unpredictable.

So it is not impossible that someone figured that it would be possible to just buy these calls for the whole month. As long as one was a hit, the trade would not make a loss. And given the volatility, at least one would be a hit in this month. These short option bets are truly not such strange ehm options in these volatile times.

So I would like some data about whether similar options were bought on other days in similar volumes.

Having said that, I do find the evidence very strong and it’s reasonable to assume that this was insider trading. I personally suspect someone at JPM or Ackman. They said they “convinced” Trump so maybe Trump said in a meeting that it would probably happen and they immediately bought the calls.

ncann · 4 months ago
> So I would like some data about whether similar options were bought on other days in similar volumes.

The volumes are there for all to see and the answer is no.

ncann commented on Diagnosing bugs preventing sleep on Windows   peteronprogramming.wordpr... · Posted by u/donpedro1337
7bit · 5 months ago
I use Hibernation instead of Standby. I have an SSD so the difference boils down to maybe 10 seconds. Which is time I do have :)
ncann · 5 months ago
Hibernate is great, except for the part where it wears down your SSD much faster, especially if you have a machine with big amount of RAM.
ncann commented on Diagnosing bugs preventing sleep on Windows   peteronprogramming.wordpr... · Posted by u/donpedro1337
Aardwolf · 5 months ago
> There used to be a simple registry edits you could do but Microsoft seem to have closed that loophole.

Why? I mean, what incentive does MS have to say "people are still trying to use the non-buggy sleep that doesn't cause fires, let's close the loophole to force using the buggy sleep"?

ncann · 5 months ago
The non-buggy sleep (S3) isn't even supported in the BIOS in many new laptops now (in the Dell I'm using for example). So MS probably decided to kill that option off for everyone. To be honest it's a very confusing situation since there are so many hardware configurations under Windows and if you search online I think some people are still able to disable S0 on their new laptop/latest Windows, but some (myself) definitely cannot.

Deleted Comment

u/ncann

KarmaCake day1829January 1, 2021View Original