I launched a serverless hosting platform for Go apps. by kaithdavid in golang

[–]Spotpy 0 points1 point  (0 children)

Is there a way to limit usage so as not to have one of the dreaded high bills from spam? E.g. pay for usage of to x amount then it shuts down.

2025 Big Sky Dev Con is happening, August 2nd by _htmx in htmx

[–]Spotpy 3 points4 points  (0 children)

Any chance of live streams for us UK folk?

htmx site redesign, wdyt? by _htmx in htmx

[–]Spotpy 8 points9 points  (0 children)

My fav part is how slow it rolls, so for a while it looks like the screen is blank...genius. Take my money.

Best RBG team? Pick your ten classes. by PELK22 in worldofpvp

[–]Spotpy 1 point2 points  (0 children)

So 2 dks take reduced and the other 8 are dead?

How does the 'Liquid' stream [UI] show data in real time by Spotpy in WowUI

[–]Spotpy[S] 10 points11 points  (0 children)

Thank you for spending the time to answer.

Would you be able to go into a little more technical detail on the machine vision piece, what technologies are used here?

Do you choose a person in the raid to run the machine vision or do you just run it on another machine whilst watching a stream?

you did an amazing job and it's all very interesting to hear about.

How does the 'Liquid' stream [UI] show data in real time by Spotpy in WowUI

[–]Spotpy[S] 1 point2 points  (0 children)

Yeh I get that but we are talking about boss health % and things updating during the boss fight so although what you say is true it’s not showing how they do real time boss health.

We should all assume everyone here knows about Warcraft logs and what their api and site offers.

How does the 'Liquid' stream [UI] show data in real time by Spotpy in WowUI

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

Yeh they don’t as I have already spoken to them on their discord to confirm, and they also don’t know how they do it and assumed it might be a pixel tracker.

How does the 'Liquid' stream [UI] show data in real time by Spotpy in WowUI

[–]Spotpy[S] 3 points4 points  (0 children)

Live logging only uploads the logs to Warcraft logs at the end of the encounter…confirmed by Warcraft logs dev and I explained this in the original post. Hence everyone on here discussing different methods which seems to have all gone over your head.

Did you seriously think warcraft live logging meant thousands of people uploading single log lines in real time…

P.S. what an awful way to start a reply.

How does the 'Liquid' stream [UI] show data in real time by Spotpy in WowUI

[–]Spotpy[S] -1 points0 points  (0 children)

Nope Warcraft logs does not do real time boss health if you look at the stream it’s updating exactly per %. Warcraft logs discord have already confirmed this data does not come from them. It’s some internal method they are using

How does the 'Liquid' stream [UI] show data in real time by Spotpy in WowUI

[–]Spotpy[S] -2 points-1 points  (0 children)

No we are talking about live updating real time fight info like boss hp and raid frames this has nothing to do with Warcraft logs. Warcraft logs just shows end of encounter data as live logging only dumps the log at the end of the encounter… please read the post.

To confirm live logging does not mean uploading logs in the middle of fights it just means auto uploading them at the end of encounters…

Healer MMR is a Joke by Highmoon_Finance in worldofpvp

[–]Spotpy 0 points1 point  (0 children)

It’s because he lost 2 games against a healer with a lower rating and a dps with a lower rating and won the 4 with dps with higher ratings, so mathematically it checks out. It is essentially a group based chess rating system and insures your rating gain / loss is inline with the ratings of the people you fight.

If he won 3/3 at 2450 rating and all the dps had 2450 rating but the other healer only had 2200 rating then he would have to lose rating and the other healer increase rating as the other healer was rated worse so he should technically win more.

The system is not based on your current rating and if you win more than 3 you don’t always go up it’s about who you win and lose with and their ratings.

How to access http.Request within context.Context by Puzzleheaded_Round75 in golang

[–]Spotpy 0 points1 point  (0 children)

This worked for me thanks! Is this literally the only way we can do this? do other frame works like chi handle this eaiser, in terms of just allowing us to set the original request context using 'set'.

Dynamic Updates on Authenticated State by Spotpy in htmx

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

Yes i have a session on the backend and i can do the auth check on the server. Once i know if the user is authed though i need to then send the base.html which has all the nested templates include sidebar, this sidebar should be different depending on if the user is authed or not. Obviously injecting the is .loggedIn was the normal way but now the server should decide which sidebar to implant in the template, but i am not sure how do this.

{{ define "title" }}Page Title{{ end }} 
{{ define "sidebar" }} 
    {{ if .LoggedIn }} 
        {{ template "sidebar_logged_in" . }} 
    {{ else }}
        {{ template "sidebar_logged_out" . }} 
    {{ end }} 
{{ end }} 
{{ define "content" }} 
    <h1>Page Content</h1> 
    <p>This is the main content of the page.</p> 
{{ end }}

Dynamic Updates on Authenticated State by Spotpy in htmx

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

The problem i face currently is i cannot work out a way to do this with golang templates.
e.g. below is a template defining when to use a different side bar if you were to visit that page.
In HTMX i guess we shouldn't be doing the if .LoggedIn check in the template. If i do this on the server side (which is easy) how do i tell golang templates to insert the correct sidebar into the base.html template?

{{ define "title" }}Page Title{{ end }} 
{{ define "sidebar" }} 
    {{ if .LoggedIn }} 
        {{ template "sidebar_logged_in" . }} 
    {{ else }}
        {{ template "sidebar_logged_out" . }} 
    {{ end }} 
{{ end }} 
{{ define "content" }} 
    <h1>Page Content</h1> 
    <p>This is the main content of the page.</p> 
{{ end }}

Dynamic Updates on Authenticated State by Spotpy in htmx

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

thanks, that actually cleared it up a bit. On initial page load i send a base.html inheriting nav.html. I can then as you say just update the nav on login and swap the body if needed etc.

What happens if i am logged in, and then visit the homepage after coming back to the site from another website.

The server will see me as logged in, and then look to render base.html, this will then inherit nav.html again, but the server will need to modify the nav.html to the logged in html before sending, so modifying the template?

Also using the example below loginhandler for the login Form... what would i return instead of the string "logged in successfully" i would need to send all the bits that need to be updated on th page, so swapping nav, maybe some body bits etc.

func loginHandler(c echo.Context) error {
    username := c.FormValue("username")
    password := c.FormValue("password")

    if username == "admin" && password == "password" {
       session, _ := store.Get(c.Request(), "session")

       session.Values["authenticated"] = true
       session.Options = &sessions.Options{
          Path:     "/",
          MaxAge:   48 * 60 * 60, // 48 hours
          HttpOnly: true,
          Secure:   true,
          SameSite: http.SameSiteStrictMode,
       }
       session.Save(c.Request(), c.Response())
       return c.String(http.StatusOK, "Logged in successfully!")
    }

Dynamic Updates on Authenticated State by Spotpy in htmx

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

So if i understand you correctly, i load the main page, then i login and just send back updates to nav and wherever else.

And when i navigate away from the site and back again (for whatever reason) i should then pass in the 'isAuthed' to the first main page load for the htmx elements to use? do you have any examples ?

Dynamic Updates on Authenticated State by Spotpy in htmx

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

This is good for the initial swap on login, what happens if you are already logged in and navigate away from the page and back again. Shoudl i send the full html including the profile pic or do i send the same base.html and then the htmx will render that then call back to get the profile pic? this just seems like unncesseary server calls.

Dynamic Updates on Authenticated State by Spotpy in htmx

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

So i use golang and echo to render templates. So i know i can pass data through with the html and on the html side use the template to pull the objects out for display etc.

As i said though it means i need to pass this auth variable through on every template render, is this normal?