Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
brewmarche
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
brewmarche
9mo ago
That would mean that higher sampling rates (which add more inaudible frequencies) could cause similar problems. OK xiphmont actually mentions that, sorry, I had only watched the video when I replied.
62.
▲
by
brewmarche
9mo ago
Someone else wrote that it was chosen to best match PAL and NTSC. IIRC there is also a Technology Connections video about those early PCM adaptor devices that would record to VHS tape. < https://en.wikipedia.org/w/ind
63.
▲
by
brewmarche
9mo ago
> Now you could play it back wrong by emitting a sharp pulse f_s times per second with the indicated level. This will have a lot of frequency content above 20kHz and, in fact, above f_s/2. It will sounds all kinds of nasty. Wouldn’t
64.
▲
by
brewmarche
9mo ago
This is a nice video. But I’m wondering: do we even need to get back the original signal from the samples? The zero-order hold output actually contains the same audible frequencies doesn’t it? If we only want to listen to it, the stepped wa
65.
▲
by
brewmarche
9mo ago
I think I had to disable spellcheck to fix the ignored keystrokes, it happened even after disabling formatting
66.
▲
How problematic is resampling audio from 44.1 to 48 kHz?
(kevinboone.me)
51 points
by
brewmarche
9mo ago
|
113 comments
67.
▲
by
brewmarche
9mo ago
> git/GitHub/gitlab/codeberge Is this about commit signing? Git and all of the mentioned forges (by uploading the public key in the settings) support SSH keys for that afaik. git configuration: gpg.format = ssh user.signin
68.
▲
by
brewmarche
9mo ago
I’m wondering, wouldn’t a default deny inbound firewall still need hole punching with IPv6? You wouldn’t need STUN to find your global address but if you use varying ports you’d need to communicate the port first, and you’d also need to tim
69.
▲
by
brewmarche
9mo ago
You should use unique local addresses (ULAs, fc00::/7) not link-local addresses (fe80::/10) for this. Choose a random prefix and advertise it in your network (you can use some website like https://www.unique-local-ipv6.
70.
▲
by
brewmarche
9mo ago
There’s a difference between the European version of the Apple dongle and other regions. The European version maxes out at 0.5 Vrms instead of 1 Vrms.
71.
▲
by
brewmarche
9mo ago
Usage at call site: using (var result = foo.GetSomethingIfLucky()) { if (result.IfHappy is {} success) { // do something } }
72.
▲
by
brewmarche
9mo ago
You have to write a disposable wrapper to return. Return it in error case too. readonly record struct Result<TResult, TDisposable>(TResult? IfHappy, TDisposable? Disposable): IDisposable where TDisposable : IDisposable {
73.
▲
by
brewmarche
9mo ago
You can move the burden of disposing to the caller (return the disposable object and let the caller put it in a using statement). In addition, if the caller itself is a long-lived object it can remember the object and implement dispose itse
74.
▲
by
brewmarche
9mo ago
In C# the closest analogue to a C++ destructor would probably be a `using` block. You’d have to remember to write `using` in front of it, but there are static analysers for this. It gets translated to a `try`–`finally` block under the hood,
75.
▲
A Tale of Two Leaks: How Hackers Breached the Great Firewall of China [video]
(media.ccc.de)
22 points
by
brewmarche
9mo ago
|
0 comments
76.
▲
When compilers surprise you
(xania.org)
244 points
by
brewmarche
10mo ago
|
104 comments
77.
▲
SIMD City: Auto-Vectorisation
(xania.org)
63 points
by
brewmarche
10mo ago
|
19 comments
78.
▲
When LICM [Loop-Invariant Code Motion] Fails Us
(xania.org)
3 points
by
brewmarche
10mo ago
|
0 comments
79.
▲
Unrolling Loops
(xania.org)
15 points
by
brewmarche
10mo ago
|
0 comments
80.
▲
by
brewmarche
11mo ago
I agree, although I am a bit surprised to see that we’ve used more than half of the protocol numbers already
81.
▲
by
brewmarche
11mo ago
I guess most people mean NAPT/PAT when they say NAT
82.
▲
by
brewmarche
11mo ago
What if extension headers made it better? We could come up with a protocol consisting solely of a larger Next Header field and chain this pseudo header with the actual payload whenever the protocol number is > 255. The same idea could al
83.
▲
by
brewmarche
1y ago
Apologies, my post was not precise enough, but I think I got it. > It wouldn't be practical to make it behave quite like an L2 switch. What are typical configuration? If you’re allowed to talk about it.
84.
▲
by
brewmarche
1y ago
So, if I know the destination addresses on each port in advance I can program it to behave like an L2 switch (with proper multicast even), and I can use code to reprogram it whenever the traffic pattern changes?
85.
▲
by
brewmarche
1y ago
Interesting that they went with a custom MIME type and a custom version header. I would have expected the version to be in the MIME type, but I feel like there is a reason behind this.
86.
▲
by
brewmarche
1y ago
Are L1 switches like hubs or repeaters then? Sorry for my confusion.
87.
▲
by
brewmarche
1y ago
Maybe surprising for days (could also happen with minutes because of leap seconds technically :-) but for months and years this is more apparent due to month ends and leap years.
88.
▲
by
brewmarche
1y ago
I have very limited Python experience but I remember using pymssql in the past. Are there any problems with it?
89.
▲
by
brewmarche
1y ago
I have the same phone but to be fair some websites stopped working (GitHub is among them) and some of my banking apps stopped getting updates as well. No huge deal breakers _personally_ as I don’t need banking on my phone anyway (I have an
90.
▲
by
brewmarche
1y ago
I don’t think it’s a metric for 0 < p < 1 though.
More ›