jcl

Linux Experts
  • Content Count

    1299
  • Joined

  • Last visited

Everything posted by jcl

  1. 7 case-sensitive alphanumeric characters ~= 42 bits. 12 numeric characters ~= 40 bits.
  2. I don't think so. The card is listed as a PCI card on the manufacturer's site, but I don't see any drivers or manuals. Oddly, they have drivers for AGP HD 2400s, but no such cards appear in their catalog. Might be an omen.
  3. The Audigy driver is on the "borken in SP1" list. It's possible that the EAX issue was the only apparent problem.
  4. It's third-party drivers that are fault, isn't it? It's been known for at least a couple months that SP1 includes a kernel update (to synchronize with Server 2008) and that often means drivers need to be updated. It's not Microsoft's fault that other companies suck.
  5. jcl

    External Hdd

    I get a similar error every time I connect a particular HDD. I gave up on it. I don't think I've ever seen ntfs-3g successfully mount a partition.
  6. No kidding. People already break out the pitchforks and torches every time Google tweaks PageRank. If there was even a hint that they were manipulating the results for nefarious purposes....
  7. It shouldn't be needed at all: it's a workaround for broken programs. That said, the programs will still be broken in Vista, so, shoulds aside, if you need it under XP, you probably need it under Vista. You might be able to work around any problems by disabling CPU power management and using processor affinity to keep every thread in the borken processes on the same core. Prefetcher?
  8. Installing Windows will clobber the GRUB MBR if it's on the same drive. Keep a recovery disc handy and maybe jot down the contents of your /boot/grub/menu.lst.
  9. The outline in your first post has the answer: test each input against the current min and max and update them if needed. The only tricky bit is picking the initial values for min and max.
  10. You need to provide an initial value to xCounter a la sum and mean. (Local variables must be explicitly given a value before they can be used.)
  11. Your approach is correct but your syntax is a bit off. If that's what's giving you trouble... I'll have to think for a minute. Syntax is a pain until you internalize it. You have my sympathy screen-wise. Incidentally, bookmark or download the JDK documentation if you haven't done so yet. The API docs are worth their weight in gold. Take a look at the entry for java.util.Scanner, for example.
  12. The client ports are randomly selected. As long as you use passive mode it shouldn't matter. (The clients should use passive mode by default or fall back to it if active mode fails.)
  13. AFAIK that's correct. There's an option in the device properties, I guess. I haven't seen it in person.
  14. The script can be changed to whatever you need. The month and day version above uses "files/photo/<month>/<day>.jpg" where <month> and <day> are integers in the ranges [1,12] and [1,31], resp. The day of the year version uses "files/photo/<day>.jpg" where <day> is an integer in the range [0,365]. If you use either script, you might want to fix the inconsistent pluralization of "files" and "photo". I don't know why I did that.
  15. Month and day version: <?php function photoOfTheDay($month, $day) { return 'files/photo/' . strval($month) . '/' . strval($day) . '.jpg'; } $date = getdate(); $photo = photoOfTheDay($date[month], $date[mday]); ?> <center> <img src="<?php echo $photo ?>"> </center> Day of the year version: <?php function photoOfTheDay($day) { return 'files/photo/' . strval($day) . '.jpg'; } $date = getdate(); $photo = photoOfTheDay($date[yday]); ?> <center> <img src="<?php echo $photo ?>"> </center>
  16. Yeah, they went back to cached writes. Now people will complain that Vista is slow after they copy large files and blow away the file cache
  17. Speaking of copying, I've been wondering how the Windows community reacted to the explanation of Vista's file copy performance. (Spoiler: XP's file copy is "snappy and responsive" because it doesn't commit the data to disk before dismissing the dialog.)
  18. The code for the day-of-the-year version would identical to the code post except that the range of the $n parameter would be [0,365] instead of [1,31]. The code for the day-of-the-month would be something like function photoOfTheDay($month, $day) { return 'files/photo/' . strval($month) . '/' . strval($day) . '.jpg'; } photoOfTheDay(3, 15) would yield "files/photo/3/15.jpg". The range checks would be complicated... ...however, the range checks above don't work, anyway: you get broken links on valid dates if the files don't exist. The script could check for the files, but it might be easier
  19. Run "cmd" from the Run window. You should get a terminal window with the command line shell. It's not DOS but it's similar. One potential problem is that the shell might not be able to find the java executable; in that case you'll have to figure out where Java is installed, locate the 'java' utility, and run it from there. (Another potential problem is that you might not have the java utility. I'm not sure what the best solution to that problem would be.) Every .jar is potentially executable. You might be able to guess from their names which ones are most likely to contain the main parts of t
  20. Debian. Stable (Etch) if possible, Testing (Lenny) if not. You can start with stable and upgrade to testing if need be.
  21. The ones that java can execute A JAR is a ZIP archive that contains a bit of metadata about its contents. AFAIK you have to examine the metadata to tell if a jar is executable. Easier to point java at them and see what it thinks. Try java -jar <file> on the command line. Not sure if the java utility will be in your standard path. .tar.gz and .tar.bz2 are themselves platform-neutral. They're much more common on 'nix than Windows, though. (.tar = tar archive, .gz = gzip compressed file, .bz2 = bzip2 compressed file.)
  22. The array is unnecessary. $totalPics = 30; function photoOfTheDay($n) { global $totalPics; $n = $n > $totalPics ? rand(1, $totalPics) : $n; return 'files/photo' . strval($n) . '.jpg'; } You could span several months by having separate directories for each month, passing the month number into the function, and returning "files/photo/$month/$day.jpg". Or one directory with "photo$month$day.jpg". Or by using the day of the year (date('z')). Or by using "$month * 31 + $day;". Or....