Recent submissions

Comment · 1 year ago
Simple use case: What version of the json module is this live code running? (when you don't even know the attribute name)

# At a pdb prompt, from a frame where json is global or local:

  (Pdb) import pobshell; pobshell.shell()

  Welcome to Pobshell - type 'help' for commands, 'quit' to exit 
  / ▶ find json --name *version* -i -a -l
  /json/__version__  str                       '2.0.9'                                                  
  /json/codecs/sys/api_version  int                       1013                                           
  /json/codecs/sys/hexversion  int                       51055600                                       
  /json/codecs/sys/version  str                       '3.11.11 | packaged by  

  # -i case insensitive
  # -a include hidden attributes (_ and __ prefixed names)
  # -l give an 'ls -l' listing of the matched objects
Comment · 1 year ago
Clickable links for convenience:

* 2 min demo: https://www.youtube.com/watch?v=I5QoSrc_E_A

* PyPI: https://pypi.org/project/pobshell/

* GitHub: https://github.com/pdalloz/pobshell

Note: This is an alpha release. Built and tested with Python 3.12 on MacOS, Ubuntu, Windows (native + WSL).

I’m especially curious to hear how devs use this: — Exploring packages? — Debugging data state? — Teaching Python? — Something unexpected?

Any feedback is appreciated!

Comment · 1 year ago
But how many citizens know calculus, literature and physics? Certainly not enough know history - or US democracy wouldn't be facing the threat it does now.

The poorly educated need a livelihood too. If the economy is healthier for global trade (I think it is), then some way must be found of destributing its benefits to the demographics who got hit. Otherwise you get revolution or populism.

Telling an unemployed factory worker to send their kids to college doesn't help. Doesn't help the factory worker, and doesn't help kids who see education and middle class jobs as about as unreal as the idea of becoming a famous influencer or kingpin drug dealer.

Comment · 3 years ago
As an aside: Hardware as a service is annoying and feels horrible, but is probably the only way to achieve the long lifetimes we need for consumer goods in a world where reviews are unreliable and we need to stop wasting resources on planned obsolescence.
Comment · 3 years ago
Comment · 5 years ago
I wonder if the fact that DNA & RNA only occur with one chirality tells us something about how frequently this step occurs in the Drake equation. If the step from non biological organic molecules to RNA & DNA happens often, wouldn't we expect L-DNA and L-RNA to appear in nature?
Comment · 5 years ago
Even searching for tank woman or tank cat returns results!
Comment · 5 years ago
Attribution is not from tracing connections or domain ownership, it's from looking at the coding style, the "Tactics, Techniques and Procedures" and the choice of targets.
Comment · 5 years ago
There's surely a lot of bespoke software in those core Govt systems. So they'll be trying to run a software image from months ago with yesterdays data. The success of that depends on how quickly the software has been changing.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton