<$BlogRSDUrl$>

Reflections on a Wandering Life.....

Friday, April 29, 2022

Science Night - Shortwave Radio 

I have had a life long obsession with electricity. I don’t know why, but I was always fascinated with electricity and how it worked. I remember when I was very small, Dad would buy a few batteries and bring them home for me to play with. I suppose he picked them up after I got tired of them and put them in a flashlight or something. That was when we were living in Williston. When I was seven, we returned to Japan.

One time Dad took Mary and I with him on one of his trips to Tokyo. We went shopping on the Ginza and I talked Dad into buying me a little toy phone. It had two little telephones with a wire strung between them and ran on D batteries. For some reason, the little two-prong plug on the end of the wire fit into the side of our table top radio. Curious, I plugged it in and burned out a tube on the radio.

Dad was not fond of my fascination with electricity. One time I got a hold of the cord for an old toaster. I got the brainy idea to use this cord to plug my battery powered phone set into the wall outlet so I wouldn’t have to use batteries. I cut and stripped the coating away from the ends of the wire and wound them around the positive and negative metal strips in the battery case. Dad saw what I was doing and freaked out. He ripped the cord out of the phone and told me in no uncertain terms what he thought of my idea.

Another time I took an old portable electric shaver Dad had given me and tried to turn it into a power station. It was a cheap little affair—a battery box that held 3 D cell batteries with a mirror on the front. You could plug the shaver into the battery box when you were a train or something and shave your beard.

I got a big board and mounted the battery box on it, then I took some wire and tried to wire a an assembly that would power a little light that I had—I can’t remember how I had it set up—anyway, it didn’t work. Useless. But at least it was harmless. After all, what kind of danger can you have with three D cell batteries? Nevertheless, Dad warned everybody to stay away from it. I think Dad was probably the most non-technical person I ever met in my life.

But not all my ideas were dangerous. We had a portable stereo with fold out speakers that were hung on hinges that were open at the top so that you could easily slide them off. Then you could pull the cord out that was stored in the speaker box and set the speakers out away from the stereo to increase the effect. I wrapped one end of the wire for my phone around the hinges and strung the wire into my bedroom. That way I could lay in my bed, pick up the receiver to my toy phone, and listen to the stereo in the living room. Dad thought that was pretty clever. So did Mom.

We lived in a duplex in Sakata. There was a wide hallway between the two units. When we came back to Japan in 1961 there were four kids in our family, so it was thought the back part of that wide hallway could be made into a bedroom for John and me. It was actually a clever use of wasted space, but it meant that anytime anyone wanted to use the bathroom, they had to walk through our bedroom. Dad has often recounted one time when he was walking through our bedroom and he saw me lying on my bunk staring into space. He said, “What are you doing, Eric?”

“Thinking.”

“What are you thinking about?”

“Electricity.”

But as the years went by, I began to see that electricity was not enough. There was more to life than electrons flowing through a wire. I became interested in radio, because I listened to the Voice of America, and also the Armed Forces Radio from Tokyo on our shortwave receiver (the one I ruined). When I was in 5th grade, I talked my parents into buying me a portable shortwave radio for Christmas.

I was moving from electricity to electronics. I remember my 9th grade science teacher defined the difference between electricity and electronics. I can’t remember if I asked him this question, or if someone else did. I hope I didn’t bother Mr. Hegland too much with my questions. One time I asked him what would happen if you breathed liquid oxygen.

He said, “I don’t know. Frost your tonsils?”

Anyway, he said electricity was about electrons traveling in a wire, while electronics had to do with the electron under souped up conditions. I knew right then and there which one was for me.

So I became less and less interested in electrons in a wire. I was fascinated with how they behave when you shoot them through a vacuum, such as in a vacuum tube. And especially I was interested in what happens when the frequency of the oscillation is so high that the current in the wire floats off the wire into space. Radio. I had first become interested in radio as a child listening to the portable shortwave radio that I had begged my parents to buy me for Christmas. Many years later, when I was living in North Dakota, I learned Morse code and became a licensed Amateur Radio operator.

So what is “shortwave?” How does a short wave radio work?

As radio developed through the first half of the 20th Century, there was a general classification into three ranges of frequency: Long Wave (LW), Medium Wave (MW), and Short Wave (SW). Long Wave doesn’t really count, because those frequencies are used for non-broadcast stuff, such as non-directional beacons for aircraft guidance, so we won’t be talking about them for our purposes today.

