Madvilliany

One of the JavaScript things that was troubling me was how to refer to objects through a variable. This is useful if you want to programically say do this to that, but don't want to refer directly to this and that within a script.
function putFormVar(formName, inputName, inputValue){
myForm = document[formName];
myFormElem = myForm[inputName];
myFormElem.value = inputValue
}
So I want to set the value of an element within a form to be something, but I don't want to write in the name of the form and the name of the element within the script. I can't just write "myForm = document.formName" because the script will literally look for a form on the document called "formName." (As an aside, I wonder when putting a period or other punctuation outside of quote marks will become acceptable, because when I meant "formName" but I had to write "formName." because of the whole "don't-put-periods-after-quotes thing. I guess I could have wrote it ". . . a form called 'formName' on the document.") In this case, I want it to look for something set in the variable called formName so if the invocation of the function was "putFormVar("myPrettyForm", "theFantasticInput", "mostDeliciousVariable");" the form it looks for is document.myPrettyForm. The way of doing this is using bracket notation instead of dot notation. If the var formName is set to myPrettyForm, then you can refer to that form as document[formName] instead of referring to it directly as document.myPrettyForm. It took me a while to figure this out. I figured it out reading this page: Square Bracket Notation
Amber and I are wrapping up a nice extended weekend of houseguests. The first was my mom on Thursday, then Paul stayed Friday night, and then Sara and Brian stayed last night (Saturday). One of the odd things in the world that they brought to our attention was the truck ball movement in Houston. Apparently the latest thing is to attach an artificial scrotum to the rear end of your vee-hicle. I looked it up online and they do exist: Truck Nuts, All Colors- Compare our Styles - A very Unique all Vehicle Accessory !
We had an extended discussion on the topic: Is the public display of testicles legal? Brian said he would be arrested if he displayed a reproduction penis or breast on this car. I'm not certain about that as those chrome truck ladies are certainly nude, albeit in silhouette. As a practical matter, it appears that they are selling these things and apparently they are out there in the wilds of Houston. Maybe I should have explored further in the website to see if they would ship a pair to Alabama?
One of the things I've wanted to do for some time is to get server-side scripting code out of forms. Why do this? Typically, a form will have a lot of server side logic and variable writeouts and whatnot in it. Imagine a form that you update your contact information with. The server gets your info from the database, then writes your name in the value field of the name text box. To do that, the web developer puts code that operates on the server side into the html form. This is the messy part. To do this, the developer has made something that intermingles the server-side scripting language with html. While this is relatively easy to do, it becomes less easy to maintain. It makes it more difficult to shift from one server-side language to another. It makes it harded for a web designer to control the look and feel.
For step 1, I've taken a form that has multiple contexts (New, Update, Search) and put those contexts into one pure html form. At the top of the linked page, there are three links that control the context of the form. Whenever this is actually used, the server side script would set a java variable that sets the context. In the next steps I will set variables in the forms and work on displaying errors and mandatory fields using Javascript.
XML.com: Sarissa to the Rescue: " Sarissa, an ECMAScript library designed to stop those nasty incompatibilities"
More:
When you choose the plug-in folder from what you downloaded you can't choose the 'first' folder. You must choose, rather, the folder that is just beneath the 'root', if you will. Once you do that, the dialogue box below will appear when you export from iphoto (shift+cmd+e)
This weekend seems like the first where we are really getting moved in and operating in the house. The major construction projects of the closet refinishing and bathroom painting are done. We still have to fully move into the clothes closets and move me out of clothes boxes, but I wear the same thing every day so it isn't a pressing task. Amber started putting up things on the walls Sunday and continued today. I've been working on cooking manageable meals where cleanup happens right before and after eating.
It is interesting to me how non-trivial the little things in life are. It is almost like turning round a sisyphus-ian task where before you pushed a rock up a hill only to lose it and see it roll down, after you push it up for the sheer joy of watching it roll down.
It was a warm day in Austin and I opened up the front windows to let the breeze flow through the house. Chloe enjoyed hanging out on the sofa and barking at the occasional bird, squirrel, or any other passerby.
Items I have refrigerated but other people think should not and items other people have refrigerated that I thought didn't belong in a refrigerator:
Prepare Beans: Rinse and peck through them all. Boil about 2 quarts water and let stand for an hour.
Prepare Soup: Drain and rinse beans. Put beans in stock pot and add 2 quarts of water and all ingredients except for the lemon/lime juice. Bring to boil, forget about the whole thing for a bit and then bring it down to a simmer for an hour and a half. Remove the bay leaves. Remove 3 cups of beans, puree, then mix back in. Leave the whole thing simmering for a couple hours until dinner time. Serve with little cubes of pepper-jack cheese which melts right in and a bit of the lemon/lime juice on top.
Once you've had your first luxuriant taste of Pepperidge Farm Distinctive Cookies, nothing else will do. More than a treat, they're a rewarding and pleasurable experience. Set some time aside for yourself and the unique blend of cool mint and rich chocolate of Mint Brussels Cookies. You'll see why they're the ultimate reward. Distinctive Cookies are available in a number of exquisite varieties for the many reasons you deserve to treat yourself right every day.I'm wondering: Who eats this stuff every day? Each "cookie" is like a largish deep-fried communion wafer stuffed with an Andes Mint. How do they manufacture this? Who came up with the text for the wrapper? How high were they?
As a geo-green, I believe that combining environmentalism and geopolitics is the most moral and realistic strategy the U.S. could pursue today. Imagine if President Bush used his bully pulpit and political capital to focus the nation on sharply lowering energy consumption and embracing a gasoline tax.
The bull artist, on the other hand, cares nothing for truth or falsehood. The only thing that matters to him is "getting away with what he says," Mr. Frankfurt writes. An advertiser or a politician or talk show host given to [bull] "does not reject the authority of the truth, as the liar does, and oppose himself to it," he writes. "He pays no attention to it at all."
And this makes him, Mr. Frankfurt says, potentially more harmful than any liar, because any culture and he means this culture rife with [bull] is one in danger of rejecting "the possibility of knowing how things truly are." It follows that any form of political argument or intellectual analysis or commercial appeal is only as legitimate, and true, as it is persuasive. There is no other court of appeal.
One of the grown-up things I've been doing for a while now is putting money into a retirement account. I've also been reading more of the sales literature that the retirement account folks send me every now and then. In the latest brochure, I'm struck by the similarities between financial services and pharmaceutical advertising. It is beneficial stuff, but it is also stuff that makes people and corporations very wealthy. Likewise, the benefits seem concrete, but the risks are hazy and buried in booklets of small type.
In today's ad there is a misleading graphic comparing how much of a difference it means to someone investing the same amount earlier in the year. It uses a non-proportional bar chart to accentuate the difference. The message is about changes in the tax structure: