60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator Sun Aug 20 15:49:58 2017 961 PerlMonks 30 2017-08-21 01:49:58 http://perlmonks.org/ rss,clean Anonymous Monk Sun Aug 20 15:49:58 2017 20170820154958 moon illumination and eclipses no_slogan http://perlmonks.org/index.pl?node_id=1197712 Here's a relatively short program that calculates the fraction of illumination of the moon at a given time. This is relevant right now because it's a function of the angle between the sun and the moon... CUFP Sun, 20 Aug 2017 20:00:51 +0000 http://perlmonks.org/index.pl?node_id=1197712 1197712 78006 2017-08-20 16:00:51 no_slogan Re: readdir() on a sysopen() handle? Marshall http://perlmonks.org/index.pl?node_id=1197717 I am confused as to what application behavior you are trying to prevent and exactly what your application is? A file system is like a continually evolving biological organism. There can be in... note Mon, 21 Aug 2017 01:12:46 +0000 http://perlmonks.org/index.pl?node_id=1197717 1197717 732669 2017-08-20 21:12:46 Marshall Re: moon illumination and eclipses no_slogan http://perlmonks.org/index.pl?node_id=1197716 Also, you can get breathtakingly high accuracy (about 1 mm) on the position of the moon by using JPL's high-accuracy ephemeris. The catch is that the fit polynomials are only good for a few days at a ... note Sun, 20 Aug 2017 22:58:48 +0000 http://perlmonks.org/index.pl?node_id=1197716 1197716 78006 2017-08-20 18:58:48 no_slogan Re^2: moon illumination and eclipses no_slogan http://perlmonks.org/index.pl?node_id=1197715 I should maybe point out that Astro::MoonPhase computes an idealized illumination that's exactly 1 at the full moon. That's not exactly accurate, which is where the connection with eclipses comes in.... note Sun, 20 Aug 2017 21:13:43 +0000 http://perlmonks.org/index.pl?node_id=1197715 1197715 78006 2017-08-20 17:13:43 no_slogan Re: moon illumination and eclipses Your Mother http://perlmonks.org/index.pl?node_id=1197714 Super cool. Related: <a href="https://metacpan.org/pod/Astro%3A%3AMoonPhase">Astro::MoonPhase</a>. I have been using an alias/command with it for ages moo@cow<a href="?node=6">6</a>~>which moon aliased to perl -MAstro::MoonPhase -e "printf qq{The Moon i... note Sun, 20 Aug 2017 20:40:33 +0000 http://perlmonks.org/index.pl?node_id=1197714 1197714 248054 2017-08-20 16:40:33 Your Mother Re: Code Reuse stevieb http://perlmonks.org/index.pl?node_id=1197713 This follow up is just an example, and to be honest, I've put it here for thoroughness... it'll break in many cases, so don't use it. You can exploit the symbol table to slurp in subs fro... note Sun, 20 Aug 2017 20:12:37 +0000 http://perlmonks.org/index.pl?node_id=1197713 1197713 789891 2017-08-20 16:12:37 stevieb