|
Do I smell a lucky winner of the "I'm gonna need you to come in on Saturday" competition?
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
I went to the zoo the other day but they only had one animal, a dog. It was a Shih Tzu.
|
|
|
|
|
BURN THEM
It is an old one...
We have two ropes. Both will burn exactly one hour from one end to other, but they both burn at uneven space as it may be that one will burn half the length in 10 minutes and the other half in the remaining 50 minutes...
The question is how to measure 45 minutes with these two ropes?
The answer is that set fire on both end of the ropes will half the burning time...
My problem is that the answer is seems to contradict the 'burn at uneven space' part, but never saw a proof of it, as it was trivial...
Can you prove it?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Light first rope on both ends. Because it doesn't burn evenly, the flames may not meet in the middle but the entire rope will still burn in 30 minutes. Sell second rope and buy a cheap watch. Drop cheap watch from top of Dubai towers. Due to updraft, it will take exactly 45 minutes for the watch to hit the ground. Plus or minus 44 minutes.
|
|
|
|
|
<Atypical MW reply>
(It's "uneven rates", by the way.)
The trouble is that the uneven-rates thing adds a random element to the equation, so there is no way to solve it except by statistics -- but with a sample of only two, any statistical analysis would be untrustworthy.</Atypical MW reply>
<Much more typical MW reply>
You can't, because you had to burn them already, to prove that they took an hour.</Much more typical MW reply>
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Even Bing will find suitable explanations.
|
|
|
|
|
Tie the two ropes together. Make a hangman's noose in one end of the ropes. Throw the other end over a stout branch of a tree and tie it off. Place the OP on a horse beneath the tree. Place the noose around his/her/it's/their neck. Whack the horse on the ass.
Software Zen: delete this;
|
|
|
|
|
I guess you can do it with only one rope unless I understood it wrong ( English is not my first language ).
1. Fold the rope in half and mark the mid point.
2. Fold the thinner end of the rope in half to mark the mid point of that section.
3. Start burning from both end until you reached midpoint of thinner end.
4. Putout fire. By that time rope's thicker end will have burned to mark 5 minute.
5. Start burning from midway mark done in step 1 until whole rope is gone. ( That is 45 minutes )
Something I tried to do on paper. [^]
Zen and the art of software maintenance : rm -rf *
Maths is like love : a simple idea but it can get complicated.
|
|
|
|
|
The shutters, which are on the outside of the Space Station are directly opened/closed from inside the station via a mechanical coupling with only a few rubber o-rings to keep the pressure. (the video explains it better and I can).
7 HOLES in the Space Station - Smarter Every Day 135 - YouTube
I'd rather be phishing!
|
|
|
|
|
I like that engineer dude. Very humble.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
I went to reply with the same thing. His channel is one of my favorites. I even support him on Patreon.
|
|
|
|
|
How different paths of like make different things great or small.
In my real life, back in Chemistry, I used "UltraTorr" fittings - hand tight - to maintain a pressure of 10-7 Torr in my vacuum line vs. atmospheric pressure. You just slid the bugger over the tubes (glass) on the line and the container, gave a little twist to compress the o-rings - and done. The lubricant on the o-rings was, as I recall, Apiezon-H .
Nothing fancy in this.
(that's a pressure ratio of about 10 billion to 1, give or take).
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I worked on the other end of the pressure spectrum with high pressures in the oilfield biz.
A well logging tool is assembled at room temperature and atmospheric pressure, with two 3.5 inch O rings holding back external wellsite pressures when going down the hole. I don't know the numbers but tools would routinely go deeper than 20,000 feet in drilling mud of density up to about 9+ lb/US gallon (fresh water is 8.34 lb/gal).
One of my operators had a waterproof watch he didn't like and the store wouldn't let him return it. He strapped it to the back of one of the caliper tools, ran it into the well and returned the resulting mess to get his money back.
[later]
Okay, found the magic formula...
Hydrostatic pressure, psi = lb./gal x 0.052 x depth (ft)
For 20000 feet depth, 9 lb/gal mud, pressure = 9 * 0.052 * 20000
or 9360 psi (about 625 atmospheres)
Not outrageously impressive but that is all held back by two little O rings. That's a little more than the fraction of an atmosphere in the space station...
Sorry for the non-metric units. Hazard of working in the oil biz...
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
That's OK - I live in a non-metric country.
More common high-pressure - those compressed gas cylinders that are found 'all over'. In the lab, in was not uncommon to have the cylinder side pressure ca. 1/4 of what you calculated. So, in the ballpark. Those regulators faithfully dropped it down to the few psi above atmospheric pressure that we needed.
I like the watch story - outsmarting stupid. Satisfying, indeed, when it can be done.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
This brings to mind the god-awful Alien (whatever) movie, where the virtually indestructible alien is sucked out into space through a peanut-sized hole, because of the PHENOMENAL pressure gradient of one (1) atmosphere.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Some of you know that I've been working on a SignalR app that updates web clients in real time. The only part I couldn't get working was the JavaScript part. I just now got it working!! See my comment in line
var searchUrl = "Index/GetData";
$.ajax({
url: searchUrl,
type: "POST",
success: function (data) {
$("#divData").html(data);
}
});
I'm so happy!! Being a Desktop guy I've never done any real web work before. I know have a WebGrid refreshing in real time in my project!!
Thanks for all of you who tolerated me during this experience!
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
|
I'm no SignalR expert, but isn't that only going to call the server once? I'd think you'd need something like a persistent connection to keep real time data streaming over?
SignalR JS Client · SignalR/SignalR Wiki · GitHub
I could be wrong though, I've never used it?
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Brent Jenkins wrote: 'd think you'd need something like a persistent connection to keep real time data streaming over?
That's exactly what SignalR is for. It maintains a connection between the client and server.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Yes, that persistent connection is part of SignalR's jquery library but it looked like you were just using a standard jquery ajax call instead of that in your original post?
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
The goal is to 'catch' a SignalR callback in the browser and reload the grid. That seems to be working as I have it.
Brent Jenkins wrote: it looked like you were just using a standard jquery ajax call instead of that in your original post?
I think I need a better explanation of this. We can move this to the Web forum if needed.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
As I say, I'm not familiar with SignalR but this code looks like a standard client->server jQuery ajax call (i.e. not SignalR)..
var searchUrl = "Index/GetData";
$.ajax({
url: searchUrl,
type: "POST",
success: function (data) {
$("#divData").html(data);
}
});
This is a single, asynchronous call to the server initiated from the client (web browser).
Now I'm just taking all this from the QuickStart Persistent Connections · SignalR/SignalR Wiki · GitHub website..
For SignalR to work (i.e. keep constantly streaming data one way or another) it looks like you need to add the SignalR client side library to your page:
<script src="Scripts/jquery.signalR-1.1.1.min.js" type="text/javascript"></script>
And call your server like this:
$(function () {
var connection = $.connection('/echo');
connection.received(function (data) {
$('#messages').append('<li>' + data + '</li>');
});
connection.start().done(function() {
$("#broadcast").click(function () {
connection.send($('#msg').val());
});
});
});
One way to tell might be to put a breakpoint in either you client side or server side code and see if data is constantly being sent.
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
There's more to it than I originally posted:
<script src="/Scripts/jquery-3.1.1.min.js"></script>
<script src="/Scripts/jquery.signalR-2.1.2.js"></script>
<script src="~/signalr/hubs"></script>
<script type="text/javascript">
$(function () {
<pre>
var conn = $.hubConnection("http://blah:8094/signalr");
var proxy = conn.createHubProxy('dashboardHub')
proxy.on('notifyAllClientsOfChanges', function () {
console.log("notifyAllClientsOfChanges received");
var searchUrl = "Index/GetData";
$.ajax({
url: searchUrl,
type: "POST",
success: function (data) {
$("#divData").html(data);
}
});
});
conn.start().done(function ()
{
console.log("Connected!!!");
}).fail(function (e)
{
console.log('Unable to connect:' + e);
});
});
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Yep, that looks like what I was seeing on the SignalR docs site..
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Wait... If I get this right you wait for a notification from SignalR and then refresh all your data using a regular AJAX call.
Why not simply send the changed data with your SignalR notification?
It saves you an entire AJAX call (and a lot of AJAX calls when you have multiple clients)!
|
|
|
|