Slashdot Mirror


User: wiley+wimberly

wiley+wimberly's activity in the archive.

Stories
0
Comments
7
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 7

  1. Re:MP3 player currently unsupported under Linux... on Rocket Arena For Quake 3 Arena Released · · Score: 1

    You can unzip the self-extracting executable.
    unzip ra3soundtrack.exe
    worked fine for me. Then I discovered that the mp3 player doesn't work with the linux version. Bummer.

  2. Re:date bug (could be my bad code) on Y2K Rollover - Post Your Experiences Here! · · Score: 1

    oops, looks like I am the one with issues.

    Desert Raven pointed out that

    Months are returned as zero-based array indexes. (january == 0, december == 11)

    doh!

  3. Re:date bug (could be my bad code) on Y2K Rollover - Post Your Experiences Here! · · Score: 1

    That seems to do the trick.
    I guess localtime has issues.

    Thanks

    Wiley

  4. date bug (could be my bad code) on Y2K Rollover - Post Your Experiences Here! · · Score: 1

    I thought this was interesting.

    #!/usr/bin/perl
    ($y,$m,$d) = (localtime)[5,4,3]; #get todays date
    $y += 1900; #fix the years
    print "$y $m $d\n";

    this gives me: 1999 11 31

    date gives: Fri Dec 31 12:15:04 EST 1999

    Hmm, I could be doing something wrong, but I have
    never noticed this problem before.

    I noticed the problem with the following:

    #!/usr/bin/perl

    # evil broken code follows

    use Date::Calc qw(Add_Delta_Days);

    ($y,$m,$d) = (localtime)[5,4,3]; #get today's date
    $y += 1900; #fix the years
    print "$y $m $d\n";

    ($y2,$m2,$d2) = Add_Delta_Days($y,$m,$d,-1); #get yesterday's date
    $y2 += 1900;
    print "$y2 $m2 $d2\n";

    # end evil code

    This produces:

    [wiley@zig wiley]$ ./datetest2
    1999 11 31
    Date::Calc::Add_Delta_Days(): not a valid date at ./datetest2 line 11.

    I also tried it without the line

    $y += 1900; #fix the years

    but that still gives me

    99 11 31
    Date::Calc::Add_Delta_Days(): not a valid date at ./datetest2 line 10.

    I am almost positive that this code worked yesterday.

    I fixed the problem script with a different approach, but I thought this was worth pointing out. I will admit that I could be doing something wrong here. Any ideas?

    Wiley

  5. Re:I wouldn't buy it. on Ask John Carmack About Quake - or Anything Else · · Score: 1

    I play quake, quake2 and quake3test under linux all the time without any crashes. I agree that open source is the way to go, but I don't see it happening with mainstream games anytime soon.

  6. Re:Answers.. on Ask John Carmack About Quake - or Anything Else · · Score: 1

    If the game must be open source whats stoping Joe Blow from downloading the source code and compiling it?

    Why would the game have to be open source? I am perfectly willing to buy closed source games that run on linux.

  7. GNU tools! on Would Linux Survive if Solaris Was Free? · · Score: 1

    A major problem with SunOS is the fact that you have to spend hours installing the GNU packages that we all know and love before you have a usuable box. With linux you just install a distribution, tweak a few settings and you are done.