Slashdot Mirror


User: owlstead

owlstead's activity in the archive.

Stories
0
Comments
3,436
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 3,436

  1. Re:What's so special about Vista? on Samsung's Hybrid Hard Drive Exposed · · Score: 1

    Price and storage capacity, although these are closely related. If the drive uses too many chips, it will be expensive to manufacture by default. But currently you would need many, many chips to get to the same level as a hard disk drive. This means that drives will have one component for media and one component for the drive. If these can be combined to save costs and confusion, all the better.

  2. Re:What does AJAX have to do with Java? on Thank God Java EE Is Not Like Ajax · · Score: 1

    Ok, I admit that readability of anonymous inner classes requires you to understand anonymous inner classes. The thing is of course that parameters and stuff like that are checked and that type safety is maintained in Java. Just for your enjoyment I've added a worked out example which compiles/runs on any Java JDK of 1.5 and higher. As you can see, this is not as hard to do as some organization would like you to think. It's hardly worth creating special syntax for anyway.

    Example follows:

    package nl.owlstead.delegate;

    import java.util.HashMap;
    import java.util.Map;

    interface Command {
            public String execute(String name);
    }

    public class User {
            private static String goodbye(String name) {
                    return "Good bye " + name + ", thanks for visiting.";
            }

            private static String hello(String name) {
                    return "Hello " + name + "!";
            }

            public static void main(String[] args) {
                    Map greetings = new HashMap(); // uses anonymous inner class that implements the Command interface
                    greetings.put("hello", new Command() {
                            public String execute(String name) {
                                    return hello(name);
                            }
                    });
                    greetings.put("goodbye", new Command() {
                            public String execute(String name) {
                                    return goodbye(name);
                            }
                    });
                    String name = "newt0311";
                    System.out.println(greetings.get("hello").execute( name));
                    System.out.println(greetings.get("goodbye").execut e(name));
            }
    }

  3. Re:Religion aside... on Thank God Java EE Is Not Like Ajax · · Score: 1

    Yeah, that's why every conference about Java EE (and most Java conferences mostly are all about Java EE unfortunately) always breaks into a complete cat-fight because of all the frameworks.

    The Java community is pretty millitant against adding features, that's true. The reason behind that is that it quickly becomes very complicated to read and manage all those different concepts. If the Java community wasn't, with the popularity of the language, it would now be D+++.

    Every time that some developer gets modded up for requesting things like continuations to Java, I wince. A concept like that goes against everything Java stands for, and then some. We think inside the "sandbox" because it's the one thing that makes Java great. Even though I sometimes wish we had feature X as well when doing the actual work.

  4. Re:The point being made is ... on Thank God Java EE Is Not Like Ajax · · Score: 1

    "It's my guess that functionality from Spring will be eventually refined into a series of JCPs. Sometimes it's better that standards develop in this way."

    Yes, indeed. That last sentence was important. I see a lot of new developments in Java, but most of the time the first implementations and API's are pretty lacklustre. What the JCP is really good at is to get the core ideas, take some time to think them over, and get the gist of them into the language. Sometimes the old implementation is adopted into the langauge in it's entirity (e.g. Apache XML), but behind a sane interface. The original Apache XML API is a horrible cludge with static calls etc., while the XML API of Java is a much cleaner API. The JPCSC API (a smartcard reader library) is too horrible to look at, but the javax.smartcardio.* API is - although yet pretty unusable - clearly made with Java calls in mind.

    I think this way of adopting technologies is a very sane way of extending the Java runtime, instead of just ramming in any "rebel" technology at the time it is developed.

  5. Re:What does AJAX have to do with Java? on Thank God Java EE Is Not Like Ajax · · Score: 1

    No, this doesn't compile, you should use put, use more ';', use as generic type for the Hashtable etc. I'm not on my development machine and I hope that the general idea is made clear (remembering all the previous comments that I got for posting some example Java code).

    Otherwise I have answer tomorrow, and the moron that says that it doesn't compile gets the modpoints, in a typical /. way of being a wise-guy.

  6. Re:What does AJAX have to do with Java? on Thank God Java EE Is Not Like Ajax · · Score: 1

    Yes, and the fact that you had to explain that ap_set_name_virtual_host was a function says it all. Java is about readability and maintainability. This has the effect that you will have to write things out. This is not such a big problem if you remember that programming only takes about 20% in a product life-cycle, and that maintainance may even be a larger part of the pie.

    Anyway, apart from refection (which I tend to avoid), you could do this simply using a large if-statement I suppose. You could also create a set of small command methods and put them into a hash tablen (using inner classes and an interface):

    interface Command { callBack(params) };
    HashTable ht = new Hashtable();
    ht.add( "NameVirtualHost", new Command() { callBack(params) { setVirtualNameHost(params); } }); ...
    ht.get(commandString).callBack(params);

    That wasn't too hard now, was it?

  7. Re:Time to refine operating systems... on Intel Core 2 Extreme QX6700 Quad-Core Benchmarks · · Score: 1

    If you don't use threads you won't get additional speed. If you would be able to automatically run a single thread on multiple cores at the same time, please give me a call. And even if an application does use multiple threads, it's easy to mess things up (try any multi-threading resource out there and see how easy *that* is).

  8. Re:This is no different... on Judge Refuses To Convict Hacker · · Score: 1

    A termite-analogy for an IT issue? What are you thinking? You should really try keep to car analogies if possible. The guy walks along rows of cars to see if they are locked, and mentions it to the owners if they are not. See? Fixed that.

  9. Re:I like that on Judge Refuses To Convict Hacker · · Score: 1

    Exactly. Just performing your yearly security audit is not going to cut it. Sometimes you must take someone that thinks sideways and let him/her have a crack at it. What if someone had used this later on for bad purposes? What is going to happen if these guys feel let down by the system and get creative after breaking in? I mean, it seems that the chances of getting sued are actually smaller if you do something really illegal with the security flaws discovered (because the reserve never may have found out). If every whistle-blower is going to be taken into court, I don't think the world will be a better place.

  10. Re:Passport Cases Now Become Important on RFID-Reading Passport Scanners Installed · · Score: 1

    Where on the data page would you place a 64KB bar-code? This thing is used to store (biometric) data, not just a number. Barcodes are easy to fake as well. If the chip uses Active Authentication, it will be pretty hard to fake the chip. Besides that, 14443 communication is well understood and widely used. If it is well protected, there is little against it.

  11. Re:Memory != reality on Your Life On a Hard Drive · · Score: 1

    Yes, but fortunately I really did not kill that man. Does anyone here have any soap? I need to clean my hands. They seem dirty.

  12. Re:holy not cost effective, batman! on Munich Finally Starts to Embrace Linux · · Score: 1

    This is slashdot. It's not Administrating Linux for Dummies. And if you would want to ask questions, it's normal to start with "maybe someone can explain..." because at the moment it looks like you are attacking the package update system instead, even /if/ you use question marks.

  13. Intel vs AMD Prices on Core 2-Compatible Chipsets Compared · · Score: 2, Informative

    Here in the Netherlands, if you want to buy a processor for a DOY project, AMD is always cheaper, even if Intel says it's got AMD beaten. I can buy an X2 starting at 150,-, while the Intel already is at 220 minimum. That's 70 euro's that I'd rather spend in the bar or at a restaurant or three. Ok, it's much faster then the 3800 I got now, but I've still got a plenty fast dual core. It will probably beat any non-Intel Core 2 Duo out there. And it's a bit like David against Goliath as well. Intel isn't going away, so to have a healthy marketplace, we need AMD.

  14. Re:Safe? on Intel Announces Lasers On a Chip · · Score: 1

    Depends, it would probably be strong enough to roast an amoeba. So if you're one, I would be scared, very scared.

  15. Re:RIP lilo on Rob Levin, lilo of FreeNode, Passes · · Score: 2, Insightful

    Well, I cannot stand persons that nitpick on statements of regret that somebody died. Especially if they were not direct friends. How about that?

  16. Re:Oh, casinos will know on Cheating At Roulette May Be Legal In UK · · Score: 1

    Uh, I read the book. They did find out about them. After many of them got rich, had the time of their life and found girlfriends (are you reading this slashdot?). What they did to them? They did not allow them anymore into the casino's and changed some of the dealing rules. Nasty. That put me off of doing anything like *that* for sure.

  17. Never mind the WM... on FVWM-Crystal 3.0.4: Speed and Transparency · · Score: 1

    Where can I download those background images?

  18. Re:Real Damage on Code Posted For New IE Exploit · · Score: 1

    "All this whimy-ass 'botnet' garbage needs to end. We need something that totally kills windows when you get infected. Get the people pissed off enough to force microsoft into doing something."

    Stop nagging and start typing.

  19. Re:Always made me wonder... on CryptoDox: Encyclopedia on Cryptography & Info · · Score: 1

    Glad you could think of a coherent answer to that, because I certainly couldn't. If you were able to answer it, you'll probably also know what the guestion consisted of. Could you please post it here? I think it would be very interesting (or at least funny) for the original poster to comment on that as well.

  20. Re:So what the difference between... on Plastic Batteries Coming Soon? · · Score: 1

    Don't know about the difference, but a similarity is that they can blow up, so it makes little difference.

  21. Re:Five to ten years... on Plastic Batteries Coming Soon? · · Score: 1

    And yet the Greenpeace car that has such a milage that even hybrids cannot outperform it sits in storage for 8 years now. The automotive industry: "yes, but people want comfort as well". Dunno, but for a car that uses half the gas needed for a normal car, I and a lot of other people are quite willing to sacrifice a bit of comfort and/or features. Especially in Europe where gas is very expensive.

    http://archive.greenpeace.org/climate/smile/tech/t able.html

  22. Re:Song-sharing? on Microsoft Launches the Zune · · Score: 1

    What, and then there is a .exe or similar left on the downloads folder on the Windows PC? This folder will probably be protected against execution by MS as well. And media normally doesn't execute virusses. That said, this is coming from a company that practically introduced the text file virus, the media virus, the ASN.1 virus, the email virus and the .exe virus.

  23. Re:Personally... on Mastering Regular Expressions · · Score: 2, Insightful

    Note that I immediately found erros on the Java section of this site. E.g., according to the site, the default Java regexp support does not include searching for case insensitive strings, which it does. Beware.

  24. Re:Give in to our nuclear overlords. on New Generation of Hydrogen Fuel Cells Powers Up · · Score: 1

    "The waste is manageable."

    > fortune
    How many nuclear engineers does it take to change a light bulb ?

    Seven: One to install the new bulb, and six to determine what to do
                    with the old one for the next 10,000 years.

    As long as the problem isn't solved the waste is NOT managable. We know how to split the nucleat atom for decades now, and we have decades of nuclear storage problems as well, first dumping it in the ocean, and - as I understand - now there are ideas to store nuclear waste it old "ground zero" locations. Which are unstable. Current nuclear reactors (and especially old but still running nuclear reactors) are not the answer.

  25. Re:Screwed up comparison on Intel Core 2 Duo Vs. AMD AM2 · · Score: 1

    This is slashdot, most of us would do *murder* for a nice dinner for two with a good bottle of wine, you moron.