HNHacker News
TopNewBestAskShowJobs

jwtorres

45 karma · joined December 17, 2017

submissionscomments
jwtorres··on The Photographic Periodic Table of the Elements (2017)
Kinko's I believe was bought out by Fedex. The one near me basically changed names but still offers the same services.
jwtorres··on Show HN: A macOS app to prevent sound quality degradation on AirPods
Other than using Shazam, when is this an issue for people? On Zoom or Facetime, the audio connection is almost certainly using an HFP/SCO connection, which is going to downgrade to an 8K or 16KHz sample rate regardless of where the mic is coming from.

I don't use Shazam, but it doesn't actually make sense to me that you would even use Shazam while listening to audio in your Airpods. I thought that was for music you heard from something other than your own device. You are listening to music in your Airpods and trying to identify a song from another source at the same time?

This just isn't making sense to me.

jwtorres··on VanillaJSX.com
I genuinely don't understand why anyone would be interested in using frameworks on top of JS. None of them can do anything that pure JS can't do (+libraries), they just make it less readable and less intuitive compared to the original C-like syntax of JS. JS libraries make sense, of course, but why keep messing with the syntax?
jwtorres··on Building a GATT Server on Pi Pico W
Bluetooth/BLE has the unique problem that you don't own the code on both sides of the wireless tx/rx. In webdev, you have control over client side and server side code and can make them work together in some unique way, without worrying about interoperability. But with Bluetooth/BLE devices, not only do you need to be able to communicate with random peers you've never seen before, those peers also need to be able to connect to countless other BT/BLE devices and read information about the services available on those devices. In order to enable this interoperability between BLE devices, a standardized format needed to be developed: GATT. GATT is the very highest layer of this interoperability and is considered "user-level" from the perspective of a BT firmware dev. In BT classic, the SDP table provides nearly the same service as GATT, except that data isn't carried over it, just service discovery.
jwtorres··on Food price hikes are no longer outpacing overall inflation
Interesting. What you say is true, but there is an opposing force. If someone has cash on hand when interest rates spike, they can buy when everyone else has a much harder time getting loans. So this makes things appear cheaper because there are less buyers on the market.

BUT the opposing force is the inflation that originally justified the spike in interest rates. That cash they are holding is simultaneously worth less due to the devaluing of the dollar, but also enables you to operate when others have run dry.

EDIT: so I guess there is a distinction in the value of the dollar when you are using it to buy large things that require debt vs the day to day little items. Because the little items will get inflated easily as everyone allocates their limited capital to food and fuel. But the real estate market will stagnate as no one can trade houses around in this environment.

jwtorres··on Food price hikes are no longer outpacing overall inflation
>that's why they crank the interest rate through the ceiling. People that are cash heavy could come up quite a bit if left uninhibited

Can you clarify?

jwtorres··on Food price hikes are no longer outpacing overall inflation
This is interesting. Never thought about how confusing it would be when banks start playing musical chairs with your mortgage.

I do agree that a soft landing is still a recession. But the more people that realize that, the less soft the landing might be.

jwtorres··on Food price hikes are no longer outpacing overall inflation
They also use fuel, rent, and a bunch of other things. So I think it's valid to compare the two.
jwtorres··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
No one owns the airwaves. If you don't want to pay the SIG fees, simply do not use their logo or name.
jwtorres··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
Good work putting all this together. Not saying anything is wrong necessarily, but missing part of the picture.
jwtorres··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
Right, it’s more of a configuration that is being changed. But my point was that this is all above the HCI layer, so at the end of the day it’s related to the specific host-stack implementation and not to do with Bluetooth in general.

I guess I’m basically saying the title should be changed

jwtorres··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
Nope
jwtorres··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
Not really. Just experience
jwtorres··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
Well that's doable with enough embedded memory, but it will become an issue when you want to sync audio and video. So it really is less of a protocol thing and more of something that an individual product could design in, allowing a user to toggle the feature via an app.
jwtorres··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
This article is not about Bluetooth in general, it is a deep dive into the bugs buried within the Android Bluetooth stack.

And what the writer is not acknowledging at all is that the underlying hardware being used is highly variable. Android runs on top of numerous Bluetooth chipsets. So when he gets a patch to seem to work on his hardware, there is no saying that it will work for a different Android phone.

Furthermore, this all depends on what else the device is up to at the current moment. If you have shared BT+Wifi chipset and you are streaming a video over wifi, then streaming the audio to your headphones, the device is having to allocate resources based on wifi usage and BT. So playing audio stored locally and audio via a stream is not necessarily going to get the same CODEC parameters.

There is so much nuance to this subject that the author just hasn't considered. Please be careful what you read.

