header

My Car Is Dead.

I was driving down the road, and my car died. I couldn’t start it back up afterwards.

I think this is the last straw for my 1990 Honda Accord. It’s time to look for a newer, reliable and cheap replacement.

It was a good run, 5 years. RIP

On the bright side, this is right before my insurance expired, so I can start a new plan with a new car. :)

Comments (3)

MySQL Can’t Open File (again)

I had another issue with MySQL not being able to open a file again. Same fix did it.

#1016 - Can't open file: 'wp_bad_behavior_log.MYI' (errno: 145) 

# myisamchk wp_bad_behavior_log.MYI
Checking MyISAM file: wp_bad_behavior_log.MYI
Data records:     109   Deleted blocks:     270
myisamchk: warning: Table is marked as crashed
myisamchk: warning: 4 clients are using or haven't closed the table properly
- check file-size
- check record delete-chain
myisamchk: error: Record at pos: 203284 is not remove-marked
myisamchk: error: record delete-link-chain corrupted
- check key delete-chain
- check index reference
- check data record references index: 1
myisamchk: warning: Auto-increment value: 19908 is smaller than max used value: 19909
- check record links
myisamchk: error: Record-count is not ok; is 113          Should be: 109
myisamchk: warning: Found 235456 deleted space.   Should be 236988
myisamchk: warning: Found        419 parts                Should be: 414 parts
MyISAM-table 'wp_bad_behavior_log.MYI' is corrupted
Fix it using switch "-r" or "-o"

# myisamchk -r wp_bad_behavior_log.MYI
- recovering (with sort) MyISAM-table 'wp_bad_behavior_log.MYI'
Data records: 109
- Fixing index 1
Data records: 113

I wonder what causes the data to be corrupted…

Comments (0)

Daisy Mae Dehler

Introducing the latest member of the Dehler family, Daisy Mae. We picked the girl! She’s a brown Chihuahua, 8 weeks old and just under one pound.

And she is cute :) . She’s Kessa’s dog, and Daisy knows it. See the pictures.

Comments (2)

New Dog in the Family

Kessa and I are looking at bringing a dog into our family, a baby Chihuahua.
We haven’t decided on the
boy

or girl

It is supposed to get no larger than 3.5lb.

This most likely means no mac.

Comments (0)

PHP to select multiple options

I’ve never had to deal with a “multiple” select html entity before with PHP… somehow.

If you have the html tag “select” with the attribute “multiple” set, as in:
<select name='favorites' multiple>
Unless end the name of the tag with [], you aren’t able to utilize the values.

e.g.
<select name='favorites' multiple>
<option selected value='0'>0</option>
<option selected value='1'>1</option>
</select>

as seen here

When the data is submitted, PHP will only have one data value, even though two are selected:

Array
(
    [favorites] => 1
)

If you add brackets to the name
e.g.
<select name='favorites[]' multiple>
<option selected value='0'>0</option>
<option selected value='1'>1</option>
</select>

as seen here (it looks the same)

PHP will then have an array of the selected values:

Array
(
    [favorites] => Array
        (
            [0] => 0
            [1] => 1
        )
)

Trivial if you knew it. If not, it’s good to know.

Comments (0)


blogtimes