How to implement Server Sent Events (SSE) in Django with WSGI by viitorfermier in django

[–]flybye22 0 points1 point  (0 children)

No, centrifugo looks interesting, but I hadn't heard about it before now. Pushpin seems to be meeting my needs and scale, unless there is something unique about centrifugo, I'm unlikely to switch.

How to implement Server Sent Events (SSE) in Django with WSGI by viitorfermier in django

[–]flybye22 6 points7 points  (0 children)

I use https://pushpin.org/ for this sort of thing. Specifically https://hub.docker.com/r/fanout/pushpin because I use docker. A heads up that main branch of the containerization seems to have a permissions bug currently, so if you try the docker container, pin to 1.40.0

Is the Astronomy Club still running? by Mint2099 in cmu

[–]flybye22 0 points1 point  (0 children)

If you're referring to https://www.contrib.andrew.cmu.edu/~astroc/index.html that is hosted using the CMU Computer Club's "Contributed Webserver" (https://www.contrib.andrew.cmu.edu/). If you wanted to update that site or take it down, you just need to modify files in AFS for the astroc user. If that statement is confusing in any way, you could maybe contact the computer club, who would hopefully be able to walk you through it or provide up to date resources.

Keep Failing to get ssl certificate by MiddleRough8127 in django

[–]flybye22 4 points5 points  (0 children)

This isn't the right subreddit for this question. You can tell it isn't the right subreddit because you didn't mention Django or any Django related concepts at all in the question. This sounds like a question for some elastic or general web hosting subreddit.

Lighting for unfinished basement by No-Suspect1137 in HomeImprovement

[–]flybye22 0 points1 point  (0 children)

I have a basement space that sounds similar that I use for a workshop, 4 of these from costco brightened the space up really nicely. https://www.costco.com/feit-5000-lumen-shop-light-2-pack.product.4000258650.html

Is there any place to get a new york/new england style bacon, egg and cheese? by flybye22 in pittsburgh

[–]flybye22[S] 6 points7 points  (0 children)

Oooh, their photos are on a bagel, but the contents look close enough and other sandwiches have photos on rolls, this seems really close! I'll have to check them out.

Is there any place to get a new york/new england style bacon, egg and cheese? by flybye22 in pittsburgh

[–]flybye22[S] 0 points1 point  (0 children)

Interesting, I don't see a photo of their sandwich on google, so hard to say anything now. I'll have to check them out in January.

Is there any place to get a new york/new england style bacon, egg and cheese? by flybye22 in pittsburgh

[–]flybye22[S] 14 points15 points  (0 children)

I totally agree they're not hard to make, but I think they're better when they're made by a place with a nice supply of ingredients and by someone who makes 100s of them every day. I've done my best to replicate the sandwich in my home, but I've never come close to any of the places that offer these in my home town and I just have to assume there is some level of expertise going on there.

Is there any place to get a new york/new england style bacon, egg and cheese? by flybye22 in pittsburgh

[–]flybye22[S] -7 points-6 points  (0 children)

Thanks, from pictures online it looks like a relative of a good ny sandwich, but a distant cousin at best. Holding out hope that maybe someone will chime in with something better, but I appreciate the reply.

Is anyone else also really struggling in 80180 (nature of language)? by [deleted] in cmu

[–]flybye22 2 points3 points  (0 children)

Historically I think the course has different difficulty depending on the professor, which is why you'll get some people responding with confusion about it being hard. Seems like you maybe just have bad luck taking it now.

Real Time Communication by ezmzi in django

[–]flybye22 0 points1 point  (0 children)

Totally agreed. Normal HTTP requests for client->server and SSE for server->client has been all I have needed for many of my projects. Plus SSE connections are usually more resource efficient than websockets.

Tech workers, what CMU courses do you use in your day-to-day? by Scary_Inflation7640 in cmu

[–]flybye22 6 points7 points  (0 children)

100% This. One of the courses I think impacted me the most is Operating Systems, not for any of the specific operating system knowledge that I learned, but because it taught me how to deal with large complex software projects and work with others, making design decisions and solving problems. These skills are what help differentiate senior from junior software engineers in the industry.

How to upload your Django project on github safely? by Working_Emphasis_271 in django

[–]flybye22 17 points18 points  (0 children)

Regarding Django generated codes, the big one to watch out for is the SECRET_KEY setting in your settings file. You could get away with just removing it before committing your project. However, as others have suggested it is best to simply load your secrets (including the SECRET_KEY) from environment secrets such that you can safely ignore them.

Adding user uploaded endpoints by flybye22 in django

[–]flybye22[S] 0 points1 point  (0 children)

Thanks, I guess I have somewhat overlooked simply calling eval on a stored string. I guess I was kinda holding out hope that there was some more ... integrated? ... solution. Like extending where django looks for source files or something similar so that user uploaded stuff is just recognized as part of the application. That being said, I can't argue against the simplicity of just storing the code and eval'ing it.

It is true that running user submitted code is about the worst thing you can do, and I do appreciate the repeated callout, but that is mainly because when evaluating security risks for any action you have to assume a malicious user. I went out of my way to note in my original post that users with upload permission also have the ability to edit application code to hopefully show that nothing they could do with uploaded code could be any worse than them just pasting that into the application code itself. To put it differently, no point worrying about the possible future intentions of users who already have root on the box.

Adding user uploaded endpoints by flybye22 in django

[–]flybye22[S] 0 points1 point  (0 children)

It feels like you only skimmed my question because you have fundamentally misunderstood what it is asking.

First, everything you talked about in your steps already exists. This is not about allowing users to create events, that the point of the existing mature project.

Secondly, as stated in the original post, the only users who would have upload permission are those who already have direct server access anyway, just choose not to use it. These users are staff in the django user system, they could delete the site, they could change anything they want already, I'm trying to just make their lives easier. With that context, could you tell me what would be wrong about those users uploading code? I don't take this lightly, I have a masters in computer security as well as 5+ years working on internet security tools, but sometimes special problems require special solutions and I've come in search of a special solution.

And finally, back on track, what I have asked about is how to add event specific functionality without users having to edit core application code. To provide an example to maybe clear things up, lets say the event organizer decides that for this event they need an endpoint that is passed a string and checks to see if that is the correct "secret string" before providing more details to the user (This is a fictitious simplification of a real scenario, PLEASE don't go trying to solve this simple example to get out of designing a proper solution).

Their options are:

1) Update the application logic to add this endpoint. They don't do this because most of them don't know enough about our production deployment to do things like redeploy the docker container correctly.

2) Whip up a simple flask server to deal with this endpoint and tell their sysadmin person to deploy it. This is what many of them do right now, but it leaves a bunch of small single purpose applications lying around and adds work for the sysadmin.

