Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
O

Oscar0

@Oscar0
About
Posts
12
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • We call ourselves geeks? We should be ashamed!
    O Oscar0

    Actually AB11CDE hex is 179,379,422 decimal, which is awfully long for a license plate number (so its good they used hex).

    The Lounge question

  • error: could not find or load main class
    O Oscar0

    Since your main declaration looks correct, it most likely the compile was not successful. Look in the directory where you are compiling. See if the file GraphExplore.class was created. You will get that message if it is not being created as a result of an error. As a further experiment, try misspelling the name when you run it, you will see that it is the exact same error.

    Java help java asp-net linux

  • Sutton's Zeroth Law
    O Oscar0

    Somehow I was thinking that Number of Programmers and Code Quality would be inversely proportional.

    The Weird and The Wonderful

  • So, how do you guys network within the IT industry?
    O Oscar0

    I agree with the user group suggestion. If you go on meetup.com and look for local meetups of interest. You might be surprised at what is available.

    The Lounge career question sysadmin help tutorial

  • trying to find the real import files
    O Oscar0

    The direct answer to your question is yes, there is a direct correspondence between the dotted package names and the directory hierarchy. So for example, "java.nio.Buffer" is found in the directory "java/nio" and the file the loader looks for (in that directory) is called: "Buffer.class". What directory? you ask. The answer is any and all directories in the classpath are candidates (that includes jar files). A jar file is nothing more than a zip file with a different file extension. So open "rt.jar" in Winzip (or whatever zip file viewer you have lying around. In there you will see all the standard Java library directories, like "javax/swing/tree", "java/awt/font" etc. (these would correspond to packages javax.swing.tree.*, java.awt.font.*). And in the directory "java/nio" you should find all the java.nio files. EDIT: by the way, rt.jar is found in the jre/lib directory. So in Windows that would be "/Program Files/Java/jre/lib" or "/Program Files/Java/jdk/jre/lib"

    Java question csharp java visual-studio tools

  • Understanding Java Integer
    O Oscar0

    Integer is not different than any other Java Object (with the previously noted exception that the jvm provides some help to avoid duplication in the smaller values). Perhaps one thing that makes it seem confusing is the auto-conversion between 'int' and Integer. I could see that appearing to be confusing at first. The main thing to remember is that if you want to do numeric comparisons like ==, <, > etc. just make sure you are doing them on 'ints' not Integers.

    Java question java collaboration tutorial

  • Please tell me not all programming jobs are like this.
    O Oscar0

    It sounds like most of the respondees are reading into your description, that the politics and the personalities are the issue. But reading your actual description you really are just saying that the task just doesn't seem to you like it's worth doing. So you are saying that you don't see the value of converting from one XML schema to another one. On the other hand you did just start there and have little background on the importance or usefulness of it. In addition, sometimes when you start out, as an intern, guess what: you get to do the boring stuff that others don't feel like doing. If you really are thinking about quitting the profession just because you are given a task that you feel is beneath you as an intern. Then by all means do so, because it seems you picked the wrong profession (but I doubt you will find the situation is much different in other fields). On the other hand if it is, as others were reading into your comments, that the actual problem is a caustic and unworkable environment and personalities, then it might make sense to move on. Although learning how to make things work in spite of the personalities involved is still something you would have to figure out at some point.

    The Lounge career xml

  • Runaway mind
    O Oscar0

    Could you repeat the question?

    The Lounge game-dev question csharp architecture help

  • Special Case
    O Oscar0

    Bug Alert. I think you meant perhaps: return (i == 0) ? 1 : ++i;

    The Weird and The Wonderful

  • Nesting level: 9001
    O Oscar0

    Then I would amend it to:

    size = 29;
    if(width > 11 || height > 4) size++;
    if(width > 13 || height > 5) size++;
    if(width > 15 || height > 6) size++;
    if(width > 18 || height > 7) size++;
    if(width > 19 || height > 8) size++;
    if(width > 21 || height > 10) size++;

    switch(size) {
    case 29: Spread(width, 15, 16, xpos, ypos); break;
    case 30: Spread(width, 13, 14, xpos, ypos); break;
    case 31: Spread(width, 11, 12, xpos, ypos); break;
    case 32: Spread(width, 9, 10, xpos, ypos); break;
    case 33: Spread(width, 9, 9, xpos, ypos); break;
    case 34: Spread(width, 8, 7, xpos, ypos); break;
    case 35:
    SpreadCompressed(width, width > 21, height > 10, xpos, ypos);
    size--; //back to 34 for you
    break;

    The Weird and The Wonderful

  • Nesting level: 9001
    O Oscar0

    How about something along the lines of:

    size = 29;
    if(width > 11 || height > 4) size++;
    if(width > 13 || height > 5) size++;
    if(width > 15 || height > 6) size++;
    if(width > 18 || height > 7) size++;
    if(width > 19 || height > 8) size++;
    if(width > 21 || height > 10) size++;

    switch(size) {
    case 29: Spread(width, 15, 16, xpos, ypos); break;
    case 30: Spread(width, 13, 14, xpos, ypos); break;
    case 31: Spread(width, 11, 12, xpos, ypos); break;
    case 32: Spread(width, 9, 10, xpos, ypos); break;
    case 33: Spread(width, 9, 9, xpos, ypos); break;
    case 34: Spread(width, 8, 7, xpos, ypos); break;
    case 35: SpreadCompressed(width, width > 21, height > 10, xpos, ypos); break;
    }

    The Weird and The Wonderful

  • java.lang.ClassNotFoundException
    O Oscar0

    Maybe try changing your jar filename to no spaces.

    Java java html game-dev sysadmin help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups