[{"data":1,"prerenderedAt":339},["ShallowReactive",2],{"project-24485447":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":42,"post_text":45,"what":46,"said":72,"maker_in_thread":180,"shape":189,"grid":193,"attempts":300,"same_week":301,"maker_shows":40,"maker_hidden":331,"reader_version":332,"card":333},"24485447","jazzit","Jazz up your Python scripts with sound effects","title","Show HN: Jazz up your Python scripts with sound effects","https:\u002F\u002Fgithub.com\u002Fsangarshanan\u002Fjazzit","github.com","phantomshelby",1600197030,2020,162,45,368,3028,13,"notable","dev_tools","python script utility","library",[24,25,26,27,28],"python","sound effects","decorator","script notification","audio","mixed",0.216,{"positive":32,"neutral":33,"mixed":34,"critical":35},8,7,0,4,19,{"idea":38,"design":39,"execution":41},{"positive":33,"critical":35},{"positive":40,"critical":34},1,{"positive":34,"critical":34},[40,34,34,40,34,43,40,34,44,34,34,34,34,34,34,34,34,34,34,34,34,34,34,44,43,34,43,44,34,44,44,34,43,34,43,43,44,44,44,40],3,5,null,{"problem":47,"audience":59,"pricing":45,"motivation":45,"time_to_build":45,"stack":64,"openness":71,"stage":71,"team_size":71},{"value":48,"source":49,"evidence":50},"Scripts finishing or failing silently; adding audio cues to Python scripts","inferred",[51,55],{"id":52,"by":53,"text":54},"24486014","H8crilA","This is useful! Imagine running a long ML training script. Hearing a sound in your speakers when it ends (successfuly or not) is something I considered implementing, non…",{"id":56,"by":57,"text":58},"24486182","petargyurov","I like this. It doesn't take itself seriously and implementing it via decorators is a great choice. Might use it in some hobby scripts!",{"value":60,"source":49,"evidence":61},"Python developers running long scripts",[62,63],{"id":52,"by":53,"text":54},{"id":56,"by":57,"text":58},[65],{"value":66,"source":49,"evidence":67},"Python",[68,70],{"id":69},"post",{"id":56,"by":57,"text":58},"unknown",{"praise":73,"objections":88,"requests":112,"questions":129,"alternatives":138},[74,84],{"value":75,"source":76,"evidence":77},"Fun, useful idea for long-running scripts","commenter",[78,79,80],{"id":52,"by":53,"text":54},{"id":56,"by":57,"text":58},{"id":81,"by":82,"text":83},"24490606","byteface","great. now to add benny hill theme to all bulid scripts... https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=MK6TXMsvgQg",{"value":85,"source":76,"evidence":86},"Implemented as decorators is a good choice",[87],{"id":56,"by":57,"text":58},[89,104],{"value":90,"source":76,"evidence":91},"Copyright of bundled sound tracks is unclear",[92,96,100],{"id":93,"by":94,"text":95},"24486036","roywiggins","\"No Copyright Infringement Intended\" is a meaningless disclaimer. Either the music is public-domain or permissively licensed and you're fine, or it's not and you're probably not.…",{"id":97,"by":98,"text":99},"24487880","jagged-chisel","Regardless of intent, infringement happens. Someone making the above statement seems to think “infringement” means “plagiarism.” Also, a DMCA takedown request isn’t “being…",{"id":101,"by":102,"text":103},"24488768","shakna","> Either the music is public-domain or permissively licensed and you're fine, or it's not and you're probably not. If only copyright were actually that simple. The music might…",{"value":105,"source":76,"evidence":106},"Disclaimer is legally meaningless",[107,108],{"id":93,"by":94,"text":95},{"id":109,"by":110,"text":111},"24486538","joan_kode","It's obviously not supposed to be a disclaimer of any legal value, judging from the sentence immediately after your quote: \"I might take down these tracks or add more depending…",[113,118],{"value":114,"source":76,"evidence":115},"Use Creative Commons or CC0 audio instead",[116,117],{"id":93,"by":94,"text":95},{"id":97,"by":98,"text":99},{"value":119,"source":76,"evidence":120},"Support for Linux playback",[121,125],{"id":122,"by":123,"text":124},"24488513","canada_dry","Getting mp3 to play on linux via python for some reason has been a challenge, and I ended up using this abomination: ```…",{"id":126,"by":127,"text":128},"24488619","lozf","Love the idea of checking the exit code! Seems I have some modifications to do. On Linux there's usually `aplay` but you'll need play (sox) or mpv etc. to play lossy-compressed…",[130],{"value":131,"source":76,"evidence":132},"How to get mp3 playing on Linux or Mac in Python",[133,134],{"id":122,"by":123,"text":124},{"id":135,"by":136,"text":137},"24486103","jedberg","FYI if you're on a Mac using a Virtualenv, you might need to do 'pip install pyobjc' to get the music to play.",[139,158,173],{"value":140,"source":76,"evidence":141},"Shell say, afplay or bell commands",[142,146,150,154],{"id":143,"by":144,"text":145},"24486249","Resinderate","Do this sometimes on mac, simply with: ``` long_running_command && say \"That's all folks\" ```",{"id":147,"by":148,"text":149},"24486975","computronus","The built-in `afplay` shell command works for mp3s and for the stock aiff sounds under \u002FSystem\u002FLibrary\u002FSounds. I use this after my long-running Maven builds to play either a…",{"id":151,"by":152,"text":153},"24488172","stonewareslord","On Mac or Linux, I run \"tput bel\" to the end of expextedly long-running commands. On Mac, the icon bounces and system makes a beep sound. On linux (i3\u002Furxvt), the window and…",{"id":155,"by":156,"text":157},"24488061","nicbou","I have an alias called \"ding\" that plays a sound. Add \"; ding\" to a command and you're set.",{"value":159,"source":76,"evidence":160},"Slack or email notifications on job finish",[161,165,169],{"id":162,"by":163,"text":164},"24486222","asah","Another super easy option: send a slack message on a private channel (one LOC) which turns into a combo desktop and cellphone notification, which you can disable during sleeping…",{"id":166,"by":167,"text":168},"24487323","mac-chaffee","If you're using a cloud-based linux server, most of them have \"mail\": ``` some_long_command | mail -s \"Command finished\" email@example.com ```",{"id":170,"by":171,"text":172},"24489344","saboot","My personal approach is a shell script that calls the slack webhook api, so I get a slack message when my job finishes.",{"value":174,"source":76,"evidence":175},"boombox Python module",[176],{"id":177,"by":178,"text":179},"24489742","mixmastamyk","Reminds me of a similar but slightly more direct module I wrote named boombox: https:\u002F\u002Fpypi.org\u002Fproject\u002Fboombox\u002F",{"comments":181,"answered":40,"key":182},2,[183,186],{"id":184,"text":185},"24486615","Hey OP here, the tracks I used are taken from https:\u002F\u002Fwww.youtube.com\u002Fuser\u002Fgamingsoundfx which is kinda a royalty-free stock audio library, I realise now that my statement that…",{"id":187,"text":188},"24486648","Looks super cool : ) always loved old school",{"commenters":190,"max_depth":35,"maker_replies":181,"first_comment_mins":191,"lifespan_hours":192},41,32,94,[194,196,198,200,203,206,210,211,212,214,216,217,219,222,223,224,227,228,231,232,235,237,240,243,244,247,250,253,254,257,259,262,264,267,271,274,275,279,282,283,284,288,292,296],[93,34,40,195,94,34],"project\u002Fcritical\u002Fidea",[109,34,34,197,110,34],"commenter\u002Fneutral\u002Fnone",[184,34,34,199,11,40],"maker\u002Fneutral\u002Fnone",[201,34,40,195,202,34],"24490834","skocznymroczny",[204,34,34,197,205,34],"24487116","devenblake",[207,34,43,208,209,34],"24487620","project\u002Fneutral\u002Fnone","tapland",[97,34,40,195,98,34],[101,34,34,197,102,34],[52,40,44,213,53,34],"project\u002Fpositive\u002Fidea",[162,40,34,215,163,34],"other\u002Fneutral\u002Fnone",[143,40,34,215,144,34],[218,40,34,215,136,34],"24486359",[220,40,34,215,221,34],"24486424","gknoy",[147,40,34,215,148,34],[126,40,34,215,127,34],[225,40,34,215,226,34],"24487148","jcelerier",[166,40,34,215,167,34],[229,40,34,215,230,34],"24487812","encom",[155,40,34,215,156,34],[233,40,34,215,234,34],"24488103","ketzo",[236,40,34,215,156,34],"24490575",[238,40,34,215,239,34],"24528842","this_machine",[241,40,34,215,242,34],"24488069","joshvm",[151,40,34,215,152,34],[245,40,34,215,246,34],"24491316","uryga",[248,40,44,213,249,34],"24488707","vimax",[251,40,43,208,252,34],"24489109","rattray",[170,40,34,215,171,34],[255,40,43,208,256,34],"24489749","nl",[56,181,44,258,57,34],"project\u002Fpositive\u002Fdesign",[260,43,34,215,261,34],"24485849","fredley",[187,43,34,263,11,40],"other\u002Fpositive\u002Fnone",[265,35,44,213,266,34],"24487678","mattgreenrocks",[268,35,44,269,270,34],"24487796","maker\u002Fpositive\u002Fidea","just-juan-post",[272,35,34,215,273,34],"24489399","jerf",[122,44,43,208,123,34],[276,44,34,277,278,34],"24495946","commenter\u002Fpositive\u002Fnone","thehappypm",[135,280,43,281,136,34],6,"project\u002Fneutral\u002Fexecution",[177,33,43,208,178,34],[81,32,44,213,82,34],[285,286,44,213,287,34],"24486294",9,"harveywi",[289,290,44,213,291,34],"24487671",10,"Fishysoup",[293,294,43,208,295,34],"24487564",11,"griffinkelly",[297,298,40,195,299,34],"24489422",12,"monadic2",[],[302,307,312,317,322,326],{"id":303,"name":304,"points":305,"category":306},"24442294","Octo",241,"infrastructure",{"id":308,"name":309,"points":310,"category":311},"24428206","Eiten",201,"web_saas",{"id":313,"name":314,"points":315,"category":316},"24493248","Cortex license plate reader",190,"ai",{"id":318,"name":319,"points":320,"category":321},"24476641","Lofimusic.app",136,"consumer_social",{"id":323,"name":324,"points":325,"category":321},"24478149","Lag",129,{"id":327,"name":328,"points":329,"category":330},"24432939","Sequence",125,"finance_crypto",false,"v2",{"id":334,"name":5,"line":6,"ai":331,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":335,"top":18,"kw":336,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":337,"url":9,"mix":338,"praise":75,"objection":90,"sub":21},24485447,0.22,[24,25,26,27,28],"1001031050000000000000053035055030335551",[32,33,34,35],1794036595997]