Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Offline Perl Development

by choroba (Archbishop)
on Apr 18, 2013 at 22:05 UTC ( #1029429=perlmeditation: print w/replies, xml ) Need Help??

I spent the Easter vacation with my son and friends in the country. I took my netbook with me, just in case, because a colleague of mine asked me to add a new feature to my survey web application. Once the boy fell asleep, I turned the netbook on to realize that I forgot to reinstall the CPAN modules after upgrading the OS and Perl, and that there was no wi-fi.

Instead of turning the computer off, I gave the situation some thought. After few minutes of thinking and locating, I discovered I still had all the CPAN build directories for the modules (mostly Plack and Dancer & their dependencies) in my .cpan directory. It was not so hard to create a script that went through all of them (sorted by last access time so I did not have to bother about dependencies) and rebuilt all the packages. After several minutes, I was able to start the application and began implementing the feature.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re: Offline Perl Development
by sedusedan (Monk) on Apr 19, 2013 at 00:30 UTC

    That's why I always keep a copy of minicpan on my netbook, just in case. It's currently updated sporadically though.

    And I always archive my releases to a git repo and sync it to my netbook, as I often need the latest version of my modules for testing.

Re: Offline Perl Development
by marto (Cardinal) on Apr 19, 2013 at 07:53 UTC

    I carry a cpan mirror and a copy of Strawberry Perl on my phone. My server at home keeps the cpan mirror in sync every night (a cron job calls a script using CPAN::Mini, then tars the cpan directory). I copy the tar file to my phone less frequently, every few days.

      And here you have ... “What Geeks Do on a Date!”   ;-) .. ;-) .. :-D

Re: Offline Perl Development
by space_monk (Chaplain) on Apr 19, 2013 at 13:16 UTC

    Last year, I had the dubious pleasure of staying at a Caravan park in Cornwall, where mobile reception was very limited and wifi was unknown.

    Just before I left I had a call from someone who had taken over the project I was working on in my last contract, and he had a problem.

    I was forced to go down to the local pub and drink lots of their beer and food to justify my extensive use of their WiFi connection over the holiday. It was hell! :-)

    If any of my proposed solutions have minor errors, it's because I don't waste my genius on trivial matters. :-P

      Uh huh ... a likely story ... and what did your code look like, when you got back?   (Or did you just “accidentally” leave your laptop in the loo?)

      ;-)   ;-)

        Well it, didn't involve writing lots of code so much as a matter of finding out how to improve a complex SQL join, and find out why the data retrieval time for this query could be several minutes on occasion.

        My laptop is a big 17" screen jobbie so its hard to forget its there. I was sitting in the beer garden, I do have a photo of my laptop with a very large caterpillar crawling along the top of the screen somewhere.....

        If any of my proposed solutions have minor errors, it's because I don't waste my genius on trivial matters. :-P
Re: Offline Perl Development
by LanX (Sage) on Apr 18, 2013 at 22:17 UTC
    > I spent the Easter vacation with my son and friends in the country.

    And now you are writing a book about the "The Unbearable Lightness of CPAN"? ;-)

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Re: Offline Perl Development
by sundialsvc4 (Abbot) on Apr 18, 2013 at 23:23 UTC
    No ... “What Geeks Do On Easter Vacation In The Country.”
Re: Offline Perl Development
by SuicideJunkie (Vicar) on Apr 19, 2013 at 21:19 UTC

    I develop on my netbook every now and then (Wander around the house, or out in the yard in the summer). So when I'm about to head out to the cottage, I just synch the app repo, and go since the required perl modules are already installed and tested.

    You can get quite a lot done on a multi-hour car trip if you're not driving and have half decent battery life.

Re: Offline Perl Development
by DrHyde (Prior) on Apr 23, 2013 at 11:03 UTC
    This is why the good lord invented cron and minicpan. My laptop attempts to sync its minicpan* half a dozen times a day, so depending on when I'm using it, it should get an update every day or two.

    * - actually I have a backpan on mine, in case I need to hack on cpxxxan, but that's neither here nor there

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://1029429]
Approved by LanX
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-06-26 11:57 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (85 votes). Check out past polls.