Skip Navigation

Posts
5
Comments
271
Joined
3 yr. ago

Interests: programming, video games, anime, music composition

I used to be on kbin as e0qdk@kbin.social before it broke down.

  • Magnitude 6.7 earthquake. Woke up to it shaking my bed violently in my dorm room. (Boarding school) Thankfully, I didn't have anything above me that could fall, but some of the other students kept books in the shelves above their beds. Suffice it to say they got an even ruder awakening than I did...

    There was a big aftershock a few minutes later -- just after I'd gotten the hell out of the building, basically -- and smaller aftershocks for days afterwards.

    It put a big crack in the floor of my dorm and everyone who lived there had to stay outside all day until the administration declared it safe for us to re-enter.

    That was coincidentally the same day as a school festival and I'd spent the evening before working with my classmates converting the art room into a haunted house. I never got to see the mess, but whatever happened in there was so bad the room was unusable for months. Most of the rest of the festival (e.g. outdoor stalls and such) was still able to be run though, so they carried on with the parts they could. It was surreal.

  • Did you flip a power switch on the PSU at some point, perhaps? (Done that one a few times myself...)

  • I was getting error messages when I first saw your post and checked a few minutes ago, but it looks like it's back online now.

  • It's the Esperanto word for "forge", according to the FAQ.

  • Back before kbin fell off the internet it had a really neat experimental "collections" feature that would let you make named groups of communities. Collections could be used either privately or made public so other people could subscribe to your curated feed on a topic. The owner could update the collection as needed (e.g. adding or removing communities/magazines as they changed over time).

    It's one of the kbin features I miss most on lemmy.

    Does anyone know if mbin ever got a copy of that? I know they forked off before it was added to kbin, but I don't know if it ever got integrated later. (I don't see it from a quick glance at moist and fedia, but I haven't dug into the dev history.)

  • If you want to improve significantly, go read someone else's code and modify it. Try to fix a bug in a program you use, add a feature you want that doesn't exist already, or even just do something simple for the sake of proving to yourself that you can do it -- like compiling it from source and figuring out how to change some small snippet of text in a message box. Even if you don't succeed, if you put in a serious effort attempting it, you will almost certainly learn a lot from trying.

    Edit: changed wording to try to be clearer

  • I have a few of those, and while the ones I bought have worked out fine so far, I think it's worth cautioning people that they are annoyingly loud doing basic operations.

  • I wrote something like this before for academic researchers to load data sets on display walls by using their cellphones. I approached it by building a simple website. When the user logs in, they'd see a table of entries (from a directory listing on a shared file server that they could drop their data sets onto) and could click a button that made a form post to the server which caused it to run whichever programs were needed to load the data set they wanted (or run a couple of other handy commands -- like turning the monitors on/off, etc).

    You can do something like that too in Python if you want:

    1. Learn how to start and stop programs from Python scripts. This can be done with the built-in subprocess library. If you know how to launch the programs you want from the command line, it shouldn't be too hard to figure out how to do it from Python by reading the documentation. It will take some more effort to figure out how to interact with it (e.g. to stop it from user input) without blocking your script, but this can be done.
    2. Learn how to write a simple program that can respond to HTTP requests in Python. There are a number of libraries like tornado, flask, cherrypy, etc. that can do this. Pick one, read the documentation, and write a tiny page that allows you to submit a form and then trigger an action on the server in response to an HTTP POST. You should be able to interact with it by pointing the browser on your computer to localhost (possibly plus a port) or from on your LAN by putting the IP of your computer into the address bar.
    3. Figure out how you're going to organize the entries you want to be able to load. You could just do something trivial like putting the files in known folders and running os.listdir, or something more involved like tracking the entries with a spreadsheet or database or JSON file that lets you associate custom metadata with each entry (like a custom name to show or an icon to display or when it was last launched, etc.)
    4. Generate a web page based on that data collection. I recommend using templating -- e.g. with mustache, or jinja, etc. Basically you write some HTML-like text that lets you indicate places to fill in data from your program and it will do the conversion of symbols like < into &lt; that are needed for HTML output and also repeat patterns using entries from lists you provide to build the rows of tables and such for you.
    5. Set up some security (e.g. a simple log in system) and polish it up as much as you care to do.

    Good luck and have fun!

  • There's some notable differences with numbering -- e.g. lakh, crore, and where to put commas when writing large numbers.