HNHacker News
TopNewBestAskShowJobs

masenf

172 karma · joined November 27, 2011

submissionscomments
masenf··on Ask HN: Is the GitHub pancake menu now a pancake emoji?
Relevant discussion https://github.com/orgs/community/discussions/203497
masenf··on Show HN: XY – A Fast, composable, GPU-accelerated interactive plotting library
I think meaningful is in the eye of the beholder. The library is designed such that the trace buffers are directly used as inputs to the WebGL2 drawing contexts to avoid unnecessary copying throughout the stack, which does make a difference when rendering on mobile and embedded devices with limited CPU but often having GPU resources available.
masenf··on Designing a Pure Python Web Framework
That's a really good point. Definitely something we need to work out before integrating this into the core framework.
masenf··on Designing a Pure Python Web Framework
At least one of the advantages in targeting React is being able to leverage the vast existing library of React components to quickly expose new and advanced functionality to the Reflex app.
masenf··on Designing a Pure Python Web Framework
Thanks for the feedback. I work on Reflex and in a recent release, the team added a template and CLI for creating third-party components and publishing them to PyPI.

Since then, I've built a few authentication libraries that might be of interest:

https://github.com/masenf/reflex-local-auth https://github.com/masenf/reflex-magic-link-auth https://github.com/martinxu9/reflex-google-auth (documentation WiP)

The problem with having auth built in is that it's been hard to find a solution that actually works for a majority of use cases. That said, as these auth libraries get more popular and refined, they might be moved into the reflex-dev organization as officially maintained components, or even integrated with the core framework.

masenf··on I just learned about HTML redirects (2020)
I've recently deployed this trick on my company's confluence instance (with an HTML macro) to create a "poor man's" link shortener that allows me to change the link target after the fact.

Also recently deployed it as a very simple server side denounce: when the client first accesses page X a long running operation is dispatched. Subsequent requests for the same resource before it's done processing return a plain HTML response that says "Still thinking about it" and meta refresh after 1 second.

masenf··on OpenSUSE Linux gains momentum
While true, I suppose conformity as a justification could apply to any distro choice. It doesn't justify OpenSUSE specifically in itself.

See a cousin comment from me with a bit more detail... I've probably already said too much.

masenf··on OpenSUSE Linux gains momentum
I haven't been privy to those kinds of conversations. Mostly we are replacing Ubuntu LTS and older CentOS with OpenSUSE Leap for servers. Some developers are deploying Tumbleweed as a rolling release.

I'm trying to give it chance, change being hard and all.

The other comments here from long time users are giving me some hope that we may find tangible benefits, especially w.r.t btrfs and snapshots.

masenf··on OpenSUSE Linux gains momentum
At the company I work at currently, we're in the process of replacing all Linux-based machines with OpenSUSE... not for any technical merit or reason that I've heard other than, "we should all use the same thing for everything".

So another 20k+ SUSE installations coming from that alone this year.

Market share by mandate; some sales guy at SUSE probably got a big bonus.

masenf··on How to print-debug Python comprehensions
This is a wonderful tip. I’m surprised that as a professional python programmer for 10 years, that I’ve never seen or heard of anyone doing this!

I’ve already shared the link with my coworkers, I suspect I’ll be evangelizing this to all of my interns and mentees going forward. Thanks again.

masenf··on PhpBB 3.3.10
Not sure how unconventional it is… I create topics for different projects or tasks, then regularly review/update them.

Here’s a link and some screen grabs of my topic list.

https://gist.github.com/masenf/d0a4d274da7b7a6175f50d1f1246b...

masenf··on PhpBB 3.3.10
In the last month, I’ve been experimentally replacing my use of Trello, stickies, and todo lists with a phpBB instance.

So far I’m the only user, but it’s a surprisingly nice system for keeping track of notes and regular status updates on my projects. And when I need to collaborate with someone, the permission system is quite nice as well.

The fact that it’s free, mature, and relatively easy to install and maintain are what led me to give it a try.

I have plans to eventually write a kanban view and scheduled post plug-ins to make it a bit better project tracker.