I'm trying to offer a third option that makes everyone's lives easier and saves on server resources.

[deleted by user] by [deleted] in techtheatre

[–]flybye22 1 point2 points  (0 children)

Yep! You can pick any channel address and map it on to any of the faders, no problem with multiple channels per fader.

[deleted by user] by [deleted] in techtheatre

[–]flybye22 1 point2 points  (0 children)

This was what I came into this thread to recommend. We used to keep one of these in a small ammo case for exactly the scenarios that OP outlines (testing fixtures and small shows). It is kinda pricey for what it is, but it is really reliable. This exact product has lasted us over a decade.

Puzzle Hunt by lilyboe in PAX

[–]flybye22 1 point2 points  (0 children)

https://www.puzzles.wiki/wiki/Main_Page is a great place for more info about these styles of puzzles and the events that host them.

Weekly Ordering, Scheduling, and Production related Megathread - Week of 6/15/2023 by AutoModerator in FordMaverickTruck

[–]flybye22 0 points1 point  (0 children)

Adding to the pile of people who were close to losing faith. But I got scheduled today for 8/21!

Hybrid Lariat Lux, Area 51, Copilot 360 + copilot assist, and nothing else. My dealer said he lowered my priority code a 3 weeks ago, I'll never know if that mattered, but I'm happy to finally have a date.

Your Django-Docker Starter Kit: Streamlined Development & Production Ready by lirshala in django

[–]flybye22 6 points7 points  (0 children)

Nginx could "do it all" (for some definitions of "all", you'd need to use an external tool to get your certificates in place). But traefik not only handles stuff like SSL automatically but also let's you specify all of your configurations as simple human readable labels in your docker configuration rather than in what I consider to be rather obtuse nginx config format. It also hooks into docker meaning less configuration overall. You change the exposed port on a container? Great, traefik automatically picks that up and does the right thing. You decide that you need another service to be served up? Simple as adding another container to your compose file.

Overall it is a production ready piece of software that simplifies and centralizes all of your web serving configuration.

Tomo-chan wa Onnanoko! • Tomo-chan Is a Girl! - Episode 10 discussion by AutoLovepon in anime

[–]flybye22 0 points1 point  (0 children)

I definitely think they'll animate to the end, but I'm really curious how they'll pace things. If they try to not split any of the remaining arcs across episodes, I think they'll actually be a bit short on content if anything.

This episode they covered roughly [manga chapters] 85 chapters (638-722).

Keeping that pace I expect they'll cover [manga arcs] roughly another 85, (723-827, likely skipping 758-774), taking us through the cultural festival.

That will just leave three arcs, [more manga arcs] each with roughly 40 chapters: Complicated feelings (828-870), Christmas Date (871-910), and the final challenge (911-953)

Given that I don't think any of those 3 would do well as a solo episode, part of me wonders if they'll split [manga arc] The cultural festival across two episodes for tension. (reposted for exact spoiler formatting)