So the longest waves used in broadcast would be the Medium Wave, which are typically used for local AM stations, the Short Wave, used for commercial shortwave stations, and then very, very short wave, which is what FM stations usually use. But we didn’t have FM when I was growing up in Japan. Even in the United States, FM listening did not overtake AM listening until 1978. Now, of course, FM predominates, with AM being mostly the domain of talk radio.

I should add, to avoid confusion, that abbreviations AM and FM refer to the way the signal is modulated, which is a separate issue from the frequency and wavelength issue. So we’ll leave the AM-FM discussion for another time, because I want to talk about the differences in wavelength, not the differences in modulation. Both shortwave and what we used to call “medium wave” stations use amplitude modulation. The only difference is the frequency, and how different wavelengths behave in nature. But it turns out that’s a pretty big difference.

So let’s take some examples just for purposes of illustration.

When I was a truck driver, I listened to a lot of AM radio, because that’s where talk radio tended to reside. Also, one of the characteristics of medium wave signals is that they tend to have better ground wave propagation than FM. You can often follow an AM station for a hundred miles, while an FM station will fade out much sooner.

So let’s take a typical AM (medium wave) station for example and determine the wavelength. The company I worked for was in Fargo, but the hub of our operation was really Chicago. Chicago is the transportation hub of North America. So I will use WLS Chicago as an example. WLS is at 890 on the AM dial. That would be 890 kilohertz, or kilocycles, as we used to say when I was a kid. That means that 890000 crests of a radio wave pass a given point in a given second.

Since the speed of light is constant at 300 million meters per second, there is obviously a direct relationship between frequency and wavelength. So let’s do the math:

300000000 ÷ 890000 = 337.08 meters
So the wavelength from crest to crest of a radio signal coming off the WLS tower would be 337.08 meters. If you use the wavelength calculator it comes to 336.8455. That’s because the wavelength calculator uses a more precise number for the speed of light. Anyway, it doesn’t matter—we’re just trying to get a general idea.

So now lets try an FM station just for kicks. One FM station I really like to listen to online is Heaven 88.7 from Fargo, North Dakota. That would be 88.7 Megahertz. So, again, let’s do the math:

300000000 ÷ 88700000 = 3.38 meters
Now let’s do shortwave. I don’t remember the frequencies for the stations I listened to as a kid, but just as an example, the initial shortwave frequency for HCJB, a famous old missionary radio station in Ecuador was 5.986 Megahertz. The wavelength was 50.26 meters.

So the wavelength from crest to crest of WLS Chicago is over 1000 feet—about 1100, the wavelength for Heaven 88.7 in Fargo is about 11 feet and HCJB’s wavelength was roughly 165 feet.

So what are the differences between those frequencies and the way they operate?

The signal from medium wave (what we now call AM) stations has very good ground wave propagation. That means you can follow an AM station for a long time. A hundred miles would not be unusual. That’s kinda nice if you’re listening to a specific program, because you can listen to the whole show without interruption. But AM stations are very susceptible to electric activity in the atmosphere. Thunderstorms, or even dry thunderstorms with no rain but with a lot of electric activity can wipe out the signal of an AM station.

FM stations are strictly line of sight. That would be a function of the frequency. But FM stations are almost immune to the kind of static that can totally destroy an AM signal. I think that’s really more a function of the way FM is modulated (by frequency rather than by amplitude). I will deal with that some other time. But now I want to talk about the strange and unique feature of shortwave signals.

In 1912, the U.S. Congress imposed the Radio Act of 1912 on amateur radio operators, limiting their operations to frequencies above 1.5 MHz (wavelength 200 meters or smaller). The government thought those frequencies were useless. This led to the discovery of HF radio propagation via the ionosphere in 1923.

So what is the unique feature of those "garbage" wavelengths that was discovered by amateur radio operators? It’s so bizarre that no one could have imagined it. Shortwave radio signals travel in a straight line, of course, so since they do not follow the curvature of the earth, they go straight out into space. But when they hit the ionosphere, that band of highly ionized particles in the far outer atmosphere, they “bounce” back to earth. I put the word “bounce” in quotes, because it isn’t really reflection, it’s refraction. The ionized particles in the ionosphere bend the signal so that it does a hairpin turn and heads straight back to earth.

