Slashdot Mirror


User: tcopeland

tcopeland's activity in the archive.

Stories
0
Comments
1,760
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,760

  1. Re:My guess on The Definitive Guide to MySQL, 2nd Ed. · · Score: 1
    > now that PHP uses SQLite

    FWIW, there's also a nice SQLite binding for Ruby:
    require 'sqlite'
    db = SQLite::Database.new( "test.db" )
    rows = db.execute( "select * from test" )
    Good stuff!
  2. Re:Incidentally, if you're compiling FireFox 1.0.. on FireFox Sets the World Ablaze · · Score: 1

    Interesting, and thanks! FWIW, I've got a fresh Fedora Core 3 install and it has freetype 2.1.9 installed...

  3. Re:Incidentally, if you're compiling FireFox 1.0.. on FireFox Sets the World Ablaze · · Score: 1

    Why in the world would the parent post be modded "troll"?

    Jeepers... if that info hadn't been passed on to me from a helpful fellow on #mozilla, I'd probably still be struggling with it... I figured it might help someone else.

  4. Incidentally, if you're compiling FireFox 1.0... on FireFox Sets the World Ablaze · · Score: 2, Informative

    ...put "ac_add_options --disable-freetype2" in your .mozconfig. Otherwise you'll get errors in grx/src/freetype.

  5. BioForge sounds like a candidate for GForge... on Open Source Biology Initiative · · Score: 2, Informative

    ...lots of those out there already; more on GForge here.

    Splitting up the project load makes sense to me; that way one site - SourceForge - doesn't have to bear the full load. Also, it lets folks do custom things to make their site more useful - like Graal.

  6. A bazaar Java may be... on Linux 'Awfully Cathedral-Like' - Java's a Bazaar · · Score: 1

    ...but JDK 1.4 certainly had a lot of duplicate code.

  7. Brad Cox spoke at RubyConf 2004... on The State of Natural Language Programming · · Score: 1

    ...a torrent of all the presentations is here.

    Anyway, he had some interesting things to say about micropayments; a summary of his talk is at the bottom of the page in Jim Weirich's blog here.

  8. Re:Eric Rescorla has written a fine book... on Intro to Encryption · · Score: 1

    I should add that the book was published in 2001, so it's not exactly cutting edge. But most of the info still applies...

  9. Eric Rescorla has written a fine book... on Intro to Encryption · · Score: 4, Interesting

    ...SSL and TLS, which includes an introductory that has a nice overview of encryption concepts and techniques.

    The explanation of stream vs block ciphers is especially good, with nice examples showing how each technique works.

  10. There was just a posting on the PostgreSQL... on CA Executive Outlines Open Source Plans For Ingres · · Score: 2, Interesting

    ...advocacy list about Oxford switching from Ingres-based apps to PostgreSQL - right here.

    UTILITY PLUG: Here's an open source PostgreSQL query analyzer

  11. Re:Being able to decompile code.... on Decompiling Java · · Score: 1

    Hm. Yup, that makes sense. Thanks much!

    Tom

  12. Re:Being able to decompile code.... on Decompiling Java · · Score: 1
    > remove the enclosed code.

    Hm. It's odd that we see this:
    [tom@hal tmp]$ cat Test.java && javac Test.java
    class Test {
    void foo() {
    final int x = 3;
    if (false) {
    x = 2;
    }
    }
    }
    Test.java:5: cannot assign a value to final variable x
    x = 2;
    ^
    1 error
    [tom@hal tmp]$
    If the code in the "if" body is going to be dropped, why complain about the assignment?
  13. Re:Being able to decompile code.... on Decompiling Java · · Score: 1
    > JLS requires [...] constant propagation

    Hm. I knew that the JLS required that in some circumstances - i.e., so that a switch statement can switch on a static final. What's the actual requirement, though? For example:
    int x = 2;
    int y = 4 * x; // can be int y = 4 * 2;
    int z = f(x, y);
    Is a conforming compiler also required to make that transformation?
  14. Re:Being able to decompile code.... on Decompiling Java · · Score: 1
    > the two should be equivalent on a
    > machine level.

    Yup, for assembler, that makes sense. But for Java bytecode, the explicit comparison is resulting in this:
    10: iconst_1
    11: if_icmpne 14
    vs
    10: ifeq 13
    So there's a least one extra instruction in there. Of course, again, what the JIT compiler might do with this is something else entirely.
  15. Re:Which is really surprising to me on Decompiling Java · · Score: 1
    > to produce identical simplified bytecode.

    Yeah. Another result - this code results in the "if" statement body being optimized away:
    class Test {
    void foo() {
    if (false) {
    System.out.println("boo!");
    }
    }
    }
    but this doesn't:
    class Test {
    void foo() {
    boolean b = false;
    if (b) {
    System.out.println("boo!");
    }
    }
    }
    But who knows - the JIT compiler may discard those bytecodes at runtime. Hard to say...
  16. Re:Being able to decompile code.... on Decompiling Java · · Score: 2, Informative
    > Is there a good reason why it doesn't?

    The Java compiler does some optimization - for example, when given this code:
    class Test {
    int x = 2 + 2;
    }
    it does algebraic simplification to reduce that assignment to an aload followed by a iconst_4 instruction. And it does some constant propagation so that this:
    class Test {
    private static final int X = 2;
    int y = X + X;
    }
    also gets simplified to the aload/const sequence. I guess it's just some choices the compile designers made on which things were more feasible to attack.
  17. Being able to decompile code.... on Decompiling Java · · Score: 5, Interesting
    ...can be handy when trying to figure out the advantage of one coding idiom over another. On the PMD project (a Java static analysis tool) there was a discussion yesterday about code like this:
    if(logger.isLoggable(Level.FINEST) == true){
    // etc
    }
    which can be changed to
    if(logger.isLoggable(Level.FINEST)){
    // etc
    }
    to make it read (to me, anyway) a bit clearer.

    Anyhow, decompiling the classfile with "javap -c" shows that a couple of instructions get eliminated by dropping the explicit comparison to "true". So the classfile gets smaller, it loads faster, and (unless the JIT compiler is smart enough to do constant propagation on that conditional) it'll run faster, too.
  18. Adobe has been moving towards open source... on Adobe Forming a Linux Strategy? · · Score: 2, Informative

    ...for a while - witness their use of Tomcat and MySQL in GoLive as far back as 2002.

  19. The Linux Mirror Project... on SuSE Linux 9.2 Professional Released · · Score: 4, Informative

    ...is hosting BitTorrents of the SuSE 9.2 LiveCDs here. 1.3 TB transferred on the DVD so far!

  20. Re:It's just a web-site on Caller ID Spoofing for the Masses · · Score: 2, Informative
    Running an outdated version of Apache 2.0, too:
    [tom@hal tom]$ curl -sI http://www.camophone.com/ | grep Serv
    Server: Apache/2.0.48 (Fedora)
    [tom@hal tom]$
  21. OPEN SOURCE PLUG: Check your MySQL DB queries... on MySQL AB Calls v4.1.7 Production Ready · · Score: 1

    ...and figure out which ones are being run most frequently with PQA. Works with PostgreSQL, too!

  22. This sounds like the DARPA project... on Government Linux Gaming Supercomputer · · Score: 4, Informative

    ...Cougaar.

    There are a bunch of distributed agents scattered around lots of machines; some use more resources than others, and the system moves them from machine to machine in response to high loads. Nifty stuff, and open source - BSD licensed!

  23. Re:Check your SQL.... on High Performance MySQL · · Score: 4, Informative

    > People can write some scary code and then
    > just blame it on the engine.

    Yup. There's a really good article by Stephane Faroult on OnLamp about writing better SQL... it's right here.

    After reading that article, I went through some code I'd written and found some places where I was using DISTINCT incorrectly in exactly the way he described.

  24. Check your SQL.... on High Performance MySQL · · Score: 4, Informative

    ...before blaming MySQL! Ha ha!

    Er, anyhow, as an apology, here's an open source SQL analyzer.

  25. Re:About the Ruby Gems chapter... on Programming Ruby: The Pragmatic Programmers' Guide · · Score: 1

    > After reading that, I think Ruby has a
    > long way to go in terms of security.

    FWIW, Chad doesn't maintain the Ruby core - he was writing a chapter of the book. So his laptop getting stolen was a major hassle for him, but it didn't endanger the Ruby CVS repository.