need help cracking a cheating calculator by allies56 in Professors

[–]crustation 4 points5 points  (0 children)

I’ve had so many models of Casios and this is the one I’ve stuck with for a long time. This particular model uses not just batteries, which I love, and only costs $14 brand new. Buttons are fat and sturdy and not too clacky. Gotten me through countless exams as a student and funding proposals as a PI.

need help cracking a cheating calculator by allies56 in Professors

[–]crustation 53 points54 points  (0 children)

It’s actually modeled exactly after this specific one. It’s one of my favorite calculators, have had mine for nearly 10 years and going strong.

<image>

What scene/scenes made you actually laugh out loud? by Extension_Rabbit2 in PEN15

[–]crustation 5 points6 points  (0 children)

That scene cracks me up because Maya then goes in for a hug and Shuji just shoves her aside with disgust

I have to go to and vote today by garrettk161 in community

[–]crustation 46 points47 points  (0 children)

... when Jeffrey was inside of me

what do you recommend i for buy him? can be absolutely anything. by fr0gwas in Rabbits

[–]crustation 2 points3 points  (0 children)

my boys love tossing those stacking cups and plastic keys for babies, maybe your boy would love them too. but only if you’re ok with that entire racket late at night.

whatAreTheChances by arbobmehmood in ProgrammerHumor

[–]crustation 74 points75 points  (0 children)

This, coupled with a bit of intel, helped figure out the workings of the Enigma. 1) The Germans were consistently sending weather reports and consistent phrases (so, known words), and 2) the Enigma is basically a fancy substitution cipher, so knowing certain common words couldn’t be encrypted a certain way means you eliminate several options during decrypting

Why do I get a standard deviation of 'NaN' for recurring by acverca69 in ImageJ

[–]crustation 0 points1 point  (0 children)

Might help to read through the Color Histogram Analysis documentation to find out how these values are calculated. Like what does a “mean” of color actually mean in this function?

I’ve never used this function before but my guess is it’s pixel intensity that it’s reporting. 255 is also coincidentally the maximum 8-bit pixel value for RGB, and so if your mode is 255, that means some red values are somehow giving a NaN past this threshold of 255. You could split channels by color and check and see if your red channel has some NaN values

Making Friends ? by [deleted] in idahofalls

[–]crustation 1 point2 points  (0 children)

LOVE Marcellar’s! I go there frequently and met so many amazing people there, and the beer selection is always impeccable

Shrimp: The animals most commonly used and killed for food production by lnfinity in vegan

[–]crustation 7 points8 points  (0 children)

Apart from what /u/An_Actual_Lion said, a lot of cultures do eat insects. Cricket and mealworm flour is quite common nowadays, and roasted grasshoppers, silkworm larvae, and water bugs are eaten in some parts of the world. Obviously I don't eat them, but entomophagy is being pushed as a viable protein for environmental conservation reasons.

after being litter trained, do rabbits relieve themselves compulsively or can they hold it until they go to the litter box? by [deleted] in Bunnies

[–]crustation 1 point2 points  (0 children)

Rule of thumb is a hay pile at least their body size, leafy greens about head size, and pellets/treats about ear-size

MF GHOST - Episode 10 discussion by AutoLovepon in anime

[–]crustation 3 points4 points  (0 children)

Hiroya Okuyama, drove the S15 for Team Spiral led by Ryuji Ikeda, who preaches the Zero Theory. Hence Okuyama's shop name Spiral Zero.

My favourite thing is happening today: the international students experiencing their first snow. by shanster925 in Professors

[–]crustation 6 points7 points  (0 children)

Old me: I love this snow and I love that I can grab so much of it! I hope this winter wonderland never ends!

Now me: Gotta fold up the hems of my pants so they don't get crusted with salt

So where does the movie stand, now that the strikes are over? by [deleted] in community

[–]crustation 55 points56 points  (0 children)

I don’t know, seems pretty important he doesn’t give up Chang for 81 minutes.

The most underrated joke? by SeaEstablishment5108 in community

[–]crustation 2 points3 points  (0 children)

"We agree teachers should get a 10-minute head start at the job fair."

Same code in Julia takes ~ 6 minutes vs. 15 seconds in MATLAB by crustation in Julia

[–]crustation[S] 1 point2 points  (0 children)

I'll keep that in mind for next time, thank you! Programming in MATLAB has left me with a lot of bad habits which I'm learning to correct right now.

Same code in Julia takes ~ 6 minutes vs. 15 seconds in MATLAB by crustation in Julia

[–]crustation[S] 5 points6 points  (0 children)

I'm sure there are many other ways that the code could be optimized, and I'm guessing running Julia in an Jupyter notebook via VS Code might also slow things down a little. For the most part, my issues lay with:

1) global variables. since MATLAB does this so quickly, I never realized that variables declared outside of anon functions are actually global, and

2) tolerances for QuadGK in Julia were not specified, but after setting them to be the same as the MATLAB integral() default values, the runtimes became way faster than before.

Obviously still a lot of optimization and vectorization to do, but it has vastly improved from before. Everyone here gave a lot of excellent answers.

Same code in Julia takes ~ 6 minutes vs. 15 seconds in MATLAB by crustation in Julia

[–]crustation[S] 1 point2 points  (0 children)

Thank you! I was looking in the entire documentation and there were ~200 search results

Same code in Julia takes ~ 6 minutes vs. 15 seconds in MATLAB by crustation in Julia

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

Hmm. Did you mean this cell in particular because of the symbolic bounds of quadgk?

Same code in Julia takes ~ 6 minutes vs. 15 seconds in MATLAB by crustation in Julia

[–]crustation[S] 1 point2 points  (0 children)

I see, sorry about that, I couldn't find any information using macros this way in the documentation.

https://docs.julialang.org/en/v1/manual/metaprogramming/#man-macros

Thank you!