Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Advice for moving forward with modules

by zengargoyle (Deacon)
on Feb 28, 2003 at 02:20 UTC ( #239322=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # untested, but close.
    $blocked = Cache::FileCache->new(
    ...
    deny_access if is_blocked('192.168.254.1');
    unblock('192.168.254.1');
    block('192.168.254.13', 'never');  # block forever!
    
  2. or download this
    $is_blocked = $dbh->prepare('
    SELECT 1 FROM blocks WHERE
    ...
    16842752    4294901760   (1.1.0.0 255.255.0.0)
    
    will block everything under 1.1.0.0/16
    
  3. or download this
    tie %blocks, 'Tie::Foo', 'the_block_file';
    sub block { $blocks{shift} = 1 }
    sub unblock { delete $blocks{shift} }
    sub is_blocked { exists $blocks{shift} }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://239322]
help
Chatterbox?
[stevieb]: choroba my GPS home device is done, at least prototype v1 is. I'm just making sure all of my code does what it says now
[stevieb]: I test/prototype code on my Pi, then I migrate it over to Arduino when it's ready (if that's a better platform for what I'm doing). The whole RPi stuff was for learning at first, then it snowballed. I'm just trying to get my in-house CI...
[stevieb]: ...done, which obviously requires a specific hardware setup.
[stevieb]: I don't write tests for the lower-level distributions (ie. ICs, sensors etc) within those distributions, I have all tests in a master distribution which encompasess all of the sub-modules

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-06-25 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (572 votes). Check out past polls.