Mom

Mom…

Obit


July 27, 1945 was the magical day that our mom, Linda, came into this world. She grew up in Worcester, Massachusetts with her sister, Diane, and her mom and Dad. My mom was very close to her dad and to her uncle Lee and her grandmother, Mémère. They were her biggest supporters while she was growing up.

 

My mom did many things, from binding books, to nursing, to studying to be a teacher. Then she met John and the world changed again. Mom and Dad married on September 9, 1967 — that’s 50 years ago — and they moved to Brooklyn, where, a year later, my brother John jr. was born. The family continued to expand and when Lisa was on the way, they found a quaint little house in Levittown, and there they set the roots that would grow to this day.

 

Our lives were fraught with ups and downs, but my mom did everything she could to persevere. I don’t want to focus on the hard times but there are a few key moments that explain the heart of who my mom truly was.

 

I remember, in third grade, I was doing well in school. So well, that the material was too easy for me. Mom worked with the school and was able to get me split into some fourth grade classes ahead of my time. I was enrolled in the Enrichment Program, where I did special projects. In 4th grade, I was very sick and had to have my tonsils removed. Later that year, I broke my arm and in the X-rays, they discovered I had a tumor growing. I needed surgery to have it removed. I’ll never forget the report card that said I had missed 72 and 3/2 Days. Through it all, Mom made sure I had ice cream – even though vanilla tasted like wood – and had tutors coming to the house to make sure I didn’t miss my education. When I went to fifth grade, I still went to my Enrichment classes. I had no idea they had kicked me out because of all my absences in 4th grade. Mom went and fought for me and got me reinstated into the program.

 

In seventh grade, we were all part of the science fair. I had worked with my granddad to create a robot moth, thanks to a remote control car of Kim’s we demolished for parts. Mom and Dad came to see me in action. What I didn’t know at the time was that Mom had had massive periodontal surgery that morning, where they had removed half her teeth. She was in complete and total agony. But she was still there by my side.

 

We all have our faults. We’ve all made mistakes. But through thick and thin, the family and friends who matter to us, stick with us through it all. Mom was there for me in my darkest times, when I felt I had no purpose. And even though we watched her in her darkest hours, she fought for us, always. She put our needs ahead of her own, time and time again.

 

Last May, Kevin proposed to me and this past April we had our wedding. Mom had been through several foot surgeries, a literally broken back, and necrotic hip that needed to be replaced. Yet she was determined to be at our wedding, to walk the aisle with me, and to have our mother-son dance together. As we drew closer to the day, we weren’t sure what she would be able to do. But… She came to our wedding. She walked down the aisle with me and my dad. And she danced with me.

 

Mom and Dad just had their 50th wedding anniversary. I can’t imagine what my dad must be feeling. But I know Mom would want to make sure he eats, and for him to find happiness in the days ahead.

 

Mom loved people and the critters in her life. She would feed the birds, tuppence a bag, and the birds all knew when it was feeding day. The cardinals would shine their red feathers and flutter through the yard. We had dogs, rabbits, teddy bear hamsters and gerbils, turtles, fishes, an accidental ferret, and – of course – the cats. There was Tammy, who had her kittens in the fireplace, and Rocky and Pogo and Shadow. 

 

We all relied on Mom in our times of need. We sought her counsel on everything, from the big decisions to the small. I will miss the silly times we laughed about the word ‘water’ and her saying ‘ferblunjit’. 

 

She would pray to Saint Anthony if she lost anything and to Saint Francis, keeper of animals. I will miss how she always talked to Mémère who used to call me Senator, and to granddad who would always find her a parking spot. Like them watching over her, I know she will always watch over us. She will always be in our hearts, forever and always.

 

Today is a difficult day, but the date is special. It’s a friend’s birthday but also, it’s 11/7/17 — all ones and sevens. Kim was born 11/17/77 all one’s and sevens. Rearrange the digits of today’s date and you get Lisa’s birthday, also all one’s and sevens. And if you add up the ones and sevens in today’s date, you get 17, a one and seven. Clearly, there’s a deep connection. And if we take that sum of 17 and combine those, we get 8 which is the same shape as infinity. Forever will Mom be with us.

 

Her favorite story of all time was Yentl. It is about a Jewish girl who wanted to know about the world around her, not just her one piece of sky, but women were meant to be housewives and deliver children. They weren’t allowed to be educated, or taught to read. But Yentl had a dream and her Papa believed in her and he taught her anyway. And when he died, Yentl pursued her dream, dressed as a man to blend in, and she prayed to her Papa daily. Mom so loved the essence of this story that it was on repeat in her car and has been for ages. 

 

