« first day (3302 days earlier)      last day (33 days later) » 

1:42 AM
You know when you write code and you know it's a big bowl of spaghetti... :/
2:12 AM
@AlexandreVaillancourt Look on the bright side, it's still in a bowl?
@Pikalek Haha yep :)
There's a decently regarded book out there on dealing with legacy code, which may or may not be your case.
2:28 AM
No; it's related to the fact that I want to update a progress bar, and pre-load a not-known-in-advance amount of big-or-small amount of graphics related files. The progress bar is not only for the graphics related files but for "everything".
So I have that 'normal behaviour' of "everything", and I have a 'sub progress' for that particular chunk of the loading.
So the code that handles the progress bar is now a half-ass singleton.
That needs to be used in a particular way.
: it first needs to be initialized with the window handle, because the code that creates the instance has this information, and the value is put in a static variable because the second I need that class that handles the progress bar, I don't have access to the window handle.
But you know what they say: make it work first, then clean it.
6 hours later…
8:20 AM
@Pikalek the solution is fire right?
4 hours later…
11:55 AM
Q: Seamless 2D wrap-around effect

Saad AneesI am trying to show multiple images on a grid system which are randomly generated and the grid is moving from right to left. What my client wants is when a part of a picture goes off the left edge of the viewport, it should start to peek in from the right, similar to the image shown below: Yo...

5 hours later…
5:24 PM
@Pikalek I tried shuffling around some of the math / code / commentary in this answer to hopefully help make the thread of explanation a bit clearer.
A: Calculate matrix transformation components separately

DMGregoryAssuming the following matrix multiplication convention, where \$M\$ is the matrix you want to decompose, and the \$\vec p\$ variables represent points as column vectors with a w coordinate \$p_w = 1\$... $$\begin{array}{lc} \vec p_{transformed} = M \times \vec p_{local} & M=\begin{bmatrix} ...

2 hours later…
7:14 PM
@DMGregory Again, an improvement on what I did. I was unaware of the \text marker - I really like how you applied it to put captions under some of the math blocks. I may need to back propagate some of this to my other conversions. I hope I'm not generating more work than I'm consuming.
@Pikalek Your edits are major improvements! Thanks for putting in the time. I think in this case it was more that my answer was structured in a bit of an awkward fashion, so it needed more structural change than just a math conversion.
I'd like to find a better way to do wrapping — the way I've done it there feels like a hack and is probably unfriendly to screen readers, if they parse MathJax at all.

« first day (3302 days earlier)      last day (33 days later) »