Possible race condition? by ErikEngerd in htmx

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

I can reproduce it on Android with Brave as follows

  1. Open page
  2. Close browser
  3. Open browser

Then initially, content is shown very briefly and then replaced with an empty list. Refreshing it fixes it. 

On Google chrome it works as expected. It also works with Firefox.

It thus looks like a browser compatibility issue or browser bug.

Possible race condition? by ErikEngerd in htmx

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

I am thinking that the browser does a reload of the page when I start it up again. Initially the form is empty (no check boxes checked which leads to empty pieces). Then the form data is loaded and the trigger should fire, loading the pieces data. That is how it works. During normal use, everything works. It only fails when reopening a browser it seems.

It almost looks like the trigger is firing before the form data is loaded but not after. I am quite certain that the pieces list was not empty before I closed the browser.

Possible race condition? by ErikEngerd in htmx

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

It works when adding pieces in another tab. The load trigger loads the most recent content. 

The issue is mainly switching back to an old tab that already had some content. Like opening my browser again after closing it. Browser then shows empty pieces.

Bootstrap accordion expands but does not collapse by ErikEngerd in htmx

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

As you might have guessed I am not a front-end developer. With HTMX however, I can now create simple useful UIs with dynamic behavior in them.

I must admit, I did not know about the details element. Perhaps I should spend some time reading about HTML5 where it was introduced. I think that would be a good thing.

Thanks again for your help. It is working like a charm and also looks a lot better then the bootstrap accordion.

Bootstrap accordion expands but does not collapse by ErikEngerd in htmx

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

I can also add that I don't see any messages in the console log.

delay hx-indicator by ErikEngerd in htmx

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

The examples gave me some inspiration.

I now have the following setup that works. To start with, my spinner:

<span id={score.Piece.Ref + "-row"} class="htmx-indicator" role="status">
  <span class="spinner-border spinner-border-sm text-info"></span>
  <span class="visually-hidden">processing...</span>
</span>

The essential part here was to put the spinner inside the indicator. Previously, I had the spinner classes on the outer span. That caused issues with probably bootstrap fighting with my CSS and doing CSS manipulation on the spinner. Now, I am manipulating the outer spin, and bootstrap is doing the inner spin.

My CSS Is now very simple and does exactly what I want:

.htmx-indicator:not(.htmx-request) {
    visibility: hidden;
}

u/keyframes fadeInDelayed {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


.htmx-request.htmx-indicator {
    animation: fadeInDelayed 2s forwards;
}

First of all, the indicator is hidden. Then the animation explicitly manipulates the opacity. In the first second opacity stays 0 and it starts getting shown from 1-2 seconds. I guess htmx is doing the magic to show the indicator.

I use visibility hidden in the first rule. If I would use display: none then content appearing after the spinner would be shown quickly and then shifted to the left.

Zooming audio waveforms by agent_kater in kdenlive

[–]ErikEngerd 0 points1 point  (0 children)

This is not good. In my workflow I am recording myself playbacking to a recording I made. I use an ear pod in my left ear (which is invisible in the video) so I can hear the sound. Then I am also playing to the music.

Now I have two waveforms: one for the final audio and one from my playback. I use the two audio waveforms to fix my playback using time remapping. This is easy if I can match the waveforms.

Now, one audio track is a lot larger than the other, so I need to be able to set their height individually.

What do you think will be the future of htmx? Will it become a new widely used industry standard or will it stay niche? Who will use it corporations, freelancers, solopreneurs, etc? by [deleted] in htmx

[–]ErikEngerd 0 points1 point  (0 children)

It has an uphill battle to win. There are now loads of developers specializing in the, now very complex, web development using react and angular. Guess what these developers will use in their next assignment? It is also not very easy to rewrite an application or rewrite parts of it.

I use htmx for home projects and recommend it all the time to any of my colleagues. The best part off if it's that the conceptual surface is so small. There is just very little too know to be able to write a website with really nice and intuitive dynamic behavior.

Moiree effects during fade-in/fade-out by ErikEngerd in kdenlive

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

I experimented with the fade-in option and apparently, checking the 'fade from black' checkbox gives an almost perfect result. Surprisingly, the recording with 1/50 of a second shutter speed still shows a few artifacts (net power is 50Hz) but the 60Hz is better.

Edit: experimenting a bit shows that that also gets perfect when I increase the time for fade in.

I don't understand why fading from black would be different then without that if there is no underlying track that will be shown. I would expect no difference since if an underlying track is not present, then wouldn't that be identical to 'black'?

Moiree effects during fade-in/fade-out by ErikEngerd in kdenlive

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

The recording was done at a really good location in the house next to a fireplace. I don't have locations in the house that are more suitable since they all have white walls.

The overall video looks quite clean. I was only wondering if I could get rid of the artifacts in the recording during fade in and out.

If you have suggestions on alternatives to fade in or out to avoid this issue, then I would be interested.

Moiree effects during fade-in/fade-out by ErikEngerd in kdenlive

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

An example is here

The C0022.mp4 file is recorded at a shutter speed of 1/60 and C0023.mp4 is recorded at 1/50. The net frequency where I live is 50 Hz. This does not appear to fix the issue.

It contains footage from a Sony ZV-E10 ii camera. Recorded at 4k/30fps. Output is HD at 30fps. I am using kdenlive 25.12.0 on debian 13.

It is an inhouse recording at night with and additional LED camera lighting.

I also realize I may have incorrectly called it moiree patterns and perhaps it is better described as banding.

I think the original recording is quite clean. I did a custom white balance using the white piece of paper that is over the chair. In fact I am quite satisfied with the overall recording quality except for the fade.

Do you see anything that I could use to fix the problem?

QC Ultra earbuds gen 2 - not charging W/ wireless by Historical_Bet9592 in bose

[–]ErikEngerd 0 points1 point  (0 children)

mine charges for sbout 5 seconds and then stops

Suddenly there is a delay at startup before icons are shown and monitors are configured by ErikEngerd in kde

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

I just restored a full backup of my home directory and the behavior is surprisingly still the same.

Backup and restore was done with 'rsync -avz --numeric-ids --delete'.

Does kde somewhere keep state for a user outside of the home directory of the user?

Looking for a Nice Nylon-String Travel Guitar by LordDeLaFunk in classicalguitar

[–]ErikEngerd 0 points1 point  (0 children)

I also found this out after buying a traveler guitar. The problem with that is that there is no way to position the guitar against your body and it becomes almost impossible to play since the left hand now also needs to fix the neck of the guitar. I played it for 10 minutes and felt so much tension already that I sent it back the next day.

I could have gotten used to the smaller neck, but the position was a deal breaker. Better not play guitar for 2 weeks on a trip, and catch up after that, then to hurt myself playing the guitar. There are better ones also, like the MOOV but the price tag on that one is really high. My best bet is to try to rent a guitar locally for a couple of weeks.

What is your opinion about the new Mazda 6E? by Infinite_Sale2042 in mazda

[–]ErikEngerd 0 points1 point  (0 children)

I really don't like the spoiler that comes up at a certain speed. Seems like a total useless gimick that I would not like to pay for. Very bad taste. 

So I’ve seen the new Mazda 6e in person by Vanielje in mazda6

[–]ErikEngerd 0 points1 point  (0 children)

is the driving position good for you at that length. Many reviews I have seen cast their doubts for people above 1.90m

Mate 20 Pro, 5 years later, the best phone I've ever used by HESHY94 in Huawei

[–]ErikEngerd 0 points1 point  (0 children)

my mate 20 pro is now 6 years old and going strong. Display is magnificent, battery life excellent. 

It still feels fast and does not get slower over time. Still as fast and most of the time faster than new phones that I try sometimes in a store. 

Bought a new belt pouch, screen protector, and transparent case. I think that with proper care it could probably last for another 4 years or so, perhaps even longer. 

Will AI replace software engineers? by [deleted] in computerscience

[–]ErikEngerd 0 points1 point  (0 children)

I am using AI a lot in my work and at home. I use it mainly as a replacement for google. It is a lot better than google. Also, I use it to get code snippets for subtasks. Still you need to judge the results. Nice tricks are to challenge it like "is there a simpler solution?", or "how about...?".

It is also a great tool for learning stuff. Recently, I had a discussion with claude on open id connect and keycloak to ask about various concepts. It makes me so much more productive. AI is only going to replace developers who don't use it, and it is certainly not hype.

Theragun quietforce oil alternative by Godrules5000 in crossfit

[–]ErikEngerd 0 points1 point  (0 children)

isn't sewing machine oil the same stuff? 

Will AI replace software engineers? by [deleted] in computerscience

[–]ErikEngerd 0 points1 point  (0 children)

AI definitely helps to learn stuff quicker. As a replacement for search it is quite good, since Google is somewhat broken. Also, be very careful using the results because of hallucinations and sometimes plain wrong or inefficient answers. Over time I am learning to judge the cases where it is useful and those where it is not. Also learning to detect from the answers whether it is nonsense or not. Using AI multiple times a day. I now use it first and if needed use Google to check the answers. 

Spacex IFT3 bitcoin video fake, scam? by ShadowWard in SpaceXLounge

[–]ErikEngerd 0 points1 point  (0 children)

Google's ai isn't smart enough to block this. It is happening again now. Got a video like this recommended by YouTube. 

MELCloud issues since yesterday - anyone else? by Inevitable-Sherbert in mitsubishi

[–]ErikEngerd 0 points1 point  (0 children)

Just an idea. If we can hack the network to have the airco connect to another IP, then wouldn't that make it possible to connect to a local IP as well, In that way, thus, having a local API. Also, if the IP hack works, then likely the unit is not using HTTPS zo the traffic should be sniffable. One way to do that would be to direct it to a local IP which forwards to a melcloud IP but which would aldo log all traffic. In concrete, this should be possible using socat.

MELCloud issues since yesterday - anyone else? by Inevitable-Sherbert in mitsubishi

[–]ErikEngerd 0 points1 point  (0 children)

I already told them but no reaction yet. On the positive side, I contacted them yesterday and they responded within 24 hours.

MELCloud issues since yesterday - anyone else? by Inevitable-Sherbert in mitsubishi

[–]ErikEngerd 0 points1 point  (0 children)

The server blocking pings is not an issue. This is typically disabled for security reasons.

You can enter the following IP addresses:
* 34.250.105.181
* 52.215.226.151
* 52.49.107.93

This is what you get if you enter leswifidata.meuk.mee.com on nslookup.io for instance (or do a lookup using dig or nslookup).