Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 789 790 [791] 792 793 ... 879

Author Topic: Things that made you laugh today: some people notice when 1 change the title  (Read 1567362 times)

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11850 on: May 24, 2021, 03:25:57 am »

No no Methyl, you need to send that image through ROT13. :P

(Though in this case, it should probably rotate more-- say, ROT64, or ROT32.  Some whole power of 2 at least.)
« Last Edit: May 24, 2021, 03:27:58 am by wierd »
Logged

Egan_BW

  • Bay Watcher
  • "Lest he be compelled to labor."
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11851 on: May 24, 2021, 03:30:14 am »

Who knew that uwuification could create something visually appealing?
Logged
It is good to choose your battles. It is better to choose your wars.

King Zultan

  • Bay Watcher
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11852 on: May 24, 2021, 03:36:17 am »

If you look at that last picture you can kind of see parts of the original image.
Logged
The Lawyer opens a briefcase. It's full of lemons, the justice fruit only lawyers may touch.
Make sure not to step on any errant blood stains before we find our LIFE EXTINGUSHER.
but anyway, if you'll excuse me, I need to commit sebbaku.
Quote from: Leodanny
Can I have the sword when you’re done?

methylatedspirit

  • Bay Watcher
  • it/its
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11853 on: May 24, 2021, 03:41:42 am »

No no Methyl, you need to send that image through ROT13. :P

(Though in this case, it should probably rotate more-- say, ROT64, or ROT32.  Some whole power of 2 at least.)

I don't think ROT-over-whole-byte is a thing, at least not as a prepackaged program in the Ubuntu repos. What I can do is Base64 encode -> ROT13 -> Base64 decode. This is the command you need (you'll need rot13 from hxtools):

Code: [Select]
base64 aurora.raw | rot13 | base64 -i -d > aurora-base64-rot13-dec.raw

And that yields:
Spoiler (click to show/hide)

It's not very interesting without the Base64 conversion:

Code: [Select]
cat aurora.raw | rot13 > aurora-rot13.raw
Spoiler (click to show/hide)
« Last Edit: May 24, 2021, 03:55:31 am by methylatedspirit »
Logged

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11854 on: May 24, 2021, 04:03:53 am »

...

I need to make a shellscript that takes an input byte, then randomly does one of the following to it, after picking a random number to decide, then outputs the result.

Reverse the bitfield
Rotate the bitfield 1/4
Rotate the bitfield 1/2
Rotate the bitfield 3/4
Replace the byte with a randomly generated one
switch every other bit with the small-end one adjacent
switch every 3rd bit with the small-end one adjacent
switch every 4th bit with the small-end one
ignore the input byte, and return the last processed byte again

The results should be all over the place that way, but still be based heavily on the input stream. (and be non reversible. )

It would be pretty simple--  Accept an input byte from standard input, store it in a variable-- generate a random number between 1 and 9-- decide what to do using that value, then return the appropriate byte on standard output.

Call it DataMangle.sh or something.

Logged

methylatedspirit

  • Bay Watcher
  • it/its
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11855 on: May 24, 2021, 04:09:28 am »

-snip-

Why not just straight C (or Python, I suppose)? This feels like something that would get optimized quite well by a compiler, though I have no clue why I'm saying that. I'm sure even the Python interpreter would do marginally faster here than in Bash.
« Last Edit: May 24, 2021, 04:12:21 am by methylatedspirit »
Logged

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11856 on: May 24, 2021, 04:49:18 am »

More easily shared; no extra toolchain.
Logged

methylatedspirit

  • Bay Watcher
  • it/its
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11857 on: May 24, 2021, 05:05:22 am »

