jcl

Linux Experts
  • Content Count

    1299
  • Joined

  • Last visited

Everything posted by jcl

  1. [Edit: Curiosity got the better of me.] Here. HTML doesn't have the structural elements needed to represent poetry (which this is, at least structurally), so this is quick and dirty, but it validates as XHTML 1.0 Strict. Sanity demands a poetry-oriented XML application for this kind of thing. soldier.html
  2. If the teacher grades on correctness, he's going to learn an important lesson about cheating
  3. Blue text on a black background is generally difficult to read. Indeed, blue text on any background is generally more difficult to read than other colors because of the details of human color vision. Blue and red in combination (including alternation) is difficult to read because the eye has to change focus when it moves between them (blue-on-red and vice versa can produce a sort of 3D effect -- I'm particularly sensitive to it for whatever reason and it really bothers me). Light text on dark backgrounds, and vice versa, with very high contrast can be difficult to read for people with visio
  4. Permissions shouldn't matter, root is omnipotent. # echo foo >foo # chmod 0000 foo # ls -l foo ---------- 1 root root 8 Oct 6 05:14 foo # echo bar >>foo # cat foo foo bar # rm foo
  5. Flash plugin, perhaps. The Flash and Java plugins have never been very well behaved on my machines.
  6. Last time I poked around there it looked like half the AOTS forum was stalkers.
  7. jcl

    Pc Games?

    No, it sounds like you figured it out. The Sims is the opposite of Spore. Spore is a simulation of life. The Sims is a simulation of not having a life.
  8. jcl

    Pc Games?

    There's always SimCity. And whatever the current incarnation of Capitalism is called. And the theme-park games that inexplicably became popular a few years ago. The entire simulation genre -- excluding wargames, racing and flying sims, and the Sims -- would be good, except that I think it's a bit thin these days. Spore could potentially be spectacular, but I don't know when it's shipping. It's evolution in game form, from unicellular life to interplanetary travel. It might have less strategy and more violence than you want, though. (It is, AFAIK, realistic violence. What you'd expect gi
  9. jcl

    Any Way...

    Sure. That's why the fstream classes (ifstream, ofstream, and iofstream) and most of <cstdio> exist. Even without those, you could use the platform I/O API or, on many platforms, redirect the standard I/O streams to files. But it's important to know exactly what you need the program to do. If all you need is a way to persist the information, you can overload operator<<() and operator>>() to (de)serialize the data without too much trouble. If you also need to be able to change the on-disk data (or even read it) or if it's fairly complex you would probably want a more struc
  10. Search is a bit odd. It seems to do a depth-first search under Documents and Settings and breadth-first, with no obvious ordering, everywhere else. But not quite. It almost makes sense. Could just be because of what I'm searching for, I guess. It doesn't surprise me that your script is faster. It would surprise me a bit if it was consistently faster.
  11. Or if you're used to autocomplete. Only takes 13 keystrokes for me to get from C:\ to the Desktop directory in this account: cd D<tab><tab>\K<tab>\D<tab><enter>
  12. The parameter - contains the option flags that are set in the shell. 'i' corresponds to the option '-i', which starts an interactive shell. A partial list of flags can be found in the documentation for the 'set' builtin in the bash manpage. ('himBH' = history enabled, interactive, monitor mode (nicer interactive job control), brace expansion, '!' history substitution.) I can't believe you had never used info It's the primary documentation for the GNU project; the half-assed manpages are secondary (at best) to the texinfo docs. It's one of the GNU project's more irritating quirks.
  13. RTFM $ info bash 'Bash Features' 'Interactive Shells' 'Is this Shell Interactive?'
  14. Tests whether $- contains 'i', indicating an interactive shell.
  15. The script above is fine in bashrc.
  16. Looks like it adds this script to /etc/profile.d/ #!/bin/sh # Print a fortune cookie for interactive shells: if [[ $- = *i* ]]; then echo fortune fortunes fortunes2 linuxcookie echo fi
  17. Only if you forbid asymmetrical resizing.
  18. If so, you aren't alone. What, Update? He's correct. He would also be correct if he said that the Bureau of Engraving and Printing was where the counterfeiters would like to go because everyone trusts the currency it produces. Doesn't mean you should exchange your dollars for yuan. (At least not yet. Give it a few years.)
  19. jcl

    Inscrutable

    The sign is scolding litterers on behalf of children.
  20. jcl

    Global Warming

    There is a possibility that we're on the brink of a small ice age, similar to the Little Ice Age ca. AD 1300 to 1800. The Abrupt Climate Change section of the Woods Hole Oceanographic Institude website has the details.
  21. jcl

    Global Warming

    There isn't any room for opinion here, is there? Climate change is obviously real and global warming is one example of climate change. AFAICT the only reason this is controversial is that some activists have managed to redefine 'global warming' to mean 'global warming resulting primarily from human activity that must be changed' for political reasons.
  22. Wired is a good source for incorrect predictions: they bought into every half-baked idea of the '90s. Their online archive seems to include the major articles from every issue of the magazine (back to March '93). I don't know if the little columns sprinkled around the magazine that contained most of the predictions are online, but there still should be some gems. The March '97 has a nice article about the death of the Web browser (and maybe the Web) at the hands of Push. (Does anyone remember Push?)
  23. Google Maps does indeed use ActiveX under IE. It's a quirk of the browser that I've heard will be corrected in IE7.
  24. It's certainly possible (it's all text after all) but I don't know how I'd do it off the top of my head. Maybe a table (boo!) with the current image in the top cell and an iframe (boo!) with the strip in the bottom cell.