Jump to content

debianuser

Active Members
  • Posts

    271
  • Joined

  • Last visited

Posts posted by debianuser

  1. I'd like to help too, if I can.. really interested

    I haven’t read any of your posts so I don’t have a feeling for what type of person you are so it’s a maybe.

    If I think someone’s a wanker then it’s a no. Everyone gets access to a number of my servers and I don’t want them just pissing around and not adding anything to the project.

    (Just because you have access to 2TB of storage, doesn’t mean I want to host your porn or a complete backup of your hard drive’s)

    i have time laying around to help... so lemme know

  2. I was watching Call For Help a couple weeks ago and saw Hak 5 on there with some program that would allow you to hide anything you want ( images, text, etc. ) inside something else without anyone knowing. I forgot to write down what it was called. I'm hoping that somebody could help me out.

    this is in the live beta version....

  3. Hey Hey! Stop fighting over witch *nix based OS is best. We can all unite and say that windows sucks! :-)

    I wouldn’t say it sucks, it’s just not the best pick for a server, but if your building a non MAME gaming box or CAD box, then Windows is the best.

    You people must hate me lol... I love freeBSD and I love Windows!

    I love:

    Debian

    Gentoo

    Red Hat Enterprise Linux/ CentOS

    Windows

    VxWorks

    OpenBSD

    Solaris

    Each one is best suited to different tasks/ situation.

    Don't take me wrong man! I LOVE DEBIAN!

    if You ask me one OS, I would use: DEBIAN .

    However reading your opinion about Ubuntu... i though I should mention few thing.

    I've tried Ubuntu Server, tested it, tried to see it from every angle and one final word. It is ok! It works fine! it never failed.

    The desktop version of ubuntu is really blotted, however the server version looks great! I mean! what the heck! it does not even come with a GCC compiler by default.

    I've read that lots here recommended Centos.

    File server benchmark on the same machine using Centos and then Ubuntu server showed exact same performances.

    First of all, for me Centos = RPM and honestly no way jose. Centos exist because RedHat is releasing publicly its RPM. What happens when they stop doing that? Are you ready to run a production server based on something on which you don't have any assurance that it's gonna continue, are they're still gonna release patches?. Ubuntu however provides support for its server version for 5 years. For an enterprise, this is a good deal

    Ubuntu is a certified Oracle platform as well as IBM DB2...

    Big Diff between Ubuntu and Debian? well the main I would say is that someone is paying some of the debian developers to work on the project, while debian is just a volunteer work.

    Not sure for you, but for me, if I am paid to do a job, I do it! If I have to work on some other project when I get home, then I won't put much of time and of my life in it. That's maybe be, but maybe half of the dozen of people that work on debian. Final word on it? not sure they would continue...

    For some that loves to have their hands dirty because of compiling the kernel and just playing with things.

    Honestly, at home, there is no reason to install ubuntu, I've got time to play with Debian. At work, what the heck man! your boss tells you, I need a server up running tomorrow with 200 to 300 users registered on it and allowing some client software to use oracle on it?! You think you've got time to even compile a kernel?!

    If Debian is not detecting fully all the hardwares on the server, then an alternative is Ubuntu.

    Ubunt = debian with newer packages! if you need those new packages and need more driver support (better driver support) then go with Ubuntu.. coz it's just the same freaking system.

    Anyway... there is a lot to say! and really guys! all i am just trying to say is that: we all have our preferences but saying a distro suck just because it is a young distro (although same developpers use to work for debian).. that's a bit lame...

    The pride of "owning" a hard-core distro is not what is gonna make you profit. It's just a stupid good feeling of 5mn. When it comes to production! it's a completely different world.

  4. Hey ppl,

    Ive installed SmoothWall onto my P1 box(I love it!) and installed the add-ons from the website VaKo listed on my other posting. Just wanted to know who else has SW and what they think of it and if anyone knows any good add-ons they could recommend, fire away! Happy New Year everyone!

    Well... I use IPCOP and I think it's better than SmoothWall...

    I don't usually like when a company release a free and commercial product... because they tend to neglect the free one.

    I would say give IPCOP a try... however one great firewall distro to check out in the future is Pfsense based on M0m0wall, which includes pf of OpenBSD.

  5. I want it fast!

    I want it quick!

    I want it now!... and the easy way!

    Just tell me how do I do that:

    • How to learn C in 5mn?

    How to become a hacker in 1mn?

    How do I chmod a whole directory and sub-directory?

    ........... (and so on... :roll: )

    It is funny to realize that as our society is getting faster and faster (everything has to be quick), people want to accomplish stuff without having to go through the hassle to learn.

    I remember, writing my first program in C, I started from writing "Hello world" and directly jumped on "how to implement tables and array"... I mean, what the heck! I want to write than #*%& GUI program that my 5 years Ingenier friend is doing.

    Well after a while, I had to go back to start reading from the beginning.

    I mean... so many times, have I lost time searching on google, when I could have just spent 1h from the beginning reading the whole manual, or just doing a simple "man xxxx".

    It's like that guy who wants built a php script which could read records from a database, just "googled" it, found a Tuto on how to do it, did it. It was fine. I mean great program from someone who does not know php at all?! :roll:

    What's wrong with this society?

    where is the balance between fast production and quality production?!

    :?

  6. hehe this is kool, been wanting new sections on the forum for a while now ^_^.

    it also should server has holding help me hack threads outta the main 'questions' and 'hacking / mods' threads. now all we need is a scripting sections and umm more active scripters.

    what about starting to ban users?... like u for instance Deveant?

    Seriously how old are you? You blow my mind!!

    hehe i blow some ones mind kool ^_^.

    Umm what did i say wrong? and im 19 btw :P

    Funny, I am 22...

    you're fooling around when we're being serious on a matter!

  7. I just thought this would be a good thread so people don’t feel the need to startup new threads to just say “Hi I’m newâ€.

    My name is Mark a.k.a Metatron

    Favourite game: Bejewelled

    Favourite OS: Debian

    Favourite console: Xbox running Gentoo

    Nationality: British/ American (Dual citizenship)

    Accent: English (southern)

    Sex: Male

    Race: White European

    Height: 6â€5’

    Build: Muscular

    Favourite band: The Pixies

    Favourite book: Join Me (By Danny Wallace)

    Favourite author: Michael Moore.

    Favourite movie: Fight club

    Favourite director: Kevin Smith

    Favourite TV Show: 24

    Favourite actor: Edward Norton

    Favourite actress: Natalie Portman

    Favourite Pinup: Jessica Alba

    Favourite Comedian: Rich Hall

    Other hobbies: Running, Mountain biking, diving, climbing and shooting (range/ clay pigeon).

    Car: Dodge Ram and 1976 Dodge Dart GT

    Occupation: R&D/ Technical adviser

    age?

    • Upvote 1
  8. hehe this is kool, been wanting new sections on the forum for a while now ^_^.

    it also should server has holding help me hack threads outta the main 'questions' and 'hacking / mods' threads. now all we need is a scripting sections and umm more active scripters.

    what about starting to ban users?... like u for instance Deveant?

    Seriously how old are you? You blow my mind!!

  9. Tech support is damn easy to get into, you just need a few months phone experience and a google powered cramming session before the interview. Yes, you do have to talk to n00bs all day. But its basically paid training and looks good on your CV. Plus it sure as hell beats working in a shop or factory.

    (And I have plenty of time to admin/play with my own servers via ssh, webmin and rdp)

    Ya.. i agree... however it reminds me of the time when once, I had a problem with my hosting company and when I actually was walking tech support into solving the problem... :roll:

  10. Okay so, my girlfriends dad went to move a bunch of pictures and files off of his main computer to a spare HD, so he cut and pasted them on the new HD. Well, something or other happend and they dident make it there and he rebooted, so basically there gone. The question is how would I help him recover his data? I know that there are windows software fixes for this but all I have found pretty much suck with only the demo. Ive googled my heart out and tried to figure it out on my computer using knoppix and a few other live CD's with no luck. Can anyone help me help him recover his data?

    I would love a linux way if possible.

    thanks!

    if the data are important then paying 60-80 box won't be a problem...

    if u decide to buy a software, go with SpinRite... it's the best!

  11. Hi i'm thinking of changing operating system to Linux, Knoppix or other. But i am not 100% sure on any problems that i may come accross, for example:

    1. Wireless Mouse & Keyboard both made by Microsoft. (USB) with this i'm basicly worried about not being able to install the dirvers that are on the disc.

    2. I am on a Family network, my desktop is wireless, and i was wondering of any problems that may occur if i do convert to Linux.

    3. Last thing, Games/Drivers stuff like that, i dont want to goto Linux to find out some games will not run, or drivers for certain things.

    I would appreciate it if someone would kindly point me in the right direction and hopefuly end this on going mental war

    p.s - Does Linux use DirectX or another method?

    You can always emulate Windows inside of linux and then run all your wireless stuff (which in recent distro are pretty much supported)... for games... if Wine does not work... ya just run them in the Windows emulation

  12. Well create a file named Mail.pm and copy the following code in it

    package DateTime::Format::Mail;
    
    # $Id: Mail.pm 3459 2006-07-24 12:39:08Z autarch $
    
    
    
    use strict;
    
    use 5.005;
    
    use Carp;
    
    use DateTime 0.1705;
    
    use Params::Validate qw( validate validate_pos SCALAR );
    
    use vars qw( $VERSION );
    
    
    
    $VERSION = '0.30';
    
    
    
    my %validations = (
    
        year_cutoff =>  {
    
            type => SCALAR,
    
            callbacks => {
    
                'greater than or equal to zero, less than 100' => sub {
    
                    defined $_[0]
    
                        and $_[0] =~ /^ d+ $/x 
    
                        and $_[0] >= 0
    
                        and $_[0] < 100
    
                },
    
            },
    
        }
    
    );
    
    
    
    # Timezones for strict parser.
    
    my %timezones = qw(
    
        EDT -0400   EST -0500       CDT -0500       CST -0600
    
        MDT -0600   MST -0700       PDT -0700       PST -0800
    
        GMT +0000   UT  +0000
    
    );
    
    my $tz_RE = join( '|', sort keys %timezones );
    
    $tz_RE= qr/(?:$tz_RE)/;
    
    $timezones{UTC} = $timezones{UT};
    
    
    
    # Strict parser regex
    
    
    
    # Lovely regex. Mostly a translation of the BNF in 2822.
    
    # XXX - need more thorough tests to ensure it's *strict*.
    
    
    
    my $strict_RE = qr{
    
        ^ s* # optional 
    
        # [day-of-week "," ]
    
        (?:
    
          (?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) ,
    
          s+
    
        )?
    
        # date => day month year
    
        (d{1,2})  # day => 1*2DIGIT
    
        s+
    
        (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) # month-name
    
        s*
    
        ((?:dd)?dd) # year
    
        # FWS
    
        s+
    
        # time
    
        (dd):(dd):(dd) # time
    
        (?:
    
            s+ (
    
                [+-] d{4}  # standard form
    
                | $tz_RE    # obsolete form (mostly ignored)
    
                | [A-IK-Za-ik-z]  # including military (no 'J')
    
                ) # time zone (optional)
    
        )?
    
        s* $
    
    }ox;
    
    
    
    # Loose parser regex
    
    my $loose_RE = qr{
    
        ^ s* # optional 
    
        (?i:
    
            (?:Mon|Tue|Wed|Thu|Fri|Sat|Sun|[A-Z][a-z][a-z]) ,? # Day name + comma
    
        )?
    
            # (empirically optional)
    
        s*
    
        (d{1,2})  # day of month
    
        [-s]*
    
        (?i: (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ) # month
    
        [-s]*
    
        ((?:dd)?dd) # year
    
        s+
    
        (d?d):(d?d) (?: :(d?d) )? # time
    
        (?:
    
            s+ "? (
    
                [+-] d{4}  # standard form
    
                | [A-Z]+    # obsolete form (mostly ignored)
    
                | GMT [+-] d+      # empirical (converted)
    
                | [A-Z]+d+ # bizarre empirical (ignored)
    
                | [a-zA-Z/]+        # linux style (ignored)
    
                | [+-]{0,2} d{3,5} # corrupted standard form
    
                ) "? # time zone (optional)
    
        )?
    
            (?: s+ ([^)]+) )? # (friendly tz name; empirical)
    
        s* .? $
    
    }x;
    
    
    
    sub _set_parse_method
    
    {
    
        my $self = shift;
    
        croak "Calling object method as class method!" unless ref $self;
    
        $self->{parser_method} = shift;
    
        return $self;
    
    }
    
    
    
    sub _get_parse_method
    
    {
    
        my $self = shift;
    
        my $method = ref($self) ? $self->{parser_method} : '';
    
        $method ||= '_parse_strict';
    
    }
    
    
    
    sub new
    
    {
    
        my $class = shift;
    
        my %args = validate( @_, {
    
                loose => {
    
                    type => SCALAR,
    
                    default => 0,
    
                },
    
                year_cutoff => {
    
                    %{ $validations{year_cutoff} },
    
                    default => $class->default_cutoff,
    
                },
    
            }
    
        );
    
    
    
        my $self = bless {}, ref($class)||$class;
    
        if (ref $class)
    
        {
    
            # If called on an object, clone
    
            $self->_set_parse_method( $class->_get_parse_method );
    
            $self->set_year_cutoff( $class->year_cutoff );
    
            # and that's it. we don't store much info per object
    
        }
    
        else
    
        {
    
            my $parser = $args{loose} ? "loose" : "strict";
    
            $self->$parser();
    
            $self->set_year_cutoff( $args{year_cutoff} ) if $args{year_cutoff};
    
        }
    
    
    
        $self;
    
    }
    
    
    
    sub clone
    
    {
    
        my $self = shift;
    
        croak "Calling object method as class method!" unless ref $self;
    
        return $self->new();
    
    }
    
    
    
    sub loose
    
    {
    
        my $self = shift;
    
        croak "loose() takes no arguments!" if @_;
    
        return $self->_set_parse_method( '_parse_loose' );
    
    }
    
    
    
    sub strict
    
    {
    
        my $self = shift;
    
        croak "strict() takes no arguments!" if @_;
    
        return $self->_set_parse_method( '_parse_strict' );
    
    }
    
    
    
    sub _parse_strict
    
    {
    
        my $self = shift;
    
        my $date = shift;
    
    
    
        # Wed, 12 Mar 2003 13:05:00 +1100
    
        my @parsed = $date =~ $strict_RE;
    
        croak "Invalid format for date!" unless @parsed;
    
        my %when;
    
        @when{qw( day month year hour minute second time_zone)} = @parsed;
    
        return %when;
    
    }
    
    
    
    sub _parse_loose
    
    {
    
        my $self = shift;
    
        my $date = shift;
    
    
    
        # Wed, 12 Mar 2003 13:05:00 +1100
    
        my @parsed = $date =~ $loose_RE;
    
        croak "Invalid format for date!" unless @parsed;
    
        my %when;
    
        @when{qw( day month year hour minute second time_zone)} = @parsed;
    
        $when{month} = "Lu$when{month}";
    
        $when{second} ||= 0;
    
        return %when;
    
    }
    
    
    
    sub parse_datetime
    
    {
    
        my $self = shift;
    
        croak "No date specified for parse_datetime." unless @_;
    
        croak "Too many arguments to parse_datetime." if @_ != 1;
    
        my $date = shift;
    
    
    
        # Wed, 12 Mar 2003 13:05:00 +1100
    
        my $method = $self->_get_parse_method();
    
        my %when = %{ $self->$method($date) };
    
        $when{time_zone} ||= '-0000';
    
    
    
        my %months = do { my $i = 1;
    
            map { $_, $i++ } qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec );
    
        };
    
        $when{month} = $months{$when{month}}
    
            or croak "Invalid month `$when{month}'.";
    
    
    
        $when{year} = $self->fix_year( $when{year} );
    
        $when{time_zone} = $self->determine_timezone( $when{time_zone} );
    
    
    
        my $date_time = DateTime->new( %when );
    
    
    
        return $date_time;
    
    }
    
    
    
    sub determine_timezone
    
    {
    
        my $self = shift;
    
    
    
        my $tz = shift;
    
        return '-0000' unless defined $tz; # return quickly if nothing needed
    
        return $tz if $tz =~ /^[+-]d{4}$/;
    
    
    
        $tz =~ s/ ^ [+-] (?=[+-]) //x; # for when there are two signs
    
    
    
        if (exists $timezones{$tz}) {
    
            $tz = $timezones{$tz};
    
        } elsif (substr($tz, 0, 3) eq 'GMT' and length($tz)  > 4) {
    
            $tz = sprintf "%5.5s", substr($tz,3)."0000";
    
        } elsif ( $tz =~ /^ ([+-]?) (d+) $/x) {
    
            my $p = $1||'+';
    
            $tz = sprintf "%s%04d", $p, $2;
    
        } else {
    
            $tz = "-0000";
    
        }
    
    
    
        return $tz;
    
    }
    
    
    
    sub set_year_cutoff
    
    {
    
        my $self = shift;
    
        croak "Calling object method as class method!" unless ref $self;
    
        validate_pos( @_, $validations{year_cutoff} );
    
        croak "Wrong number of arguments (should be 1) to set_year_cutoff"
    
            unless @_ == 1;
    
        my $cutoff = shift;
    
        $self->{year_cutoff} = $cutoff;
    
        return $self;
    
    }
    
    
    
    # rfc2822, 4.3. Obsolete Date and Time
    
    #   Where a two or three digit year occurs in a date, the year is to be
    
    #   interpreted as follows: If a two digit year is encountered whose
    
    #   value is between 00 and 49, the year is interpreted by adding 2000,
    
    #   ending up with a value between 2000 and 2049.  If a two digit year is
    
    #   encountered with a value between 50 and 99, or any three digit year
    
    #   is encountered, the year is interpreted by adding 1900.
    
    sub default_cutoff
    
    {
    
        49;
    
    }
    
    
    
    sub year_cutoff
    
    {
    
        my $self = shift;
    
        croak "Too many arguments (should be 0) to year_cutoff" if @_;
    
        (ref $self and $self->{year_cutoff}) or $self->default_cutoff;
    
    }
    
    
    
    sub fix_year
    
    {
    
        my $self = shift;
    
        my $year = shift;
    
        return $year if length $year >= 4; # Return quickly if we can
    
    
    
        my $cutoff = $self->year_cutoff;
    
        $year += $year > $cutoff ? 1900 : 2000;
    
        return $year;
    
    }
    
    
    
    sub format_datetime
    
    {
    
        my $self = shift;
    
        croak "No DateTime object specified." unless @_;
    
        my $dt = $_[0]->clone;
    
        $dt->set( locale => 'en_US' );
    
    
    
        my $rv = $dt->strftime( "%a, %d %b %Y %H:%M:%S %z" );
    
        $rv =~ s/+0000$/-0000/;
    
        $rv;
    
    }
    
    
    
    1;
    
    
    
    __END__
    
    
    
    =head1 NAME
    
    
    
    DateTime::Format::Mail - Convert between DateTime and RFC2822/822 formats
    
    
    
    =head1 SYNOPSIS
    
    
    
        use DateTime::Format::Mail;
    
    
    
        # From RFC2822 via class method:
    
    
    
        my $datetime = DateTime::Format::Mail->parse_datetime(
    
            "Sat, 29 Mar 2003 22:11:18 -0800"
    
        );
    
        print $datetime->ymd('.'); # "2003.03.29"
    
    
    
        #  or via an object
    
        
    
        my $pf = DateTime::Format::Mail->new();
    
        print $pf->parse_datetime(
    
            "Fri, 23 Nov 2001 21:57:24 -0600"
    
        )->ymd; # "2001-11-23"
    
    
    
        # Back to RFC2822 date
    
        
    
        use DateTime;
    
        my $dt = DateTime->new(
    
            year => 1979, month => 7, day => 16,
    
            hour => 16, minute => 45, second => 20,
    
            time_zone => "Australia/Sydney"
    
        );
    
        my $str = DateTime::Format::Mail->format_datetime( $dt );
    
        print $str; # "Mon, 16 Jul 1979 16:45:20 +1000"
    
    
    
        # or via an object
    
        $str = $pf->format_datetime( $dt );
    
        print $str; # "Mon, 16 Jul 1979 16:45:20 +1000"
    
    
    
    =head1 DESCRIPTION
    
    
    
    RFCs 2822 and 822 specify date formats to be used by email. This
    
    module parses and emits such dates.
    
    
    
    RFC2822 (April 2001) introduces a slightly different format of
    
    date than that used by RFC822 (August 1982). The main correction
    
    is that the preferred format is more limited, and thus easier to
    
    parse programmatically.
    
    
    
    Despite the ease of generating and parsing perfectly valid RFC822 and
    
    RFC2822 people still get it wrong. So this module provides four things
    
    for those handling mail dates:
    
    
    
    =over 4
    
    
    
    =item 1
    
    
    
    A strict parser that will only accept RFC2822 dates, so you can
    
    see where you're right.
    
    
    
    =item 2
    
    
    
    A strict formatter, so you can generate the right stuff
    
    to begin with.
    
    
    
    =item 3
    
    
    
    A I<loose> parser, so you can take the misbegotten output
    
    from other programs and turn it into something useful.
    
    This includes various minor errors as well as some somewhat more
    
    bizarre mistakes. The file F<t/sample_dates> in this module's
    
    distribution should give you an idea of what's valid, while
    
    F<t/invalid.t> should do the same for what's not. Those regarded
    
    as invalid are just a bit B<too> strange to allow.
    
    
    
    =item 4
    
    
    
    Interoperation with the rest of the L<DateTime> suite. These are
    
    a collection of modules to handle dates in a modern and accurate
    
    fashion. In particular, they make it trivial to parse, manipulate
    
    and then format dates. Shifting timezones is a doddle, and
    
    converting between formats is a cinch.
    
    
    
    =back
    
    
    
    As a future direction, I'm contemplating an even stricter
    
    parser that will only accept dates with no obsolete elements.
    
    
    
    =head1 CONSTRUCTORS
    
    
    
    =head2 new
    
    
    
    Creates a new C<DateTime::Format::Mail> instance. This is
    
    generally not required for simple operations. If you wish to use
    
    a different parsing style from the default, strict, parser then
    
    you'll need to create an object.
    
    
    
       my $parser = DateTime::Format::Mail->new()
    
       my $copy = $parser->new();
    
    
    
    If called on an existing object then it clones the object.
    
    
    
    It has two optional named parameters.
    
    
    
    =over 4
    
    
    
    =item *
    
    
    
    C<loose> should be a true value if you want a loose parser,
    
    else either don't specify it or give it a false value.
    
    
    
    =item *
    
    
    
    C<year_cutoff> should be an integer greater than or equal to zero
    
    specifying the cutoff year. See L<"set_year_cutoff"> for details.
    
    
    
    =back
    
    
    
        my $loose = DateTime::Format::Mail->new( loose => 1 );
    
    
    
        my $post_2049 = DateTime::Format::Mail->new(
    
            year_cutoff => 60
    
        );
    
    
    
    =head2 clone
    
    
    
    For those who prefer to explicitly clone via a method called C<clone()>.
    
    If called as a class method it will die.
    
    
    
       my $clone = $original->clone();
    
    
    
    =head1 PARSING METHODS
    
    
    
    These methods work on either our objects or as class methods.
    
    
    
    =head2 loose, strict
    
    
    
    These methods set the parsing strictness.
    
    
    
        my $parser = DateTime::Format::Mail->new;
    
        $parser->loose;
    
        $parser->strict; # (the default)
    
    
    
        my $p = DateTime::Format::Mail->new->loose;
    
    
    
    =head2 parse_datetime
    
    
    
    Given an RFC2822 or 822 datetime string, return a C<DateTime> object
    
    representing that date and time. Unparseable strings will cause
    
    the method to die.
    
    
    
    See the L<synopsis|/SYNOPSIS> for examples.
    
    
    
    =head2 set_year_cutoff
    
    
    
    Two digit years are treated as valid in the loose translation and are
    
    translated up to a 19xx or 20xx figure. By default, following the
    
    specification of RFC2822, if the year is 
    
    greater than '49', it's treated as being in the 20th century (19xx).
    
    If lower, or equal, then the 21st (20xx). That is, 50 becomes
    
    1950 while 49 is 2049.
    
    
    
    C<set_year_cutoff()> allows you to modify this behaviour by specifying
    
    a different cutoff.
    
    
    
    The return value is the object itself.
    
    
    
        $parser->set_year_cutoff( 60 );
    
    
    
    =head2 year_cutoff
    
    
    
    Returns the current cutoff. Can be used as either a class or object method.
    
    
    
        my $cutoff = $parser->set_year_cutoff;
    
    
    
    =head2 default_cutoff
    
    
    
    Returns the default cutoff. A useful method to override for
    
    subclasses.
    
    
    
        my $default = $parser->default_cutoff;
    
    
    
    =head2 fix_year
    
    
    
    Takes a year and returns it normalized.
    
    
    
       my $fixed = $parser->fix_year( 3 );
    
    
    
    =head1 FORMATTING METHODS
    
    
    
    =head2 format_datetime
    
    
    
    Given a C<DateTime> object, return it as an RFC2822 compliant string.
    
    
    
        use DateTime;
    
        use DateTime::Format::Mail;
    
        my $dt = DateTime->new(
    
            year => 1979, month => 7, day => 16, time_zone => 'UTC'
    
        );
    
        my $mail = DateTime::Format::Mail->format_datetime( $dt );
    
        print $mail, "n"; 
    
    
    
        # or via an object
    
        my $formatter = DateTime::Format::Mail->new();
    
        my $rfcdate = $formatter->format_datetime( $dt );
    
        print $rfcdate, "n";
    
    
    
    =head1 THANKS
    
    
    
    Dave Rolsky (DROLSKY) for kickstarting the DateTime project.
    
    
    
    Roderick A. Anderson for noting where the documentation was incomplete
    
    in places.
    
    
    
    Joshua Hoblitt (JHOBLITT) for inspiring me to check what the
    
    standard said about interpreting two digit years.
    
    
    
    =head1 SUPPORT
    
    
    
    Support for this module is provided via the datetime@perl.org email
    
    list. See L<http://datetime.perl.org/mailing_list.html> for more details.
    
    
    
    Alternatively, log them via the CPAN RT system via the web or email:
    
    
    
        http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DateTime%3A%3AFormat%3A%3AMail
    
        bug-datetime-format-mail@rt.cpan.org
    
    
    
    This makes it much easier for me to track things and thus means
    
    your problem is less likely to be neglected.
    
    
    
    =head1 LICENCE AND COPYRIGHT
    
    
    
    Copyright E<copy> Iain Truskett, 2003. All rights reserved.
    
    
    
    This library is free software; you can redistribute it and/or modify
    
    it under the same terms as Perl itself.
    
    
    
    The full text of the licences can be found in the F<Artistic> and
    
    F<COPYING> files included with this module, or in L<perlartistic> and
    
    L<perlgpl> in Perl 5.8.1 or later.
    
    
    
    =head1 AUTHOR
    
    
    
    Originally written by Iain Truskett <spoon@cpan.org>, who died on
    
    December 29, 2003.
    
    
    
    Maintained by Dave Rolsky <autarch@urth.org>.
    
    
    
    =head1 SEE ALSO
    
    
    
    C<datetime@perl.org> mailing list.
    
    
    
    L<http://datetime.perl.org/>
    
    
    
    L<perl>, L<DateTime>
    
    
    
    RFCs 2822 and 822.
    
    
    
    =cut

    put the file in /usr/lib/perl5/5.8.8/DateTime/Format/

    if the folders DateTime and Format do not exist then create them...

    -------

    Now make sure esd is not running as a process... if it is, then kill it

    and try again...

  13. If you need FTP like access you might want to consider using WASTE. It's actually meant to be a P2P compleate encryption system, but it sets up a VPN between each peer, so you can just use it with 2 peers. You will of course have t configure your WASTE client at home to automatically accept file transfers, other wise you won't be able to upload files from a remote location.

    SFTP and using MySecureShell http://mysecureshell.sourceforge.net

  14. The ram is going to be an issue for GNOME or KDE, so if you insist on having a GUI look at something like Fluxbox instead. And for distros look at debian or freebsd, there perfect for something like this. Do you have the error logs from X? Might be a problem with X and your video chip.

    Gnome is going to run fine... make sure you have a good swap partition... and Yes! Debian rules!

  15. As first off i have tried to google this and have found nothing.

    I would like to be able control fans with software, preferably some type of gui software. These fans can be from a range of ordinary house fans to some type of cooling pad underneath a laptop. Everything must be controlled by usb. NOt to sound bossy or anything but i have been a little bit agitated latley considering i cant find anything on this for my PC moding business.

    Any ways have fun with this one and try to figure something out even if it was just 1/0 signals via the usb that would be fine as long as i can write it into some type of program

    which platform?

  16. Hey. When I saw the RSS alarm clock on Hak.5 i got realy excited. I tried to put it on my suse 10.2 box using the linux instructions

    http://www.hak5.org/wiki/RSS_Alarm_Clock_Under_Linux

    I got both of the files I needed from cpan.

    http://www.cpan.org/modules/by-module/XML/...ser-2.34.tar.gz

    http://www.cpan.org/modules/by-module/XML/...RSS-1.22.tar.gz

    When I got to step 2.4 a problem came up.

    linux-cwqs:/home/rusty/Desktop/XML-Parser-2.34 # make
    
    make[1]: Entering directory `/home/rusty/Desktop/XML-Parser-2.34/Expat'
    
    cc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe   -DVERSION="2.34" -DXS_VERSION="2.34" -fPIC "-I/usr/lib/perl5/5.8.8/i586-linux-thread-multi/CORE"   Expat.c
    
    /bin/sh: cc: command not found
    
    make[1]: *** [Expat.o] Error 127
    
    make[1]: Leaving directory `/home/rusty/Desktop/XML-Parser-2.34/Expat'
    
    make: *** [subdirs] Error 2

    I can't figure out what this means. Originally I was having the same problem with the RSS plugin too but it just resolved itself somehow. I hope someone can help me.

    Thanks in advance.

    Your compiler is missing, make sure GCC is installed!

×
×
  • Create New...