What does this mean? It means that with a shortwave receiver, you can get very strong signals from stations very far away. When I was a child, I used to listen to the Far East Network (Armed Forces Radio). I grew up I the northern part of Japan, about 350 miles from the transmission tower in Tokyo. A little less than 300 as the crow flies. You would think a signal from that tower would be really faint by the time it got to us. In fact, what we got was a very strong signal being beamed directly our way from outer space after bouncing off the ionosphere. As you can see in the diagram at the top of this post, sometimes a shortwave signal will even bounce back up and do it again. Eventually the signal would become pretty weak, though. But the signal from that first bounce—I mean right after it has been to the ionosphere for the first time—is pretty strong.

I also listened to the Radio Moscow English Language station. I don’t think it was being beamed all the way from Moscow. The studio would have been in Moscow, but the signal was probably relayed and then beamed across the Sea of Japan from Vladivostok, which was about 500 miles from where I grew up.

The other one was Voice of America. When I turned on my radio and heard a guy saying, “This is the Voice of America, coming to you from Omaha, Nebraska,” I don’think the signal was coming from Omaha. Probably relayed across the Pacific and beamed from a VOA tower in Okinawa. That’s just a guess.

Keep in mind that in northern Japan in the sixties, there was no internet. We had television, but it was mostly local programming. Same with radio. So as Americans living in the backwater of Northern Japan, we would have been pretty isolated. But because of shortwave radio, we had good access to information.

The diagram at top of this blog post might be a little misleading, because it looks like the signal is a laser beam that is beamed back to earth at one precise location. In fact, when the signal comes back down to earth from the ionosphere, it is sprayed over a wide area. So there is considerable flexibility. Nevertheless, there is an area which is too far from the transmitter to get a direct signal (because of the curvature of the earth), but not far enough to get the first blast of signals that come back from the ionosphere. This area is called the “skip zone.”

I should add that the area where you get the strongest signal is also influenced by the frequency, and thus, by the length of the wave (since the speed of light is constant). For example, when I was sitting in my radio shack in western North Dakota tapping out Morse code, I found that if I was using the 80 meter band, the strong signal would likely be from western Montana. But if I was using the 15 meter band, I was more likely to get a strong signal from New York or New Jersey.

Fortunately for me, the place where I grew up (Tohoku region of northern Japan) was located far enough from Tokyo to get really good reception from that first bounce off the ionosphere.

It’s ironic, you know. I don't know just who was responsible for the allocation of mission fields for the MacArthur missionaries after World War II, but for some reason, they gave us the backwater. The back side of Japan. Inaka no inaka. But as any Tohoku MK can tell you, it was actually the best side of Japan. You couldn’t find a more peaceful, beautiful place for a kid to grow up. It was just a little isolated. But because of shortwave radio, we were not cut off from the world.

When we moved to the United States from Japan in 1967, I was 13 years old. Junior High. In terms of culture, there was so much about America that I had to get used to. In that sense you could say that I was behind. But in terms of information, I was really ahead. My peers grew up choosing between the rock station and the country station. I grew up choosing between the Voice of America and Radio Moscow. I spent my childhood thinking through issues that most kids my age had no knowledge of nor interest in. We did have other sources of information. The Japan Times was an English language newspaper that was freely available (by mail, I think). I learned about the Cultural Revolution in China from my Weekly Reader in school. And I would sometimes get 16 millimeter films from the Japan-America Culture Center at the public library in Akita. But it was really shortwave radio that opened a window of information for me as a child.

So what is the future of shortwave? Does it even have a future?

It’s hard to say. Certainly it is on the decline because of Internet radio, which I will discuss some other time. But there could be situations where it could become a last resort.

Many years ago, just after I had come to China, I used to hand out ITL (invitation to listen) cards for a Christian radio station (BBN Radio) that had—and still has—a very strong Internet portal.

I must have handed out four or five thousand of those things, mostly in front of Haidian Church in Beijing. Several of the church ladies thanked me profusely. They had never dared to believe that there could be such a thing as Christian radio, and in their own language.

One Sunday morning I was walking away from the church after the service on a Sunday morning. A young lady came running after me. I heard her yelling. I turned around as she said, “You have to come back! It’s very serious.”

I returned to the church with her, and she brought me to a lady who was on the verge of tears. She was desparate. Turns out she had not been able to connect to that Internet radio station, and she couldn’t figure out why. I explained to her that there had been an earthquake off the coast of Taiwan, and an underwater Internet trunk line had been severed.

