Saturday, August 27, 2011

Ready For Irene

It's been a busy day thanks to Irene, damn her. There was a lot to do but I think it's all done and I'm as ready as I'll ever be

  • The grass was high already and I knew I won't be able to mow it for days so I took care of that today.
  • I got all the patio furniture moved into the shed, as well as the trash cans. That's less things to look for later.
  • I pulled the window unit air conditioner in the master bedroom so I could seal up the window, then made sure all the storm windows in the house are closed up tight and the weep holes in all of the storm window frames aren't blocked or clogged. I left a towel in each of the 4 bedrooms upstairs for use later if the wind starts pushing the rain in through the storm windows so I'm prepared for that. I learned my lesson about that from Isabel back in '03.
  • Everything in the basement has been put up on shelves and/or moved out of the low side so it has a better chance of staying dry.
  • I made sure to fully charge my cell phone, and have batteries and flashlights set out as well as a few candles and a lighter.
  • I'm stocked with plenty of water in case we lose water pressure again.
  • I'm stocked on food I can eat with no preparation needed (including cat food for Zeus) plus I cooked a bunch of food because I probably won't be able to cook anything for a couple days once I lose power, and I have two big bags of ice in the freezer to keep all the perishables cold.
  • I doubt I'll need to leave but just in case I even filled the fuel tank in my truck so I'm good to go even if the gas stations are all closed due to power failure.
  • I have cash in case I need to leave and any purchases are required since no electricity means no credit card or debit card processing. A lot of the local small businesses will open for cash sales.

I'm as ready as I'll ever be.

Wednesday, August 17, 2011

Pseudo-elements Offer More Customization Options

Pseudo-elements are basically a part, portion or specific form of an element. The correct syntax to use with a pseudo-element is selector:pseudo-element{property:value;}. You're most likely already partially familiar with these, even if you don't know it. To make it easier to explain them I will group them into three categories; links, actions and text or content.

Link pseudo-elements are the type probably already familiar to you. They are :link, :visited and :active. They style the specific form of links, a:link{property:value;}  would style all unvisited links, a:visited{property:value;} would style only those links which had already been clicked and a:active{property:value;} would style the appearance of a link as it is clicked. You can use the :hover pseudo-element with links also, just be sure to use all of the link pseudo-elements in the correct sequence or :active and :hover won't work. The correct sequence is :link, :visited, :hover, :active. You don't have to use all of them, as long as you keep them in this order they'll still work

Next are the action type of pseudo-elements, :hover and :focus. Most are already familiar with :hover, it's pretty self explanatory. When used, it styles how something looks when the cursor is hovered on it. You can use :hover for more than just links. For example, I tend to use dark themes which would of course require a light colored text in order for the text to be visible. This is opposite of everything else we read since we are accustomed to a light background with dark text. What I did was enclose all of my blog entries in a div with a custom selector (.blog) then styled .blog in my custom CSS. Through the use of .blog:hover all of my blog entries now become easier to read when hovered, the colors change to a light background with dark text. There are a lot of uses for :hover, from changing text properties to replacing images. Then there's :focus, this one is of more limited use. It works only in places where user input is allowed, basically comments and replies, or forms. I've used this to make it easier and more natural to comment on previous sites. I used .selector{background-color:black;}, this turned the background of the comment text entry box black so it matched my theme. Then I added .selector:focus{background-color:white;} which caused the background of that same area to turn white when it's clicked. That box blends perfectly into my theme but when anyone clicks it to type a comment it reverts back to what people are used to when writing or reading, a light background with dark text.

Last are the text or content category of pseudo-elements, these are :first-letter, :first-line, :first-child, :before and :after. These can be used to add some interest to text items on your site. I'll use the previous example from my own site to explain these. I enclose all of my blog entries (and a few other odds and ends) in a div, giving them a class of .blog with <div class="blog"> then style .blog in my Custom CSS. The following all pertain to this setup

  • :first-letter will style only the first letter of the selector used. Using my site as just described, if I added .blog p:first-letter{property:value;} to my custom CSS I could individually style the first letter of each paragraph contained in my .blog selector. I used this with font-size to make the first letter of each paragraph appear larger than the rest of the font. You could use color, font-face, whatever you wish. 
  • :first-line will style only the first line of the selector to which it  is applied. Using my setup as an example .blog p:first-line{font-variant:small-caps;} would style the first line of text in every paragraph in my .blog div, changing the lower case letters to small upper case letters.
  • :first-child will style only the first child element of the type specified. For example, in my .blog div I may have several paragraphs written using the HTML <p> tags. Those paragraphs, being contained within the .blog div, are the children of the .blog div. So if I were to add .blog p:first-child{color:red;} to my CSS then in every blog entry I'd enclosed in my .blog div the first paragraph would have a red font color. If I added something to it, like .blog p:first-child i {color:green;} then anything italicized in the first paragraph of any .blog div content would be green.
  • :before will allow you to add content in front of existing content while :after will allow you to add content after existing content. You can add text or an image this way.

