lardbucket: general

12/27/2009

WordPress 2.9 Image/Media Upload Problems

Filed under: General — Andy @ 4:45 pm

So, as I just spent a half hour fixing friends’ blogs after the upgrade to WordPress 2.9, perhaps this will help someone else if it gets indexed by the search engines:

We were having problems with WordPress thinking that it was accepting uploads of images and trying to display them, but the files didn’t actually exist where they should have, throwing a file not found in the browser. It was a bit weird, because the only errors in the server log were that the browser couldn’t find the file, but the AJAX image editor in WordPress seemed to work. It turns out that somehow the settings got changed. If you’re having the same problem, follow these steps:

(more…)

12/25/2009

For All the People Back on Earth

Filed under: General — Andy @ 12:01 am

If you’re old enough (well, not that old), odds are that you watched this live, or at some point. In what, as far as I can tell, was the first human non-terrestrial Christmas greeting, Frank Borman, Jim Lovell, and William Anders, after noting the lonely view below, read off Genesis 1:1-10, then,

“And from the crew of Apollo 8, we close with good night, good luck, a Merry Christmas, and God bless all of you – all of you on the good Earth.”

And, of course, for anyone who has been persuaded otherwise, just under three hours later, after performing the Trans-Earth Injection on the far side of the moon, Lovell reported back, “Please be informed, there is a Santa Claus.” (Houston / Mattingly accepted the information, saying, “That’s affirmative. You’re the best ones to know.”)

11/20/2009

MIPS and spimbot

Filed under: General — Andy @ 2:38 pm

So, the CS232 spimbot competition was today. My partner (Connor Simmons) and I made a robot (actually just a piece of code) that came in second out of 37 (or 38?). It was a rather interesting competition. The page on it that I’ve set up (complete with MIT-licensed source code) is right here.

I remain impressed by the only team to beat us (and their come-from-behind win), whose inventive approach used an attack on the time-based seed of the random number generator to find where the tokens could be placed within the 50 minutes the competition was run. The one-second resolution used as a seed for the random number generator gave a small enough number of possible locations for tokens that they were able to accurately predict where all the tokens would be given just one token’s location. This strategy meant they lost a number of matches (I assume to slow calculations, but I may be wrong), including to our robot, but in the end, they were able to win more often (or by more tokens), so congratulations to them.

Andy Schmitz

11/14/2009

The Illinois Basic Skills Test

Filed under: General — Andy @ 3:28 pm

The Illinois Certification Testing System’s Basic Skills Test is required for admission to any secondary education (high school, middle school) teaching program in Illinois. (Notably, I’m taking it today.) It has 126 questions:

  • 48 Reading Comprehension Questions
  • 42 Language Arts Questions
  • 35 Mathematics Questions
  • 1 Writing Assignment

So, nearly everyone taking the test has also taken the ACT (required in Illinois for high school graduation in most cases). On the ACT, these sets should take:

  • 48 Reading Questions – 42 minutes (48 questions * (35 minutes / 40 questions)) [reference]
  • 42 Language Arts [English] Questions – 25.2 minutes (42 questions * (45 minutes / 75 questions)) [reference]
  • 35 Mathematics Questions – 35 minutes (35 questions * (60 minutes / 60 questions)) [reference]
  • 1 Writing Assignment – 30 minutes [reference]

And yes, they’re about the same difficulty (see: PDF list of tested skills for ICTS Basic Skills Test and the ACT). Having looked through the materials for both, I’d put the ICTS Basic Skills Test somewhere around the middle of the ACT’s level of questions, if a bit toward the higher end in some cases. (I looked mainly at the math questions, but the same seemed to hold for the reading and English questions as well).

So, that’s about 132.2 minutes. So, just over two hours. Say 2.5. Except the ICTS Basic Skills Test gives twice that. 5 hours. To answer 125 questions and write a short (five-paragraph is fine) essay. That just seems wrong. And the Basic Skills Test also allows the person taking it to skip around in the sections as much as they like (so there’s no lost time in waiting for a section to end, which is effectively expected in the ACT).

(Notably, the ACT’s “Services for Students with Disabilities” gives time-and-a-half testing as their standard extended time solution. The Basic Skills Test default is more than time-and-a-half, and also allows time extensions for test takers with disabilities.)

Somehow, it seems as though the Basic Skills Test doesn’t really do anything. It’s effectively “easier” than the ACT for most (all?) students who got into a college, so adding it as a requirement makes little sense. A “passing” Basic Skills Test is 240 out of a scaled 100-300 score, with lower minimum requirements on each section.  It’s unlikely to be scaled in the same way the ACT test is (which actually is scaled from 1-36 as far as I can tell, although few students score below an 11), but if it were, that would be equivalent to roughly a 24 on the ACT, assuming a quick Google calculation was correct. However, I would also say it’s easier to do well on the basic skills test, with the extra time and fewer types of questions, not to mention at least an extra year of knowledge.

Does anyone else see any value in this? I assume (but haven’t verified) that there are additional qualifications once one wants to actually get certified to teach (rather than simply to learn how to), so is there any reason for this requirement? I’m also not particularly happy that the website for such a supposedly impartial (and necessary) test is listed as “Copyright © 2009 Pearson Education, Inc. or its affiliate(s).”

