HNHacker News
TopNewBestAskShowJobs

SnowflakeOnIce

511 karma · joined February 7, 2018

submissionscomments
SnowflakeOnIce··on I've locked myself out of my digital life
I suspect they are thinking of TOTP-based schemes for 2fa, not hardware-based 2fa. With TOTP-based 2fa, you can store the seeds in your password manager, which ends putting them next to the passwords themselves, all in one place.
SnowflakeOnIce··on Python utility for tracking third party dependencies within a library
No, you understand. Indeed, by importing Python code, you execute Python code, and so there could be ab execution path for malicious code to run.

FYI, pylint does something similar for native-code extension modules (unless this changed in the past few years): it imports them dynamically!

EDIT: reading the code more closely and reading the rest of the comments, more precisely, it's not the subprocess call itself, but rather importing an arbitrary Python module, which could be a path for code execution. But this is the case generally with Python: importing a module executes code, and so even just importing (not otherwise executing) an untrusted module could be problematic.

SnowflakeOnIce··on Modern Python Performance Considerations
'print' is a global function that can be overridden by user code. The most obvious way to do this would be to define a new function named 'print', but it could also be overridden through less direct means, like from an 'eval' call, manually manipulating the global variables mapping ('globals()'), or by manipulating the '__builtins__' mapping. Maybe this happens in another thread!

Statically reasoning about all this (as would be required for optimization) is difficult. Not totally impossible, but not something that the canonical CPython implementation tries to do.

SnowflakeOnIce··on Modern Python Performance Considerations
In Python semantics, indeed, 'print' does need to be looked up each time!
SnowflakeOnIce··on We fixed f-string typos in popular Python repos
Strings and f-strings are not separate types in Python, sadly.
SnowflakeOnIce··on USB-C hubs and my slow descent into madness (2021)
I saw this too from a Satechi hub! When connected to power and Ethernet but not a computer, it would crash my home network switch, requiring a power cycle on that. Maddening.
SnowflakeOnIce··on USB-C hubs and my slow descent into madness (2021)
I went through 2 CalDigit TS3 docks previously, and returned both of them. They had a good number of ports and seemed reliable for the few weeks I had them. But both of them had audibly noisy capacitors, resulting in a tinnitus-like 16KHz tone that would get louder when moving the mouse or when connecting an external monitor to the dock.
SnowflakeOnIce··on Ask HN: What's Up with Google?
I've also observed this on duckduckgo, perhaps to a slightly lesser extent. Strange: they either both tweaked their algorithms around the same time, or maybe SEO spam suddenly got a lot better.
SnowflakeOnIce··on Ask HN: What's Up with Google?
I've noticed in the past 2-3 months that results from StackOverflow, Wikipedia, and official programming language documentation sites seem to have been abruptly downranked. They used to typically be in the top 3 results for me for appropriate queries, but now they frequently aren't even on the first page.
SnowflakeOnIce··on Rich: A Python library for rich text and formatting in the terminal
What purpose does bat serve in showing command-line history?
SnowflakeOnIce··on A routine gem update ended up creating $73k worth of subscriptions
> A signature? I'm sorry, are you from the past?

No, the US :)

Signatures are still common enough when paying with a card in the US, for whatever reasons.

SnowflakeOnIce··on Is watching the 1984 Ghostbusters movie killing people?
Nassim Nicholas Taleb put out a video explanation of how Simpson's Paradox applies here, which is more direct and less tongue-in-cheek compared to the post: https://m.youtube.com/watch?v=XVRfBhy5vGI
SnowflakeOnIce··on Burnout Is Real
Yes, exactly. "Detailing cars" involves carefully cleaning them, polishing them, etc.
SnowflakeOnIce··on The DreamBank, a collection of over 20k dream reports
I always wondered if anyone else had this! People I have asked all seemed surprised by the question.
SnowflakeOnIce··on PyO3: Rust Bindings for the Python Interpreter
My guess is that the name is derived from the `-O3` compiler optimization level from many compilers.
SnowflakeOnIce··on macOS unable to open any non-Apple application
Same! On 2 Macs! My external keyboard and mouse stopped working. I thought I was having some hardware or USB issues.

Are you using Logitech keyboard and mouse, by any chance?

