Better HN
topnewbestaskshowjobs
Log inSign up

ssebastianj

84 karma · joined Mar 17, 2014 (12y ago) · 53 submissions

Submissions

comment 5y ago · link · parent

You could also show Python docs on a Kindle using its experimental browser:

1. On the development machine: $ python3 -m pydoc -n 0.0.0.0 -p 8888

2. On the Kindle web browser: http://DOCS_MACHINE_IP:8888

It's slow, sometimes times renders with ghosting, ant-sized fonts, but hey, the docs' search works. I rarely (almost never) use this setup but is nice to use the Kindle for other uses apart from books

comment 5y ago · link · parent

I agree, in fact, until today I wasn't even aware about QAOps!

comment 6y ago · link · parent

> There are no logs when someone connects or is trying to connect, so auditing or troubleshooting becomes extremely difficult short of packet captures.

I'm wondering if this would be a use case for eBPF

comment 7y ago · link · parent

Indeed, this method is cool. It allowed me to sniff the traffic between some poorly documented IoT device and a remote server (unencrypted, what else) via OpenWrt:

[0] https://openwrt.org/docs/guide-user/firewall/misc/tcpdump_wi...

comment 7y ago · link · parent

There's a joint paper (dated 2017, I think) from engineers from Google, Mozilla, Microsoft, and Apple working on WebAssembly [0]

[0] https://blog.acolyer.org/2017/09/18/bringing-the-web-up-to-s...

"Bringing the web up to speed with WebAssembly" [PDF]: https://github.com/WebAssembly/spec/raw/master/papers/pldi20...

comment 8y ago · link · parent

> "The whole thing was just a drawn up window inside the phishing website!"

This reminds me the "Phishing Alert Toolbars" section from Ross Anderson's "Security Engineering" book on what he calls a "picture-in-picture website" [0]

[0] https://www.cl.cam.ac.uk/~rja14/Papers/SEv2-c02.pdf

comment 8y ago · link · parent

Just wondering, is there any reason why the Yubico FIDO2 Python API[0] talks to a USB device by using custom code to handle the USB protocol instead of using a module like PyUSB[1]?

[0] https://github.com/Yubico/python-fido2

[1] https://pyusb.github.io/pyusb/

comment 8y ago · link · parent

Luckily, Django provides checks to avoid this kind of leakage before hitting production with https://docs.djangoproject.com/en/2.1/howto/deployment/check...

comment 8y ago · link · parent

Relevant link: "PEP 563: Postponed Evaluation of Annotations" https://docs.python.org/3/whatsnew/3.7.html#pep-563-postpone...

comment 8y ago · link · parent

Not the parent but on Ubuntu I use:

$ python -m pip ... # Use Python 2

$ python2 -m pip ... # If you want to be sure is using Python 2

$ python3 -m pip ... # Use Python 3

$ python3 -m venv ... # Create a virtualenv with Python 3 as documented on https://docs.python.org/3/library/venv.html to "prevent any potential confusion as to which Python interpreter a virtual environment will be based on"

I know it's verbose and long to type but looks explicit to me and saved me to use the wrong version of Python several times.

comment 8y ago · link · parent

Oh, didn't know about the "xray" project. So, the question I asked in 2016 is (in some way) becoming a reality: https://news.ycombinator.com/item?id=11308553

comment 8y ago · link · parent

I'd also recommend "Magic Ink: Information Software And The Graphical Interface": http://worrydream.com/#!/MagicInk

comment 8y ago · link · parent

Confirmed from Argentina.

From Cloudflare Status: "Resolver Timeouts" https://www.cloudflarestatus.com/incidents/2mz3wly2g7dy

comment 8y ago · link · parent

Yeah, I recently "discovered" the commands 'whatis' [0] and 'apropos' [1] and my experience learning Linux improved quite a bit.

[0] https://linux.die.net/man/1/whatis

[1] https://linux.die.net/man/1/apropos

comment 8y ago · link · parent

Ha! I feel your pain. That's what I ended up doing for an application a few years ago, wrote a Python script to compile the Qt Designer generated code to Python code [0]

[0] https://github.com/ssebastianj/ia2013-tpi-rl/blob/master/gui...

Going back and forth between Qt Designer and PyDev was (is?) ancient. Unfortunately I couldn't find a way to automate the compilation step (perhaps with a hook from Qt Designer?)

comment 8y ago · link · parent

I don't know if that it's exclusive on ThinkPads but I love that feature. Now I'm using TLP[0] to re(calibrate) the batteries (main and extra) on a ThinkPad running Linux, it uses "tp-smapi-dkms" or "acpi-call-dkms" behind the scenes.

[0] http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-man...

comment 8y ago · link · parent

Nice, didn't know about "\ls"! I wonder what's the difference between "\ls" and "command ls". Yes, it's a bit longer to type but the output is the same, I'm asking about what happens behind the scenes.

comment 8y ago · link · parent

Take a look to School of Life's "Finding your mission" video [0]

[0] https://www.youtube.com/watch?v=c5-LfK2i2J4

comment 8y ago · link · parent

My first (and current) mechanical keyboard was a Corsair K70 non-RGB with Cherry MX Browns. I don't game so I use it mostly for work-related tasks: programming, writing docs, books. I'm quite happy with it so far.

comment 8y ago · link · parent

Another happy user of a T450 here :)

comment 8y ago · link · parent

And if IRC is not enough we could get back to Pigeon Post[0] running over "IP over Avian Carriers with Quality of Service"[1]

[0] https://en.wikipedia.org/wiki/Pigeon_post [1] https://tools.ietf.org/html/rfc2549

comment 8y ago · link · parent

Something I didn't know until recently was that PyCharm debugger was a cross-project cooperation between PyDev people and PyCharm people [0]

[0] https://blog.jetbrains.com/pycharm/2016/05/debugger-intervie...

comment 8y ago · link · parent

> (...) I know some people like the light speed of Sublime, but to me there's a certain threshold where it's just fast enough. (...)

I feel the same way too. I was a Sublime Text fan/user for a few years until did the change to Atom and finally settle down on VSC two years ago. VSC is fast enough for me. Also, LSP seems interesting, ripgrep-backed search, official support for Python (as an extension) and so on.

EDIT: formatting

comment 8y ago · link · parent

Don't forget "Dark Patterns" [0]

[0] https://darkpatterns.org

comment 9y ago · link · parent

Maybe a confidential-linter or git pre-commit hook would be nice to prevent leaking confidential information.

comment 9y ago · link · parent

This somewhat reminds me to the "The Funniest Joke in the World" by Monty Python: https://en.wikipedia.org/wiki/The_Funniest_Joke_in_the_World

comment 10y ago · link · parent

- Python for VS Code: https://marketplace.visualstudio.com/items?itemName=donjayam...

- Django Template: https://marketplace.visualstudio.com/items?itemName=bibhasdn...

- Django Snippets: https://marketplace.visualstudio.com/items?itemName=bibhasdn...

comment 10y ago · link · parent

I'm using Google Public DNS too. I don't really know if there is a relation with DynDNS but I'm still experiencing issues in GitHub and Twitter, like partial loading of images.

comment 10y ago · link · parent

The Python coding experience in VS Code is very nice. Regarding to debugging Python code, can't say much about it just because I started using it yesterday. Even so, was a pleasant experience too.
12