20110929

Javascript 101: playing sounds periodically

I'm so bad at Starcraft that I thought it would help if I had a reminder sound play every X seconds to remind me about some basic things I should be doing.

Let me know if this works for you? You can adjust the slider to indicate how often you want to hear the sound, in seconds. Then hit the button.

To make the sound stop, close this window.



Every how many seconds?

45


Oh and one last thing. How can you actually see the javascript & html that make this page work? I guess that'll be the subject for the next lesson.

If you like this lesson & want more, roll your head around on the keyboard until you've shared it on all social media!


20110909

Argument With A Cyclist

Me: hey!

Him: <stares>

Me: dont run people over!

Him: (rides away) suck my deeek! 

Me: i've got something for you right here! (gesture)

Him: (starts to ride back) suck my deeek!

Me: dont run people over! We had the light!

Him: bleeg gleeb universeeety bleeg! Suck my deeeeek!

Me: good one! I see your point! (walks away)

Him: suck my deeek!

20110816

Talking to Madeleine about School


While preparing to write Madeleine's pre-K application (blech), I decided to talk to her about school to get some inspiration.



School is just like home.  Cause it’s playing.  We don’t do art, no art.  Just a little bit of art.  We have some snack and we read books after snack until we hear the Put Away the Books song.  We go to the playground, too.  But before the playground, we line up on the footprints.  Not real footprints, just the colored footprints.

About the playground:
There’s a house, and in the middle of the house, you might fall down, but there’s a bridge across, and there’s a house.  And there’s a spaceship with a ladder and a ball at the top, when you climb to the top of the ladder, you spin the ball.  And at the side, you could play.

Who’s there, a Mom?
There’s teachers.  They make sure everyone’s OK, or where they’re supposed to go.

There’s trucks.  Three trucks!  There’s two that’s red.  And one that’s yellow.  And I don’t remember what the colors are.

They have a bookshelf.  And they have a kitchen.  And they have a chair.  And two couches.  One in the kitchen, and one in the block center.  There’s lots of blocks.

Do you like school?
Yes.
Why?
Cause it’s very fun.  And there’s ten students.  If there’s not me, there’d be nine students.
Why is it fun?
Cause all my friends are there.  But some are not there.  Cause some are not in my class.
Why else is it fun?
Cause there’s lots of toys. <shrugs> But not as many as home.
There’s not as many toys at school as at home?  Really?
Yeah!
So do you wish you could just be at home all day?
Yeah!
You wish you could be home all day?
Yeah!
Really?
Uh-huh.
Wow. But you like school, because your friends are there.
Yeah.
So if all your friends at school could be here at home instead, you’d like that better?
Yeah. <sees what I’m writing> S O makes “so” like sewing!
No actually S O makes so not like sewing, it makes SO like a different word, SO which you could say like “So, how are you?” or “So tell me, what’s new?”  It’s a different word. Sew like sewing is spelled S E W.  Like that.  So, if you stayed home instead of going to school, who would be your teacher?
My mom.
Would you like Mom to be your teacher?
Yes.
Why?
Cause I like her at home.
And you think she would be a good teacher?
Yes.  Can I have a napkin, Dad?
<Hands over napkin>.  Why do you think Mom would be a good teacher?
Cause she sometimes goes out, and that’s what camp kids do...
What does that have to do with being a good teacher?
<Repeats> She goes outdoors a lot.
And going outdoors is what makes someone a good teacher?
Yeah.
That’s totally crazy!!!  So if a teacher doesn’t go outdoors a lot, they’re not a good teacher?
Yeah.
That is the silliest thing I ever heard.  You are a crazy lady.
Please move the page down.
So look, what kind of school do you want to go to when you’re a little older?  Like, when you’re in kindergarten, do you want to go to a school that’s lots of playing, or lots of reading, or lots of singing, or lots of everything?
Lots of singing.
Whoa.  Anything else, or just singing all day?
What else?
Playing, reading, dancing...
Playing, and what else?
Reading, dancing, experimenting...
Some reading!
OK, dancing, experimenting,
Experimenting.
Dancing, telling stories, drawing pictures
Telling stories.
Dancing, drawing pictures, …
Drawing pictures, and that’s it, OK, Dad?
So here’s the list: Playing, reading, experimenting, telling stories, drawing pictures, and that’s it.  Is that it?
Yeah.
So no dancing?
Yeah.
Whoa!  No dancing?
A little bit of dancing.
I knew it.  So here’s the list: Playing, reading, experimenting, telling stories, drawing pictures, a little bit of dancing, and that’s it.  Anything else?
That’s it.
How about math?
Yeah, lots and lots and lots of math.
Wow!  You like math a lot then?
Yeah!
I didn’t know that.  Oh and how about spelling?
Yep!
And how about playing music on instruments?
Yessiree!
How about learning history, like when America told the King of England he couldn’t be in charge any more?
Yes.
How about... learning to make things?
Yes.
Is there anything you don’t want to do in school?
No.
How about gymnastics?
Yes!
How about soccer?
Yes!
How about swimming?
Yes! I want to do a swimming team!
Really?
Yes!
What else do you want to do?  How about make robots?
Yeah, and then we could sell them!
That’s a great idea.  What kind of robots would you make?
Scary, scary, scary, scary monster robots.
Whoa!  What would they look like?
They would look like big giants, that are even bigger than you!
OK, anything else you want to say before I stop writing things down?
Hmm, I think we could plant trees.
Whoa, that’s a good idea.  Where?
At, when I’m...  at school when I’m older.
That’s a great idea.  Anything else?
No.
OK, thank you.

20110722

More Slaves Now Than in the 18th Century?

The American Interest says

The oldest human rights movement is the anti-slavery movement dating from the 18th century. There are more slaves now than there were when the movement was founded.

In this day and age, we should be able to get basic facts like this in five minute or less, right? So I tried to verify the claim in five minutes or less.

Here's a screencast of my attempt:


My rating scale, from best to worst, is VERIFIED TRUE, UNVERIFIED, VERIFIED UNSUPPORTED, VERIFIED FALSE.

I'd chalk this one up as VERIFIED UNSUPPORTED. I found the book that is the likely source, read that part of the book on Amazon, and it looks like the author has not provided any particular back-up for his claim.

If I am wrong, I'd love to hear about it! Please let me know.

NCAA Basketball Profits

Good job, NCAA!

What are you guys doing with the cash?

20110715

Federal Spending is Bad, but It's Not THAT Bad

I'm a big fan of educating people about how bad our spending problem is.

Which is why I'm sad when people exaggerate hideously to make the point.

Here's the Heritage Foundation:



The problem with this graph is that it's comparing apples to oranges.

It compares Total Federal Spending, which is for the entire country and is a cost that will be borne by all households, to Median Household Income, which is per household.

The comparison you really want to make, the only one that makes sense, is Total Household Income to Total Federal Spending:




Does the Heritage Foundation think their comparison is more meaningful? Or are they just trying to be sneaky? Or were they just rushing and didn't stop to think?