Andy Schmitz

11/13/2009

Notes: Time, USPS

Filed under: General, Hacks — Andy @ 4:30 pm

Time

For some reason my computer’s clock got set a good 12 minutes ahead. I’m not exactly sure why, but it appears to have happened around a restart, perhaps due to a hardware clock that’s off, and the NTP daemon didn’t correct it. To manually reset the time based on a time server in Ubuntu, run

sudo /etc/init.d/ntp stop
sudo ntpdate ntp.ubuntu.com
sudo /etc/init.d/ntp start

If you don’t stop the NTP daemon first, you’ll get “ntpdate[pid]: the NTP socket is in use, exiting”. Notably, don’t do this in a cron job, as ntpd should be enough. (It’s not clear why ntpd didn’t resolve the issue in the first place, but I’m blaming that on some configuration bug.)

BOINC and Time

BOINC seems to have had a bit of a problem with the time shift. (It was normally set at 80% usage, and jumped to 100% with absurd remaining times.) That turns out to be pretty easy to fix:

sudo /etc/init.d/boinc-client restart

And it should be good to go. It may still have some strange estimates for time (it would likely be safer to stop boinc-client before updating the time and then start it afterward, if I realized that would be an issue), but that’ll be fixed after the current workunits complete.

USPS Tracking

If you have a label number for a USPS package you want to track, you can bookmark this URL (obviously, put your number at the end) or keep it open in a tab. It’s not the result of a form submission, so refreshing won’t prompt for a resubmit, and loading the page again won’t ask for the tracking number.

http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=[Your tracking number]

3/24/2009

GraphSketch

Filed under: General — Andy @ 6:48 pm

So, I spent the last few days working on GraphSketch, a new, free, online grapher. It’s available at http://graphsketch.com/ . Go check it out for a minute. Try graphing something like “(x-3)(x+10)(x-14)/100” or “tan(pi*x/10)“. I’ll wait.

(x-3)(x+10)(x-14)/100

Done? That’s pretty much it: Enter an equation, choose some settings, and graph it. There are a number of functions you can use to plot, you can save the graphs to use later (in documents, worksheets, etc.), you can create a permanent link to them to share with others, and a few other nice little things (like getting a quick graph by going to an address like http://graphsketch.com/sqrt(x) ). Details on how below.

(more…)

2/14/2009

Happy Valentine’s Day

Filed under: General — Andy @ 2:35 pm
Heart

Andy Schmitz

11/18/2008

Easiest way to carve a pumpkin?

Filed under: General — Andy @ 4:33 pm

With a spoon, of course. Well, when that’s the only utensil you have, anyway.

I mean, why not? It works. (Don’t worry, we used the spoon end most of the time.) And yes, pumpkin seeds need salt. Or brownie mix, as the case may be. Take your pick. (No, really. It’s good. Try it.)

Other notes for the future: Check to make sure the oven doesn’t have food on the bottom that will potentially burn, and when it does, turn on the fan first, then open the door. People will stop by to ask, “Is something on fire?” anyway.

Andy Schmitz

11/10/2008

New.

Filed under: General, Hacks — Andy @ 1:47 am

Hey, new stuff!

(If you’re reading via RSS, you really need to head over here.)

So, it’s a new design. That only took, what, four years? The last month or so of delays was mostly because I couldn’t get the headers to be in the right font (DejaVu Sans) too easily. I ended up using sIFR 3 for it, but despite it being a completely free (in both senses) font, Linux is the only major operating system to include it by default. So, I ended up using sIFR. We’ll see how it works, and I’ll decide whether the fraction-of-a-second increase in page load times is worth it. I think so, but any comments would be appreciated.

The layout itself is a bit complicated, and I spent a week or so working on the CSS to get it to work in various browsers. Interestingly, it does appear to work (mostly) in most browsers (recent versions of Firefox, Safari, Opera, and (eek) Internet Explorer are all fine). The ground along the bottom rises up on short pages in Internet Explorer 6, but not 5.5 or 7. (Though, really, if you’re using Internet Explorer, you should at least upgrade to version 7, or preferably Firefox, or even Safari.)

The images for the layout were created using entirely free software, mostly the GIMP (on Ubuntu). Anything that looks hand-drawn actually is hand-drawn, using a Wacom Bamboo Fun (except the dirt and vine, as those had to be tiled, so those are Bezier curves).

So, if something in the layout seems out of place, or horribly wrong in general, please leave me a comment and let me know so I can investigate. Mention which browser you’re using, and which operating system, if possible. Thanks!

(more…)

8/19/2008

Last Post*

Filed under: General — Andy @ 12:38 am

*For this bit, anyway.

In the meantime, you may find pictures from last Friday’s beach visit interesting, or perhaps Tommy’s more verbose (and often embellished) post would suit you.

From glen to glen, and down the mountainside.
The summer’s gone, and all the roses falling.
[...]

And I, too, must go.
Andy

Next Page »
My Stuff
Blog Stuff
Categories
Archives