Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Your random numbers are not that random

by tobyink (Abbot)
on Jul 22, 2012 at 09:11 UTC ( #983055=note: print w/replies, xml ) Need Help??


in reply to Re^4: Your random numbers are not that random
in thread Your random numbers are not that random

Compile it once onto one card and then make clones of that card. (If you have two SD slots, you could use the dd command on Linux to create fast, exact copies. Even without a second SD slot, you could use dd via a temporary intermediate disk image file stored on some other medium.)

perlbrew comes in handy because it's very good at ensuring Perl installs into one particular directory without leaving any crud lying around on other parts of your system. (And also because it provides the shell aliases for swapping between different installations of Perl very easily.)

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^6: Your random numbers are not that random
by davies (Parson) on Jul 22, 2012 at 11:01 UTC

    While I can do this for my current project, it's not something that can be done for cards that have on them data that should be retained. And if other data can be replicated only by cloning a card, the position is untenable. I suppose it's my unfamiliarity with Linux. I'm not surprised that there isn't a precompiled version of Perl 5.16 for the Pi, but I was expecting it to be possible to create one. The hours of compiling are guaranteed to put people off using anything but the system Perl on a Pi, which may be why Python is their language of choice.

    Regards,

    John Davies

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://983055]
help
Chatterbox?
[Corion]: Hmm. I think overnight I decided on simplifying some code. I have plugin classes that do data import (.csv, .yml, .json) and for that create objects on which then ->load() is called. But YAML::XS doesn't have an object, so I wrote my own wrapper.
[Corion]: This evening, I'll kill that wrapper again, and just call LoadFile() in the plugin class directly instead of creating a go-between object for no real gain.
[Corion]: Writing these import plugins was really nice though - in about 2 hours, I had imports for CSV, YAML and JSON, and adding XLS(X), SQLite (or DBI) data sources is also trivial. I'm idly wondering about separating the plugin into transport+parser, so ...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2018-05-22 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?