SnowflakeOnIce··on macOS unable to open any non-Apple application
Right around this same time, I had 1 macBook hard reboot (watchdogd timeout) and shortly thereafter, a second macBook froze, fan maxed out, with the display not coming up. Then it rebooted into recovery mode.

Yeah, these _could_ be unrelated issues to what has been going on in Apple land today, but it's uncanny...

SnowflakeOnIce··on Apple unveils M1, its first system-on-a-chip for portable Mac computers
The latency on the touch bat is terrible. Perhaps 1/2 second to update when you switch apps, for example!
SnowflakeOnIce··on Ask HN: Good C++ code bases to read?
LLVM is good but highly idiosyncratic. A lot of complexity shows up there from doing things like building and using a custom RTTI mechanism.
SnowflakeOnIce··on Nvidia Unveils GeForce RTX 30 Series GPUs
My 2019 Dell monitors take 15s :|
SnowflakeOnIce··on The Next Step for Generics
Yes, mypy is terrific, and has changed the way I write Python programs.

Taking this gradual typing tool a step further, you can run your tests with the typeguard plugin for pytest, which will dynamically check the types of most values, pointing out places where your types are a lie.

https://typeguard.readthedocs.io/en/latest/userguide.html#us...

SnowflakeOnIce··on New 13-inch MacBook Pro
I’ll tell you a little secret: when compiling or running multi-minute test suites, or sometimes even just being in a videochat, the fans rev up, and sound like a weak hair dryer, even on the 16” MBP (which is what I currently use).

The thermals on Apple laptops from the last several years don’t seem to be designed to work without frequently revving the fans way up.

SnowflakeOnIce··on New 13-inch MacBook Pro
That’s like... 1 Slack and a dozen Chrome tabs. :|
SnowflakeOnIce··on New 13-inch MacBook Pro
I’m a touch typist, and don’t look at the keyboard much. The Touch Bar, being a large smooth piece of plastic, breaks this flow.

Additionally, the Touch Bar has awful latency... hundreds of milliseconds to reconfigure itself when switching between apps??

SnowflakeOnIce··on Zoom needs to clean up its privacy act
Many music teachers are doing online lessons now, mostly via Zoom.

It seems that Zoom is the only popular videoconferencing software these days that allows you to disable all the postprocessing on the audio signal (echo cancellation, noise reduction, etc) through advanced settings. This postprocessing is very useful for /conversation/ meetings among many people with bad audio setups, but for two musicians and music signals, the postprocessing is highly detrimental, causing strange audio artifacts and causing instruments to drop out sporadically.

(It seems like there would be a market for videoconferencing software optimized for musicians, where the audio signal is sent at higher quality, given higher priority, and not postprocessed in detrimental ways. And without all the privacy concerns.)

SnowflakeOnIce··on Why I often implement things from scratch (2006)
RIP joe We miss you
SnowflakeOnIce··on TLDR pages: Simplified, community-driven man pages
> What I find annoying is the number of command line programs that don't even have man pages anymore. Or maybe that's just an artifact of installing them with brew?

A messed-up MANPATH environment variable can also cause man pages to not be found. In ‘man’ used on many flavors of Linux, MANPATH behaves differently from, say, PATH: an empty colon-delimited section means something like “use the system’s regular ‘man’ configuration for finding man pages”. Without that, it seems like a bad MANPATH setting will cause default mannpages not to be found.

SnowflakeOnIce··on Learning to code vs. learning to automate
I use Shortcuts to automatically set volume and start playing a particular playlist when my gym headphones pair with my phone.
SnowflakeOnIce··on I used to fear being a nobody, then I left social media
Next, take it one step further and skip going directly to any news sites or aggregators, and cut out news TV and radio.

You cut out the news-induced anxiety this way. After a while, you also realize that most news is noise, and doesn’t matter even a day later.

If something really significant happens, you’ll still hear about it.

SnowflakeOnIce··on Topics in Advanced Data Structures [pdf]
Lowest Common Ancestor shows up in graph theory, particularly to help compute dominator trees or dominator frontiers.

These problems arise in compilers that convert programs into static single assignment (SSA) form.

← PreviousPage 3 of 4Next →