I told her it might take a month and half to fix it. Later, I was reading an online Yahoo Group for teachers in China, and someone expressed concern about this. Another guy told him not to worry because the Internet is “robust by design.” I thought, “In your dreams, fella.”

The Internet was created by the US military, so the Internet backbone inside the continental United States is powerful. But international it was hanging by a thread. Not sure how it is now, but an international system so dependent on undersea cables could easily be sabatoged. Since every country uses the Internet, it would be tough for them to do it without hurting themselves, so that is a deterrent, I guess. And as satellite connectivity increases, undersea cables may become less and less of an issue. Still, the Internet does have an Achilles heel.

In contrast, if you and I are having a shortwave communication, World War III could be going on in between us and it would not affect our communication. To disrupt shortwave, you’d have to wipe out the ionosphere.

Practically speaking, though, it is on the wane and has become more and more the domain of hobbyists. People living in America don’t need to use shortwave to find that one rare English speaking station several hundred miles away. And, as I said, people in other parts of the world are relying more and more on Internet radio.

I can think there may be some left over confusion about the difference between “modulation” and “frequency.” We will definitely be expanding on this issue in the future. In this blog post we focused on the difference in frequency. When I was a kid in Japan, there was no FM. So we had a MW (medium wave) band and a SW (shortwave) band. It wouldn’t have made sense to say “AM” and “Shortwave,” because shortwave signals are also AM (amplitude modulated). In America there is no shortwave, so the only AM stations are the traditional MW (medium wave) local broadcast stations. So it’s easier to say “AM” and “FM,” than to say “medium wave” and “really, really, really short wave.”

For local transmissions were you are close to the radio transmitter, FM is clearly superior because it is impervious to static, and uses less power than AM. It has very poor ground wave propagation, but that’s not an issue if you’re just staying in one place. This has meant that more and more local stuff is becoming FM, which has stressed AM stations financially. If it wasn’t for Rush Limbaugh, many of those old AM stations would have gone bankrupt, which would be sad, because they are still good for rural areas where people typically drive for longer distances. With AM, they can listen to the same station for a long time, which would not be possible with FM.

Shortwave stations like the ones I listened to as a child are not that useful in the United States, but they do still have usefulness in developing countries because they can cross both physical and political boundaries, and provide access to poor people in remote areas who do not have good local radio.

Comments       Science Night Home       Lesson Seventeen Questions

Labels: , ,

Friday, December 31, 2021

Science Night - Bell and the Telephone 

The original objective was to produce a telegraph system that would allow several communications on the same wire. This was what got Alexander Bell started. But actually, it was before that—I guess you’d have to say that it started when he became a teacher for the deaf. That’s what got him pondering the idea of visible speech.

As an interesting aside, Bell was the one who helped Captain Keller get a tutor for his daughter. Little Helen adored Bell and later in life she dedicated her autobiography to him. He was a very compassionate man, but also a curious man, who could not let an idea die, once it had staked its place in his imagination.

In 1872 he read a newspaper article about the Western Union Company paying a hefty sum to the inventor of a telegraph system that could transmit two messages at the same time over one wire. That was not his passion, but it was a start. But he had to convince his future father-in-law, who was financing his research, to allow him to work on both the idea of a telegraph that could carry more than one conversation on the same wire, and Bell’s first love, which was a telephone—a device that could actually carry speech signals on a wire, and reproduce them in a receiver on the other end.

The video at the bottom of this page tells the story. The first sentence spoken over the telephone was the result of an accident. Bell called for his assistant without realizing that he has already created a telephone, and his voice is transported across the device.

That’s the way it happens sometimes. Years ago, when I was teaching at a software university in Arizona, I was assigned the task of getting the Oracle server up to speed, because the person who had been responsible for it had left the company. I didn’t know anything about Oracle at the time, but I plowed into the project eagerly, because I was determined to learn this new system. It was a frustrating process, because I didn’t know what I was doing. I remember onc day I came to work and happened to see Dan the Oracle instructor on my way to the IT department. I said, “I’ll get right on that, Dan.”

He immediately said, “No, don’t touch it! It’s never worked better.” Looking back now, I think it is because there are a couple scripts that need to be run after installation, and the guy in charge of it before had carelessly left that part out, which meant that the database would not run the PL/SQL language (Oracle’s proprietary programming language) properly. Anyway, I had fixed it without knowing it.

