[{"data":1,"prerenderedAt":184},["ShallowReactive",2],{"project-15986426":3},{"id":4,"name":5,"line":5,"line_source":6,"title":7,"url":8,"domain":8,"maker":9,"posted_at":10,"year":11,"points":12,"comments":13,"rank_in_year":14,"shown_in_year":15,"top":16,"tier":17,"category":18,"subcategory":19,"format":20,"keywords":21,"reception":26,"sentiment":8,"stance_mix":27,"scored_comments":29,"aspects":30,"strip":32,"post_text":34,"what":35,"said":57,"maker_in_thread":110,"shape":115,"grid":120,"attempts":144,"same_week":145,"maker_shows":175,"maker_hidden":176,"reader_version":177,"card":178},"15986426","Code to wake me up after I ruined my mobile (only source of internet)","title","Show HN: Code to wake me up after I ruined my mobile (only source of internet)",null,"franze",1513937753,2017,7,11,2030,2242,91,"shown","dev_tools","alarm script","other",[22,23,24,25],"alarm clock","settimeout","wake up script","macbook alarm","quiet",{"positive":28,"neutral":28,"mixed":28,"critical":29},0,4,{"idea":31},{"positive":28,"critical":29},[28,33,28,33,33,33,28,28,28,28,28],1,"Hi HN, a week ago I was watching Netflix in the bathtub and well, water damaged my mobile beyond repair while doing so.\n\nIssue:\n\n\n```\n    a) my mobile phone is my only alarm clock\n    b) my only available source of internet\n    c) early very important business appointment \n\n```\n\nThis is the code I wrote at 1 a.m. in the morning (without Google\u002FStackoverflow) on my Macbook Pro\nhttps:\u002F\u002Fscontent.fvie1-1.fna.fbcdn.net\u002Fv\u002Ft31.0-8\u002F25073127_10156125886542867_1663918984257759259_o.jpg?oh=638bd7bfe3dbf8172dd7dfc83679367b&oe=5AB3193A\n\nSince them I'm wondering, what would be the most elegant solution that",{"problem":36,"audience":8,"pricing":8,"motivation":42,"time_to_build":8,"stack":46,"openness":55,"stage":55,"team_size":56},{"value":37,"source":38,"evidence":39},"Phone, the only alarm and internet source, was water-damaged so the maker needs a wake-up alarm","maker",[40],{"id":41},"post",{"value":43,"source":38,"evidence":44},"Phone was ruined and it needed a wake-up alarm for an early appointment",[45],{"id":41},[47,51],{"value":48,"source":38,"evidence":49},"JavaScript (setTimeout)",[50],{"id":41},{"value":52,"source":38,"evidence":53},"macOS (MacBook Pro)",[54],{"id":41},"unknown","solo",{"praise":58,"objections":59,"requests":90,"questions":91,"alternatives":96},[],[60,80],{"value":61,"source":62,"evidence":63},"Use a standard alarm clock or the built-in Calendar app instead","commenter",[64,68,72,76],{"id":65,"by":66,"text":67},"15995666","ezekg","Your Mac literally has an app for that called Calendar.",{"id":69,"by":70,"text":71},"15998427","ZenoArrow","The most elegant solution is just to buy an alarm clock or watch. They're cheap to buy (you may even be able to get a second hand one for free depending on where you lived), and…",{"id":73,"by":74,"text":75},"15998456","btschaegg","\"Look ma, no code!\" Use a traditional alarm clock. For instance, I use one of those cheap Ikea alarms[1]. This means that, even when your phone is working, you don't have to have…",{"id":77,"by":78,"text":79},"15998475","iakie","like the other guys said, 1) use a alarm clock, 2) there's a freaking calendar app builtin. but if you really need to \"code\" for whatever reason. The core logic is trivially…",{"value":81,"source":62,"evidence":82},"Water damage was avoidable with common sense",[83,87],{"id":84,"by":85,"text":86},"15986709","stephenr","Having a decent IDE would basically solve the \"no internet\" problem, as it'll have code hints for the standard library of your language(s). Having common sense would have…",{"id":88,"by":85,"text":89},"16000283","I didn't say accidents never happen to me. I said, having common sense (ie not using a sensitive piece of electronics while literally sitting in a bathtub full of water) would…",[],[92],{"value":93,"source":62,"evidence":94},"Can the damaged phone be repaired?",[95],{"id":69,"by":70,"text":71},[97,101,106],{"value":98,"source":62,"evidence":99},"Built-in macOS Calendar app alarm",[100],{"id":65,"by":66,"text":67},{"value":102,"source":62,"evidence":103},"Cheap mechanical or IKEA alarm clock",[104,105],{"id":73,"by":74,"text":75},{"id":69,"by":70,"text":71},{"value":107,"source":62,"evidence":108},"Terminal sleep and say command loop",[109],{"id":77,"by":78,"text":79},{"comments":33,"answered":28,"key":111},[112],{"id":113,"text":114},"15998655","I tried it, could not bring it to alert me. And well, \"Google it\" was not an option.",{"commenters":116,"max_depth":117,"maker_replies":33,"first_comment_mins":118,"lifespan_hours":119},8,3,67,55,[121,125,127,129,131,132,133,137,139,141,143],[122,28,28,123,124,28],"15998534","commenter\u002Fneutral\u002Fnone","Yetanfou",[65,33,33,126,66,28],"project\u002Fcritical\u002Fidea",[113,33,28,128,9,33],"maker\u002Fneutral\u002Fnone",[77,130,33,126,78,28],2,[73,117,33,126,74,28],[69,29,33,126,70,28],[134,135,28,123,136,28],"15998417",5,"mikey00764",[138,135,28,123,70,28],"15998445",[84,140,28,123,85,28],6,[142,140,28,123,70,28],"15998440",[88,140,28,123,85,28],[],[146,151,156,161,165,170],{"id":147,"name":148,"points":149,"category":150},"15983492","Open Paperless",285,"productivity",{"id":152,"name":153,"points":154,"category":155},"16001795","Solo",215,"consumer_social",{"id":157,"name":158,"points":159,"category":160},"15986244","Byte Arena",179,"games",{"id":162,"name":163,"points":164,"category":18},"16005659","Sundown",121,{"id":166,"name":167,"points":168,"category":169},"16008340","TallTweets",115,"creative",{"id":171,"name":172,"points":173,"category":174},"15995428","Nymph",73,"languages",20,false,"v2",{"id":179,"name":5,"line":5,"ai":176,"cat":18,"year":11,"points":12,"comments":13,"rec":26,"s":8,"top":16,"kw":180,"maker":9,"domain":181,"tier":17,"attempts":28,"strip":182,"url":-1,"mix":183,"praise":-1,"objection":61,"sub":19},15986426,[22,23,24,25],"","01011100000",[28,28,28,29],1794036561985]