I guess. But then you'll be screwing out the Windows users in the crowd (at least those who don't have WSL or Cygwin). The argument against C is fine (have you seen how gigantic MSVC is?), the one against Python less so (< 100 MB, and that's a ridiculous upper bound). Python would be cross-platform by default, assuming you stuck to the standard library and carefully picked out portable external libs. I can't imagine shell scripts being particularly fun to read or debug, but you're the genius here.
Logged

Maximum Spin

  • Bay Watcher
  • [OPPOSED_TO_LIFE] [GOES_TO_ELEVEN]
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11858 on: May 24, 2021, 07:57:16 am »

I guess. But then you'll be screwing out the Windows users in the crowd (at least those who don't have WSL or Cygwin). The argument against C is fine (have you seen how gigantic MSVC is?), the one against Python less so (< 100 MB, and that's a ridiculous upper bound). Python would be cross-platform by default, assuming you stuck to the standard library and carefully picked out portable external libs. I can't imagine shell scripts being particularly fun to read or debug, but you're the genius here.
Python is also awful.
Logged

methylatedspirit

  • Bay Watcher
  • it/its
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11859 on: May 24, 2021, 08:38:17 am »

May I know why you think it's awful? I thought it's a pretty good language myself, but keep in mind I really only use it for one-off scripting and stuff like that. Nothing performance-critical, always instances where I could afford to waste CPU time and RAM.

And in that case, which language would you prefer, then?
Logged

McTraveller

  • Bay Watcher
  • This text isn't very personal.
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11860 on: May 24, 2021, 10:18:01 am »

Why would you download MSVC? There are much smaller, lighter C/C++ toolchains you can get.  I personally use just the GCC part of MinGW (64-bit) and it you can get a fairly small package for that if you just get the binary, headers, and standard library binaries (it's much bigger if you get the source, of course).

(There is also the added benefit of not supporting Microsoft, but your mileage may vary on that sentiment.)
Logged

bloop_bleep

  • Bay Watcher
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11861 on: May 26, 2021, 04:51:44 pm »

MSVC is a meme. Such a weird freaking compiler. Don't use it if it isn't wanted by your project. Just use MinGW.
Logged
Quote from: KittyTac
The closest thing Bay12 has to a flamewar is an argument over philosophy that slowly transitioned to an argument about quantum mechanics.
Quote from: thefriendlyhacker
The trick is to only make predictions semi-seriously.  That way, I don't have a 98% failure rate. I have a 98% sarcasm rate.

methylatedspirit

  • Bay Watcher
  • it/its
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11862 on: May 26, 2021, 06:02:28 pm »

Doesn't MSVC produce slower binaries than Clang/LLVM at -O3, nevermind GCC? Like, Clang's under a BSD-style license, the source is right there on GitHub (which M$ own), Microsoft could at least just look at what they did to get faster binaries, but I think they're suffering from not-invented-here syndrome. All they'd have to do is slap a copy of Clang's license onto their software. Right where the EULA is, where no-one will read it.

Edit: Installed the MinGW toolchain for Rust and set that as default. Bye-bye, MSVC!
« Last Edit: May 26, 2021, 06:37:17 pm by methylatedspirit »
Logged

Frumple

  • Bay Watcher
  • The Prettiest Kyuuki
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11863 on: June 03, 2021, 02:38:39 am »

Quote from: Beneath the dragoneye moons, chapter 38
I flushed in embarrassment again. Did she have to point that out in front of everyone!? Locking eyes with her, I drew my knife, bunched my hair up, and in one sharp move cut it pixie-short, like hers.

[*Ding!* Congratulations! [Pretty] has reached level 94!].

 

Still staring at her, I dropped it in the fire.

“No!”

“Not the fire!”

“Arrrrrrgh!”

Small bits of flaming hair went everywhere. Whoops.
Logged
Ask not!
What your country can hump for you.
Ask!
What you can hump for your country.

Rolan7

  • Bay Watcher
  • [GUE'VESA][BONECARN]
    • View Profile
Re: Things that made you laugh today: 11000 laughs, somehow
« Reply #11864 on: June 04, 2021, 01:58:28 am »

As Slowbeef and pals finish off finish off Visual Novel Book Club Season 4: Danganronpa V3, they fell into an extended Steamed Hams text adventure bit.

Timestamped, but don't listen past the bit if you don't want Danganronpa V3 spoilers.  It's pretty great and spoilers do mess with the experience.
Logged
She/they
No justice: no peace.
Quote from: Fallen London, one Unthinkable Hope
This one didn't want to be who they was. On the Surface – it was a dull, unconsidered sadness. But everything changed. Which implied everything could change.
Pages: 1 ... 789 790 [791] 792 793 ... 879