{"id":56,"date":"2009-08-20T13:10:38","date_gmt":"2009-08-20T20:10:38","guid":{"rendered":"http:\/\/www.imaginarybillboards.com\/?p=56"},"modified":"2010-01-27T19:11:03","modified_gmt":"2010-01-28T02:11:03","slug":"stupid-perl-tricks-that-would-be-better-in-something-else","status":"publish","type":"post","link":"http:\/\/www.imaginarybillboards.com\/?p=56","title":{"rendered":"Stupid perl tricks (that would be better in something else)"},"content":{"rendered":"
Hey, when you are really comfortable with a hammer, why not use it to open that beer too?<\/p>\n
I have a giant (and I mean giant) dataset that I have to load and do some things with the data, then put it somewhere else. \u00c2\u00a0Once I managed to corrupt almost every single table. \u00c2\u00a0So, have to repair them all.<\/p>\n
perl -e 'foreach $a qw{things whosit mrmr}{$cmd=qq{echo \"repair table $a\" | mysql -uroot mydb};print \"$cmd\\n\";`$cmd`;}'<\/pre>\nSilly use for the perls, but – it really works!<\/p>\n","protected":false},"excerpt":{"rendered":"
Hey, when you are really comfortable with a hammer, why not use it to open that beer too? I have a giant (and I mean giant) dataset that I have to load and do some things with the data, then put it somewhere else. \u00c2\u00a0Once I managed to corrupt almost every single table. \u00c2\u00a0So, have […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[10],"_links":{"self":[{"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=\/wp\/v2\/posts\/56"}],"collection":[{"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":3,"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":87,"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions\/87"}],"wp:attachment":[{"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.imaginarybillboards.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}