Register | Sign In


Understanding through Discussion


EvC Forum active members: 65 (9162 total)
3 online now:
Newest Member: popoi
Post Volume: Total: 915,806 Year: 3,063/9,624 Month: 908/1,588 Week: 91/223 Day: 2/17 Hour: 0/0


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   Quick Questions, Short Answers - No Debate
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


Message 637 of 653 (884598)
02-26-2021 1:41 AM
Reply to: Message 636 by AZPaul3
02-25-2021 9:39 PM


That file is a JPG file. I FTP'd it to that directory myself. So the URL is to a JPG file.
It used to work no problem. Now it hasn't for what seems like a few months. No idea why.

This message is a reply to:
 Message 636 by AZPaul3, posted 02-25-2021 9:39 PM AZPaul3 has replied

Replies to this message:
 Message 638 by AZPaul3, posted 02-26-2021 2:24 AM dwise1 has replied

  
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


Message 639 of 653 (884600)
02-26-2021 3:13 AM
Reply to: Message 638 by AZPaul3
02-26-2021 2:24 AM


I still have my slip-sticks and used to keep one handy in my briefcase "in case my calculator's batteries ran out".
Remember the old algebra class exercise of factoring a quadratic equation? Back in 1974 I worked out a method for that on the slide rule. Can't do that with a calculator.
"URL layer"? I don't remember that being in any protocol stack. The Uniform Resource Location identifies and locates the file (ie, "resource") you want the HTTP response message to a GET request which specifies the image file by its URL. It's been about 5 or 6 years since I've played with HTTP messages, but as I seem to recall they start with lines of text with keyword data including Content-Type:. This Content-Type would identify this JPG file as "image".
I have also frequently included image files in web pages by giving the HTML the files' URLs. And in other messages on this forum they display image files with the exact format as I am using (and had used successfully in the past): img tags surrounding the image file's URL.

This message is a reply to:
 Message 638 by AZPaul3, posted 02-26-2021 2:24 AM AZPaul3 has replied

Replies to this message:
 Message 640 by AZPaul3, posted 02-26-2021 4:23 AM dwise1 has replied

  
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


Message 642 of 653 (884623)
02-27-2021 12:52 PM
Reply to: Message 641 by ringo
02-26-2021 11:43 AM


Re: [qs]Re: Cost of Gasoline/Petrol/Benzine in Europe
OK, no response from Europe yet.
Some of our OLLI lecture classes make use of the Great Courses videos (eg, in our Science 4 U class). In one video something that Tedesco did was used as an example. In the background photo of a Tedesco store, I caught a glimpse of "161" on a sign that looked like petrol prices.
I would interpret that "161" as "£1.61 / liter", which assumes that in the UK petrol prices are given in pounds per liter. That assumption might not be warranted, since the UK has mixed adoption of the metric system what with distances still being measured in miles and I assume that ale and beer are still served in pints.
Therefore, successively multiplying £1.61/liter by one:

£1.61 $1.39 1 liter $8.47
----- × ------- × --------------- = -------
liter £1.00 0.264172 gal gal
About 2.5 times the price in the USA. Assuming that my assumptions were correct, which demonstrates that I satisfy the need-to-know requirement.

This message is a reply to:
 Message 641 by ringo, posted 02-26-2021 11:43 AM ringo has seen this message but not replied

Replies to this message:
 Message 643 by Tangle, posted 02-27-2021 2:58 PM dwise1 has replied

  
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


Message 644 of 653 (884629)
02-27-2021 6:00 PM
Reply to: Message 643 by Tangle
02-27-2021 2:58 PM


Re: [qs]Re: Cost of Gasoline/Petrol/Benzine in Europe
OK, then, pennies per liter instead of pounds per liter. Guess that's handy in that the sign doesn't need to have a decimal point.
So in a way that illustrates an important part of my question which was in terms of what units are used in quoting that price. In the USA, it's dollars per gallon. Ringo said that in Canada it's dollars per half-gallon (either traditional or a new convention created around 1980 in response to rising gasoline prices and pumps not designed to handle those prices). In the UK, it's pennies per liter. And when we were driving in Germany and Italy, I should have taken note of how they had posted prices but we only ever refilled right before turning in our rentals.
Thank you for your contribution to my project. I'm almost finished with my non-trivial page for Americans learning to visualize metric measurements -- I'm currently about to return to editing my section on handling Celsius, which is what had started it (in anticipation of our first European trip my friend expressed complete and utter confusion over weather report temperatures, so I tried to devise for her a simple system based around 20-22°C being the comfort zone -- for more exact conversions, you need only memorize 20°C=68° and that 1 degree C = 1.8 degrees F (ie, nearly double), and hence every 5 degrees C are 9 degrees F) -- so if it's less than 20°C you put on your sweater or jacket and if it's 25°C or higher you dress lighter. I thought it was brilliant whereas she was not impressed.