masenf··on Ask HN: What are the worst names given to employees of specific companies?
I’ve tried “Dellberts” internally once and it wasn’t well received.
masenf··on Homelab analog telephone exchange
Based on the other projects on the site, it looks the author is a licensed amateur radio operator.

You are correct that in the US, most personal/unlicensed (Part 95) radio services explicitly prohibit phone patch via FCC rule 95.349 [1]

[1] https://www.ecfr.gov/current/title-47/chapter-I/subchapter-D...

masenf··on Gripes with RSS after one week
Previously I used Nextcloud News and enjoyed it, but recent versions require 64-bit PHP [1], which I didn’t have on the Raspberry Pi. Never did figure out why this requirement was imposed just for the News app.

[1] https://github.com/nextcloud/news/issues/1423

masenf··on Gripes with RSS after one week
1. Synced feeds, read/unread status, and consistent UI across all devices

2. Hosted feed reader for friends and family.

The author mentions the friction they imagine their friends or family would have using RSS feeds, so hosting the reader for them can reduce that friction and bootstrap cost (everyone already has a browser). Then they could always export their feeds and move to a different solution later.

masenf··on Gripes with RSS after one week
As a recent returnee to the world of RSS feeds, I’ve been enjoying the miniflux client [1] self hosted with docker-compose. Fast, cross-platform, not fancy.

[1] https://miniflux.app/

masenf··on Show HN: Pym – A Python package manager works like NPM
I was going to ask how this differs from what PDM is doing, but then I see that it’s “just a bash script” that provides the workflow you’re going for.

PEP 582 [1] is mentioned in the README, which IMHO is the golden path for npm-style project dep management.

[1]: https://peps.python.org/pep-0582/

masenf··on Python Package Authors: Zero-config building cross-platform wheels
I’m currently using cibuildwheel and github actions to create Linux and macOS wheels [1], but I need to install some host packages to make it work, particularly automake and friends.

The main issue I have with GHA is it doesn’t support ARM (aarch64 or armv7l) executors, so building these needs QEMU, which is slow.

I also maintain a different package [2] that doesn’t currently distribute its Kerberos module via PYPI, because I haven’t had time to make the same kind of GHA pipeline and test it.

Wondering how these kinds of non-Python platform dependencies (automake, libkrb5, etc) could be handled by this system?

When would it be available to the public? It looks cool, I want to play with it.

[1]: https://github.com/masenf/gensio-binary/blob/pypi-master/.gi... [2]: https://pypi.org/project/pike-smb2/

masenf··on I moved away from Poetry for Python
I recently developed a tox plug-in, tox-pin-deps [1], that integrates the pip-compile workflow with dependencies specified in tox.ini (per environment). This was in response to both poetry and Pipenv being non-standard and consistent stumbling blocks for ramping up new devs on the team.

Despite the shiny, I seem to always find my way back to standard tools and text files.

[1]: https://github.com/masenf/tox-pin-deps

masenf··on After Car2Go eased its background checks, 75 vehicles were stolen in one day
The article includes a graph of "Vehicle thefts in U.S. cities where Car2Go operates* in 2018" and Chicago is at the top of the list. If that was their pilot city, interesting choice. Alternatively, if they rolled out the policy change in all locations at the same time, interesting choice.

Article doesn't report problems in other cities...

masenf··on Brainwave based authentication prototype from UC Berkeley
Something like this could make authentication (and potentially other tasks) with face-computing devices seamless and secure!
masenf··on LA In Sync: Traffic Signals To Cut Travel Times
I am not a traffic flow engineer, but I have experienced what you describe in regard to the walk button behavior in many places in western Washington, US. I always reckoned that they were using a simple model in which a button press would cause the "WALK" signal to always be fired at the corresponding light configuration at the _next_ cycle start. This is most likely a safety consideration because, as you noted, there may not be enough time to safely cross.

In some complex intersections I've noticed that the 'cycle start' doesn't necessarily line up with the corresponding configuration for the walk button which was pressed. This may result in having to wait nearly two complete cycles for the walk signal in the worst case (pressing the last configuration's walk button immediately after the cycle start). The resulting behavior could be considered a bug, or perhaps just more consideration payed to vehicle traffic. But it is certainly frustrating as the pedestrian.

At many intersections I cross now the signals are automatic with the traffic flow. Most of them also contain a countdown timer indicating the number of seconds until the light changes. It seems that this behavior would be a good tradeoff for pedestrian efficiency and safety. However it comes with a bit of trust from the gov, that you know you can't walk across 5 lanes in 2 seconds.

masenf··on ICANN reveals objections to proposed top level domains
I thought it was interesting that Saudi Arabia was opposed to granting certain gTLDs on the grounds that they would likely be used to host content which their culture considers offensive. To me, it seems like if that government could censor all* homosexuality and "substances detrimental to public order and morals" by blocking .gay and .wine, then that would be in its interest.
masenf··on Show HN: done.sh — My first side project, a to-do list for hackers
I think this is a really cool idea (and works anywhere with a net connection). But what stops someone from entering my name and wiping out my entire task list?
masenf··on .mail app
From the video: "Our servers store metadata about your messages, but not the messages themselves"

It's difficult for me to invest the time (and effort) required to use a service like this, when that investment could easily just go away when the service is pulled for whatever reason. Or, if their servers are down will I have robust access to my mail client?

One of the nice things about old email is that it is portable. Metadata on 3rd party servers seems to cast this positive aspect about email aside.

Some aspects of these new emerging services are novel, specifically the UI and layout of features. As many have pointed out recently, similar functionality has existed in mail clients for years. However, not every email user is aware that their use of email could be made more productive just by utilizing the tools already in their email environment. I would guess these mail client-services are catering to that market -- the less technically inclined. Consequently, these customers are less likely to know or care about the implications of spreading vital work-related or important data across new and potentially volatile services.

That said, I do support nice-looking and more usable email clients, just not at the cost of dependence on a 3rd party service.

masenf··on Odd, but effective, Windows Fix
I'm not sure why the pagefile would even be in use if your system operates with 4.5Gb free memory...
masenf··on O2 statement on the mobile number issue
"2) to enable third party content partners to bill for premium content such as downloads or ring tones that the customer has purchased"

Does anyone else get the feeling this could be exploited to make unauthorized purchases which would be billed to <random_O2_customer>. I've want to think they have this covered, but with a config glitch leaking your phone number on the net who knows what kind of security they have in place.

Does anyone know how this billing process works?

masenf··on Paradox CEO Calls DRM a 'Waste of Money'
"But people who purchase a game should have just as easy a time as those who pirate the game, otherwise it’s a negative incentive to buy a legal copy."

I thought this was a key point in the article and one that has been lurking below the surface in the SOPA/PIPA discussion. In order to 'prevent piracy', technical solutions are worthless compared to providing a quality service where your customers' willingness to buy is on par with your price. As noted by the author, DRM decreases the quality of a service, and often carries an increased price [at least for company in production/support/etc].

For some industries, the price does not align with expectations. I can think of retail Blu-ray for instance [the price is too high].

For others, the DRM encourages piracy to some degree. Often with Windows this is the case. While I own legitimate copies, often a pirate copy is easier to install [no key/activation] or find [no cd to track]. This is especially true for quick n' dirty VM builds.

Finally, I believe in expressly Anti-DRM approaches, ya know.../trusting/ users with content. Encouraging users to purchase in order to support their favorite [movie, game, software, comedy special] is the way forward. Piracy will not go away, the game is converting pirates to customers by convincing them that your product is worth their money.

masenf··on This Site’s Domain is Stolen
could it be related to this:

"After a series of one-sided hearings, luxury goods maker Chanel has won recent court orders against hundreds of websites trafficking in counterfeit luxury goods. A federal judge in Nevada has agreed that Chanel can seize the domain names in question and transfer them all to US-based registrar GoDaddy. The judge also ordered "all Internet search engines" and "all social media websites"—explicitly naming Facebook, Twitter, Google+, Bing, Yahoo, and Google—to "de-index" the domain names and to remove them from any search results."

http://arstechnica.com/tech-policy/news/2011/11/us-judge-ord...

Page 1 of 2Next →