Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate fun quotes when compiling quokka #722

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

psharda
Copy link
Contributor

@psharda psharda commented Aug 27, 2024

Description

Wouldn't it be fun to see a random (possibly funny, definitely geeky) quote every time you compile Quokka? Just type cmake .. and see the magic.

Related issues

Checklist

Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an x inside the square brackets [ ] in the Markdown source below:

  • I have added a description (see above).
  • I have added a link to any related issues see (see above).
  • I have read the Contributing Guide.
  • I have added tests for any new physics that this PR adds to the code.
  • I have tested this PR on my local computer and all tests pass.
  • I have manually triggered the GPU tests with the magic comment /azp run.
  • I have requested a reviewer for this PR.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Aug 27, 2024
@psharda
Copy link
Contributor Author

psharda commented Aug 27, 2024

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

scripts/quotes.py Dismissed Show dismissed Hide dismissed
@psharda psharda removed the enhancement New feature or request label Aug 27, 2024
Copy link
Collaborator

@BenWibking BenWibking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely a "user experience" PR, but I'm not sure whether it improves the user experience...

At most, I think this should be an optional feature.

@@ -70,3 +70,5 @@ add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/yaml-cpp ${QuokkaCode_BINARY_DI
add_definitions(-DNAUX_NET -DSTRANG)
add_subdirectory(${QuokkaCode_SOURCE_DIR}/extern/Microphysics ${QuokkaCode_BINARY_DIR}/Microphysics)
add_subdirectory(${QuokkaCode_SOURCE_DIR}/src ${QuokkaCode_BINARY_DIR}/src)

execute_process(COMMAND python3 "${CMAKE_SOURCE_DIR}/scripts/quotes.py")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should just call fortune. It's on every Mac and Linux system:

FORTUNE(1)                                        General Commands Manual                                        FORTUNE(1)

NAME
       fortune - sample lines from a file

SYNOPSIS
       fortune [ file ]

DESCRIPTION
       Fortune prints a one-line aphorism chosen at random.  If a file is specified, the saying is taken from that file;
       otherwise it is selected from /lib/fortunes.

FILES
       /lib/fortunes
       /lib/fortunes.index   fast lookup table, maintained automatically

SOURCE
       /src/cmd/fortune.c

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are going to supply a custom file of fortunes, you can't rip them off someone else. They have to be Quokka-specific. And ideally about quokkas.

@markkrumholz
Copy link
Collaborator

@psharda, do you still want to proceed with this, or can I close it off?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files. user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants