Ehren the Brave
My cousin Lt. Ehren Watada is facing a rough road ahead as he sacrifices himself in an effort to wake up the United States government and the silent majority of this nation.
Ehren is a brave man to choose this path when so many before him could have but didn't. Most people our age are thinking about starting a family, buying a house, settling down. Ehren is trying to change the course of history.
But he can't do it alone. After all, a democracy isn't about Ehren and what he says as an individual. It's about a nation participating as a whole to systematically determine its future course. It's about electing moral and strong leaders who accept responsibility for their mistakes and look forward.
Ehren is doing this because our nation should have done better, could have done better when deciding to wage an all out war on another country under false pretenses. He's doing what our leaders haven't. He's doing what we haven't done.
He is saying this war is wrong and it needs to end. It'd be nice if the rest of us could do the same.
Send Ehren your support, he needs every last bit.
Enum to Int Conversion in MySQL
Thought I'd post this since it was interesting. If you convert an enum to an int (don't ask) be aware of the following conversion:
mysql> create table foo ( bar enum('0','1') not null default '0' );
Query OK, 0 rows affected (0.01 sec)
mysql> insert into foo values('0');
Query OK, 1 row affected (0.00 sec)
mysql> insert into foo values('1');
Query OK, 1 row affected (0.00 sec)
mysql> select * from foo;
+-----+
| bar |
+-----+
| 0 |
| 1 |
+-----+
2 rows in set (0.00 sec)
mysql> alter table foo change bar bar tinyint(1) not null default 0;
Query OK, 2 rows affected (0.01 sec)
Records: 2 Duplicates: 0 Warnings: 0
mysql> select * from foo;
+-----+
| bar |
+-----+
| 1 |
| 2 |
+-----+
2 rows in set (0.00 sec)
MySQL will assign int values corresponding to the non-zero-index of the enum. So, after the migration/conversion you can then use:
mysql> update foo set bar=bar-1;
Or, if you had a more complex enum you could update all corresponding indexes with their correct int values. At least they remain unique so you can adjust.
SQL is fun. For me to poop on.
Drugs Rule
If you don't live with me, you wouldn't know that I've been pretty messed up lately by allergies. This year has been a particularly bad year, and I've been pretty much taken out by hay fever and sinus problems.
So I broke down and went to an allergist and they put me on:
- prednisone
- allegra-d
- patanol
- mometasone
And I have to say - man these are awesome. Less than two hours after my first dosages I feel normal again. No side effects (yet).
Anyway, just wanted to give props to allergy meds. They do actually make a big difference to a lot of people.
(allergy) Drugs are great!
