Embedding Youtube videos iframes and [dciframe] shortcode

[Update: revisting this on 2/27/2013 the problem mentioned just below seems to be fixed or otherwise is a non-issue — you can just use iframes directly within wp’s built-in editor with no problems, see e.g. driver-convicted-in-horn-honking-incident, which also by the way wraps the iframe in a div tag — div style=”clear: right; float: right; margin-bottom: 1em; margin-left: 1em;” — and that looks nice ]
There is a bug/feature/problem with wordpress’s built in visual editor (tinyMCE) in that it just goes ahead and removes iframe tags. An iframe tag is used for, among many other things, to embed youtube videos. Another popular usage example is to embed a google map, or calendar.

here is what some youtube embed code might look like:

<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/oUkiyBVytRQ" frameborder="0" allowfullscreen>  </iframe>

Here are a couple of  good rundowns of what to do here or here. Continue reading “Embedding Youtube videos iframes and [dciframe] shortcode”

Odd Phoenix Hit-and-run story

Are police even looking? Having a mirror is enough to narrow the field dramatically as it tells you not only the make (said to be a Kia), a specific color (silver) and typically even the particular model and specific model-year.

But are police even looking? Why is the mirror — obviously a key piece of evidence — in the possesion of the victim, and not of the police?

Did the police really say that? It sounds as if the PIO wasn’t available for comment so whoever answered the phone down at hq threw in his two cents. Continue reading “Odd Phoenix Hit-and-run story”

Bicycle Stop Sign changes proposed

Dead again

Arizona Road Cycling news Mar 2,2011 is reporting that the bill is dead for this session.

2011; 50th 1st regular session Update

The same bill is back HB2130 (2011, 50th 1st regular session), except that the exception for bicyclists would only apply when they are aged 16 or older. This was to address (appease?) some concerns that arose at the committee hearing in 2009.

Original article written for 2009; 49th 1st regular session

a la Idaho. The “Bikes Safe at Stop Sign” bill has been introduced in the Arizona Legislature; you can follow it here: HB2479 (2009, 49th 1st regular session). The bill will make its debut on March 4 before the Military Affairs and Public Safety (MAPS) committee. Continue reading “Bicycle Stop Sign changes proposed”

Is it illegal to ride a motorized bicycle on the sidewalk in Phoenix?

Story from the Arizona Republic; I copied the whole thing because it was only a few sentences long (my emphasis added):

Woman dies when motorized bike collides with car in Phoenix
by Jack Highberger – Jan. 20, 2011 12:26 PM The Arizona Republic-12 News Breaking News Team
A 53-year-old woman died Tuesday night (1/18/2011) when her motorized bicycle collided with a car on Dunlap and 25th avenues.
The woman was driving the motorized bicycle on a sidewalk when she entered the crosswalk and collided with the car, said Sgt. Tommy Thompson of the Phoenix Police Department.
She was not wearing a helmet at the time of the collision.
She was taken to the hospital where she later died. The driver of the car, who is also a 53-year-old woman, was not charged by Phoenix police. Authorities said it’s illegal to operate a motorized vehicle on a sidewalk.

First off, let me say that this type of collision is pretty common, and it is exactly why sidewalk cycling, motorized or not, is not recommended. But is it illegal? Continue reading “Is it illegal to ride a motorized bicycle on the sidewalk in Phoenix?”

CPSC and Tucson’s Motorized Bicycle Ordinance

[2018 UPDATE: city codes now define electric bikes as separate and distinct from “gas-powered” bicycles]

There is a one-page .pdf published by the city of Tucson that explains the ordinance — to find it, go to www.dot.tucsonaz.gov/bicycle and click on “motorized bikesContinue reading “CPSC and Tucson’s Motorized Bicycle Ordinance”

WordPress Minutia

tips and trick.

Blockquote

Below is a blockquote…

this text is in a block quote. Lorem ipsem dolar Lorem ipsem dolar Lorem ipsem dolar Lorem ipsem dolar Lorem ipsem dolar Lorem ipsem dolar Lorem ipsem dolar

Here is some text after the blockquote has ended.

Text boxes

So the code looks something like this

<div style="float: right; width: 250px; height: 300px;  padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">text goes here</div>

… And you can also add in fancier CSS3 styles like box-shadow, text-shadow, and box-radius — they work, but the visual editor stripped the radius and box-shadow: -webkit-border-radius: 10px; -webkit-box-shadow: 5px 5px 5px rgba(0,0,0,0.5); text-shadow: 3px 3px 1px rgba(0,0,0,0.3); Continue reading “WordPress Minutia”

Expect extra-dirty air

 

Michael McNamara/The Arizona Republic

You have to read between the lines to even get the hint that much (most?) of this pollution comes from vehicle use — both from entrained dust (dust that is kicked up by cars/trucks whooshing by) or emissions (NOX -> ozone, and fine particulates from combustion, particularly from “clean” diesel engines. )

Experts warn of poor Valley air quality The Arizona Republic. A familiar brown cloud is settling over a cool, dry Valley, prompting air-quality experts to warn that residents could be in for a particularly dirty winter.

Bad air expected for Valley through the holidays Bob McClay/KTAR PHOENIX — The Valley’s brown cloud season has arrived, with poor air quality that irritates respiratory systems … Mark Shaffer with the Arizona Department of Environmental Quality. …said the high pressure creates an air bubble that collects ozone below 5,000 feet.

For those of you who don’t follow such minutia, the Phoenix area is what is termed a “Serious Non-Attainment Area” for various forms of air pollution. This leads to, of course, some amount of human misery especially via various lung diseases, but it also brings the specter of loss of federal funds if the air isn’t cleaned up. Some local (state, or maybe county?) agency must produce a plan to clean up the air to the satisfaction of the EPA; that plan (critique here dated 9/13/2010: EPA Disapproves Air Quality Plan for Phoenix ) was rejected in part because “EPA has determined that the SIP (State Implementation Plan) over-emphasized emission reductions needed from construction-related activities and de-emphasized emission reductions from other sources”, you know,  other source like, for example, those produced as a result of using motor vehicles.

EPA Disapproves Air Quality Plan for Phoenix

U.S. lagging in reducing traffic fatalities

AP Story U.S. lagging in reducing traffic fatalities. With all the feel-good news items about how fatality rates are supposedly so low, it’s good to get some perspective. The US is way behind in reigning in traffic deaths, and has fallen behind most other developed countries in both per-mile and is waaay behind in per-capita rates. Traffic deaths remain the leading cause of death for a huge swath of Americans.

And Arizona is even worse than US averages. For contrast, see what we’ve done with photo-enforcement in Arizona.

The large improvements in particular in US in the past few years are likely simply the result of poor economic conditions (no job means no job to drive to; and no money to spend driving around) — and not of some sort of systemic shift. Continue reading “U.S. lagging in reducing traffic fatalities”

Godaddy troubles, slow wordpress. Grid hosting solution?

It all started around the middle of November. My site was running very slowly. (Someone besides me even noticed it!). The slowness was limited to wordpress in the blog — i.e. static html pages loaded just fine, in fact very fast, well under 1 second typically (e.g. azbikelaw.org/excerpts always did and continues to pop right up). Continue reading “Godaddy troubles, slow wordpress. Grid hosting solution?”

Sidewalk Cycling in Arizona

Cycling on the sidewalk is generally far more dangerous than doing so properly in the roadway. All stats and studies that I am aware of reinforce this fact. For example, in the city of Phoenix’s 2007 Bicycle Collision Summary in the majority of the bike-motor vehicle collisions the cyclist was riding on the sidewalk just before the collision. (308 of 440 total collisions = 70%); and these numbers are pretty consistent, in the previous 2005 summary, it was 72%.

What about legality, though? (roundup of laws across 50 states here) Continue reading “Sidewalk Cycling in Arizona”

Ahwatukee Traffic Circle updates

This is an update on the progress of two temporary traffic circles that were put up by the city of Phoenix in the Ahwautkee area. See original story for background.

The circle at Equestrian Trail and Apaloosa Drive will become permanent, and design is underway and a public meeting was held in early October, 2010. See AFN story.

Some good news is indicating the Equestian circle is having the desired effect: “Wilcoxon said that since the temporary roundabout was installed in July 2009, speeding has dropped significantly, from 21.7 percent of vehicles observed by city staff to only 1.7 percent”.

The circle at 36th and Coconino did not enough (or any, according to the news article) support, and so the temporary stuff was removed in September (or maybe October) 2010 and that is that. My own take on this is that since practically no one lives on 36th Street, this circle had no “champion”, and thus it withered.

36th Street, southbound approaching Coconino

I have some concerns in the way it is now striped at the intersection of 36th and Coconino. I am not sure if this is the final striping plan or what. Continue reading “Ahwatukee Traffic Circle updates”

Commuter cyclist killed in Tempe

[UPDATE: Oct 14, see Investigation, below]

According to item at biketempe.org, and thread at azfixed.com… Bike commuter Jay Fretz was killed in a a collision at the intersection of Alamenda and McClintock Drive in Tempe at approximately 6:30p Monday 5/17/2010. Police say the driver on McClintock ran the red light and hit and killed the bicyclist as he was crossing through the intersection. Continue reading “Commuter cyclist killed in Tempe”

Positive incentives

I thought that this story: Capital takes bag tax in stride, is an interesting example of a negative incentive. And it got me to thinking about incentives affect behavior. Incentives are entertainingly the central theme of the best selling book Freakonomics, which I disussed here.

So the story is that Washington D.C. enacted a law that mandates that anyone who sells food must charge 5 cents for each bag given. Customers can either bring their own bags, or not use a bag, or pay the nickel. There were the usual predictions of the world coming to an end, however the WSJ story claims no major disruptions have occurred, and even some who opposed the tax initially now have changed their minds.

The bags often become floating trash and muck-up the Chesapeake watershed — a negative externality. The tax is designed to cut disposable plastic bag consumption and, it is hoped, plastic bag waterway pollution by 50%.

Here where I live, we have no such bag tax, of course, but it is trendy for grocery retailers to offer customers a nickel credit for each bag brought in that is then reused — a positive incentive.

Looking around here, it is obvious that the (coincidentally) equal positive incentive has had very little impact on bag usage, whereas the incentive in D.C. has had a large impact. I’ve also noticed that initially the grocers offering the incentive volunteered the credit, and now they seem to “forget” or not notice to give the credit unless the customer points it out, and most/many aren’t likely to do that to earn a nickel or a dime.

I’m thinking there must be a lesson here for things like free parking; which is that positive incentives have little impact, while negative incentives have a huge influence on behaviors.