Random off-topic stuff

Everything not related to Prince of Persia should be discussed here.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

Some of this made me chuckle.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

Norbert wrote: July 30th, 2012, 11:49 pm I was just browsing YouTube an ran into this behind the scenes of Mortal Kombat 1 video.
Kinda fun to see some of the people that were involved and how they recorded stuff.
Here's a, surprisingly high quality, free, making of documentary that was released January this year.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

Twitter has now accepted Elon Musk's offer to buy the service for approximately $44 billion.
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1782
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Random off-topic stuff

Post by atrueprincefanfrom18 »

Norbert wrote: April 25th, 2022, 9:45 pm Twitter has now accepted Elon Musk's offer to buy the service for approximately $44 billion.
Now OpenAI can get more data to feed into their AI algorithm :lol:
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

Norbert wrote: April 9th, 2022, 11:09 pm
Norbert wrote: July 30th, 2012, 11:49 pm I was just browsing YouTube an ran into this behind the scenes of Mortal Kombat 1 video.
Kinda fun to see some of the people that were involved and how they recorded stuff.
Here's a, surprisingly high quality, free, making of documentary that was released January this year.
[video]
Also, it's funny to see that the Mortal Kombat (1995) film theme song, which is pretty basic in many ways, has 139 million views on YouTube. Some funny comments under the video as well, such as that the song is more 90s than the 90s themselves.

You know, it is interesting how nostalgic the "Mortal Kombat" scream/yell - that's in the song - is for many, including myself. This video has the scream's origin (at 0:15; not the kid):

The scream as a separate sound bite here. Once spoken by Kyle Wyatt, I think.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

Man, some insects are large.
Attached images of the elephant beetle.
Attachments
Megasoma.png
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

https://en.wikipedia.org/wiki/Copyright ... ion_rights
Apparently, in US law, if you've licensed something, then up to 35 years later, the licensor (that grants the license) can terminate the license.
Recent example: https://deadline.com/2022/06/tom-cruise ... 235039026/
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

How do I undo a - the last applied - commit from within the GitHub interface?

And how do I reassign commits that were already made to another GitHub account?
(This and this should've been done by user "EndeavourAccuracy" and not by "apoplexy".)
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Random off-topic stuff

Post by David »

Norbert wrote: November 19th, 2022, 3:22 pm How do I undo a - the last applied - commit from within the GitHub interface?
I only know how to do so in your local copy:

Code: Select all

$ git reset --hard HEAD^
You can replace HEAD^ with the commit ID of the last commit you want to keep.

The you need to force push it:

Code: Select all

$ git push --force
Norbert wrote: November 19th, 2022, 3:22 pm And how do I reassign commits that were already made to another GitHub account?
I managed to change the author of the *last* commit in a test repo with this:

Code: Select all

$ git filter-branch --env-filter 'GIT_AUTHOR_NAME=TEST_AUTHOR_NAME ; GIT_AUTHOR_EMAIL=TEST_AUTHOR_EMAIL ; GIT_COMMITTER_NAME=TEST_COMMITTER_NAME ; GIT_COMMITTER_EMAIL=TEST_COMMITTER_EMAIL' HEAD^..HEAD --
(Only the GIT_AUTHOR_* fields show up in git log, it seems.)

Unfortunately, I can't find a way to specify any commit other than the last.

If I specify a range with specific commit IDs then git says "You must specify a ref to rewrite."

I searched for that error message, and found this post which says that the end of the range must be HEAD.

And here is the official documentation about how to change existing commits: https://git-scm.com/book/en/v2/Git-Tool ... ng-History
"Changing Email Addresses Globally" is at the bottom.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

David wrote: November 26th, 2022, 12:06 pm
Norbert wrote: November 19th, 2022, 3:22 pm How do I undo a - the last applied - commit from within the GitHub interface?
[information]
Norbert wrote: November 19th, 2022, 3:22 pm And how do I reassign commits that were already made to another GitHub account?
[more information]
Thanks for the pointers.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Random off-topic stuff

Post by Norbert »

May I ask how I can prevent the attached test program from triggering printf on Alt+Tab?
The SDL_FlushEvents() lines don't do the trick...
I considered posting this question at discourse.libsdl.org, but maybe the solution is super simple. :oops:

I know there's also something like
if ((!(event.key.keysym.mod & KMOD_LALT)) && (!(event.key.keysym.mod & KMOD_RALT)))
but that doesn't work either, if Alt is released at a (slightly) different time.
Attachments
test.c
(3.6 KiB) Downloaded 49 times
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Random off-topic stuff

Post by David »

Norbert wrote: December 27th, 2022, 10:43 pm May I ask how I can prevent the attached test program from triggering printf on Alt+Tab?
The SDL_FlushEvents() lines don't do the trick...
I considered posting this question at discourse.libsdl.org, but maybe the solution is super simple. :oops:

I know there's also something like
if ((!(event.key.keysym.mod & KMOD_LALT)) && (!(event.key.keysym.mod & KMOD_RALT)))
but that doesn't work either, if Alt is released at a (slightly) different time.
I get a "Tab down" printout only if I release Alt but keep Tab down for the length of repeat delay (maybe half a second).

I tried to use the same fix which SDLPoP uses, but it doesn't work here *or* in SDLPoP!
(May be that fix was only for Linux? I am testing this on Windows.)

Strangely, if I release Tab before I get a "Tab down" printout, then the code sees Tab as not pressed, and doesn't see a keyup event for Tab.

I attached my fix attempt.
Attachments
test_fix_attempt.c
(5.66 KiB) Downloaded 42 times
Post Reply