jcl

Linux Experts
  • Content Count

    1299
  • Joined

  • Last visited

Everything posted by jcl

  1. At least the victims would probably know who made the copies. That'd be great. If they ask you to change their hardware make them reactivate the certificate afterwards. And then refuse to reactivate it for some damn reason. Speaking of which, you could use any frobs you have lying around as certs and authenticate the serial numbers. Anything with a(n immutable) GUID built in -- Ethernet cards, Pentium IIIs, whatever -- would be perfect. You'd still have to deal with theft though.
  2. There must be a way to sign them with GPG. The incredible complexity would be half the fun.
  3. The installer compiles some of the Framework assemblies to native code. That could easily take half an hour. Seems right. Mono is 517 files on my system and it's not a full implementation of .NET. Temporary entries?
  4. There isn't an installer. The manual install is dead simple though: copy/symlink the .so into the right place and you're done. Firefox and Mozilla look in ~/.mozilla/plugins/, Opera can be pointed wherever you want by editing ~/.opera/pluginpath.ini, Konqueror... I can't remember.
  5. Not quite the same. x = x + 1 increments x and returns the new value, whereas x++ increments x and returns the previous value. Looks like but I'm not sure it's correct. Seem like the angle θ should be normalized to 0 <= θ < 2π rather than 0 < θ <= 2π.
  6. shanenin is correct. Those are compound assignment operators. x op= y is equivalent to x = x op y (except that x is evaluated once instead twice).
  7. jcl

    Java Classes

    The .classes should be in a directory hierarchy the follows the package hierarchy (e.g. package foo.bar in foo/bar/). Add the root of the directory hierarchy to your classpath and import the classes as you normally would (e.g. import foo.bar.*). You don't need the source files unless you're modifying the code.
  8. jcl

    Enum C#

    Something like int n = (int)Enum.parse(typeof(lookup), mystring); ?
  9. The trademark itself is fine. The problem is Mozilla's trademark licensing policy. Apparently it's evil. As for the new name, I vote for "Iceweasel".
  10. Ubuntu, SLAX, and Source Mage.
  11. You might also look at lxml. It's worked well for me in the past. (Site might be down ATM.)
  12. Floating an inline element transforms it into a block element.
  13. width doesn't apply to inline elements. I don't have any suggestions but I'll think about it.
  14. jcl

    New Breakthrough!

    "Do not look into laser with remaining eye"
  15. ul { float: left; list-style-type: none; margin-left: 0; padding-left: 0; } Incidentally, I highly recommend using the Firefox/Mozilla DOM Inspector. The 'computed style' display is great for tracking down issues like this. If you inspect your example you should see that Firefox sets padding-left: 40px for ul by default. (It doesn't touch the margin but margin-left: 40px is used in the W3C sample CSS for HTML. Better safe than sorry.)
  16. jcl

    Comments

    But they said "Don't bother searching the web, Linux gets it for you"!
  17. jcl

    New Breakthrough!

    It's still in the R&D stage. We might get a spiffy optical system bus in the next decade but I'm not holding my breath. Backward compatibility and all. Heck, Intel still hasn't managed to get CSI out the door. Photonic CPUs are a pipe-dream. The "photonic processor" Intel and UCSB are working on uses the photonic components for I/O and standard CMOS logic for computation; the lasers give you tremendous I/O throughput (and, perhaps more importantly, cut costs) but don't affect processing throughput except insofar as it's I/O-bound.
  18. jcl

    New Breakthrough!

    Optical CPUs are one of my favorite perpetual CPU Technologies of the Future. Very futurey without being too weird. Someone needs to propose distributed massively-parallel ternary spintronic gallium arsenide quantum processors with high-level language support.
  19. IIRC Windows searches for DLLs in the directory containing the program. Try tossing DAO350.DLL in with VB.EXE and see what happens.
  20. jcl

    Comments?

    I read it several times and microfisked it and I still don't know what his overall point is. Almost every claim in the article is wrong[0] but even ignoring that none of them support his assertion that Linux would have to sacrifice its essential nature to succeeded in the desktop market. The phone analogy actually brought to mind the success of Linux in the mobile phone market despite operating as a black box product for non-technical consumers. [0] All operating systems are designed by "technology enthusiasts", black box phones are the norm and the 'enthusiasts' don't seem to care, Linux isn'
  21. What are you trying to do? If you just want a collection of strings, you can dump the strings in a list and be done with it. [Edit: That sounded impolite. What I meant was that if you need a collection of strings there's no need to complexify the program by introducing extra objects.] $ cat s.cs using System; using System.Collections; public class Foo { public static void Main(string[] args) { IList l = new ArrayList(); l.Add("foo"); l.Add("bar"); Console.WriteLine("{0}{1}", l[0], l[1]); } } $ mcs s.cs $ ./s.exe foobar If you're using .NET 2.0 you can save yourself a lot of needles
  22. Wishful thinking. There a fair number of browsers that can't support CSS for one reason or another and not a few people using older browsers that don't. Heck, CSS1 is ten years old and it still isn't fully implemented by every major browser. That said, I don't think it's worth worrying those browsers. People using lynx don't expect to see nice formatting, people using screen readers probably aren't going to benefit from tables, and people using NS4 don't deserve nice sites. If you really want to support every client you have to go to client-specific content: serve XHTML+CSS to Firefox, HTML4+C