This lives in me as it does all of us. Mom always believed in us despite the odds the world set against us. From this moment on, I will ask: Mama, can you hear me?

 

And so, I leave you with this…

 

https://youtu.be/Rt_jjHAQoJU

 

Piece of Sky (Yentl)

Tell me where

Where is it written

What is it I was meant to be?

That I can’t dare

It all began the day I found

That from my window I could only see

A piece of sky

I stepped outside and looked around

I never dreamed it was so wide

Or even half as high

The time had come

(Papa, can you hear me?)

To try my wings

(Papa, are you near me?)

And even though it seemed at any moment I could fall

I felt the most

(Papa, can you see me?)

Amazing things

(Can you understand me?)

The things you can’t imagine

If you’ve never flown at all

Though it’s safer to stay on the ground

Sometimes where danger lies

There the sweetest of pleasures are found

No matter where I go

There’ll be memories that tug at my sleeve

But there will also be

More to question, yet more to believe

Oh tell me where?

Where is the someone who will turn to look at me?

And want to share

My every sweet-imagined possibility?

The more I live, the more I learn

The more I learn, the more I realize

The less I know

Each step I take 

(Papa, I’ve a voice now!)

Each page I turn 

(Papa, I’ve a choice now!)

Each mile I travel only means

The more I have to go

What’s wrong with wanting more?

If you can fly, then soar!

With all there is, why settle for

Just a piece of sky?

Papa, I can hear you

Papa, I can see you

Papa, I can feel you

 

Papa, watch me fly!


Calculators

There has been a lot going. One of those things has been coding. I have been trying in my spare time to update my science website with new calculators for the students to use in their studies. These calculators are meant to provide a resource that allows them to check answers or even answer randomly-generated questions.

I had created a heat equation calculator last year for my honors class. Unfortunately, I hadn’t finished it before the unit was complete, but this year the students were able to make use of it. I wrote it in C# when I was first getting into a contemporary computer language. Kevin helped me to translate it over using bridge.net to run on my website through JavaScript. Part of me wants to rewrite it in pure JS to apply my coding skills and see where I’ve grown. But I have other pressing things to do.

I created a density calculator too. It’s not the ideal for what I wanted, but it is a start. Put in any two variables into the equation d = m/V and the calculator will find the missing variable. It will also show if the object will float or sink in various materials, and it also shows a prediciton of where the object would float in water. 

These are all part of my normal curriculum, but now I have a page set up where the students can practice. I still need some time to work on the image scale and the layout, but at least the info is there. I’m trying to balance fitting everything on a computer scfreen, but I’m also aware that some students may use their smart phones. I know it is possible to have a stylesheet set up to accommodate media type, but I haven’t delved down that path yet.

I was also able to figure out a factor label calculator, which I hadn’t been able to do in C#. I didn’t create it the way I wanted to… The applet doesn’t “think” through the answer like I was hoping. Instead, I hard-coded a set of possible paths and let it work itself out from there. It works, but it isn’t as easily expandable as I wanted it.

For later this year, I wanted to have that “thinking” model in place for when I get my honors classes up to multi-step calculations. I wanted the applet to be able to generate workable questions and show solutions. I need to master the concepts of breadth-first searches and depth-first searches to see if I can get to the answer. But I need more work with data structures to get there.

The next calculator I need to create is for the Ideal Gas Law. There are three types of questions that can be asked and I want to be able to provide that calculator as another resource for the students.

Lastly, I also created a quiz program, which I dubbed, “The Quizzler”. It currently only has questions for density and phases of matter, but I’m hoping to add to the question libarary through the year and deepen its use. The phases questions are all pre-written, but the density ones include randomized calculations for endless questions. I can use the structure of it later for when we’re into physics and we have a lot of similiar-format equations, like F = m a, W = m g, p = m v, and so on.

So, go on and practice some science!

For most of the links, the calculator is located at the bottom of the page, after the notes.

 

JavaScript in Short

img_6773September is going to be an interesting challenge. I am developing a new course and have been prepping for it all summer by familiarizing myself with as much code as I can. I feel confident that I can handle JavaScript, HTML, and CSS in the coming school year. Presenting it and teaching my students to debug it all will be the next challenge. In the meantime, here is a very brief overview.

Punctuation

JavaScript is case-sensitive, like most passwords. A capital “J” is different than a lowercase “j”. Keywords, which instruct the computer what to do, are all lowercase. Developer-created variables and functions have to have a single-word name with no spaces. So we use camelCase to show different words in a chain. It’s like a hashtag with each word starting with a capital. It makes it much easier to read: carStartingPosition, ShowTextOnScreen, testScore2. A few other special characters can be used, but they’re frowned upon. Stick with standard letters, numbers if needed (but not the first character), and underscores. There’s more to the rules of convention here, like variables and properites should begin with a lowercase letter, while constructor functions begin with an uppercase letter, and constants are all caps with words separated by underscores. The main concepts are not to use spaces and to make it easy to read.

Each statement should end with a semicolon. If you don’t put them in, the browser will do its best to parse your code to make sense of it and figure our where each statement ends. It is a better practice to just tell the computer where you want each statement to end. Consider this:

thebrowserwillreadthroughyourcodeontheflywhileitisrunningyourwebsitesometimesitwillstumbletryingtodecipher ambiguousstatementsyesitwilldoareallygoodjobmostofthetimebutwhychanceitjustputpunctuationintheretohelp

Consider that statement. Could you read it? Was it easy or did it take a minute to parse the words and figure out what it was saying?

JavaScript can understand ‘single quotes’ or “double quotes”. Either is fine, but be consistent. I stick with double quotes except in special circumstances.

Comments

Insert comments in your code to explain what your code is meant to do. You can also comment out lines of code to skip over them while you debug your work. There are two ways to add a comment. Use a double slash // to comment out a single line of code. Wrap a comment block with /*     */ to hide several lines of code.

Variables

These are used to store values in a program. They allow for values to change and to be tested against repetitive conditions. If you’re going to make a cold cut sandwich, the variables would be things like the type of bread, the type of cold cuts, the number of slices, etc. The sandwich itself is made through a repetitive process; bread slice, spread, cold cuts, bread slice. You can swap out the actual parts, but the underlying process is the same. That’s one of the powers of variables.

There are three types of variables (for simplicity I’m separating out other types into their own categories): numbers, strings, and booleans. A number is what you’d expect: 3.14, 42, -12. A string is any collection of characters, like words, set inside quotes: “hello!”, “This is a test.”, “32”. (Yes, you can treat a number like a string, which can cause different behaviors.) A boolean is a flag that is either set to true or false.

Variables are declared using the var keyword. You can just declare a variable, or you can assign its value when you declare it. var x; var y = 33; var myName = “Steve”;

Input/Output

In many programs, you want the user to input some information and then react to it. You also want to provide feedback to the user when a task is done, or with updates along the way. In JavaScript alone, you’re limited to the console window or alert/prompt boxes. More commonly, the input/output is passed to a webpage by updating HTML. To write to the console, use the log method of the console: console.log(“Hello there”); It is possible to pass variables in there too: console.log(myName);

You can also pop up a dialogue box with information using the alert() function: alert(“Hello again!”); This also accepts variables: alert(myName);

To get text input from a user, use the prompt command. Typically, you assign this to a variable so you can run tests on the answer: var yourAnswer = prompt(“What is your favorite color?”); You can also supply a default answer: var yourOtherAnswer = prompt(“What is your name?”, “Steve”);

There are different methods for HTML and they all look scary at first. Top priority is to have a unique id for each element you want to access, then you call the element through the HTML document. You can do this to retrieve info or to update it. 

To get information from a user from a tag that has “answer” for its id: var yourAnswer = document.getElementById(“answer”).value;

To post information to a tag with an id of “response”: document.getElementById(“response”).innerHTML = “That’s a good answer.”;

Operators

There are several operators. Math operators are great for numbers (+, -, *, /, %). Modulo (%) returns the remainder after division, so 20 % 3 is equal to 2, because 3 goes in 6 times to get 18 and 2 is leftover. 

Operations on variables don’t look like regular algebra. If you have a variable (x) and you want to increase its value by five (5), you use: x = x + 5; In algebra, this wouldn’t make sense. If you tried to solve for x, you’d get 0 = 5 which is crazy. Instead, the computer evaluates the express on the right side of the equals sign (x + 5 in this case) and when it has the answer, it then replaces the value on the left side (x in this case) with the answer. 

++ increases the value of a number by 1 and — decreases the value by 1. Example: numberOfCookies++;

Strings are concatenated (joined together) with use of the + sign. “Hi” + “there” would give “Hithere”.

