36 karma · joined May 25, 2016 (10y ago) · 12 submissions
comment 1y ago · link · parent
#!/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";comment 4y ago · link · parent
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.
comment 7y ago · link · parent
comment 8y ago · link · parent
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.
comment 9y ago · link · parent
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.