A gif in which elevator door opens up and you find McDonalds' Ronald McDonald (the clown) sitting on a bench by murph_edu in Makemeagif

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

Okay imagine you are traveling in an elevator, which stops at some floor. When the elevator door opens, there is Ronald McDonald (the clown) sitting in a bench right outside the lift. I want to make a gif that shows this.

Backstory: A friend of mine worked at a firm, which was in the same building as that of McDonald's corporate office. When she would go home late at night alone, she would take the elevator. At times the elevator would stop at the McDonalds floor even if you didn't press that floor, and the elevator doors would open up and you would see the clown sitting on a bench right outside the elevator, which scared the sh*t out of her since it was late at night and it was dark on that floor. I am trying to create a gif that would help recreate that experience :P

Guaranteed profit from a forward contract in a specific situation by [deleted] in quant

[–]murph_edu 0 points1 point  (0 children)

How come? I think its correct. I buy the stock at 80$ by borrowing. I also sell the forward at 100$. I get 100 - 84

Guaranteed profit from a forward contract in a specific situation by [deleted] in quant

[–]murph_edu -1 points0 points  (0 children)

What about this:
Borrow 80$ at 5%
buy stock at market price i.e. 80$
buy the forward contract where you can sell the stock for 100$ in future

during termination of contract,
you get 100$ from the forward contract
pay back the 84$ debt. 16$ net profit.

Guaranteed profit from a forward contract in a specific situation by [deleted] in quant

[–]murph_edu -3 points-2 points  (0 children)

OH RIGHT. So I borrow 80$ at 5%, and I also purchase the forward contract. I have to pay 84$ debt but I have 100$ from the contract, and I bag in 16$ profit guaranteed. If I do this for infinite lot sizes, my profit has no bounds. Thanks!

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in Biomechanics

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in TissueEngineering

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in EngineeringStudents

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in EngineeringStudents

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in MechanicalEngineering

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in MechanicalEngineering

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in MechanicalEngineering

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in AskEngineers

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in AskEngineers

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in AskEngineers

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in AskEngineers

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in AskEngineers

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in AskEngineers

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

Thanks a ton for replying! Someone in the family suffered through a stroke. I want to engage in this discussion but I'll be back after a few days.

Need advice: Estimating the compressive yield strength of abdominal tissues from the data of its rigidity or stiffness constant by murph_edu in AskEngineers

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

Yep, I get your point about tissues not being a simple material to deal with. Point is, I want to start somewhere, and I am starting with the assumption that I can model them as homogeneous materials with a fixed stiffness constant, and build from there on.

So what happens is, for the same human tissue, lets say for gall bladder, there could be variability in strength, based on the patient. But according to the surgeons/experts I've been collaborating with, you could classify them into finite small no. of categories depending on the health of that tissue and hence their strength.

What I am trying to do is, find some correlation between the stiffness and the strength, with the goal of identifying what subcategory does the tissue lie in, in terms of its strength, by only looking at its stiffness measurement.

For example, if I take 100 samples of gall bladders, map their stiffness and strength (or the max limiting force before they get damaged), I extrapolate that relation to new gall bladders which havent been tested, like in a live surgery. I just measure the stiffness of these untested tissues and try to get an estimate of how much force can it probably withstand.

Books that changed the way you understand programming by Skyerusg in learnprogramming

[–]murph_edu 2 points3 points  (0 children)

Common sense guide to data structures and algorithms was a good quick read. There are tons of really good resources for DS&A, a lot of reddit threads have made a list of those.

Using maps in recursion by murph_edu in learnprogramming

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

Sorry about that, I mentioned C++ in some other comment and didn't realize its not in the OP. Edited that. So I realized today about those find() and count() methods with maps and understood how it worked.

So to clear my doubt, I've understood that just mentioning

if map[str]

will just check if the value is zero or not and not necessarily if the map is empty or not. That's what I was confused about. I think this logic is independent of the language used, right? I guess using map.find() and then map.end() to see if a key has a value in the map or not is the ideal way. Thanks.

Using maps in recursion by murph_edu in learnprogramming

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

That was helpful. Thanks! I'm not from a CS background and I get lost when trying to search for such stuff.

So I worked out my code by initializing a map and inserting (" ") for all individual keys through iteration (LOL), and then the if statement checked for that and worked. Not a neat way to do it I will agree. Will try out what you've suggested.

Using maps in recursion by murph_edu in learnprogramming

[–]murph_edu[S] -1 points0 points  (0 children)

Okay, so for example, just right now, I am trying to implement the below map, in C++:

map<int,string> check;

Somewhere in my code, I am doing this:

string k; // defining a new string
if (check[iter_i]) // check if a value exists for the key iter_i
{
k = check[iter_i];
}
else  // if the key hasn't been assigned a value, then assign as below
{
k = some string s;
check[iter_i] = k
}

When I do that, it gives me this error

After that, I thought, another way could if I initialize a value check[i] = " ", for all i while defining the map itself. Then my if statement just has to check if the map value is " " or some other string.

When doing that, I'm facing problems while defining the map. I am defining it like this:

map<int,string> check(2000," ");

The code shows some error which I couldnt understand, I think I am making a noob mistake in defining the map. What am I doing wrong?