Better HN
topnewbestaskshowjobs
Log inSign up

masenf

180 karma · joined Nov 27, 2011 (15y ago) · 37 submissions

Submissions

comment 9h ago · link · parent

> Frustratingly, browsers can decide to block a website from playing any sound. iOS Safari seems particularly strict about this. So, if you’re not hearing a click sound when tapping the big red button, please check out this website on a desktop computer.

While I understand this behavior from Apple in a user-first perspective and do find audio on mobile web to be annoying in most cases, an easy way to allow audio to play on an iPhone that isn't "use a desktop" seems to be flipping the hardware switch to turn off silent mode.

I'm not proud to admit it took 5 minutes of poking and a Google/Gemini search to figure that out...

comment 1mo ago · link · parent

As a daily Mail app user, approximately every 6 weeks, I wish it had the ability to show the full headers and raw message source.

comment 3mo ago · link · parent

Relevant discussion https://github.com/orgs/community/discussions/203497

comment 3mo ago · link · parent

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.

comment 2y ago · link · parent

That's a really good point. Definitely something we need to work out before integrating this into the core framework.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

I’ve tried “Dellberts” internally once and it wasn’t well received.

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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/

20.

Boring Python: Code quality(b-list.org ↗)

228 points · by masenf · 3y ago · 230 comments

comment 3y ago · link · parent

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/

comment 3y ago · link · parent

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/

comment 3y ago · link · parent

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

comment 7y ago · link · parent

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...

comment 13y ago · link · parent

Something like this could make authentication (and potentially other tasks) with face-computing devices seamless and secure!

comment 13y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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?

29.

Hospitals use patient data to target ads(dispatch.com ↗)

1 points · by masenf · 14y ago · discuss

comment 14y ago · link · parent

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.

12