tag:blogger.com,1999:blog-32881756.post7134646131381194239..comments2024-03-28T18:01:16.461-04:00Comments on Code Master Blog: Glimmer DSL for Opal v0.14.0 Weather with Net::HTTPAndy Malehhttp://www.blogger.com/profile/10268484073612495328noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-32881756.post-26964218634132961742021-07-15T12:16:55.603-04:002021-07-15T12:16:55.603-04:00Thank you.
Geolocation/Camera is beyond the scope...Thank you.<br /><br />Geolocation/Camera is beyond the scope of that sample, which is a GUI library sample only.<br /><br />That said, Opal lets you use in Ruby any features you have in JavaScript in a web browser, including geolocation and camera. Learn more about Opal at <a href="http://opalrb.com" rel="nofollow">Opalrb.com</a><br /><br />If you wanted to build an app that does geolocation on the desktop too, you'd just use a JRuby or Java library for geolocation/camera (e.g. MaxMind GeoIP2 API).<br /><br />Last but not least, if you need to do geolocation/camera on both desktop and web. You can write your own library around geolocation (and another around camera) that uses a JRuby library on the desktop and a JS library in Opal, and then hide the details with just pure Ruby API code that is the exact same code in both desktop and web. That is pretty much what Glimmer does for GUI. The sky is the limit on the number of libraries that could pop up with this approach. <br /><br />Still, handling both desktop and web is a tough problem in general, but all the solutions to it that I saw elsewhere demanded learning odd XML syntaxes, languages not as nice as Ruby, or complexities in setting things up and getting started.<br /><br />Glimmer DSL for Opal aims to provide a better and simpler option that relies on the familiarity of Ruby. It is still an early alpha, so prototyping apps in it and providing feedback is highly appreciated.Andy Malehhttps://www.blogger.com/profile/10268484073612495328noreply@blogger.comtag:blogger.com,1999:blog-32881756.post-29287277955771549202021-07-15T10:50:13.405-04:002021-07-15T10:50:13.405-04:00Is it possible to use browser geo location or othe...Is it possible to use browser geo location or other services like camera? Megatuxhttps://www.blogger.com/profile/05805997897893510906noreply@blogger.comtag:blogger.com,1999:blog-32881756.post-77062319316544039012021-07-15T10:47:58.865-04:002021-07-15T10:47:58.865-04:00Nice! Thx for sharing Nice! Thx for sharing Megatuxhttps://www.blogger.com/profile/05805997897893510906noreply@blogger.com