Jump to content

johnnyv

Members
  • Posts

    960
  • Joined

  • Last visited

Everything posted by johnnyv

  1. About a year at home totally linux was dual booting before. A year at work on my work station was dual booting before. A bit over 2yrs installed on works server.
  2. :lol: 8) Although the gun should be replaced by a rocket launcher, i can't see them surviving this situation.
  3. johnnyv

    Half-Life 2?

    I was under the impression that there would be no chance of a linux port. If they port it i will buy it, if they don't i won't.
  4. Does this guy get to sleep at all? Icculus must be a seriously productive coder. Anyway i guess i will be buying this game, i had a little play on a friends computer and thought it was quite good.
  5. Whoopty do I'm sure all the linux users who want to play it will rejoice :P If the game is anything like everquest i would be very happy not to play it, so i will survive.
  6. I have used dvd::rip i prefer xvid to divx myself
  7. Ok here is a basic script for you. very little error checking/features It's just a demo for you, so you can write a better one. for what you want you would need to write a date sort function to order the events, and add in a format function for strip slashes on input etc.. I didn't want to spend anymore time on it. create a folder in your apache root folder stick these 3 files into it (make sure to change the owner of the txt file to apache so it can be written to. in a web browser open http://localhost/foldername/index.php event_list.txt 15/8/03 Pantera killing boy bands 25/8/03 Blah blah 28/8/03 My cat is vicious 20/8/03 A new event 30/8/03 SoulSe holiday 31/10/03 Johnnyv's birthday, Spooky;P index.php <HTML> <BODY> <?php include("date.php"); event_input(); create_event_table(); ?> </BODY> </HTML> date.php <?php // events text file name used in functions $filename = "event_list.txt"; function create_event_table() { // grab the contents of the file $contents = read_event_file(); $contents = explode("n", $contents); $contents_lenght = count($contents); if($contents_lenght > 1) { $rows = ""; $i = 0; while($i < $contents_lenght) { $parts = explode("t", $contents[$i]); if(compare_dates($parts[0]))// check if date is in future or today, if it is output it { $rows = $rows."<tr><td style="vertical-align: top;">$parts[0]</td><td style="vertical-align: top;">$parts[1]</td></tr>"; } $i++; } echo "<table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;"><tbody>n"; echo "<tr><td style="vertical-align: top;">Date</td><td style="vertical-align: top;">Event</td></tr>"; echo $rows; echo "</tbody></table>n"; } else { echo "No events in event list"; } } function event_input() { if($_POST['date'] && $_POST['event']) { // there is post data so input it into the file if it is a valid date if(compare_dates($_POST['date'])) { // remove any endlines or tags that could cause problems $event = $_POST['event']; $event = ereg_replace("n"," ", $event); $event = ereg_replace("t"," ", $event); write_event_file($_POST['date'], $event); } else { echo "Invalid date!<br>"; } } // make a form for adding events echo "<FORM method="post" action="index.php">"; echo "Date: <INPUT type=text name="date" size=12>(d/m/y eg) 31/10/03)"; echo " Event: <INPUT type=text name="event" size=60>"; echo "<p><INPUT type=submit value="Add Event"></p></FORM>"; } function read_event_file() { // function for reading the events text file Global $filename; $file = fopen($filename,"r"); $contents = fread($file, filesize($filename)); fclose($file); return $contents; } function write_event_file($date, $event) { // function for writing to the events text file Global $filename; $file = fopen($filename,"a"); $line = $date."t".$event."n"; fwrite($file, $line); fclose($file); } function compare_dates($date) { // bloody SoulSe not wanting to use a database, database date sorting much easier $todays_date = date("d/m/y"); $todays_date = explode("/",$todays_date); $date = explode("/",$date); if($date[2] >= $todays_date[2])// year { if($date[1] >= $todays_date[1])// month { if($date[0] >= $todays_date[0])// day { return true; } else { return false; } } else { return false; } } else { return false; } } ?>
  8. I will mock up a quick script for you today sometime.
  9. I play ET often. I play as Cute_teddy_bear whats your nick Paul? I mainly play on the jetstream servers so i can have the 27 ping.
  10. johnnyv

    Urban Terror 3

    Well because there are still mostly 2.6a servers around at the moment, and you can play both games and see what sort of changes have occured.
  11. What you want is not to hard to program, although it is much easier to use a database then a flat file. With the database you can easily sort by date and exclude older date items etc..
  12. johnnyv

    I wonder........

    It will be, so sayeth Ryan Gordon :D so rejoice ye lovers of ArmyOps.
  13. johnnyv

    Urban Terror 3

    I installed it and had a play, very nice it is much more realistic shooting than 2.6a (can't spray and pray) 8) And the machine gun is very nice. Just a shame there are not many 3.0 servers up at the moment. Oh instead of the files going into q3ut2 they now go in q3ut3 so you can have 2.6a and 3.0 side by side.
  14. whats the story with the blurred text? censoring? if so you might wanna check the title bar on the xchat window of that pic. Nice Desktop btw.
  15. What are you talking about??? tymes site http://www.geektyme.org/linux.html ?? if so, i see black text white background with a little picture in the background.
  16. "ctrl" + "+" to make text bigger in mozilla i find it fine at 1152 X 864 on a 15 inch monitor here at work.
  17. I have only used multiple windows versions dos and linux And mandrake is extremely easy to setup once you learn a little about linux. In fact it is usually as easy as you state Mac OS X on decent hardware. Isn't the only reason Mac OS X has it so easy is that it supports so little hardware comparatively to linux? Also installation is the least important feature of an OS, it's is something you only do once per computer (win 9X excluded), and most computer users have never installed an OS ever, they get someone like me to do it for them bastards :wink:
  18. No i think it is more that there is a lot of libraries to load on first startup. 1.1rc is much faster at loading. The memory tip is for once it is loaded up i think, operations within speadsheets etc
  19. Well if it's functioning it's functioning. You can give php more ram to work with by increasing the allowance in the php.ini file in /etc The default is 8mb i change mine to 32 because i run some big scripts sometimes. Depends on what you scripts do.
  20. johnnyv

    Urban Terror 3

    Urban terror 3 a free mod for quake 3 is now ready. Only 322mb download :) www.urbanterror.net
  21. With 1024 mb ram i have not used any swap space even though i have a swap partition it never seems to get used. Even with lots of applications opened.
  22. gcc is included in mandrale 9.1 standard edition at the command prompt type: gcc --help if gcc is installed you will get this: [john@bob john]$ gcc --help Usage: gcc-3.2.2 [options] file... Options: -pass-exit-codes Exit with highest error code from a phase --help Display this information --target-help Display target specific command line options (Use '-v --help' to display command line options of sub-processes) -dumpspecs Display all of the built in spec strings -dumpversion Display the version of the compiler -dumpmachine Display the compiler's target processor -print-search-dirs Display the directories in the compiler's search path -print-libgcc-file-name Display the name of the compiler's companion library -print-file-name=<lib> Display the full path to library <lib> -print-prog-name=<prog> Display the full path to compiler component <prog> -print-multi-directory Display the root directory for versions of libgcc -print-multi-lib Display the mapping between command line options and multiple library search directories -print-multi-os-directory Display the relative path to OS libraries -Wa,<options> Pass comma-separated <options> on to the assembler -Wp,<options> Pass comma-separated <options> on to the preprocessor -Wl,<options> Pass comma-separated <options> on to the linker -Xlinker <arg> Pass <arg> on to the linker -save-temps Do not delete intermediate files -pipe Use pipes rather than intermediate files -time Time the execution of each subprocess -specs=<file> Override built-in specs with the contents of <file> -std=<standard> Assume that the input sources are for <standard> -B <directory> Add <directory> to the compiler's search paths -b <machine> Run gcc for target <machine>, if installed -V <version> Run gcc version number <version>, if installed -v Display the programs invoked by the compiler -### Like -v but options quoted and commands not executed -E Preprocess only; do not compile, assemble or link -S Compile only; do not assemble or link -c Compile and assemble, but do not link -o <file> Place the output into <file> -x <language> Specify the language of the following input files Permissable languages include: c c++ assembler none 'none' means revert to the default behavior of guessing the language based on the file's extension Options starting with -g, -f, -m, -O, -W, or --param are automatically passed on to the various sub-processes invoked by gcc-3.2.2. In order to pass other options on to these processes the -W<letter> options must be used. For bug reporting instructions, please see: <URL:https://qa.mandrakesoft.com/>. [john@bob john]$ It is definately on the cd's gcc-3.2.2
  23. Excellent i must try that, thanks
  24. The badge flashes with the red light? Or is that mean't to happen
×
×
  • Create New...