Slashdot Mirror


User: LarsWestergren

LarsWestergren's activity in the archive.

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

Comments · 1,133

  1. Re:I'd Be Happy on Sun to Change Java License for Linux · · Score: 4, Informative
    There's no way to get OS-Specific permission settings on a File. For that reason if you try to archive some files in Java using an InputStream that takes Files, you'll lose the permissions settings on them and the files will restored with something both generic and useless like 644. They make a halfhearted attempt to address this in 1.5, but it's still useless.

    It would appear that the only way to get disk space left on the volume is to open a file and start writing 1 byte at a time until you get an IO Exception.


    These two are finally fixed in Mustang. I agree it has taken long though:

        Three new methods have been added to java.io.File class:

              getFreeSpace()
              getUsableSpace()
              getTotalSpace()
    [...]

      Changing File Attributes:

      In Mustang the java.io.File API provides access to the file attributes for changing its readability, ability to write and ability to make it executable. Check out the following methods for playing around with file attributes:

      Changing readability: owner-only, owner or everybody
      Making it writable or read-only: owner-only, owner or everybody
      Making it executable or not executable: owner-only, owner or everybody

  2. Re:RSF isn't always right on Reporters Without Borders Internet Annual Report · · Score: 1

    That was a very eloquent defence of evil.

    You say several times that you voted for the government you have. That is a lie. China is not a democracy, it is a one party state. And with that, the rest is just the same arguments dictators throughout the times have used.

    The Chinese government is not a "great evil" as some would have you believe. I, and others I know, feel that whatever is being done is more out of necessity and would like to at least point to things like our recent economic record and educational successes as some indication that the system works.

    Soviet Russia had some pretty impressive advances in science and education during Stalin too. That did not make the system right.

  3. Re:Yeah, it's rediculous on Bethesda Responds To Oblivion Re-Rating · · Score: 1

    ESRB is going to change the rating of Super Mario Brothers DS to "M" for mature.
    Just you watch.


    And rightly so! If only you knew what REALLY went on in those games. Tsk tsk.

  4. Re:Snobbery and RPGs on Kingdom Hearts II Sells A Million · · Score: 1

    In the one extreme, you have the japanimation crowd who've come from the manga/anime world and like to be a part of a story.

    I like to be a part of a story too. I like a few console RPGs because they have a strong story, but the "part of" is rather lacking.

    Take FF7, my first exposure to CRPGs for instance. Second time through the game, I tried treating Yuffie like dirt at every opportunity:
    Yuffie:"Oh, so you can't sleep either huh.... Thanks for helping me before. I have this feeling that you...care...for me?"
    Me: "What!? Hell no, what gave you that idea?"
    Yuffie: "Oh Cloud, you are such a joker, *tee hee*!"

    But even so they fall in love and become a couple towards the end.

    Also, after playing a few I recognized the plots and characters are just as sterotype as in western RPGs, or maybe even more so.

    I REALLY like games that manage to have a engaging story AND give you meaningful choices - Deus Ex, Planescape:Torment, KOTOR2...

  5. Re:Hot Mead? on ESRB Changes Oblivion's Rating to 'Mature' · · Score: 2, Funny

    Anyone up for labeling this scandal "Hot Mead"?

    Hot skooma! Just to confuse those who haven't played the game.

  6. Re:Answer is easy. on Americans Are Seriously Sick · · Score: 1

    Ok, I admit it wasn't my most cutting argument ever. Still, the quality of your national tv actually depends on which nation you belong to... and I do without any apology rate the truthfulness of Swedish TV a lot higher than that of American.

  7. Re:Answer is easy. on Americans Are Seriously Sick · · Score: 1

    I have never claimed that animals have the same rights as humans. I do object to them being needlessly tortured. You on the other hand seem to take a great pride in being callous though.

  8. Re:Answer is easy. on Americans Are Seriously Sick · · Score: 1

    Who cares about a bloody gag reflex? They are being pumped full with food to bursting point and can do nothing but lie down and breathe shallowly while their liver grows to gargantuan sizes. They didn't just look ill, they looked half dead. This is not "activist" pictures, it is documentary images I have seen on national TV.

  9. Re:Sweet tooth & work stress on Americans Are Seriously Sick · · Score: 1

    The Clear Skies act - help American industry produce cleaner air through the powerful filtering capacity of the human lung!

  10. Re:Answer is easy. on Americans Are Seriously Sick · · Score: 1

    I daresay you are wrong. :-)

    Not even all cooks know the details of how it is made. Animal rights activists in Stockholm went around to luxury resturants and showed the staff pictures of how fois gras is made. Many were shocked. Four out of six resturants agreed to remove this item from their menues. There are plenty of other fantastic tasting sensations to be had without torturing animals to death.

  11. Re:Bad idea on Will Sun Open Source Java? · · Score: 1

    Because open source languages such as php, perl, python, ruby and C# are eating into your market share every day. People have already abandoned java for most web applications and it never even got off the ground on the desktop.

    Pfft. A lot of people like to believe that, but I have yet to see any evidence.

    Lets see, in Sweden out of four major newspapers, three now use java:
    www.expressen.se
    www.aftonbladet.se
    www.dn.se

    My bank, the tax authorites, my railway company...

  12. Great news on Lego to Open Mindstorms NXT Firmware · · Score: 4, Informative

    I think I'm going to have to get one of these soon. I haven't seen any of these nifty Lego toys for adults in any shops in Sweden (for instance) but there are many shops in Europe you can order from online.

    If you are heading for Java One this year, there is this interesting seminar:

    BOF-0503: Java(TM) Technology in an Intelligent Swarm of Heterogeneous Lego Robots :This session reports on continuing work on developing Java(TM) technology for use in university-level robotics. It focuses on the issue of creating cost-effective and easily programmed intelligent robot swarms (n>10). Interesting swarms are composed of heterogeneous robots, but this quickly complicates programming. The presenters previously simplified the heterogeneous programming problem by using I/O tagging and reported on this at the 2005 JavaOneSM conference, in TS-1464. This presentation describes how they have successfully created a swarm of heterogeneous robots, based on Lego mechanical components, sharing a common code base, with a variety of non-Lego sensors.

  13. Re:What ? Eclipse has no issues with languages at on Will Sun Open Source Java? · · Score: 1

    Frankly, no. I have no idea who's to blame - the Sun packaging, the version of SCIM, something in Ubuntu, or (most probably) all and none; just an unfortunate interaction between pieces of software never designed to be used together.

    Ok, I'll take a look at it anyway, even if it is of no further interest to you for any project. I'm a bit of a japanofile, and I like both Linux and Java, so that looks like a fun thing to do on a rainy evening. :-)

  14. Re:What ? Eclipse has no issues with languages at on Will Sun Open Source Java? · · Score: 1

    Great for you; I never got it to work properly (Ubuntu and SCIM/Anthy). I first had to add fonts to some java-specific list to get it to show CJK at all. When I run the app with Swedish locale it refuses to let me input Japanese (it does not listen to the SCIM server).

    Janne, have you submitted a bug report for this? If you do, I'm willing to give it a try to get a bug fix submitted to java 1.6. No guarantees though, I'm only on the JCP so Sun might not even look at my suggested patch.

    Hälsningar,
    Lars

  15. Re:If they do, it will all depend upon the license on Will Sun Open Source Java? · · Score: 2, Insightful

    convention over configuration is, imo, a much more important advance in the art than object-orientation was.

    Convention over configuration is just another name for having sensible defaults, and nothing stops you from using that in Java. Indeed most Java frameworks have already added (or are working on) this.

  16. Re:This would help on Will Sun Open Source Java? · · Score: 1

    I have the impression that the last couple of months I see more people on Slashdot mentioning Common Lisp as a replacement for Java.

    Oh no, people on Slashdot are saying that!? But those guys are always right!

  17. Re:Someone once said... on Will Sun Open Source Java? · · Score: 1

    Someone once said...It'll be a cold day in hell before Sun releases the source code to any software that people actually use.

    Yes... it seems it was you. And you was modded 0 - flamebait, and the posts that pointed out that you were wrong got +5 informative.

    Let me give you one recent counterexample - dtrace. A REALLY cool tool, and Sun paid developers to port it to BSD, and they have said they welcome anyone porting it to Linux under GPL.

  18. Re:This would help on Will Sun Open Source Java? · · Score: 3, Informative

    2. JVM is fat fat fat, it uses way more RAM than is reasonable.

    1) You do know that tools such as top and ps report a lot more memory than is really used? This has been adressed in the upcoming Java 6, which will more accurately report the memory used, you will likely see a decrease of 25-55% reported memory use on Linux/Unix, and at least 11% of real memory used.
    2) You can use jvm startup parameters to limit memory usage and still get acceptable performance.

  19. Re:Third-Party JVM on Will Sun Open Source Java? · · Score: 5, Insightful

    The other main problem is Checked Exceptions, which force a programmer to write "try{" before the body of every method and "} catch (Exception e) {}"

    No, not EVERY method. Just methods that that can reasonably fail (for instance I/O related operations), and that doesn't "know" how to handle the problem themselves. This helps you create well defined APIs, which in my opinion is one major reason there are so many frameworks and open source projects for Java.

    Although relatively useless (if not harmful), these checked exceptions lead to a minimum of 122 extra CPU cycles per method invocation.

    Evidence of this? Besides, it has been said so many times, but appearently it has to be said again. Processing cycles keep getting cheaper. Programmer hours keep getting more expensive. Trading a few cycles for a feature that helps you create more stable and transparent code is sensible.

    catch (Exception e) {}

    That is just about the worst thing you can write. Ok, maybe catch(Throwable t) {} is worse. That the first editions of Bruce Eckels Thinking in Java books were littered with those is evidence he just doesn't get checked exceptions.

  20. Re:Turning Point for Intel? on Intel Admits To Falling Behind AMD · · Score: 3, Insightful

    Intel will have at least 5-6 months with the performance crown since AMD can't beat Conroe with their current K8 processors on s939 or AM2.

    This statement presumes that
    a) The Conroe will launch when promised.
    b) That it is a real launch with the product in stores, not just a paper launch.
    c) That the performance will be as great as promised.

    And all that remains to be seen, right?

  21. Re:Microsofts biggest blunder? on IE The Great Microsoft Blunder? · · Score: 1

    They were afraid the internet was going to do this again. And Netscape would be basically an OS on top of Windows. The problem was this: if everyone develops for Netscape, not for Windows, then Windows wouldn't matter (just like who makes your BIOS doesn't matter now).

    They did the same thing with Java of course, at a time when the applet and "run anywhere" was seen as a real threat. They could have introduced classes as an external jar as others did, but instead they deliberately tainted the core java interfaces and classes on Windows with MS specific functionality. Just like they did with HTML.

  22. Re:Wonder why? on The Time for Women in Games · · Score: 1

    Team leader: "So, today we are going to discuss why so few women are working in the industry, but first, lets hear some reactions on the latest artwork for our upcoming Tomb Raider game."
    Programmer A: "Good lord, what is wrong with Laura's breasts!? That's only triple D cups, max!"
    Team leader: "Ok, note to art team...'bigger breasts'. Check. Ok then, why no girls in the gaming industry?"
    Programmer A: (Scratches head)
    Programmer B: "No idea."
    Programmer C: "Perhaps they aren't any good at it?"

    I can't remember where I read this, so I can't link to it. Penny Arcade, PvP, Dork Tower, VG Cats...?

  23. Re:Advice on passwords on Spafford On Security Myths and Passwords · · Score: 1

    Advice my dear mother gave me a long time ago:
    Passwords are like toothbrushes; change them every three months and don't share them with your friends.


    That is great advice! Your mother works with security I take it?

  24. Re:A sexual revolution. Part 2 on Social Networking From Your Cell · · Score: 1

    the advent of rapid AIDS exposure will literally cripple (if not devastate) entire developed nations around the world.

    It already would have if that was the case. In the developed nations, HIV is currently a managable disease. Developing nations on the other hand....

  25. Re:This should be fun on Growing Censorship Concerns at Digg · · Score: 1

    I used to get mod points almost once a week, then I started exerting my Republican viewpoint on Slashdot and I havent seen mod points in over a year and a half.
    Coincidence? Or a bitchslap from above?


    Or maybe a lot of people with mod points disagree with you. I won't mod someone down just for being conservative or Republican, but I will mod down stuff I believe is false and contradicted by scientific evidence. If that happens to be the Republican party line, sorry.