http://www.w3schools.com/css/css_pseudo_elements.asp

Tuesday, August 9, 2011

Layering Multiple Background Colors/Images

While goofing around with inline CSS I accidentally stumbled across a way to use multiple background colors and/or images. For this post I'm using only colors to keep the sample code short and easily read. I see no reason why you couldn't break this out of inline CSS by assigning each div a different class or id. This is not done with a table or multiple tables, it's purely CSS.

<div style="width:98%;height:450px;position:relative;border:3px ridge black;margin:auto;">
<div style="height:90%;width:90%;background-color:green;position:relative;margin:auto;top:5%;border:2px solid black;">
<div style="height:80%;width:80%;background-color:blue;position:relative;;margin:auto;top:10%;border:1px dashed black;">
<div style="height:70%;width:70%;background-color:red;position:relative;margin:auto;top:15%;border:1px dotted black;">
</div></div></div></div>

The code above produces this:

Sunday, May 1, 2011

Osama bin Laden Is Dead

It's about damned time. If there's a Hell I hope he finds himself trapped there for all eternity, that murderous piece of shit.

Wednesday, April 27, 2011

White House Releases Full Obama Birth Certificate

From this Huffington Post article

Attention conspiracy theorists, "birthers" and Tea Party supporters, full and final proof has now been given regarding what the rest of us already knew. President Obama was born in the US, is a US Citizen and is therefore eligible for the position he now holds. You must now accept the reality that Obama is your president. Get over it.

John McCain, Obama's opponent in the last election, was not born in the United States. He was born in the Panama Canal Zone, an unincorporated US territory. Persons born in the Canal Zone were not granted citizenship status, only the status of US national. While this was later changed and applied retroactively it doesn't change the fact that McCain was not a natural born US citizen as is required of anyone running for the Presidency. Oddly enough, there was no fringe group of ultra-liberals proclaiming him ineligible for the job or demanding he withdraw from the race. There was no public outcry, it was barely even given any mention at all.

The next time you latch onto some ridiculous theory supported by zero proof of any kind and feel the need to use that theory as a means to justify your own personal bigotry or to farther your own agenda of hate, divisiveness or political bias please do the rest of the country a favor, sit down and shut up. There are issues facing this nation which are far more important than proving yet again what has already been proven numerous times.

Thank you.

Monday, April 18, 2011

Weekend, Workend, Whatever.

I had a constructive weekend, actually getting a few things accomplished. Things I've been meaning to do but never quite got around to doing. There was also the usual laundry, picking up/putting away and cleaning of the house. I had to be extra thorough because a realtor had scheduled a showing for noon Saturday so that added some time and work, wasted time at that but that's a different story.

A couple years ago I removed one of the windows in a seldom used room of the house so I could prettify the whole mess. It's 110 years old, all wood frame with the top sash permanently painted shut. The bottom sash was difficult to open and everything was covered with layer upon layer of paint, each layer an uglier color than the last. Most of the trim and the frame components were rotted or otherwise unusable once removed. I was motivated when I first took it out, it wasn't long before I had all the old paint stripped and sanded from both sashes, all of the glass removed and all of the old glazing scraped out, the glass back in and reglazed, and the whole mess primed and painted and ready to install. Then it sat in the basement collecting dust.

Fast forward a couple years to when I put the house up for sale, I cleaned up and painted the frame and sill, caulked where it was needed then brought the window sashes upstairs so I could put them back in. There they sat... until this weekend. Earlier in the week I finally went out and tracked down the trim pieces and other assorted parts I needed. Friday night I did all the measuring and cutting then primed and painted them with a couple coats of semi-gloss white. Saturday, when the whole mess was dry I put it all back together and gave it a final coat of paint then installed a miniblind. Oddly enough everything actually works, too. The top sash goes down and the bottom sash goes up, the ropes, weights and pulleys are all good and everything fits and operates the way it should. That was the last time-intensive project I had left and I'm way glad to finally have it done.

I killed another 4 hours going out to rent a carpet cleaning machine and using it on the only remaining piece of old carpet in the house. Of course that would be the largest room in the house. Short version.... ew. It's clean now though. After returning the machine I even managed to get a little more yard/garden cleanup done.