Voice communication has experienced many innovations since then to become the miracle it is today. In my grandparents’ time, everybody in a given telephone exchange would hear everyone else’s phone ring. But each party on the line had a distinct ring. Two shorts and a long; a short two longs; a long, a short, and another long; or whatever. So what was to stop anyone on the line from picking up the phone when they heard someone else’s ring and listening in on the conversation? Nothing, and it happened quite often. That’s how my immigrant grandmother learned English.

When I was a kid, every phone was a land line. I remember when the first cell phones became available for public purchase in the eighties, they were huge by today’s standards. It was given that they would gradually become smaller and smaller, and more and more removed from what we originally thought of when we heard the word “telephone.” In addition to this, with the development of 3 and eventually 4 G technology, cell phones began to be used for stuff that had little to do with basic voice communication. I purchased my first cell phone in Arizona back in the early noughties. It was basically a portable phone—much smaller than the original Motorola pictured above, but not fundamentally different in terms of it’s basic function. It was used for making phone calls. This was also true of the first cell phone I had in China. In fact, my first mobile phone was not actually a cell phone. It was called a “Little Smartie,” and used a technology first developed by the Japanese, whereby the phone would tie into local phone connections, and functioned basically as a roving wireless phone very much like the cordless receivers that became popular in America right before cell phones came into common use. The main difference was that with a cordless, you could walk out into the back yard and keep talking on the phone, but you were actually connected not to a cell tower, but to your own phone system. The Little Smartie had a way of allowing you to connect to each local phone system as you walked by it. It was clever technology, but was abandoned by the Japanese and had a relatively short life in China because it was so dependant on local phone systems rather than cell towers. With 3 and 4G phones came the development of cell phones that facilitated social networking. In today’s China, I have maybe a handful of conversations that use the regular phone system, and most of those are calls from people I know outside of China. Within China, I don’t know any of my friends’ phone numbers, and I never use the regular phone system to communicate with them. It is giant leap from Bell’s original invention, yet tied to it by history.

I once heard that the Bell telephone company had some 400 law suits defending Bell’s invention. They won every one of them. Why? Because patents work. It was his invention, and he had a right to profit from it.

What is the future of phone conversation? What is the next great communication innovation? I suppose it would be universal mobile connection to the Internet, particularly if low orbit satellites become the standard. When this happens, countries like China, where the government believes it has the right and responsibility to govern what people are allowed to see, will no longer be able to restrict access to the Internet. That is the future—not sure if I like it or not. I have often said that the two most ignorant groups of young people I encounter are Chinese young people and American young people. Chinese young people are ignorant because they always have only half the story (if that)—the half the Party wants them to have. And Americans are ignorant because they have very independent ideas, but precious little truly important information. So American young people are drowning in information, but not better informed.

Comments       Science Night Home

Labels: ,

Thursday, February 27, 2014

Code Monkeys and Network Junkies 

I got together with Jacky and Zhou Tao to talk about my phone problem. In the course of our conversation, I started talking with Zhou Tao about the question I often put to my students in Arizona when I was trying to help them decide which direction to go professionally. At UAT, the software engineering department tended to be bipolar. Students focussed on Network Engineering, or Software Engineering. So I would ask students, "What are you, a code monkey or a network junkie?" I would ask them to place themselves along a spectrum, and in the process, explain the difference, both in terms of courses required, and the work involved. Some students identified clearly with one or the other. I had networking students who hated programming. And I had programming students who were completely clueless and uninterested in network infrastructure. But I also had students who tended to move easily between the two areas.

Jacky was so fascinated with our discussion that he pulled out his iPad and copied my sketch of the spectrum and then had me sign it. Zhou Tao is a computer science major, and seems quite able to function in either world. But some software people tend to be more intensely focussed on one particular skill area. And some simply don't know. I remember once talking to one of my networking students in Arizona who was very unhappy. I asked him a few questions and found out he had a Masters degree in material science. I asked him why he wasn't doing that. He told me that field wasn't very open at the moment. Then I asked him a few questions about the skills he already had, and found out he was a VB programmer. I said, "I don't think you belong at this university." He was surprised. I said, "Why don't you do application development?" He wasn't too sure about the field, so I explained to him that database application developers are involved with developing the front end of database. After talking for a few minutes, he said he would give it some thought. He went out and found a job nearby almost immediately and dropped out of school. I am not one to encourage students to drop out of school, but in his case, school was a waste of money. He already had marketable skills and he obviously didn't need the sheepskin. I used to run into him once in awhile after that. Every time he saw me he said, "You changed my life!" I didn't change his life. He changed his life. I just helped him to discover where he fit on the spectrum.