This message is a reply to:
 Message 643 by Tangle, posted 02-27-2021 2:58 PM Tangle has not replied

  
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


Message 645 of 653 (884630)
02-27-2021 6:06 PM
Reply to: Message 641 by ringo
02-26-2021 11:43 AM


Re: [qs]Re: Cost of Gasoline/Petrol/Benzine in Europe
Though by selling it in half-gallons you were able stave off the crisis longer -- not quite for twice as long since the price was increasing exponentially.
Was selling it by the half-gallon the standard convention in Canada established decades before? Or was it a new convention adopted in the late 70's as a stop-gap measure? Or was that around the time you had started driving and paying attention to gas prices for the first time?

This message is a reply to:
 Message 641 by ringo, posted 02-26-2021 11:43 AM ringo has replied

Replies to this message:
 Message 649 by ringo, posted 03-01-2021 11:14 AM dwise1 has not replied

  
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


Message 646 of 653 (884632)
02-27-2021 8:29 PM
Reply to: Message 640 by AZPaul3
02-26-2021 4:23 AM


I'm thinking it may be you as the problem. You crossing any unusual digits during composition? Have you checked your midichlorian levels?
Well, I did go through Ki development training in the early 70's (it's an Aikido thing) -- when Star Wars first came out in 1977 and Obi Wan was describing the Force to Luke, I immediately recognized it as Ki (translated as "life energy" or "mind"; transliterated from Chinese martial arts mysticism as "Qi", though it's written almost the same in both Chinese and Japanese with the rice-like radical in traditional Chinese being simplified into a kind of X)). But unlike in Scientology we didn't check any pseudo-scientific "midichlorian levels", but rather we would use Ki directly in our techniques which depended on us using Ki -- in Aikido, if you try to use physical strength to muscle your way through a move, then it will fail.
I also never crossed the streams (nor even realized why the very thought of it would freak out Ray Stantz so very much until two decades later).
Now, remember that I'm a retired software engineer with initial training as a computer electronics technician (which included chasing sparks through a CPU's logic diagrams). Combine my hardware training with working in C, which allows you to work very close to the metal, and I was very comfortable working with low-level operations, including bit-fiddling.
On my own I had learned sockets programming, which is how network programming is commonly done, about 20 years. While sockets supports upwards of 25 different networking protocol families, TCP/IP is the one used on the Internet and hence the predominant one. So in the process I also learned what I could of TCP/IP and its various protocols.
General networking theory is based on the OSI Protocol Stack which consists of 7 layers (hence the discussion of "layer"). TCP/IP commonly combines some of the OSI layers and is described with four layers which I discuss on my TCP/IP page.
As for HTTP message fields, ever since the mid-80's, I've had a personal programming project that I keep restarting every time technology changes. In 1981, Navy Reserve officer Larry Bond published his modern naval warfare miniatures game, Harpoon (he had designed it to help train fellow officers) and around 1985 a friend and I sat down to run a very simple introductory scenario involving a Kidd-class destroyer and three Osa-II missile boats. The engagement was for 10 to 20 minutes, but after three hours of graphing, measuring, and calculating by hand we weren't even half-way through the scenario. That's when I decided that I needed to develop a "Harpoon Helper" program that would do all that messy book-keeping work for us. Yes, Bond's game system has been converted to a series of computer games, but there your forces are pitted against the computer's and (in the first iteration at least) you have to micro-manage everything.
In the most recent development effort (circa 2013), I expanded my ideas to a networked system. That was inspired by the Distributed Interactive Simulation (DIS) standard in which each unit (including each piece of ordnance in flight) is a separate entity that communicates with all the others (and with the simulation monitor) via UDP datagrams. However, DIS uses multicast and the source code was mainly interface shells, but it got me thinking.
I chose to model the application protocol after the HTTP messages that the Web uses. I studied HTTP and started some prototype coding to process my version of HTTP messages. Again, HTTP request and response messages are how web pages operate as they GET resources and then receive them.
BTW, Larry Bond had worked with Tom Clancy on Clancy's break-out novel, "The Hunt for Red October", for which they used Harpoon to game out the "battle scenes". A major source of military hardware information that they used came from the well-known and authoritative Jane's books started by Fred T. Jane as reference books to support his naval war game (1906). Wargaming is also very much a part of the curriculum at the Naval War College -- Invicta's videos, eg at https://www.youtube.com/watch?v=lj42mzT06jo&t=841s
But ever since I retired three years ago, I've done almost no programming at all. I will undoubtedly never complete that project, but it's been a very interesting study.
Fun story. At my last job (my final 28 years of employment), because of my skills in bit-fiddling I would usually be given the task of interfacing our units with new GPS receivers, with the communications protocol of their serial comm ports.
Part of that was interpreting binary data fields. Most receivers would transmit their binary data using IEEE standards, so the biggest problem would be translating the data stream's big-endian data representation to Intel's little-endian data storage. Fairly trivial.
However, we started using a major GPS standard which used an entirely different format for floating-point data. It followed the same basic principles of IEEE-754, but the exponent and mantissa fields were different sizes (which also affected how to interpret the exponent field), along with being big-endian. Plus we had to be able to convert both ways, from RCVR (receiver) to IEEE as well as from IEEE to RCVR. The problem was definitely non-trivial are required concentration and a lot of attention to detail. One flipped or misplaced bit (out of upwards to 64 bits) would be disastrous.
At the same time, I assisted a West Coast Swing dance teacher with her classes, mainly minding the door, handling the sign-ins and the money, and demonstrating moves. One of her popular classes was ladies' styling. It didn't take me long to figure out that it wasn't polite to be the only guy present with nothing to do but sit and watch, so I developed the habit of always bringing something to read or to work on.
Such as this non-trivial floating-point format conversion problem from work. During one 1.5-hour class, I worked out the entire approach, then refined the approach, then sketched out most of the code. The next day at work all I had to do was type in the code, put on the finishing touches, and test it. Worked fine, so I submitted it for code review. I had mentioned where and under what conditions I had worked on it, so everybody, assuming that I had to have been distracted, did their best to find something, anything, that I had done wrong. They couldn't.
 
ABE:
Oh, and yes, there must be something about my site, which is where I place my images, that the forum software doesn't like. I even placed an HTML IMG tag for that Vienna French Toast in the page I'm working on now and it displays just fine, but when I copy-and-pasted that tag to this reply as a test it was "Image Not Found" all over again.
Edited by dwise1, : ABE

This message is a reply to:
 Message 640 by AZPaul3, posted 02-26-2021 4:23 AM AZPaul3 has not replied

  
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


Message 650 of 653 (887471)
08-04-2021 4:52 PM


Looking for Cardboard Morse Code Practice Devices
When I was a Scout, there was a simple cardboard (ie, like a playing card is made out of) device for practicing Morse code. We had obtained it already made, so this was not a craft project.
The whole thing measured about 4 inches (10 cm) square and was a dark gray color. It was folded into itself in about three layers. On the front layer, there were cut into it horizontal rows of slits which overall formed a circle about 3 to 3.5 inches (7.5 to 8 cm) across. On the inner layer right behind it was painted with a circle of the same size consisting of same-width stripes alternating between the same dark color as the outside and a light whitish color (possibly also luminescent for a glow-in-the-dark feature). The back of the outside is not important, but I seem to recall that it had the Morse code printed on it for reference.
The way it operated was that at you would hold it by the top and the bottom between your thumb and your fingers and squeeze it or release it. At the default rest position, the inside dark stripes would line up with the front's slits and the front would appear to be dark. But when you squeezed it, the inside light stripes would line up with the slits and you'd get the "lit up" circle.
My question is where and how to obtain them. I know that Morse code is no longer required and has fallen out of use, but I'd like to be able to pass that knowledge on to my grandsons some day.
 
ADDENDUM:
Googling for more info (mainly a photo of one), I stumbled upon it as "WW2 NAVY TRAINING AID CARDBOARD MORSE CODE FLASHER" at https://www.worthpoint.com/...-aid-cardboard-morse-130619847 . That site appears to be a kind of antique auction site and the going price for one of those (you need at least two for practice) on eBay is about $30. At least by going there you can see what I was just describing.
My father had been in the Navy (WWII plus about a decade in the reserves), so that is probably how we had acquired them.
So my question shifts to whether something like that is still being made and where I could acquire them. $30 each (plus $5 for shipping) is a bit stiff for me.
 
ABE:
PS

I found them on amazon.com at $3 for a pair.
Edited by dwise1, : PS ABE