The last couple weeks have been a little rough and I'm not feeling all that great, neither mentally nor physically. I think my favorite tick-borne disease is trying to make a comeback, it doesn't seem to take much to leave me feeling totally drained these days so all in all I did pretty good. Mmmmm.... lymeade anyone?

Sunday, March 13, 2011

The Republican Party And Abortion... Or, WTF??

Abortion again, it seems to be the hot topic lately. At least it is for Washington Republicans, and others at the state level. I'm not gung-ho on handing out abortions to anyone who wants one for any reason, nor do I think they should be viewed as just another method of birth control, but I do think the choice should be left to the pregnant woman. I think most women don't treat such a decision lightly, it's not something most of them will do just because they had unprotected sex or are mad at the father, then run out to get knocked up again etc... Sometimes it is simply the right decision, the one which does the least harm to the least people.

I've already blogged about the DC Republicans' attempt to redefine what constitutes rape as a means of limiting access to abortions. Now they've gone even farther, to the point of despicable. At the local level, a married couple in Nebraska were forced to watch their very premature baby die a slow painful death. An anti-abortion law had been recently passed which flat out forbade abortion past 20 weeks if the mother's life was not at risk and the baby's heart was still beating. They left no exceptions, because they frankly don't care how much suffering results from their never ending quest to turn America into a theocracy as a means of keeping their lunatic, extreme right ultra-conservative base happy so they can continue to hold power. In this case the infant was born 23 weeks into the pregnancy. Because of complications arising from the premature loss of the mother's amniotic fluid doctors said the infant, if it went full term, had at absolute best a ten percent chance of surviving even if there were an all out medical frenzy using every available means to keep her alive. If she somehow survived she had at best a two percent chance of ever being able to perform even basic functions, like feeding herself. So even if she survived, the child’s quality of life would be nonexistent, she'd have a severely damaged body with almost guaranteed brain damage. The law forbade an abortion in their case so when the infant was born 17 weeks early she lived for fifteen minutes, unable to breath, gasping for air, with no idea what was happening, knowing only that she hurt and couldn't make it stop. All the mother could do was watch her baby die, after 3 of her 4 previous pregnancies had ended in miscarriages. Read the story here and here (also linked at the bottom of the first article).

At the federal level the Republicans are now trying to make it legal for a hospital receiving any federal funding to refuse giving a woman an emergency abortion even if her life depends on it, opting instead to simply let the pregnant woman die. Currently all hospitals in America receiving Medicaid or Medicare funding are required by a 1986 law known as EMTALA to provide emergency care to all comers, regardless of their ability to pay or other factors they have to stabilize them and provide them with emergency care without factoring in their ability to pay for it. If a hospital can’t provide the care a patient needs, it is required to transfer that patient to a hospital that can, and the receiving hospital is required to accept that patient. In the case of an anti-abortion hospital with a patient requiring an emergency abortion, ETMALA would require that hospital to perform it or transfer the patient to someone who can.

The proposed bill would free hospitals from any abortion requirement under EMTALA, meaning that medical providers who aren’t willing to terminate pregnancies wouldn't have to — nor would they have to facilitate a transfer. The hospital could literally do nothing at all, allowing both the mother and the infant to die. So much for "First do no harm." Somehow their bizarre logic considers 2 deaths better than one, as long as no abortion occurred. In any other situation this would be called negligent homicide.

You can read the story about H. R. 358 or the "Protect Life Act" here. Maybe you can figure out how murdering a mother protects life, I couldn't.

This last one is something else entirely. I had to read it twice to even believe I'd read it at all. South Dakota Representative Phil Jensen has proposed legislation to actually legalize the murder of abortion doctors. I shit you not. The proposed bill "alters the state’s legal definition of justifiable homicide by adding language stating that a homicide is permissible if committed by a person “while resisting an attempt to harm” that person’s unborn child or the unborn child of that person’s spouse, partner, parent, or child. If the bill passes, it could in theory allow a woman’s father, mother, son, daughter, or husband to kill anyone who tried to provide that woman an abortion—even if she wanted one." Most of this possibility is due to vague and nonspecific language, the Republicans' favorite tool lately when trying to limit access to abortion. You can read about the proposed bill, and several updates to the story, here.

It's sad state of affairs in the US these days when a majority political party approves so highly of murder that they seek to legalize it for the sole purpose of imposing their religious beliefs upon an entire country. Time and time again, in vote after vote, Americans have voted against banning abortion but the GOP just doesn't seem to get it. I have to ask myself a great big "WTF?" Unfortunately, I can't think of an answer to that question.

If any Republicans supporting this attitude happen to stumble across this blog please explain it because I am at a complete loss.

});