Labels:

Monday, November 30, 2009

Oracle Testing System 

When I came to Beihang University, I set about to design a course for undergraduates that would teach them the fundamentals of Structured Query Language, while at the same time helping them to transition to an English language learning environment.

In the fall semester I teach two sections with about eighty students in each section. The key to faciltating learning in this type of situation, is to evaluate frequently, and give fairly immedate feedback. I am using a text book with twenty review questions at the end of each chapter. If I have the students turn it in on paper, it is too easy for a group of students to each do a few questions, and then combine their work. But if I make it a blind test, I am requiring too high a level of memorization to be practical every week. So what I do is to tell them they are going to have a test, invite them to study the questions all week, and then take the test online without the benefit of the book. This effectively makes it a worksheet they have to memorize.

In a given semester, I give ten chapter tests. With 80 students in two sections each taking 10 tests with 20 questions each, that comes to 32,000 separate answers for my TA's to check in one semester (not counting the mid-term and the final). But that is only half the problem. Data entry for 160 students is a tedious process that lends itself to error. Students sometimes have numbers that are very similar. The last few digits might be the same, but the first few would be different. I am not good at this kind of work. And if I make one little mistake, I often have to start all over. My TA's can do this work for me, but I have no way of checking whether they have entered the grades accurately. Even if the papers were all graded by computer, the data entry process is a nightmare. Needless to say, I have to have a computerized system in order to do this effectively.

When I first came to Beijing, I was using a free online testing system that I had employed when I was in Arizona. But a couple years ago, this company announced that their testing system was no longer going to be free. They left the .html files in a special location on their website, but the database was no longer available. So when students took the test, I would get an email with their answers. But there was no longer any automatic scoring system. I had to have my TA's go through each test and compare the student's answers to the key. Fortunately, I had one TA who was a very fast and efficient young lady. She could check through a bunch of tests in a very short period. The other TA didn't like doing this. So he spent his time designing a program in C# that would read the emails, check the tests, and give the students a score. Using this program, it took me seconds to check all the tests. But the other thing he did, which saved my neck, was that he copied all the .html files for the tests, and went to work to develop a system that could function entirely independent of the Internet. Unfortunately, he had some stuff to do, so he left in the middle of the semester, and recruited another student to take his place.

Last year, just before the fall semester was going to start, I discovered that the online testing system had discarded all the .html files. Fortunately I had all the files that Titan had copied, and one of my new TA's was a good friend of his. Justin went to work right away to finish the program that Titan had started. What we have now is not really completed software. It is software in development, but it gets the job done.

Click picture for larger image.
The students go to a private intranet web site on my server and take an objective test by clicking on the radio buttons. When they submit the test, the testing system that Titan and Justin built creates a .sql file with their score. Titan was worried about possible concurrency problems (a file being locked and the system crashing if two students submit at exactly the same time) if the results were entered into a single file, so Justin set it up so that I get a separate file for each student. When I open the file, I see a statment that looks like this:

update gradesheet set CHAP_05 = 85 where student_id= 'AM37211406';

This statement, when run, enters the student's score in the database. They were apologetic about having to create separate files for each student, but I told them it was a non-issue. I simply created a master file called loadscores.sql that calls the other files. When you open it, here is what you see:

@@AM37211404
@@AM37211405
@@AM37211406
@@AM37211407
@@AM37211423
@@AM37211408
@@AM37211409

So I call that one file from the database, and that file calls the others. This process takes about 3 to 5 seconds. Actually, it's closer to ten seconds if I run both classes at the same time. I spool the output to a .doc file so that I can check the results of this process. If a student is absent, I can tell right away, because their is no file for them. So the tests are scored by the system as soon as the tests are submitted, and the data is entered with I run the loadsores script. Less than ten seconds to have all the data in the database. The only thing on paper is the final exam. I give ten chapter review tests, and the mid-term in the lab using my automated system. At the end of the semester, I use Structured Query Language to create a view that subtracts the lowest score for each student (I don't allow makeup tests, so this effectively allows each student to miss one test without penalty), and gives them a grade based on the remaining 9 tests, the midterm, and the final exam. Here is what the SQL code for my final report view looks like:

create or replace view sqlreport as
with labgrades as
(select student_id, sum(score) LabTotal, min(score) Lowest
from sqlrecords group by student_id)
select student_id, labtotal, points bonus, labtotal+points Total,
lowest, (labtotal+points)-lowest NetScore,
round(((labtotal+points)-lowest)/9) labavg, midterm, final_exam,
round(((((labtotal+points)-lowest)/9)*.5)+(midterm * .2)+(final_exam * .3)) Final_grade
from labgrades natural join bonus natural join gradesheet
order by student_id

This takes care of my end of it. But, as I mentioned previously, the most vital component of this system in rapid feedback. If students get constant feedback about their progress, they will do much better than if they are left to guess how well they are doing. What I do to facilitate this,is to create a user for each student, then create a view in each user's schema that will allow them to see their own grades at any time. I have the students register by entering their own data in the database at the beginning of each semester. Then I copy this list from the database to Excel, and use Excel to write repetitive statements to make a script that creates the users and views. This takes about 10 or 15 minutes at the beginning of the semester, and I usually do it in front of the class so that they can see how the process works. When I run this script, the users are created, given the needed permissions, and a view is created for each of them. When the log in and execute the code to look at the view, this is what they see:

SQL> select * from mygrades;

STUDENT_ID GRADE_ITEM SCORE
------------ ---------------- ----------
AM37211### Bonus Points 60
AM37211### Chapter Two 75
AM37211### Chapter Three 70
AM37211### Chapter Four 85
AM37211### Chapter Five 85
AM37211### Chapter Six 100
AM37211### Chapter Seven 95

7 rows selected.

SQL>

Every class period, I give students a chance to earn bonus points by doing hands on exercises in front of the class. They are hesitant to volunteer at first, but when they see the effect of the bonus points, they soon get bold enough to take the opportunity to improve their score.

After I had implemented this system last year, Alina observed that we there were fewer students in the room at test time than the number of tests would indicate. I told her that she would have to require the students to sign in so that only students who actually who had come and taken the test themselves would be given credit. But Justin told me he could fix the problem. He added a feature that creates an answer file for each student named by the MAC (Media Access Control) address and IP (Internet Protocol) address of each computer. If a student tried to take a test twice, the presence of the answer file from the previous test would block submission, and the student would get an error message:

Some clever students discovered that they could change the IP address and submit another test. But they were not clever enough to realize that the minute they did that, they would have red dye all over their hands. Here is what the results of that mischief looks like (the student_id's have been partially masked to protect the guilty):

50-63-1C-15-D0-B9_192.168.0.189_36211###.txt 12/17/2008 5:35 PM
50-63-1C-15-D0-B9_192.168.0.178_36211###.txt 12/17/2008 5:36 PM
50-63-1C-15-D0-B9_192.168.0.179_36211###.txt 12/17/2008 5:36 PM

You can see that all three tests were taken from the same computer (note the MAC address), but that the IP address has been changed so that the test could be submitted three times. I put the corresponding test scripts in a separate folder so that they would not upload, effectively giving all three students a 0 for that test. The student who had actually taken the test came to me and complained. I showed him the results. He insisted that this must be three separate people who couldn't find a free computer, so they had to change the IP address. I then pointed out the times to him. Not enough time for three separate people to take three separate tests. Just enough time for one person to copy the answers from his test to two others, change the IP address, and submit them separately. He finally admitted that his classmates didn't come that day, so he had taken the test for them. He conceded that they should not get a grade for the test, but he insisted that he was entitled to a grade, since he was the one who had actually taken the test. I disagreed.

STUDENT_IDLABTOTALBONUSTOTALLOWESTNETSCORELABAVGMIDTERMFINAL_EXAMFINAL_GRADE
AM35211***3000300030050903853
AM36211***2700270027045605351
AM37211***5400540054090906881
AM37211***52505250525881006380
AM37211***53005300530881008288
AM37211***4500450045075939285
AM37211***4350435043573937778
AM37211***4400440044073937879
AM37211***5150515051586935274
AM37211***4350435043573938381
AM37211***3700370037062706866
AM37211***5100510051085936277
AM37211***435204552043562435857
AM37211***52010530053076937980
AM37211***5250525052588936780
AM37211***4000400040067937776
AM37211***4200420042070935067
AM37211***3400340034057939077
AM37211***1700170017028938263
AM37211***3800380038063939381
AM37211***300030003005005241
AM37211***3750375037563935365
AM37211***00000003213
AM37211***25020270027045668364
AM37211***3800380038063907875
AM37211***3750375037554934257
AM37211***4150415041569907375
AM37211***50005000500831008286
AM37211***5300530053088968890
AM37211***5501056010550921008591
AM37211***50505050505841008086
AM37211***535105451053589968288
AM37211***53005300530881007083
AM37211***64792739906491081008597
AM37211***4950495049583967883
AM37211***55005500550921007687
AM37211***52505250525881007384
AM37211***57505750575961009898
AM37211***5400540054090936079
AM37211***5550555055593935778
AM37211***5650565056594935779
AM37211***550105601055092938288
AM37211***5703060030570951009797
AM37211***5350535053589967384
AM37211***555205752055593939292
AM37211***5954063540595991009096
AM37211***4800480048080938886
AM37211***5705062050570951008893
AM37211***3400340034049536355
AM37211***60060660606001001009799
AM37211***000000865037
AM37211***525105351052588968889
AM37211***1400140014023968161
AM37211***44504450445741006274
AM37211***5050505050584966780
AM56000***1400140014023938261
AM56000***4950495049583907782
PM31415***000000000
PM35211***000000000
PM36211***47004700470781005774
PM36211***1950195019533967361
PM37211***55005500550921009795
PM37211***52505250525881009593
PM37211***5401055010540901009795
PM37211***5802060020580971009195
PM37211***4950495049583807579
PM37211***48504850485811005273
PM37211***4100410041068837775
PM37211***5450545054591837884
PM37211***5200520052087836878
PM37211***47004700470781007581
PM37211***4750475047579968384
PM37211***5451055510545911008289
PM37211***4800480048080967280
PM37211***48004800480801004369
PM37211***54505450545911008289
PM37211***46504650465781007983
PM37211***47004700470781008786
PM37211***43004300430721007980
PM37211***5000500050083937080
PM37211***4750475047579968083
PM37211***4300430043072938280
PM37211***49504950495831004370
PM37211***47004700470781007280
PM37211***48004800480801005373
PM37211***43504350435731005772
PM37211***3950395039556437762
PM37211***51505150515861006279
PM37211***51505150515861008588
PM37211***41504150415591009180
PM37211***5452056520545911009795
PM37211***5650565056594967888
PM37211***57005700570951009596
PM37211***4300430043072436864
PM37211***56505650565941007086
PM37211***5550555055593966984
PM37211***5000500050083739084
PM37211***5550555055593969092
PM37211***5551056510555931008591
PM37211***1250125012521505440
PM37211***1150115011519906752
PM37211***4300430043072634961
PM37211***7301658959080513410097100
PM37211***43010440044073808379
PM37211***5350535053589968388
PM37211***550105601055092968891
PM37211***8131981011659461359392100
PM37211***5400540054090968790
PM37211***57005700570951009094
PM37211***4300430043072734862
PM37211***4700470047078938986
PM37211***5700570057095968290
PM37211***3500350035058904760
PM37211***5350535053589938789
PM37211***2800280028047906261
PM37211***575506255057596969596
PM37211***57005700570951008090
PM37211***5903062030590981006887
PM37211***6155066550615103939397
PM37211***58030610305809710010099
PM37211***55005500550921006583
PM37211***4900490049082966377
PM37211***5904063040590981009798
PM37211***60050650506001001009397
PM37211***585206052058598968793
PM37211***5000500050083934570
PM37211***54005400540901004775
PM37211***1000100010017007
PM37211***560205802056093938891
PM37211***4806054035505841008286
PM37211***5976265962597100939797
PM37211***5050505050584968386
PM37211***5250525052588909290
PM37211***7051758807580513410098100
PM37211***5500550055092968389
PM37211***5357060550555931009294
PM37211***4200420042070968481
PM37211***590506405059084938888
PM37211***550105601055092937886
PM37211***4350435043573967377
PM37211***3000300030050906966
PM37211***4750475047579908885
PM37211***6456571065645108968897
PM37211***4100410041068937074
PM56000***4850485048581366766
PM56000***5050505050584907381
PM56000***5200520052087937282

Labels:

Tuesday, May 19, 2009

Communications Revolution 

As I look back over my life, and compare the Asia of my childhood to the Asia I live in today, perhaps the most significant difference is the phenomenal revolution in communication, and the availability of information.

This podcast episode is basically an explanation of how IP works, and how that differs from conventional radio signals, especially short wave, which was the radio of my childhood in Japan.

Labels: , ,

This page is powered by Blogger. Isn't yours?