Reading What Rules

Jul 11, 2002 14:46 # 4129

Hawkeye *** smiles...

NEW AVATARS!

Yes, folks you heard right. I just uploaded a buttload of avatars for you to choose from. The webmaster should be putting them up shortly. Thank me later. :)

If the world should blow itself up,the last audible voice would be an expert saying it can't be done

Jul 11, 2002 15:10 # 4131

Jaz *** replies...

Re: NEW AVATARS!

As I wrote I'm not at home currently, but I'll take care of it when I return. I might also allow uploadable avatars for each user.

'Yeah, That's what Jesus would do. Jesus would bomb Afghanistan. Yeah.' - snowlion

Jul 12, 2002 17:56 # 4154

Hawkeye *** wants to know...

Calendar

?% | 1

Ah, so you're the webmaster? I'm impressed. I've been trying to do a calendar program, but I'm having some trouble actually finding out what DAY it is. Any tips/Helpful hints?

If the world should blow itself up,the last audible voice would be an expert saying it can't be done

Jul 12, 2002 20:59 # 4160

null wants to know...

Re: Calendar

What programming language?

When life hands you a lemon, that's 40% of your RDA of vitamin C taken care of.

Jul 13, 2002 22:05 # 4174

Hawkeye *** replies...

Re: Calendar

C++
Is it possible to do without using perl?
And am I going to get more neutral ratings, because I'm asking questions?

If the world should blow itself up,the last audible voice would be an expert saying it can't be done

Jul 13, 2002 22:24 # 4175

null has all the information you need...

Re: Calendar

92% | 2

I'm sorry I don't know much C++. In C it would be something like

#include <stdio.h>
#include <time.h>

int main()
{
  time_t timer ;
  struct tm *tblock ;

  // Get time in Unix format (seconds since 1/1/1970):
  timer = time(NULL) ;

  // Convert it to a struct:
  tblock = localtime(&timer) ;

  // Adjust the year:
  if (tblock->tm_year<200) tblock->tm_year += 1900 ;

  printf("Current date: %04d-%02d-%02d\n",tblock->tm_year,
         tblock->tm_mon+1,   // Note that tm_mon ranges from 0=Jan to 11=Dec!
         tblock->tm_mday) ;

  return 0 ;

}

this gives you the time in this struct -->

struct tm {
   int tm_sec ;
   int tm_min ;
   int tm_hour ;
   int tm_mday ;
   int tm_mon ;
   int tm_year ;
   int tm_wday ;
   int tm_yday ;
   int tm_isdst ;
} ;

tm_wday is the weekday and ranges from 0=Sunday to 6=Saturday.

If it doesn't help you I still have demonstrated good will. :-)

And don't worry about the ratings, a neutral vote is still half-green.

When life hands you a lemon, that's 40% of your RDA of vitamin C taken care of.

This post was edited by null on Jul 13, 2002.

Jul 14, 2002 03:27 # 4178

Hawkeye *** replies...

Re: Calendar

Thx! I'll send a link to the calendar program when I get it up and working. I'm basically copying the html code to a nice calendar setup, and I was going to make a program to modify the month/day automatically (and enable the user to fast-forward to the new months).

If all that goes well, I will enable the user (with a password), to post information about certain days. This is for my fraternity. I'm the webmaster. I'm going a little bit above and beyond here, but that's what geeks do best. :)

If the world should blow itself up,the last audible voice would be an expert saying it can't be done

Jul 14, 2002 08:24 # 4182

null replies...

Re: Calendar

?% | 1

Hmm, if your page is mostly static and you don't have to do much programming, you might want to consider PHP. It's basically embedded perl, i.e. you make an ordinary HTML page and then insert pieces of code where you need dynamic output.

You probably know this already, so I won't explain everything again. :-) Just ask if you don't.

When life hands you a lemon, that's 40% of your RDA of vitamin C taken care of.

Jul 15, 2002 10:44 # 4205

Jaz *** replies...

Re: Calendar

It's basically embedded perl

Tictactoe is basically chess...

'Yeah, That's what Jesus would do. Jesus would bomb Afghanistan. Yeah.' - snowlion

Jul 15, 2002 12:04 # 4211

null replies...

Re: Calendar

Come on, I didn't mean to insult anybody. :-)

When life hands you a lemon, that's 40% of your RDA of vitamin C taken care of.

Jul 15, 2002 12:52 # 4219

Jaz *** replies...

Re: Calendar

Don't pretend you didn't see it coming.

'Yeah, That's what Jesus would do. Jesus would bomb Afghanistan. Yeah.' - snowlion

Jul 15, 2002 14:09 # 4224

null replies...

Re: Calendar

?% | 1

Well, so please accept my apologies and this official statement of mine -

<retraction>
PHP has absolutely nothing to do with perl! No two things could possibly be more different that PHP and perl. Don't be fooled by how similar they might look sometimes. They're worlds apart, heck, even universes! Not one single computer-savvy person on this planet would possibly try to compare them.
</retraction>

...And now please excuse me, I have some embedded perl work to do. :-) Still need to find a way to reactivate my NAO account in case it accidentally gets closed or something...

When life hands you a lemon, that's 40% of your RDA of vitamin C taken care of.

Jul 15, 2002 15:33 # 4226

Jaz *** replies...

Re: Calendar

Your apologies could almost be accepted. However, you failed to mention the vast superiority of Perl over PHP (also known as ".BAT" from old DOS days).

'Yeah, That's what Jesus would do. Jesus would bomb Afghanistan. Yeah.' - snowlion

Jul 15, 2002 15:59 # 4227

null replies...

Re: Calendar

Come on, at least you don't need to be a cryptography expert to understand a typical PHP source.

When life hands you a lemon, that's 40% of your RDA of vitamin C taken care of.

Aug 28, 2002 13:39 # 4946

oxygenius *** has a suggestion...

Re: Calendar

?% | 1

at least, if it's not MY php code :D
- such code of mine looks really really hard optimized :D
.. so if i would write in perl - what i DONT do - it would be easier to understand :D

IMHO, C is THE BEST coding-language :P

cu, w0lf.

Metal has no laws. Metal is the law.

Aug 28, 2002 23:24 # 4953

frank *** replies...

Re: Calendar

This post was deleted by request of the author.

Aug 29, 2002 02:28 # 4955

ReallyCoolDude *** is getting sarcastic...

Re: Calendar

I would still vote for FORTRAN! It's really fun to write real object-oriented code involving complex data structures solving real-time business problems on FORTRAN! ;)

Love is blind, but marriage is a real eye opener.

Jul 15, 2002 16:55 # 4228

Hawkeye *** replies...

Re: Calendar

Yep, you deserve a negative rating for that one. ;)

If the world should blow itself up,the last audible voice would be an expert saying it can't be done

Jul 15, 2002 22:34 # 4229

null replies...

Re: Calendar

Censorship can't stop me anymore. ;-)

When life hands you a lemon, that's 40% of your RDA of vitamin C taken care of.


Small text Large text

Netalive Amp (Skin for Winamp)