jwtorres··on Large Eruption Near Tonga, Heard in NZ. Tsunami at Tonga and Fiji
Getting crazy tides sloshing in and out of the marina every couple minutes here on Oahu.
jwtorres··on Student photographs people with hidden spy cam in the 1890s (2018)
Wow all of those people seem so miserable. We are so much better off for our technological advancements ;)
jwtorres··on My productivity app for the past 12 years has been a single .txt file
The bash script I was talking about simply curls the .txt file from Dropbox, edits/appends it, then curls it back up to Dropbox (overwriting the old copy).

Dropbox iOS app allows you to create .txt files if you absolutely need to take a note from your phone. I’m never far from my computer personally.

I also wrote a Chrome extension that does essentially the same thing as my bash script (as well as save bookmarks to Dropbox). Its caching mechanism is very convenient for writing long notes that will be edited over hours or days—if the machine goes down, they’re all stored in Chrome’s local memory the next time I boot.

jwtorres··on My productivity app for the past 12 years has been a single .txt file
Funny that we all resort to the same things. I have an almost identical bash script that appends and timestamps each note, but I push it to my Dropbox account using their REST APIs instead of my local file system.
jwtorres··on Twinkle Notes: Cross-platform encrypted notes app
>"See the section about "CBC with Counters"."

That section is talking about using an incrementing counter as the IV--it doesn't say anything about a PRNG being a bad choice (in this case, the PRNG being a SHA256).

>"By studying the source code, we can see what gets fed into the SHA256 inputs. The cost to brute force all possible inputs is definitely much lower than 2^128, therefore it weakens the IND security of the AES-CBC scheme."

Are you talking about brute forcing the IV? The IV is not a secret to anyone--it's usually appended to the cipher text.

jwtorres··on Twinkle Notes: Cross-platform encrypted notes app
Can you cite some source for why the SHA256 of changing data isn't sufficiently random to be used as the IV?
jwtorres··on Key Negotiation of Bluetooth Attack
Agree that it would be significantly easier if you had physical access either of the devices. However, with physical access there are probably even easier attack vectors (e.g. in the case of a keyboard, why not just capture the key presses directly instead of trying to capture it as it's going over BT?).
jwtorres··on Key Negotiation of Bluetooth Attack
Not sure I understand what you mean.
jwtorres··on Key Negotiation of Bluetooth Attack
Quoting my response to Tuna-Fish: "Trying to overpower the transmission of the BT peer is certainly the technique to take (although I was hoping not to broadcast that publicly in my original post). You will still have a tough time, however, because you're probably trying to overpower the transmission of two collocated devices (e.g. keyboard+computer) while you are 5-50feet away. In many cases you'll probably end up saturating the receiving antenna. It will be largely a trial-and-error technique, but it will work eventually."
jwtorres··on Key Negotiation of Bluetooth Attack
There certainly is a penalty for missing time slots (especially if you're trying to overpower the other transmitter). There are two reasons for this: (1) the victim device will have hit the time slot and the pairing process will move into the next stage and (2) packet counters will prevent you from using the same packet in the wrong slot.

Trying to overpower the transmission of the BT peer is certainly the technique to take (although I was hoping not to broadcast that publicly in my original post). You will still have a tough time, however, because you're probably trying to overpower the transmission of two collocated devices (e.g. keyboard+computer) while you are 5-50feet away. In many cases you'll probably end up saturating the receiving antenna. It will be largely a trial-and-error technique, but it will work eventually.

jwtorres··on Key Negotiation of Bluetooth Attack
For BT, it's not a matter of transmitting first (for Wifi it would be), but rather transmitting in the exact time slot that the two devices are expecting each other to transmit. This is tightly timed in BT devices (tens of microseconds)--they are only listening on tiny intervals and only expected to transmit on tiny intervals. It would sound like periodic chirping if you were able to hear it with your ears.

Meanwhile, the two BT devices are going to be transmitting in their normal time slots, so you would need to prevent them from being heard by the peer-- otherwise, the combined transmission (of the attacker and original BT device) will look like noise to the receiver and the attack would fail.

The attack is certainly doable, but in a practical setting would be extremely difficult.

jwtorres··on Key Negotiation of Bluetooth Attack
Only keyboards that use BR/EDR are affected. BLE keyboards are unaffected.
jwtorres··on Key Negotiation of Bluetooth Attack
7 octets is the minimum set by the SIG, not a mandatory length to support for all devices. For devices that transfer sensitive information (phones, keyboards, etc.), a larger key length can be enforced. This would be enforced by the application written by the product designer, not the BT chipset vendor nor the BT SIG.
jwtorres··on Key Negotiation of Bluetooth Attack
This is not a trivial attack. Within the short key negotiation phase, the attacker must simultaneously prevent the two devices from hearing each other, and be transmitting in their place at the exact frequency hop and interval.

"The attacking device would need to intercept, manipulate, and retransmit key length negotiation messages between the two devices while also blocking transmissions from both, all within a narrow time window. "

jwtorres··on A comparative study: tongue muscle performance in weightlifters and runners
Similar concept: https://www.nytimes.com/2018/05/16/well/move/exercise-sports...