Edited by dwise1, : added "(mainly a photo of one)"


  
dwise1
Member
Posts: 5930
Joined: 05-02-2006
Member Rating: 5.8


(1)
Message 651 of 653 (910891)
05-24-2023 12:39 AM


English Lit Question
Two questions, actually.
1) There is a truism mentioned in many literature classes that there are only a small number of different stories such that the thousands of stories we see are just retelling those few basic stories. A good example is the many retellings of Romeo and Juliet; eg, as West Side Story. Or of Joseph Campbell's example of the Journey of the Hero in which the inexperienced and not ready hero embarks on a journey in which he learns and grows into the hero that he must eventually become.
We see this all the time in movies and TV shows -- my father used to get a rise from us when we'd be watching a new episode on TV and he'd say that he had seen this one before and we'd argue that it had never aired before now. That was taken to the ridiculous when I returned home from duty at midnight (1977) and my wife told me about having watched back-to-back episodes of Charlie's Angels and Mod Squad. They were the exact same story (armed robber ditching his gun in a park, a kid finds it and accidentally shoots one of the main characters who falls out of sight in the bushes so the rest of the team has to find him/her), the only difference being different characters. We assumed that a writer just resold the script figuring that no one would catch on. A few years ago for fun I searched through Wikipedia's episode lists for those episodes and found them. They were indeed written by the same screenwriter and Wikipedia noted that duplication.
My question on this one is: How many basic stories are there? I seem to recall fifteen (15), but I guess it depends on the lecturer.
2) There's a basic story that has cropped up a number of times and which seem to be based on a classic story which I heard mentioned in a lecture half a century ago (like everything I seem to recall).
I think it's called "A Sailor's Story" and that it's supposed to be Chaucer, though I'm undoubtedly wrong. A sailor falls overboard and just as he is about to drown, he is rescued by a mermaid who takes him to the shore of a fantastic land. He has many fabulous adventures and acquires great wealth, etc, until he finishes drowning. IOW, everything he had experienced was an illusion in the fraction of a second before death.
What is the name of that classic story?
Ambrose Bierce's version was An Occurence at Owl Creek Bridge, of which a French version was filmed and released in 1963 and was shown on The Twilight Zone (I watched that broadcast). Union troops capture a man and hang him as a spy, but as he drops the rope breaks and he falls into the creek and is swept to safety by the current. He flees to his home where his wife is waiting for him, evading capture all along the way. He makes it to his home, his wife rushes to greet him with open arms, and that is when he hits the end of the rope.
There was a film, Clay Pigeon (1971), which starts with a squad on patrol in Nam. A VC lobs a grenade into their midst and one GI throws himself onto the grenade to save the rest, but it doesn't explode. Flash forward to him having returned to Los Angeles and now he's a street hippie. A narc (Telly Savalas) decides to use him as bait to lure out a drug lord (Robert Vaughn), a "clay pigeon" to get shot at. A number of scenes are surrealistic, like the drug lord's obsession with hats. In the end, everybody he loved has been killed and he just barely survived, so he lunges in anger at Savalas, at which point the grenade explodes.
In his Nobel Prize winning novel, The Glass Bead Game (1943), Hermann Hesse describes an academia in which, as a side note, students were to write a "life", casting themselves as a person in some past time, a past life. In "The Indian Life", he tells the story of a prince whom, to keep him from getting killed in palace intrigue (his stepmother wanted her own son from a previous marriage to be Raj, like Livia wanted her son, Tiberius, to be Caesar so she killed off all other heirs; Claudius only survived because he was deemed harmless), was sent to be raised by a peasant. He marries and is happy, but the Raj (his stepmother's son) arrives and takes his wife, so he kills the Raj and escapes. He happens upon a yogi in the woods whom he tells his story to, to which the yogi just laughs and says, "Maya!" ("illusion", but very much more than simply that). In response to the boy's pleas to explain Maya, the yogi tells him to fetch a pot of water. When he is at the river, he sees his wife who explains that his true identity had been discovered, that he is the rightful Raj, and they have come to take him home to his palace. He rules wisely and has a son whom he loves very much, so he is very happy for years. But then a neighboring raj wages war with him and conquers his city, killing his son. Devastated, he is put in chains and thrown in the dungeon. Crying over his plight, he notices the light having turned green and instead of being bound behind his back, his hands were holding something, that pot for fetching water for the yogi. Understanding Maya, he returns to the yogi and never leaves the forest.
And there are many more examples of that particular story.

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024