HN user

vilhelmen

36 karma
Posts0
Comments12
View on HN
No posts found.

Something I've long appreciated is a little Perl script to compute statistics on piped in numbers, I find it great for getting quick summaries from report CSVs.

    #!/usr/bin/perl
    # http://stackoverflow.com/a/9790056
    use List::Util qw(max min sum);
    @a=();
    while(<>){
        $sqsum+=$_*$_;
        push(@a,$_)
    };
    $n=@a;
    $s=sum(@a);
    $a=$s/@a;
    $m=max(@a);
    $mm=min(@a);
    $std=sqrt($sqsum/$n-($s/$n)*($s/$n));
    $mid=int @a/2;
    @srtd=sort @a;
    if(@a%2){
        $med=$srtd[$mid];
    }else{
        $med=($srtd[$mid-1]+$srtd[$mid])/2;
    };
    print "records:$n\nsum:$s\navg:$a\nstd:$std\nmed:$med\max:$m\nmin:$mm";

I built a system for distributing and collecting homework assignments, and the assignments themselves were distributed with automated tests. Students would have instant feedback on their homework with clear tests and point assignments. Great idea, right? A high level required course of 40+ students could be scheduled, collected, and graded all in under an hour.

Not to mention the nightmare of early GitHub for Education used in the first semester (all forks mutually visible, what were they thinking!?), a genuinely shocking percentage of the class tried to cheat their way around it, thinking that I wasn't looking. Cheating felt like it had significantly increased the moment they thought we weren't looking. I expected some cheating, sure, but it really felt like it went higher and stayed higher than before.

The course has moved to others (who I have nothing but respect for), but I hear it is "notorious" for cheating. I was so proud of this system, and the distribution/collection systems are still used by a department, but the experience has really left me with a bad taste in my mouth wrt anything related to automated grading.

Apple Sign In 7 years ago

I'm so mad I missed the window where you were supposedly able to merge email accounts. If I want to merge existing separate accounts now I have to terminate the old account, wait like a 9 months/a year(??) for it to expire and be purged, and then add it as an alias, assuming MS doesn't hold the expired account name >:C

I have a 6S from the original batch with the bad batteries. I never had it replaced because it worked fine (a coworker's most certainly did not), and it made a good excuse for a free replacement later down the line.

Now that it's finally acting up, I'm in waitlist hell because of the advent of the battery replacement program. I've been on the wait list for our local repair shop for about a month now, it's pretty crazy. They said they've had hundreds of people sign up.

I waited for 13.1 to upgrade and login was such a mess I just didn't trust it to not be terrible elsewhere. I had to spend a whole day downgrading back to Sierra and waiting for backups to transfer. Good news, even though Apple pretends old installers don't exist after the new one is out, you can get to them from a direct app store link.

Cold boot login took over a minute on a 2013 MBP that runs Sierra just fine. Something was clearly hanging 60-75% through login and crashing the display server. Function keys wouldn't work until after first login. Can't change screen brightness, keyboard backlight always off, etc.

Only posts on Apple support forums were useless. Yes, I've run a disk check. No, a reboot didn't magically fix it. I've always done a disk check post-upgrade because the updater always seems to misplace >1k blocks in the filesystem after upgrading. The >console user login didn't work at all. Safe Boot looked like a broken powerpoint, is that supposed to happen?

I have no idea what I'm going to do with this update. I'm lucky Time Machine didn't garble my backup sparsebundle, which happens about every six months.