Hacker Newsnew | past | comments | ask | show | jobs | submit | more RupertWiser's commentslogin

Ah should probably make this clearer in the README, it then serves this through an http server.

It keeps running your render method and dynamically updates your client.

The first example documents this a bit better: https://gitlab.com/BenWiser/python-live-gui/-/blob/main/exam...


Yeah I should probably replace the screenshot with a gif. Thanks for the feedback!


Hey all, author here.

I had some time off last week so I built a little tool I've been planning on using for a while now.

Thought I'd just comment on my motivations for building this.

I bought a little chromebook tablet to take on holidays. I've been enjoying the experience of using a remote IDE to code on my personal server.

I thought it would be neat if I could quickly make myself GUIs for other utilities on my remote server that get rendered on my chromebook. Doing this like being able to run bash scripts remotely.

I start utility scripts with this tool and then just use ssh port forwarding to view it locally.

The fun bit is the application itself is then just written in python.

There are some similar alternatives[1] but I wanted to be able to write GUI elements like ImGUI so I decided to build my own tool in the end.

I just wrote it in python because that's what I've been using at work lately.

[1] https://github.com/dbohdan/liveviews#python


does this support concurrent users connected to the same UI?


Yeah it does, it spawns a new thread with separate state per user.


If you want an alternative to Wordpress, I’ve had success running a simple kotlin script that converts google docs into webpages.

Here’s the hackernews discussion around that: https://news.ycombinator.com/item?id=23134101

This is the code I run in a cron job: https://gitlab.com/BenWiser/googledocsblog

You do however need a server and your own domain.


Seems like you could get away with using an object store and a serverless function for this. Not sure how pricing would compare to a server, but seems doable.


Do you know about .git/info/exclude? It only exists in your local git file so it isn’t shared with a remote repo and achieves this same purpose.


I also (mis)used .gitignore before I realised that there was an easy way to ignore stuff that I have locally without having to commit/ignore a .gitignore file.


I didn't! Good to know, even if my way is really quick and simple to set up so I might continue doing the same. Thanks!


Not at a term, but would this prevent `git clean -fdx` from removing the dir? That’d be quite useful!


No, since -x means to “disregard standard ignore rules”, such as .gitignore and .git/info/exclude.

> Don’t use the standard ignore rules (see gitignore[5]), but still use the ignore rules given with -e options from the command line.


> I can hear people asking: “Isn’t it a bit early to predict that, given that we’ve only seen two products?” It’s a very fair question. But it definitely seems like a first step — to me, the Mac Studio line is a clear successor to Apple’s iMac Pro.

I was under the impression that apple is planning on releasing one more M1 device and that could be the iMac Pro [1]. This article feels quite hollow to me.

[1] https://youtu.be/CMm7UZKtGNk


Interesting! So does safari have different storage rules depending on where the web app is accessed from? Are there docs detailing what else might operate differently? I wonder how many web devs test their apps under the different constraints.


With PWAs the idea is that if the user explicitly "installs" them they get exceptions and better integration, yes. I don't have a reference at hand and don't know the details on iOS, but hopefully "PWA safari support" finds some clearer things.


I will add that I was pleasantly surprised at how easy it was to turn the web app I initially had into a mobile app with Ionic.


Who controls the unencrypted video?


What’s the purpose? You still need a centralised store for your unencrypted video. Why would this be preferable to having a database?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: