[{"data":1,"prerenderedAt":293},["ShallowReactive",2],{"project-4309337":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":43,"post_text":44,"what":45,"said":89,"maker_in_thread":184,"shape":194,"grid":197,"attempts":253,"same_week":254,"maker_shows":39,"maker_hidden":285,"reader_version":286,"card":287},"4309337","nasa-apod-desktop","Set NASA APOD as Ubuntu Desktop Background","title","Show HN: Set NASA APOD as Ubuntu Desktop Background","https:\u002F\u002Fgithub.com\u002Frandomdrake\u002Fnasa-apod-desktop","github.com","randomdrake",1343588234,2012,50,26,473,1677,29,"notable","creative","desktop wallpaper","cli",[24,25,26,27,28],"nasa apod","ubuntu wallpaper","desktop background","gnome","astronomy picture","curious",0.076,{"positive":32,"neutral":33,"mixed":34,"critical":35},5,10,0,3,18,{"execution":38,"idea":40,"design":41},{"positive":39,"critical":39},2,{"positive":35,"critical":34},{"positive":34,"critical":42},1,[42,34,35,34,35,34,32,34,32,35,35,34,35,35,35,35,34,42,35,32,42,32,34,35,34,32],null,{"problem":46,"audience":52,"pricing":44,"motivation":62,"time_to_build":44,"stack":67,"openness":86,"stage":87,"team_size":88},{"value":47,"source":48,"evidence":49},"Desktop background is not automatically the daily NASA astronomy picture","inferred",[50],{"id":51},"post",{"value":53,"source":48,"evidence":54},"Ubuntu\u002FGNOME desktop users who like astronomy images",[55,59],{"id":56,"by":57,"text":58},"4310118","haukur","Working on Fedora 17 (GNOME) with two monitors. Very nice!",{"id":60,"by":11,"text":61},"4310402","Heh, you're not too far off. When I'm developing, I use Vim with a semi-transparent terminal. Any text on the background would be terribly distracting. I wouldn't say I'm stuck.…",{"value":63,"source":64,"evidence":65},"Maker is fascinated by stars and space and finds the images inspiring","maker",[66],{"id":60,"by":11,"text":61},[68,78],{"value":69,"source":48,"evidence":70},"Python",[71,75],{"id":72,"by":73,"text":74},"4309644","gnufs","The size of the image is statically defined in the script: RESOLUTION_X = 1680 RESOLUTION_Y = 1050 Change them to your screen's resolution.",{"id":76,"by":11,"text":77},"4309730","Awesome! I'd love to link to yours when\u002Fif you get it up and running. I would very much like to make this in OSX myself, but as I said in another comment: I still don't have a…",{"value":79,"source":80,"evidence":81},"gsettings","commenter",[82],{"id":83,"by":84,"text":85},"4309484","streptomycin","Congrats! One quick suggestion: I think it would be more straightforward if you used the GSettings API through PyGObject rather than running the gsettings command.","open_source","launched","unknown",{"praise":90,"objections":110,"requests":137,"questions":154,"alternatives":165},[91,99],{"value":92,"source":80,"evidence":93},"Works nicely on Linux desktops",[94,98],{"id":95,"by":96,"text":97},"4309618","spindritf","It works nicely but the image looks squashed vertically on my 1366x768 display.",{"id":56,"by":57,"text":58},{"value":100,"source":80,"evidence":101},"Wanted an OSX version",[102,106],{"id":103,"by":104,"text":105},"4309520","agscala","So cool! I would really love if there was an OSX version",{"id":107,"by":108,"text":109},"4309702","Jonanin","I would absolutely love this for osx. Good work!",[111,122,127],{"value":112,"source":80,"evidence":113},"Breaks when APOD posts video or JavaScript content",[114,118],{"id":115,"by":116,"text":117},"4309785","slyall","Looks nice. Just a small warning though, a couple of times per year they will do something fancy with video or JavaScript that will probably break this.",{"id":119,"by":120,"text":121},"4316113","Daviey","Annnnnnd, today it's a youtube video, which fails. :(",{"value":123,"source":80,"evidence":124},"Hardcoded resolution squashes image on other screens",[125,126],{"id":95,"by":96,"text":97},{"id":72,"by":73,"text":74},{"value":128,"source":80,"evidence":129},"Parses HTML with regex, which is fragile",[130,134],{"id":131,"by":132,"text":133},"4310250","magic_haze","ah, good to see the old regex for \u003Ca href=\"(image.?)\" I wrote a little parser for this site a while back to display the daily photo as a desktop gadget, and had to resort to the…",{"id":135,"by":11,"text":136},"4310373","I plan on using an actual DOM parser on my next pass as I fully stand by and believe that you should never parse markup with regex. http:\u002F\u002Fstackoverflow.com\u002Fa\u002F1732454",[138,143,147],{"value":139,"source":80,"evidence":140},"Mac OS X version",[141,142],{"id":103,"by":104,"text":105},{"id":107,"by":108,"text":109},{"value":144,"source":80,"evidence":145},"Use GSettings API via PyGObject instead of gsettings command",[146],{"id":83,"by":84,"text":85},{"value":148,"source":80,"evidence":149},"Support other window managers such as fluxbox",[150],{"id":151,"by":152,"text":153},"4309788","darkstalker","It doesn't need to be a ubuntu\u002Fgnome only script, for example to set the wallpaper on fluxbox: ``` fbsetbg -c $the_file ```",[155],{"value":156,"source":80,"evidence":157},"Does the image need resizing in the script or can GNOME scale it",[158,162],{"id":159,"by":160,"text":161},"4309637","sp332","Do you have to resize it in the script? I think you can just set GNOME to scale it down by itself.",{"id":163,"by":11,"text":164},"4309729","The images are quite large (usually over 10MB, at least). Re-sizing them not only saves space, but ensures your desktop doesn't do anything weird when trying to scale by itself.",[166,173,180],{"value":167,"source":80,"evidence":168},"Automator workflow on OS X",[169],{"id":170,"by":171,"text":172},"4309573","jarin","You can do it pretty easily with Automator (comes with OS X)…",{"value":174,"source":80,"evidence":175},"Shell script for OS X wallpaper",[176],{"id":177,"by":178,"text":179},"4309834","schallis","I've use a poor man's shell script that does pretty much this and works on OSX https:\u002F\u002Fgist.github.com\u002F1144996",{"value":181,"source":80,"evidence":182},"Fluxbox fbsetbg command",[183],{"id":151,"by":152,"text":153},{"comments":185,"answered":39,"key":186},7,[187,190,191],{"id":188,"text":189},"4309974","Thanks for the heads up, slyall. I'll be sure to check so nothing weird happens.",{"id":135,"text":136},{"id":192,"text":193},"4309725","Thanks, streptomycin! I will definitely check out PyGObject. I didn't even know it existed.",{"commenters":36,"max_depth":35,"maker_replies":185,"first_comment_mins":195,"lifespan_hours":196},52,36,[198,200,202,204,206,207,208,212,217,219,221,224,225,227,228,230,231,232,235,237,239,240,242,245,249,251],[115,34,42,199,116,34],"project\u002Fcritical\u002Fexecution",[188,34,34,201,11,42],"maker\u002Fpositive\u002Fnone",[131,42,35,203,132,34],"project\u002Fneutral\u002Fexecution",[135,42,34,205,11,42],"maker\u002Fneutral\u002Fexecution",[83,39,35,203,84,34],[192,39,34,201,11,42],[209,35,32,210,211,34],"4309801","project\u002Fpositive\u002Fexecution","eccp",[213,214,34,215,216,34],"4310812",4,"other\u002Fneutral\u002Fnone","junktest",[103,32,32,218,104,34],"project\u002Fpositive\u002Fidea",[170,32,35,220,171,34],"project\u002Fneutral\u002Fidea",[222,32,35,203,223,34],"4309653","Tyr42",[76,32,34,201,11,42],[226,32,35,203,223,34],"4309756",[177,32,35,220,178,34],[151,229,35,220,152,34],6,[159,185,35,203,160,34],[163,185,34,205,11,42],[95,233,42,234,96,34],8,"project\u002Fcritical\u002Fdesign",[72,233,35,236,73,34],"project\u002Fneutral\u002Fdesign",[56,238,32,210,57,34],9,[119,33,42,199,120,34],[107,241,32,218,108,34],11,[243,241,34,244,11,42],"4309722","maker\u002Fneutral\u002Fnone",[246,247,35,220,248,34],"4310132",12,"ktizo",[60,247,34,250,11,42],"maker\u002Fpositive\u002Fidea",[252,247,32,218,248,34],"4314726",[],[255,260,265,270,275,280],{"id":256,"name":257,"points":258,"category":259},"4295714","Music for Geeks and Nerds",221,"learning_science",{"id":261,"name":262,"points":263,"category":264},"4310416","getworkdonemusic",178,"consumer_social",{"id":266,"name":267,"points":268,"category":269},"4325346","Lucid Tracker",113,"productivity",{"id":271,"name":272,"points":273,"category":274},"4312822","gridster.js",106,"languages",{"id":276,"name":277,"points":278,"category":279},"4303757","ggreplayz",86,"games",{"id":281,"name":282,"points":283,"category":284},"4319311","mrsamberapple.com",83,"other",false,"v2",{"id":288,"name":5,"line":6,"ai":285,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":289,"top":18,"kw":290,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":291,"url":9,"mix":292,"praise":92,"objection":112,"sub":21},4309337,0.08,[24,25,26,27,28],"10303050533033330135150305",[32,33,34,35],1793990883745]