The dot operator is used to access properties of objects. To find the size of an array, for instance, use myArray.length; 

Functions

A function is a set of code used to complete a single or small task. It can be called as needed over and over. It is possible to pass parameters into a function and it is possible to return values from the function. Declare a function with the keyword function.

function CalculateArea(w, h)

{

  return w * h;

}

Call the function: CalculateArea(4, 7); //This would return a value of 28. The value can also be stored in a variable: var area = CalculateArea(10, 22); 

Functions do not need to return any variables. They can just carry out actions.

function SayHello(name)

{

  console.log(“Hello, ” + name + “!”);

}

They also don’t need any parameters, so they’re very flexible based on your needs.

function sayGoodbye()

{

  alert(“Bye-bye!”);

}

 Conditional: if/else

Computers need ways of making decisons. An ‘if’ statement tests for a condition. If it is true, then a certain code block will run. You can also set up an else statement that activates if the condition is false. Conditons can be comparisons, such if a number is greater than another number, or it can test if a boolean is true.

if (x > 5)

{

  console.log(“It’s greater than 5.”);

}

else

{

  console.log(“It is not greater than 5.”);

}

The else statement is not required but it is a good way for controlling code. It is also possible to nest several if statements together to make a logic chain. When one part of the chain is activated, the program steps out of the conditionals and runs the rest of the code after the logic chain.

if (y < 0)

{

  console.log(“y is negative”);

{

else if (y > 0)

{

  console.log(“y is positive”);

}

else

{

  console.log(“y is equal to zero”);

}

It is also possible to test for two (or more) conditions at once. Let’s say you want to decide if you should wear a jacket. You’ll need one if it is cold or if it is raining. Use the OR operator || if only one condition needs to be true. If all conditions need to be true then use the AND operator &&.

if (temp < 50 || itIsRaining)

{

  PutOn(“jacket”);

}

 

if (temp > 70 && itIsSunny)

{

  Remove(“jacket”);

}

Conditional: switch

When you have a lot of conditions to test against a single variable, you could use a whole set of if/else statements, but a switch statement is a cleaner way to go. A switch can be used for strings or numbers. Set up all the cases to test and it is prudent to also include a default at the end. Each case needs a break statement. If two cases give the same result, it is possible to have one case drop through to the next.
 
switch (day)
{
  case “Monday”:
    console.log(“Wake up early!”);
    break;
  case “Saturday”: //this case will fall through to “Sunday”
  case “Sunday”:
    console.log(“You can sleep in!”);
    break;
  default:
    console.log(“Check your calendar.”);
}

Comparisons

When comparing two values, it is possible to test if two values are equal. To do so, use a double equal == to see if the values are the same. There are some things going on behind the scene so you may get some unexpected results. For example, if you compare a number and a string, JavaScript automatically tries to turn the string into a number for you. Likewise, when comparing a boolean, it converts true to 1 and false to 0. While this may make some comparisons seem easier, unless you’re aware of what the rules are, you’ll get some unexpected results. You’re better off with cleaner code anyway.

JavaScript also allows you to test if two values are the same number and the same type. For this, use a triple equals sign ===. Because variables in JavaScript are dynamic, it is always a good idea to use the triple equals for all comparisons. It is otherwise possible for two different variables to test as equal.

“2” == 2 //true because the values are the same

“2” === 2 //false because the first value is a string and the second is a number

You can also test for “less than or equal to” using <= or “greater than or equal to” >=

You may also need to test if something is not true. For this, use ! at the front of the comparison operator, such as !== for “not strictly equal to”. Examples: x !== 7; !snowingOutside;

Loops

A loop is useful when you need to repeat a block of code a certain number of times. It wouldn’t be good to write the same code over and over. It is better to use a loop. Let’s say you needed to fix a part of the code, you would have to change all the different lines you wrote in. But if you wrote it as a loop, then you only have to change the code once, inside the loop.

There are two types of loops, a for loop and a while loop. Use a for loop when you know how many times you need to run the code. Use a while loop when you don’t know how many times to run the loop.

while (itIsRaining)

{

  WipeOffWindshield();

  isItRaining = CheckForRain(); //this checks to see if it is still raining

}

There is a variation of the while loop called a do while loop. The difference is that the code in the block always runs at least once, whereas in a while loop, it is possible for the loop to be skipped entirely if the condition started as true.

do 

{

  WashYourHands();

}

while (handsAreDirty);

A for loop is set up differently. It has three main parts: an initializer that sets a starting counter (var i = 0), a condition thats keeps the loop running as long as that is true (i < 10),  and the incrementer for the loop (i++). You can use any variable name, but “i” is often used as an abbreviation for “iteration”  The incrementer can go up or down and it can do than count by 1. To count by three, use i = i + 3 instead of i++.

for (var i = 0; i < 10; i++)

{

  console.log(i);

}

A loop can also be controlled from within using the keywords break; and continue;  A break; command will exit the loop and move on outside the loop. A continue; command is used to jump to the top of the loop and keep going without finishing the code in the loop.

Arrays

An array is a variable that holds a list of information. Think of a shopping list or a set of test scores. Arrays are set up with square brackets []. Individual items are separated by commas. Elements in an array can be added or removed and so programs can be flexible. Also, it is possible to access individual iitems in an array using the index of items on the list. Index numbers start at zero.

var scores = [75, 88, 95, 82];

var foodList = [“lettuce”, “loaf of bread”, “cheese”];

Access items in the array using the index. Remember, indexes start at zero. scores[0] would be 75 and foodList[2] would be “cheese”. You can set items using the index number too. foodList[3] = “milk”;

You can also use array methods to alter the list. Use the name of the array, a dot, and the name of the method you want to use.

scores.push(83); //adds 83 to the end of the array list

scores.pop(); //removes the last item from the list, which can be saved to a variable: var last = scores.pop();

scores.shift(); //removes the first element and shifts the other elements an be saved to a variable

scores.unshift(91); //inserts a new value at the start of the list

scores.sort(); //alphabetizes or sorts the items on the list

scores.splice(2, 1, 77, 78) //at index 2, remove 1 item, then insert 77 and 78

scores.concat(moreScores) //add the contents of one array to another; this produces a new array

Objects

An object is like a super-variable. It holds several pieces of information related to a single object. It can hold variables, arrays, and functions, etc. Each variable is considered a property and is accessed using a dot operator. Properties should be set up when the object is created, but JavaScript lets you create properties on the fly. As convenient as that can be, it can lead to debugging problems and inconsistency in the code.

To understand an object, think of a car. A car has a make and model, a year, a color, cruise control, etc.

var myCar = {

    make: “Subaru”,

    year: 2015,

    cruiseControl: true,

    drive: function() { alert(“Zoom!”); },

    registrationDue: this.year + 1;

};

You access the information using the dot modifiers: myCar.year; Properties can also be reassigned in this way: myCar.cruiseControl = false; You shouldn’t, but you can make new properties by assigning them: myCar.color = “blue”;

If your object has functions inside, they’re called “methods” to distinguish them as belonging to an object. They’re just regular functions, but you call them with the dot operator. myCar.drive(); There’s a lot more complexity possible too. There is the “this” keyword that lets the object reference itself so it is possible to perform operations or methods within the object on the object itself. It is advanced stuff and takes some getting used to.

Scope

It is possible to set up variables that only exist in small, temporary locations. This is called scope and it is very useful. Whenever possible, sll variables should be the local scope. The global scope should be avoided whenever possible, but sometimes it can’t be helped. As the name implies, a variable in a global scope can be used anywhere in your program by any function or operation. This may work for some things, but let’s say you have a counter variable, it could accidentslly be changed by another counter variable that has the same name elsewhere. The only way to change scope in JavaScript is to use functions. A variable that is declared inside a function is only visible within that function. Note: there is an exception to this rule through the use of closures, but that’s more advanced stuff. 

var numberOfSandwiches = 5; //this is a global variable

function makeASandwich()

{

  var slicesOfBread = numberOfSandwiches * 2;

  console.log(numberOfSandwiches); // shows: 5

  console.log(slicesOfBread); // shows: 10

}

  console.log(numberOfSandwiches); // shows: 5

  console.log(slicesOfBread); // shows: undefined <– slicesOfBread was defined inside the function so it doesn’t exist outside of it

Conclusion

There are many other nuances to cover but this guide is meant only to be reference or a refresher. You can’t really learn to code until you try to make your own programs. Typing in someone else’s is s good place to start, ut you have to try creating your own inorder to understand what is happening. Even with what I know and understand, there are times where I will overlook a nuance and something won’t behave as expected. The best practice you can get comes from debugging your code and figuring out why the unexpected happened and figuring out what you have to do to fix it. Ask for help, sure, but you’ll learn better if you try to fix it yourself. Good luck.