HNHacker News
TopNewBestAskShowJobs

ssebastianj

84 karma · joined March 17, 2014

submissionscomments
ssebastianj··on Turning an old Amazon Kindle into a eInk development platform
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

ssebastianj··on FOSDEM 2021
I agree, in fact, until today I wasn't even aware about QAOps!
ssebastianj··on WireGuard is in net-next
> 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

ssebastianj··on Termshark – A terminal UI for tshark, inspired by Wireshark
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...

ssebastianj··on Analyzing the Performance of WebAssembly vs. Native Code
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...

ssebastianj··on An Innovative Phishing Style
> "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

ssebastianj··on Designing Solo, a new U2F/FIDO2 Token
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/

ssebastianj··on Remote Code Execution on a Facebook server
Luckily, Django provides checks to avoid this kind of leakage before hitting production with https://docs.djangoproject.com/en/2.1/howto/deployment/check...
ssebastianj··on Bringing macros to Python by abusing type annotations
Relevant link: "PEP 563: Postponed Evaluation of Annotations" https://docs.python.org/3/whatsnew/3.7.html#pep-563-postpone...
ssebastianj··on Pylava: A fork of the Pylama code audit tool for Python 3.7
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.

ssebastianj··on Atom 1.29
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
ssebastianj··on The Hidden Cost of Touchscreens
I'd also recommend "Magic Ink: Information Software And The Graphical Interface": http://worrydream.com/#!/MagicInk
ssebastianj··on Ask HN: 1.1.1.1 DNS (Cloudflare) outage?
Confirmed from Argentina.

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

ssebastianj··on There are real reasons for Linux to replace ifconfig, netstat, etc
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

ssebastianj··on Hello Qt for Python
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?)

ssebastianj··on Laptop explodes while charging at Letchworth business
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...

ssebastianj··on I usually run 'w' first when troubleshooting unknown machines
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.
ssebastianj··on Ask HN: What is your “mission” in work and life?
Take a look to School of Life's "Finding your mission" video [0]

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

ssebastianj··on Matias Click Switches: Tactile mechanical keyswitches
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.
ssebastianj··on New ThinkPad Guts Bring Intel Core I, DDR4, USB 3 to Cult Laptops
Another happy user of a T450 here :)
ssebastianj··on Google Hangouts Chat
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

ssebastianj··on Goodbye to Eclipse – the end of an era as an Eclipse plugin developer
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...

ssebastianj··on Goodbye to Eclipse – the end of an era as an Eclipse plugin developer
> (...) 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

ssebastianj··on New ethics courses in computer science
Don't forget "Dark Patterns" [0]

[0] https://darkpatterns.org

ssebastianj··on GitHub commit search: “remove password”
Maybe a confidential-linter or git pre-commit hook would be nice to prevent leaking confidential information.
ssebastianj··on CIA Declassified Coldwar Russian Jokes [pdf]
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
ssebastianj··on Visual Studio Code 1.7
- 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...

ssebastianj··on DDoS Attack Against Dyn Managed DNS
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.
ssebastianj··on Visual Studio Code 1.6
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.
ssebastianj··on FBI director: Cover up your webcam
I was looking for a way to cover the mics and webcam integrated in my laptop which doesn't require a tape. So, I grabbed a couple of those magnets stripes usually found on fridges and then , using a scissor, made two little rectangular stripes and a larger one. Next, I glued the little stripes on the laptop, near close the mics. The nice thing is that the large stripe covers both, the mics and webcam. For me, it's an easy way to cover/uncover fast.
Page 1 of 2Next →