Graph Incrementing Need help

HELP!!!! I have a graph that I am using, and I am running into problems getting it to increment correctly. I want each major increment to be in steps of 5 no matter how large the scale is. I used property nodes to do this but when the scale gets so large it automatically changes my set increment of 5 to 10 or 20 or something larger. If I resize the graph it goes back to 5, but I cannot resize because it goes off the monitor. HELP!! I have attached the graph with a simple property node setting the increment to 5 with a max of 500 and min of 0
Attachments:
graphincerment.vi ‏18 KB

Perhaps one of the NI people will enlighten us about the internal behavior of graph scaling. I seem to recall a discussion of similar nature several years ago. If I recall correctly there were limits to what could be done with scales so that they would display.
Plotting more than a few hundred points results in a graph so cluttered that the user cannot sort it out anyway and you end up with multiple points per pixel on the screen. Can you achieve what you want by selecting a region of interest and expanding it, perhaps in a separate graph? Then you could control the size of the selection and the display parameters while allowing the main display to autoscale to defaults.
Lynn

Similar Messages

  • Breadth-first traversal on a graph.. need help

    I need to make a graph, then run a breadth-first traversal on it. Do I simply make an undirected graph first, then implement the traversal?
    the graph should be like this:
    A - D - G
    B - E - H
    C - F - I
    Message was edited by:
    LuckY07
    Message was edited by:
    LuckY07
    null

    I just would like to print something to the screen showing it ran, such as the letters. What would be an easy way to do this using the DirectedGraph implementation? tks.
    here is my code:
    import ADTPackage.*;     //packages needed to make graph.
    import GraphPackage.*;
    public class graphTraversal
         public static void main(String[] args)
              GraphInterface<String> graph = new DirectedGraph<String>();     //creates graph.
              //adds vertices.
              graph.addVertex("A");
              graph.addVertex("B");
              graph.addVertex("C");
              graph.addVertex("D");
              graph.addVertex("E");
              graph.addVertex("F");
              graph.addVertex("G");
              graph.addVertex("H");
              graph.addVertex("I");
              //adds edges.
              graph.addEdge("A", "B");
              graph.addEdge("A", "D");
              graph.addEdge("A", "E");
              graph.addEdge("D", "G");
              graph.addEdge("D", "G");
              graph.addEdge("G", "H");
              graph.addEdge("H", "I");
              graph.addEdge("I", "F");
              graph.addEdge("F", "C");
              graph.addEdge("C", "B");
              graph.addEdge("B", "E");
              graph.addEdge("E", "H");
              graph.addEdge("E", "F");
              graph.addEdge("F", "H");
              System.out.println("total number of vertices: " + graph.getNumberOfVertices());
              System.out.println("total number of edges: " + graph.getNumberOfEdges());
              graph.getBreadthFirstTraversal("A");
         }     //end main.
    }

  • Need help to draw a graph from the output I get with my program please

    Hi all,
    I please need help with this program, I need to display the amount of money over the years (which the user has to enter via the textfields supplied)
    on a graph, I'm not sure what to do further with my program, but I have created a test with a System.out.println() method just to see if I get the correct output and it looks fine.
    My question is, how do I get the input that was entered by the user (the initial deposit amount as well as the number of years) and using these to draw up the graph? (I used a button for the user to click after he/she has entered both the deposit and year values to draw the graph but I don't know how to get this to work?)
    Please help me.
    The output that I got looked liked this: (just for a test!) - basically this kind of output must be shown on the graph...
    The initial deposit made was: 200.0
    After year: 1        Amount is:  210.00
    After year: 2        Amount is:  220.50
    After year: 3        Amount is:  231.53
    After year: 4        Amount is:  243.10
    After year: 5        Amount is:  255.26
    After year: 6        Amount is:  268.02
    After year: 7        Amount is:  281.42
    After year: 8        Amount is:  295.49
    After year: 9        Amount is:  310.27
    After year: 10        Amount is:  325.78
    After year: 11        Amount is:  342.07
    After year: 12        Amount is:  359.17
    After year: 13        Amount is:  377.13
    After year: 14        Amount is:  395.99
    After year: 15        Amount is:  415.79
    After year: 16        Amount is:  436.57
    After year: 17        Amount is:  458.40And here is my code that Iv'e done so far:
    import javax.swing.*;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.lang.Math;
    import java.text.DecimalFormat;
    public class CompoundInterestProgram extends JFrame implements ActionListener {
        JLabel amountLabel = new JLabel("Please enter the initial deposit amount:");
        JTextField amountText = new JTextField(5);
        JLabel yearsLabel = new JLabel("Please enter the numbers of years:");
        JTextField yearstext = new JTextField(5);
        JButton drawButton = new JButton("Draw Graph");
        public CompoundInterestProgram() {
            super("Compound Interest Program");
            setSize(500, 500);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            amountText.addActionListener(this);
            yearstext.addActionListener(this);
            JPanel panel = new JPanel();
            panel.setBackground(Color.white);
            panel.add(amountLabel);
            amountLabel.setToolTipText("Range of deposit must be 20 - 200!");
            panel.add(amountText);
            panel.add(yearsLabel);
            yearsLabel.setToolTipText("Range of years must be 1 - 25!");
            panel.add(yearstext);
            panel.add(drawButton);
            add(panel);
            setVisible(true);
            public static void main(String[] args) {
                 DecimalFormat dec2 = new DecimalFormat( "0.00" );
                CompoundInterestProgram cip1 = new CompoundInterestProgram();
                JFrame f = new JFrame();
                f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                f.getContentPane().add(new GraphPanel());
                f.setSize(500, 500);
                f.setLocation(200,200);
                f.setVisible(true);
                Account a = new Account(200);
                System.out.println("The initial deposit made was: " + a.getBalance() + "\n");
                for (int year = 1; year <= 17; year++) {
                      System.out.println("After year: " + year + "   \t" + "Amount is:  " + dec2.format(a.getBalance() + a.calcInterest(year)));
              @Override
              public void actionPerformed(ActionEvent arg0) {
                   // TODO Auto-generated method stub
    class Account {
        double balance = 0;
        double interest = 0.05;
        public Account() {
             balance = 0;
             interest = 0.05;
        public Account(int deposit) {
             balance = deposit;
             interest = 0.05;
        public double calcInterest(int year) {
               return  balance * Math.pow((1 + interest), year) - balance;
        public double getBalance() {
              return balance;
    class GraphPanel extends JPanel {
        public GraphPanel() {
        public void paintComponent(Graphics g) {
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setColor(Color.red);
    }Your help would be much appreciated.
    Thanks in advance.

    watertownjordan wrote:
    http://www.jgraph.com/jgraph.html
    The above is also good.Sorry but you need to look a bit more closely at URLs that you cite. What the OP wants is a chart (as in X against Y) not a graph (as in links and nodes) . 'jgraph' deals with links and nodes.
    The best free charting library that I know of is JFreeChart from www.jfree.org.

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • I need help with shooting in my flash game for University

    Hi there
    Ive tried to make my tank in my game shoot, all the code that is there works but when i push space to shoot which is my shooting key it does not shoot I really need help with this and I would appriciate anyone that could help
    listed below should be the correct code
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    listed below is my entire code
    import flash.display.MovieClip;
        //declare varibles to create mines
    //how much time before allowed to shoot again
    var cTime:int = 0;
    //the time it has to reach in order to be allowed to shoot (in frames)
    var cLimit:int = 12;
    //whether or not the user is allowed to shoot
    var shootAllow:Boolean = true;
    var minesInGame:uint;
    var mineMaker:Timer;
    var cursor:MovieClip;
    var index:int=0;
    var tankMine_mc:MovieClip;
    var antiTankmine_mc:MovieClip;
    var maxHP:int = 100;
    var currentHP:int = maxHP;
    var percentHP:Number = currentHP / maxHP;
    function initialiseMine():void
        minesInGame = 15;
        //create a timer fires every second
        mineMaker = new Timer(6000, minesInGame);
        //tell timer to listen for Timer event
        mineMaker.addEventListener(TimerEvent.TIMER, createMine);
        //start the timer
        mineMaker.start();
    function createMine(event:TimerEvent):void
    //var tankMine_mc:MovieClip;
    //create a new instance of tankMine
    tankMine_mc = new Mine();
    //set the x and y axis
    tankMine_mc.y = 513;
    tankMine_mc.x = 1080;
    // adds mines to stage
    addChild(tankMine_mc);
    tankMine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal(evt:Event):void{
        evt.target.x -= Math.random()*5;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseMine();
        //declare varibles to create mines
    var atmInGame:uint;
    var atmMaker:Timer;
    function initialiseAtm():void
        atmInGame = 15;
        //create a timer fires every second
        atmMaker = new Timer(8000, minesInGame);
        //tell timer to listen for Timer event
        atmMaker.addEventListener(TimerEvent.TIMER, createAtm);
        //start the timer
        atmMaker.start();
    function createAtm(event:TimerEvent):void
    //var antiTankmine_mc
    //create a new instance of tankMine
    antiTankmine_mc = new Atm();
    //set the x and y axis
    antiTankmine_mc.y = 473;
    antiTankmine_mc.x = 1080;
    // adds mines to stage
    addChild(antiTankmine_mc);
    antiTankmine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal_2(evt:Event):void{
        evt.target.x -= Math.random()*10;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseAtm();
    function moveForward():void{
        bg_mc.x -=10;
    function moveBackward():void{
        bg_mc.x +=10;
    var tank_mc:Tank;
    // create a new Tank and put it into the variable
    // tank_mc
    tank_mc= new Tank;
    // set the location ( x and y) of tank_mc
    tank_mc.x=0;
    tank_mc.y=375;
    // show the tank_mc on the stage.
    addChild(tank_mc);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onMovementKeys);
    //creates the movement
    function onMovementKeys(evt:KeyboardEvent):void
        //makes the tank move by 10 pixels right
        if (evt.keyCode==Keyboard.D)
        tank_mc.x+=5;
    //makes the tank move by 10 pixels left
    if (evt.keyCode==Keyboard.A)
    tank_mc.x-=5
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    if (tank_mc.hitTestObject(antiTankmine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(antiTankmine_mc);
    if (tank_mc.hitTestObject(tankMine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(tankMine_mc);
        //var maxHP:int = 100;
    //var currentHP:int = maxHP;
    //var percentHP:Number = currentHP / maxHP;
        //Incrementing the cTime
    //checking if cTime has reached the limit yet
    if(cTime < cLimit){
        cTime ++;
    } else {
        //if it has, then allow the user to shoot
        shootAllow = true;
        //and reset cTime
        cTime = 0;
    function updateHealthBar():void
        percentHP = currentHP / maxHP;
        healthBar.barColor.scaleX = percentHP;
        if(currentHP <= 0)
            currentHP = 0;
            trace("Game Over");
        updateHealthBar();

    USe the trace function to analyze what happens and what fails to happen in the code you showed.  trace the conditional values to see if they are set up to allow a shot when you press the key

  • Need help in multisim 11? I want to get the transient response of RL circuit....

    Need help in multisim 11?
    I want to get the transient response of RL circuit....i can get the increasing exponential graph in multisim 7 during simulation.....but i am getting a decreasing exponential curve(i.e,decay response) in multisim 11 when i do the same procedure as i did in multisim 7.....how can i get the initial or growth transient response for RL circuit in multisim 11 so that i can get increasing exponential curve....which satisfies time constant = L/R

    Hello,
    The process is the same for any circuit (in this case it is an RC circuit which you sent me). You can find the response on the voltage (which I think it's what you're looking for) at any point of the circuit, as well as any parameter really (R,V,I,L..etc).
    Please refer to the image attached (an analysis on the voltage at an inductor and the wires connected to it).
    The way to set it up (once you're in the transient analysis set up) is, select the Output tab, under Variables in circuit, you can select which parameters to take. V(1) and V(2) refer to the voltage in the circuit at Net 1/2 (or wire 1/2).
    This differs from the voltage change within the capacitor/inductor/resistor. If you would like to see the voltage change of an inductor/capacitor/resistor/etc, you can select under the More options box, the button Add device/model parameter, which will take you to a window to select the device type, its name (in the circuit) and the parameter which you wish to analyse. Once you click on Simulate, you can select Cursor >> Show Cursors, to view information for y and x axis (like rise time, decay time, voltage difference...etc)
    Hope this helps,
    Miguel V
    National Instruments
    Attachments:
    untitled.jpg ‏178 KB

  • Need help in Mitigation...

    Hi , I have the CC 5.2 connected to single system and using GLOBAL ruleset.
    In backend i have created a role Z:CONFLICTING_ROLE and assigned to user ERIC.
    Now there are two risks in the role F030 and S027 , i have created two mitigating controls for them and have mitigated the risks at role level .
    When i run the report on the USER ERIC , it should show in there also as mitigated , but there is nothing in mitigation.
    I was under impression that roles once mitigated , users with be mitigated also, what is wrong here ? ?
    The option under Configuration :
    Risk Analysis ->Add Options -> Include Role/Profile Mitigating Controls in User Analysis
    is set to yes..
    Pls help me to resolve this issue.
    regds
    navdeep
    Edited by: navdeep pathania on Aug 25, 2008 11:02 PM

    navdeep,
    I was rather talking about the PFUD in the back-end system.
    But okay, if the synch with GRC is not working in the first place, then this issue should be addressed as well. However, that goes beyond this particular post 'Need help in Mitigation"
    In an attempt to help you : is your diamond shaped adapter green ? are you using the correct model in the JCO in terms of your release of backend system ? did you do a full sync or incremental ?
    for sure, this is your issue why the users are not mitigated through their assigned mitigated roles.
    succes
    sam

  • I need help in this code

    wazap guys ? long time not 2 see U :)
    i need help , this application that will follow is supposed to count the words lengths
    i.e if typed "I am poprage" the program will output :
    the word length the occurence
    1 1
    2 1
    3
    4
    5
    6
    7 1
    compile it & u will understand it.
    the problem is that it makes a table for each damen word
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Application2 extends JFrame{
    private JLabel label;
    private JTextField field;
    private JTextArea area;
    private JScrollPane scroll;
    private int count;
    public Application2(){
    super("Application 2 / Word Length");
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    label = new JLabel("Enter The Text Here");
    c.add(label);
    field = new JTextField(30);
    field.addActionListener(
    new ActionListener(){
    public void actionPerformed(ActionEvent e){
    StringTokenizer s = new StringTokenizer(e.getActionCommand());
    count = s.countTokens();
    while(s.hasMoreTokens()){
    count--;
    pop(s.nextToken());
    c.add(field);
    area = new JTextArea(10,30);
    area.setEditable(false);
    c.add(area);
    scroll = new JScrollPane(area);
    c.add(scroll);
    setSize(500,500);
    show();
    public void pop (String s){
    String poprage = "";
    int count1 = 0;
    int count2 = 0;
    int count3 = 0;
    int count4 = 0;
    int count5 = 0;
    int count6 = 0;
    int count7 = 0;
    int count8 = 0;
    int count9 = 0;
    int count10 = 0;
    int count11 = 0;
    int count12 = 0;
    int count13 = 0;
    int count14 = 0;
    int count15 = 0;
    int count16 = 0;
    int count17 = 0;
    int count18 = 0;
    int count19 = 0;
    int count20 = 0;
    int count21 = 0;
    int count22 = 0;
    int count23 = 0;
    int count24 = 0;
    int count25 = 0;
    for(int i = 0; i < s.length(); i++){
    if(s.length() == 1) count1 += 1;
    else if(s.length() == 2) count2 += 1;
    else if(s.length() == 3) count3 += 1;
    else if(s.length() == 4) count4 += 1;
    else if(s.length() == 5) count5 += 1;
    else if(s.length() == 6) count6 += 1;
    else if(s.length() == 7) count7 += 1;
    else if(s.length() == 8) count8 += 1;
    else if(s.length() == 9) count9 += 1;
    else if(s.length() == 10) count10 += 1;
    else if(s.length() == 11) count11 += 1;
    else if(s.length() == 12) count12 += 1;
    else if(s.length() == 13) count13 += 1;
    else if(s.length() == 14) count14 += 1;
    else if(s.length() == 15) count15 += 1;
    else if(s.length() == 16) count16 += 1;
    else if(s.length() == 17) count17 += 1;
    else if(s.length() == 18) count18 += 1;
    else if(s.length() == 19) count19 += 1;
    else if(s.length() == 20) count20 += 1;
    else if(s.length() == 21) count21 += 1;
    else if(s.length() == 22) count22 += 1;
    else if(s.length() == 23) count23 += 1;
    else if(s.length() == 24) count24 += 1;
    else if(s.length() == 25) count25 += 1;
    poprage += "The Length\t"+"The Occurence\n"+
    "1\t"+count1+"\n"+
    "2\t"+count2+"\n"+
    "3\t"+count3+"\n"+
    "4\t"+count4+"\n"+
    "5\t"+count5+"\n"+
    "6\t"+count6+"\n"+
    "7\t"+count7+"\n"+
    "8\t"+count8+"\n"+
    "9\t"+count9+"\n"+
    "10\t"+count10+"\n"+
    "11\t"+count11+"\n"+
    "12\t"+count12+"\n"+
    "13\t"+count13+"\n"+
    "14\t"+count14+"\n"+
    "15\t"+count15+"\n"+
    "16\t"+count16+"\n"+
    "17\t"+count17+"\n"+
    "18\t"+count18+"\n"+
    "19\t"+count19+"\n"+
    "20\t"+count20+"\n"+
    "21\t"+count21+"\n"+
    "22\t"+count22+"\n"+
    "23\t"+count23+"\n"+
    "24\t"+count24+"\n"+
    "25\t"+count25+"\n";
    area.append(poprage);
    public static void main (String ar[]){
    Application2 a = new Application2();
    a.addWindowListener(
    new WindowAdapter(){
    public void windowClosing( WindowEvent e ){
    System.exit(0);
    can any one fix it ???????
    REGARDS.

    Okay, so I took a look at it, where you are having the problem is that your pop() method not only updated the count variable, but then displays the result each time you call it. and since you call it in the loop, guess what it will give you a "table" for each "damen word"...
    Any way, I was bored enough to "fix" the program and included comments as to what I did and the relative "why"...
    So here goes...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Application2 extends JFrame{
    private JLabel label;
    private JTextField field;
    private JTextArea area;
    private JScrollPane scroll;
    private int count;
    // moved these up here so that all methods in this class
    // can see and modify them, and more importantly so that they would not go
    // out of scope and end up zero'd out before we display the values
    // in the "table", once that done, then we can zero them out.
    // although an array would be better and easier to use... -MaxxDmg...
    private int count1 = 0;private int count2 = 0;
    private int count3 = 0;private int count4 = 0;
    private int count5 = 0;private int count6 = 0;
    private int count7 = 0;private int count8 = 0;
    private int count9 = 0;private int count10 = 0;
    private int count11 = 0;private int count12 = 0;
    private int count13 = 0;private int count14 = 0;
    private int count15 = 0;private int count16 = 0;
    private int count17 = 0;private int count18 = 0;
    private int count19 = 0;private int count20 = 0;
    private int count21 = 0;private int count22 = 0;
    private int count23 = 0;private int count24 = 0;
    private int count25 = 0;
    // end move int count variable declarations  - MaxxDmg...
    public Application2(){
    super("Application 2 / Word Length");
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    label = new JLabel("Enter The Text Here");
    c.add(label);
    field = new JTextField(30);
    field.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    String poprage = ""; // move this here, once pop() loop is done, then this string
    // will be constructed and displayed  - MaxxDmg...
    StringTokenizer s = new StringTokenizer(e.getActionCommand());
    count = s.countTokens();
    while(s.hasMoreTokens()){ // this is the "pop() loop" since it calls pop() to count the words - MaxxDmg...
    count--;
    pop(s.nextToken()); // runs pop which only increments the count variable as needed - MaxxDmg...
    }// end "pop() loop" - MaxxDmg...
    // string poprage constructed one pop() loop is done to display the proper results - MaxxDmg...
    poprage += "The Length\t"+"The Occurence\n"+"1\t"+count1+"\n"+
    "2\t"+count2+"\n" + "3\t"+count3+"\n" + "4\t"+count4+"\n" +
    "5\t"+count5+"\n" + "6\t"+count6+"\n" + "7\t"+count7+"\n" +
    "8\t"+count8+"\n" + "9\t"+count9+"\n" + "10\t"+count10+"\n" +
    "11\t"+count11+"\n" + "12\t"+count12+"\n" + "13\t"+count13+"\n" +
    "14\t"+count14+"\n" + "15\t"+count15+"\n" + "16\t"+count16+"\n" +
    "17\t"+count17+"\n" + "18\t"+count18+"\n" + "19\t"+count19+"\n" +
    "20\t"+count20+"\n" + "21\t"+count21+"\n" + "22\t"+count22+"\n"+
    "23\t"+count23+"\n" + "24\t"+count24+"\n" + "25\t"+count25+"\n";
    area.append(poprage);
    // end string construction and area update...  - MaxxDmg...
    // all int count variable set to 0 for next usage - MaxxDmg...
    count = 0;
    count1 = 0;count2 = 0;count3 = 0;count4 = 0;count5 = 0;
    count6 = 0;count7 = 0;count8 = 0;count9 = 0;count10 = 0;
    count11 = 0;count12 = 0;count13 = 0;count14 = 0;count15 = 0;
    count16 = 0;count17 = 0;count18 = 0;count19 = 0;count20 = 0;
    count21 = 0;count22 = 0;count23 = 0;count24 = 0;count25 = 0;
    // end count variable reset... - MaxxDmg...
    c.add(field);
    area = new JTextArea(10,30);
    area.setEditable(false);
    c.add(area);
    scroll = new JScrollPane(area);
    c.add(scroll);
    setSize(500,500);
    show();
    public void pop (String s){
    // now all this method does is increment the count variables - MaxxDmg...
    // which will eliminate the "making a table" for each "damen word" - MaxxDmg...
    if(s.length() == 1) count1 += 1;
    else if(s.length() == 2) count2 += 1;
    else if(s.length() == 3) count3 += 1;
    else if(s.length() == 4) count4 += 1;
    else if(s.length() == 5) count5 += 1;
    else if(s.length() == 6) count6 += 1;
    else if(s.length() == 7) count7 += 1;
    else if(s.length() == 8) count8 += 1;
    else if(s.length() == 9) count9 += 1;
    else if(s.length() == 10) count10 += 1;
    else if(s.length() == 11) count11 += 1;
    else if(s.length() == 12) count12 += 1;
    else if(s.length() == 13) count13 += 1;
    else if(s.length() == 14) count14 += 1;
    else if(s.length() == 15) count15 += 1;
    else if(s.length() == 16) count16 += 1;
    else if(s.length() == 17) count17 += 1;
    else if(s.length() == 18) count18 += 1;
    else if(s.length() == 19) count19 += 1;
    else if(s.length() == 20) count20 += 1;
    else if(s.length() == 21) count21 += 1;
    else if(s.length() == 22) count22 += 1;
    else if(s.length() == 23) count23 += 1;
    else if(s.length() == 24) count24 += 1;
    else if(s.length() == 25) count25 += 1;
    }// end modified pop() method - MaxxDmg...
    public static void main (String ar[]){
    Application2 a = new Application2();
    a.addWindowListener(
    new WindowAdapter(){
    public void windowClosing( WindowEvent e ){
    System.exit(0);
    }So read the comments, look at the code and compare it to the original. You will see why the original did not give you the results you wanted, while the fixed version will...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Really need help with MSI R7970-2PMD3GD5/OC:(

    Greetings to all,
    I really need help with my brand new MSI R7970-2PMD3GD5/OC. I've purchased it two days ago and I didn't really have time to test the card until yesterday. The card is I think way to hot for my "liking". It idles at 56c-60c, at full load in Heaven benchmark 3.0 in 1920x1080, extreme tessellation and 8xAA card reaches 95c-97c. Stock cloacks are 1010Mhz/1375Mhz and stock voltage is 1,174v. Case is being cooled by two Noctua NF-P12 fans. Also I tried lowering the voltage and "underclocking" the card to a standard 925Mhz in small increments, but it doesn't help at all. Each and every time it results in BSOD and dx dll errors and complete system failures. Replacing the card wouldn't be a problem if I lived in a "normal" country that has access to a steady supply. Retailer that sold me a card told me that only 5 cards total have been imported from the launch day and told me that i bought the "last" card in my country. They could order a replacement but it would take them more then a month to do so.:( Ohhh and one more thing I don't overclock, everything in my case is at their default values.
    Recently, I read that "Amd released" a bios update for a standard reference boards that turns them into a "GHZ editions". Also lot of users report a lower voltage requirements and lower temps with that "boost bios". As I understand this card pcb is not Amd's reference board design, I could be wrong it's not that uncommon.. So I didn't want to risk warranty by flashing it to a position 1. Will MSI release the boost bios for this model of card? I am humbly asking MSI staff on how to proceed regarding this problem. I would be immensely grateful for any help you could provide.

    Quote from: Svet on 24-August-12, 18:13:26
    what PC case you use exactly?
    have you tried to open PC case side door and to retest?
    Hi,
    it's open case. If i close it the temps get even worse:(
    They get better for other components, but not for gpu. Two Noctua NF-P12's are cooling the case, first one is positioned above gpu, left side next to cpu. Other is right beneath the gpu, right side of case. Just under the hdd section of the case. I tested each and every component with my backup card nv 8500gt. They function within the specified parameters. I'm getting somewhat worried.
    П.С. Поздрав Свет
    да ли сте ви са наших простора да не куцам на енглеском?

  • Assignment Due TODAY - NEED HELP

    My program is below and I have already setup a Client Server Connection for a hangman game, but I need help sending and displaying the options selected by the user. PLEASE HELP
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ClientApp extends JFrame
        // Declarations used in program
        private Socket server;
        ObjectOutputStream out;
        ObjectInputStream in;
        int length = 0; // Length of word received by Server
        String guess;
        String lines;
        String secret;
        int chances = 0; // Count to Hold no of chances by user
        int categorySelected ;
        // GUI Declarations
        private JButton btnMovies;
        private JButton btnSport;
        private JButton btnExit, btnNew;
        private JButton a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
        private JLabel lblWelcome, lblCategory , lblChances;
        private JPanel pan1, pan2, pan3, pan4, pan5, pan6, pan7, pan8, pan9, pan10;
        private JTextArea answer;
        private JTextField txtCategory, txtChances;
       // CONSTRUCTOR
        public ClientApp()
            setLayout(new FlowLayout());
            pan1 = new JPanel();
            pan3 = new JPanel();
            pan2 = new JPanel();
            lblWelcome = new JLabel("Welcome to Hangman.\n\n Please select a category.");
            pan1.add(lblWelcome);
            btnMovies = new JButton("Movie Titles");
            pan3.add(btnMovies);
            btnSport = new JButton("Sport");
            pan3.add(btnSport);
            btnNew = new JButton("New Game");
            pan3.add(btnNew);
            btnExit = new JButton("Exit");
            pan2.add(btnExit);
            pan9 = new JPanel();
            txtCategory = new JTextField(10);
            pan9.add(txtCategory);
            pan8 = new JPanel();
            answer = new JTextArea(3,30);
            answer.setEditable(false);
            pan8.add(answer);
            add(pan1);
            add(pan3);
            add(pan2);
            add(pan9);
            add(pan8);
            btnExit.addActionListener(
                new ActionListener()
                    public void actionPerformed(ActionEvent event)
                        System.exit(0);
            btnMovies.addActionListener(
                new ActionListener()
                    public void actionPerformed(ActionEvent event)
                       enableButtons();
                       btnSport.setEnabled(false);
                       btnNew.setEnabled(true);
                       txtCategory.setText("Movies");
                       categorySelected = 0;
                       processClient();
            btnSport.addActionListener(
                new ActionListener()
                    public void actionPerformed(ActionEvent event)
                       enableButtons();
                       btnMovies.setEnabled(false);
                       btnSport.setEnabled(false);
                       btnNew.setEnabled(true);
                       txtCategory.setText("Actors Names");
                       categorySelected = 1;
                       processClient();
            btnNew.addActionListener(
                new ActionListener()
                    public void actionPerformed(ActionEvent event)
                        enableButtons();
                        btnSport.setEnabled(true);
                        btnMovies.setEnabled(true);
                        btnNew.setEnabled(false);
                        chances = 0;
                        communicate();
            buttons();
            disableButtons();
            btnNew.setEnabled(false);
            // Attempt to establish connection to server
            try
                // Create socket
                server = new Socket("localhost", 8008);
            catch (IOException ioe)
                System.out.println("IOException: " + ioe.getMessage());
        // Method to add Alphabetic Buttons to GUI
        public void buttons()
                pan4 = new JPanel();
                pan5 = new JPanel();
                pan6 = new JPanel();
                pan7 = new JPanel();
             a = new JButton("A");
             b = new JButton("B");
             c = new JButton("C");
             d = new JButton("D");
             e = new JButton("E");
             f = new JButton("F");
             g = new JButton("G");
             h = new JButton("H");
             i = new JButton("I");
             j = new JButton("J");
             k = new JButton("K");
             l = new JButton("L");
             m = new JButton("M");
             n = new JButton("N");
             o = new JButton("O");
             p = new JButton("P");
             q = new JButton("Q");
             r = new JButton("R");
             s = new JButton("S");
             t = new JButton("T");
             u = new JButton("U");
             v = new JButton("V");
             w = new JButton("W");
             x = new JButton("X");
             y = new JButton("Y");
             z = new JButton("Z");
            pan4.add(a);
            pan4.add(b);
            pan4.add(c);
            pan4.add(d);
            pan4.add(e);
            pan4.add(f);
            pan5.add(g);
            pan5.add(h);
            pan5.add(i);
            pan5.add(j);
            pan5.add(k);
            pan5.add(l);
            pan6.add(m);
            pan6.add(n);
            pan6.add(o);
            pan6.add(p);
            pan6.add(q);
            pan6.add(r);
            pan7.add(s);
            pan7.add(t);
            pan7.add(u);
            pan7.add(v);
            pan7.add(w);
            pan7.add(x);
            pan7.add(y);
            pan7.add(z);
            add(pan4);
            add(pan5);
            add(pan6);
            add(pan7);
            // Button Handler for Alphabet
            ButtonHandler handler = new ButtonHandler();
           a.addActionListener(handler);
           b.addActionListener(handler);
           c.addActionListener(handler);
           d.addActionListener(handler);
           e.addActionListener(handler);
           f.addActionListener(handler);
           g.addActionListener(handler);
           h.addActionListener(handler);
           i.addActionListener(handler);
           j.addActionListener(handler);
           k.addActionListener(handler);
           l.addActionListener(handler);
           m.addActionListener(handler);
           n.addActionListener(handler);
           o.addActionListener(handler);
           p.addActionListener(handler);
           q.addActionListener(handler);
           r.addActionListener(handler);
           s.addActionListener(handler);
           t.addActionListener(handler);
           u.addActionListener(handler);
           v.addActionListener(handler);
           w.addActionListener(handler);
           x.addActionListener(handler);
           y.addActionListener(handler);
           z.addActionListener(handler);
       private class ButtonHandler implements ActionListener
        public void actionPerformed(ActionEvent ae)
                 if (ae.getSource()==a)
                            guess = "a";
                            a.setEnabled(false);
                            sendGuess();
                 if (ae.getSource()==b)
                           guess = "b";
                           b.setEnabled(false);
                           sendGuess();
                 if (ae.getSource()==c)
                             guess = "c";
                             c.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==d)
                             guess = "d";
                             d.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==e)
                             guess = "e";
                             e.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==f)
                             guess = "f";
                             f.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==g)
                             guess = "g";
                             g.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==h)
                             guess = "h";
                             h.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==i)
                             guess = "i";
                             i.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==j)
                             guess = "j";
                             j.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==k)
                             guess = "k";
                             k.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==l)
                             guess = "l";
                             l.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==m)
                             guess = "m";
                             m.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==n)
                             guess = "n";
                             n.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==o)
                             guess = "o";
                             o.setEnabled(false);
                             sendGuess();
                  if (ae.getSource()==p)
                             guess = "p";
                             p.setEnabled(false);
                             sendGuess();
                  if (ae.getSource()==q)
                             guess = "q";
                             q.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==r)
                             guess = "r";
                             r.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==s)
                             guess = "s";
                             s.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==t)
                             guess = "t";
                             t.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==u)
                             guess = "u";
                             u.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==v)
                             guess = "v";
                             v.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==w)
                             guess = "w";
                             w.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==x)
                             guess = "x";
                             x.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==y)
                             guess = "y";
                             y.setEnabled(false);
                             sendGuess();
                 if (ae.getSource()==z)
                             guess = "z";
                             z.setEnabled(false);
                             sendGuess();
            // Method to Disable the buttons          
            public void disableButtons()
                a.setEnabled(false);
                b.setEnabled(false);
                c.setEnabled(false);
                d.setEnabled(false);
                e.setEnabled(false);
                f.setEnabled(false);
                g.setEnabled(false);
                h.setEnabled(false);
                i.setEnabled(false);
                j.setEnabled(false);
                k.setEnabled(false);
                l.setEnabled(false);
                m.setEnabled(false);
                n.setEnabled(false);
                o.setEnabled(false);
                p.setEnabled(false);
                q.setEnabled(false);
                r.setEnabled(false);
                s.setEnabled(false);
                t.setEnabled(false);
                u.setEnabled(false);
                v.setEnabled(false);
                w.setEnabled(false);
                x.setEnabled(false);
                y.setEnabled(false);
                z.setEnabled(false);
            // Method to enable Buttons so user can Click on them
            public void enableButtons()
                a.setEnabled(true);
                b.setEnabled(true);
                c.setEnabled(true);
                d.setEnabled(true);
                e.setEnabled(true);
                f.setEnabled(true);
                g.setEnabled(true);
                h.setEnabled(true);
                i.setEnabled(true);
                j.setEnabled(true);
                k.setEnabled(true);
                l.setEnabled(true);
                m.setEnabled(true);
                n.setEnabled(true);
                o.setEnabled(true);
                p.setEnabled(true);
                q.setEnabled(true);
                r.setEnabled(true);
                s.setEnabled(true);
                t.setEnabled(true);
                u.setEnabled(true);
                v.setEnabled(true);
                w.setEnabled(true);
                x.setEnabled(true);
                y.setEnabled(true);
                z.setEnabled(true);
        public void communicate()
            // The connection has been established - now send/receive.
            try
                //  create channels
                out = new ObjectOutputStream(server.getOutputStream());
                out.flush();
                in = new ObjectInputStream(server.getInputStream());
            catch (IOException ioe)
                JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
            catch (NullPointerException n)
                JOptionPane.showMessageDialog(null,"Error occured...");
        public void processClient()
            try
                // Tells server which category is selected by user
                out.writeObject(categorySelected);
                out.flush();
                secret = (String)in.readObject();
                length = (Integer)in.readObject();
                lines = "";
                for (int x=0;x < length;x++)
                    lines += " - ";
                answer.setText(lines);
                String ToDisplay=""; 
                  for (int q=0; q<secret.length;q++)
                   ToDisplay+=secret.length;
                   answer.setText(" " + ToDisplay); */
                  // String Correctin = (String)in.readObject();
                  // JOptionPane.showMessageDialog(null, Correctin );
            catch (IOException ioe)
                 JOptionPane.showMessageDialog(null, "IO Exception: " + ioe.getMessage());
            catch (ClassNotFoundException cnfe)
                JOptionPane.showMessageDialog(null, "Class not found..." );
        }//end method
        public void sendGuess()
            try
                // Sends the character guessed by user
                out.writeObject(guess);
                out.flush();
                // Chances incremented
                //chances = chances + 1;
                // Calcualates to see whether chances are up
                //if (chances >= 7)
                //    JOptionPane.showMessageDialog(null,"GAME OVER!! You used up all your chances...");
                 //   disableButtons();
            }//end try
            catch (IOException ioe)
                JOptionPane.showMessageDialog(null, ioe.getMessage());
            }//end catch
        }//end method
        public static void main(String[] args)
            ClientApp client = new ClientApp();
            client.communicate();
            client.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            client.setSize(500,300);
            client.setVisible(true);     
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    public class ServerApp
         String movies [] = {"shrek","titanic","disturbia","blade","scream"};
         String sport [] = {"tennis","golf","rugby","hockey","soccer","judo"};
         int inCategory; // Category Selected By User
         int selectw; // Random word selected in Array
         String secretword = "";
         int wordlength = 0;
         String guess;
         char letter;
         Random rand = new Random();
         String msg;
         ObjectOutputStream out;
         ObjectInputStream in;
         int chances;
        // Server socket
        private ServerSocket listener;
        // Client connection
        private Socket client;
        public ServerApp()
           // Create server socket
            try {
                listener = new ServerSocket(8008);
            catch (IOException ioe)
              JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
        public void listen()
            // Start listening for client connections
            try
              client = listener.accept(); 
              System.out.println("Server started");       
              processClient();
            }//end try
            catch(IOException ioe)
                JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
            }//end catch   
        public void processClient()
            try
                while(msg != "TERMINATE")
                   //input and output stream
                   out = new ObjectOutputStream(client.getOutputStream());
                   out.flush();
                   in = new ObjectInputStream(client.getInputStream());        
                   //Receiving a category
                   inCategory = (Integer)in.readObject();
                   chances = 7;
                   selectw = 0;
                   if (inCategory == 0)
                        selectw = rand.nextInt(5);
                        secretword = movies[selectw];
                        out.writeObject(secretword);
                        out.flush();
                    }//end if
                    if (inCategory == 1)
                        selectw = rand.nextInt(6);
                        secretword = sport[selectw];
                    }//end if
                        wordlength = secretword.length();
                        out.writeObject(wordlength);
                        out.flush();
                           for (int y=0;y < wordlength;y++)
                                guess = (String)in.readObject();
                                letter = guess.charAt(0);
                                  if(chances == 0)
                                      JOptionPane.showMessageDialog(null,"No more chances left");
                                   else
                                  if(letter == secretword.charAt(y))
                                    JOptionPane.showMessageDialog(null,"You chose a correct letter...");
                                else
                                    JOptionPane.showMessageDialog(null,"You chose a wrong letter...");
                                    chances--;
                        JOptionPane.showMessageDialog(null,"You won the game...");
                }//end while
                // Step 3:close down
                out.close();
                in.close();
                client.close();
                System.out.println("Server stopped");
            catch (IOException ioe)
                JOptionPane.showMessageDialog(null,"IO Exception: " + ioe.getMessage());
            catch (ClassNotFoundException cnfe)
                JOptionPane.showMessageDialog(null,"Class not found: " + cnfe.getMessage());
        public static void main(String[] args)
            // Create application
            ServerApp server = new ServerApp();
            // Start waiting for connections
            server.listen();
    }

    JAVAHELPNEEDED wrote:
    How do I save that amount of code?
    Can you HELP me or NOT??Depends what you mean. Will I write you any code? No. Will I tell you what to write? No. You can do it yourself, that's why it's called your homework. I will, though, give you a couple of tips on how to get started.
    1) Throw away what you've done
    2) Do a quick requirements analysis. That means, write down descriptive, plain English (or whatever language you think in) what the thing is supposed to do. "Be a hangman game" is too brief, but twenty pages of technical jargon is too much. Write a bit of a story about what the program must do. You now have the start of a design.
    3) Break down what has to be done into manageable chunks. Your first mistake (and most newbs) was trying to write one side of the game in a single class. Don't be afraid to write 20 classes, or 50, if that's what's needed. It'll be easier both now and in the long run
    4) Tackle each chunk one by one. Don't try and do it all at once, that never works. If you write the code one bit at a time, you'll inevitably write more modular code
    5) You'll probably screw it up. Don't worry. It happens. Try again
    6) Don't give up. Writing software is hard, there's no way around that, so deal with it
    7) Don't make the mistake of thinking the software is the GUI. It isn't (don't extend JFrame, hint hint)
    8) Good luck

  • Need help implimenting PLUS ldf in c++ via XMP sdk

    I'm apparently suffering major brainstem bitrot and generating lots of brain coredumps, and I need help.
    I'm using the XMP toolkit sdk 5.1.2 in c++ under gcc on Debian to impliment embedding PLUS ldf licensing metadata (reference: http://ns.useplus.org/LDF/ldf-XMPReference ) into images.
    I have no problems generating compliant plus ldf xmp in code for everything EXCEPT for single line detail entries like "<rdf:type rdf:resource="plus:LicenseeDetail"/>" in several places in the ldf specification, viz:
    <plus:Licensee>
       <rdf:Seq>
         <rdf:li>
              <rdf:type rdf:resource="plus:LicenseeDetail"/>
              <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
              <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
         </rdf:li>
       </rdf:Seq>
    </plus:Licensee>
    I can generate the appropriate text in memory then parse that to get an appropriate SXMPMeta and merge that, but I would really like to be able to properly generate the proper xmp in code, and would really appreciate any help preventing further brainrot!
    I'm certain it's both simple and trivial, but I now can't see the trees because of the forest ... Thanks

    Hi,
    I'm not a XMP expert but I've been working for some years with Semantic Web technologies. My understanding is that XMP is a subset of RDF (one of the main pieces of the Semantic Web) so I will try to make my contribution to this problem from there.
    Consequently, looking at your problematic piece of XMP:
    <plus:Licensee>
       <rdf:Seq>
         <rdf:li>
              <rdf:type rdf:resource="plus:LicenseeDetail"/>
              <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
              <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
         </rdf:li>
       </rdf:Seq>
    </plus:Licensee>
    I can say that it isn't valid RDF so it shouldn't be proper XMP. This can be confirmed looking at the example for the property plus:Licensee available from the specification (http://ns.useplus.org/LDF/ldf-XMPSpecification#Licensee):
    <plus:Licensee>
       <rdf:Seq>
          <rdf:li rdf:parseType="Resource">
             <rdf:type rdf:resource="plus:LicenseeDetail"/>
             <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
             <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
          </rdf:li>
       </rdf:Seq>
    </plus:Licensee>
    I have marked in bold where the problem is. Your piece of XML is missing the rdf:parseType="Resource" construct. I will explain why this is necessary from what I know from RDF. RDF is based on a graph model. There are resources, which correspond to graph nodes and represent the things the RDF metadata is talking about, and properties, which correspond to graph edges and represent the attributes and relations used to say things about the resources.
    In RDF the convention is to use lowercase names for properties. This doesn't seem to be the convention in XMP so we must take a closer look at the XMP piece in order to identify what parts correspond to resources and to properties. From the LDF specification we know that plus:Licensee correspond to a property so it should link to a resource, in this case rdf:Seq (more specifically it is an anonymous resource (no id provided) of type rdf:Seq). Your example should have some additional markup before plus:Licensee, surely the resource that represents the licensee about which we are specifying the licensee using the plus:Licensee property.
    Now, if we continue from the resource of type rdf:Seq, there is the rdf:li property (lower case as it is directly reused from the RDF specification). The problem now is that if we look directly inside rdf:li property we find rdf:type, plus:LicenseeID and plus:LicenseeName. It is clear that rdf:type (lowercase) is a property and from the LDF specification we can see that the other two also correspond to properties. Therefore, there is the problem. We have a property (rdf:li) pointing to three properties (rdf:type,...) so we are breaking the graph data model: nodes (resources) are connected through edges (properties) that link two nodes.
    This is not the case for the example in the LDF specification. The rdf:parseType="Resource" constructs is a shortcut for:
    <rdf:li>
       <rdf:Resource>
             <rdf:type rdf:resource="plus:LicenseeDetail"/>
             <plus:LicenseeID>http://plus-id.org/AAA-987</plus:LicenseeID>
             <plus:LicenseeName>ABC Advertising Agency</plus:LicenseeName>
       </rdf:Resource>
    </rdf:li>
    It basically says that the following properties should be parsed as being connected to an anonymous resource. In order to make it clearer, it is helpful to look at the graph behing that markup. For instance, you can use the RDF2SVG service and render the graph behind the example from the specification (which I have make available from a custom URL):
    http://rhizomik.net/redefer-services/render?rdf=http://rhizomik.net:8080/html/~roberto/tmp /ldf-simple-example.rdf&format=RDF/XML&mode=svg&rules=http://rhizomik.net:8080/html/redefe r/rdf2svg/showgraph.jrule
    I hope all this makes it clearer.
    Best,
    Roberto García
    http://rhizomik.net/~roberto/

  • Need help in converting DAQ to DAQmx

    Hi,
    I've struggled with coverting traditional DAQ to DAQmx for two weeks. I really need help from someone.
    As you can see the picture below, I've tried to replace the old VI's with new ones. But, it doesn't work. Of course, the VI below is just a part of my VI. VI's after case structure are inside of while loop.
    Could you please give me thought that why it doesn't work?
    FYI: The strange thing about it is that it runs without any error messege, but there is no actual output (values on the graph, data in arrays, etc).  
    Thanks in advance.
    Best,
    Jay
    Solved!
    Go to Solution.
    Attachments:
    Untitled 1.vi ‏74 KB

    Hi Jay,
    Assuming that the Traditional DAQ and DAQmx code are screenshots from separate VIs, I believe that the following parameter of the read functions in each driver would account for the different behavior that you are seeing (you have both set to -1):
    Traditional DAQ:
     DAQmx:
    So, when you give DAQmx Read a -1 for "number of samples per channel" when running a Continuous task, the effect is that it will return whatever data is available at the time DAQmx Read is called.  In your case this is immediately after the task is started so there very well could be 0 samples available in the buffer.  I'd imagine that you would see data if you change the value of this parameter from -1 to the actual number of samples that you want to read.
    Having said this, if you want to acquire continuously you should call DAQmx Read from inside a loop.  I agree with the others that you should take a look at the DAQmx shipping examples to help get started, you will probably find something very close to what you want to do.  You can find the examples at:
    Help >> Find Examples... >> Hardware Input and Output >> DAQmx
    Thanks for posting, I hope this helps!
    -John
    John Passiak

  • Need Help with Formula using SQL maybe

    I need help!  I work with Crystal reports XI and usually manage just fine with the Formula editor but his one I think will require some SQL and I am not good at that.
    We are running SQL 2000 I think (Enterprise Manager 8.0)  Our sales people schedule activities and enter notes for customer accounts.  Each is stored in a separate table.  I need to find activities that are scheduled 240 days into the future and show the most recent note that goes with the account for which that activity is scheduled.
    The two tables, Activities and History, share the an accountID field in common that links them to the correct customer account.   I want to look at dates in the Startdate.Activities field more than 240 days in the future and show the most recent note from the History table where the accountid's match. I figure my query will contain a join on AccountID.Activities and AccountID.History used with Max(completedate.History) but I do not understand how to word it.
    I would like to perform all this in crystal if possible.  I humbly request your help.
    Membery

    You SQL would look something like this...
    SELECT
    a.AccountID,
    a.BlahBlahBlah, -- Any other fields you want from the Activities table
    h.LastComment
    FROM Activities AS a
    LEFT OUTER JOIN History AS h ON a.AccountID = h.AccountID
    WHERE (a.ActivityDate BETWEEN GetDate() AND DateAdd(dd, 240, GetDate()))
    AND h.HistoryID IN (
         SELECT MAX(HistoryID)
         FROM History
         GROUP BY AccountID)
    This method assumes that the History table has a HistoryID that increments up automatically each time a new comment is added... So a comment made today would always have a higher HistoryID that one made yesterday.
    If I'm wrong and there is no HistoryID or the HistoryID doesn't increment in a chronological fashion, it can still be done but the code is a bit more complex.
    HTH,
    Jason

  • Really need help on this

    Can somebody please help me read this file?
    The data being read come from a file. the data looks like this
    Date           Time                          X                 Y     Depth           Temp
    14-Feb-05           10:08:48     3002     -2571     26     3348
    14-Feb-05           10:08:48     3039     -2573     34     3345
    14-Feb-05           10:08:48     3181     -2573     42     3345
    14-Feb-05           10:08:49     2841     -2573     49     3342
    14-Feb-05           10:08:49     2455     -2573     58     3345
    the data is then read into the program in the loadData() function shown
    The problem is it only reads the header. It never reads the data.public void loadData ()
    // Display the open file dialog, wait for a response.
    JFileChooser chooser = new JFileChooser();
    int choice = chooser.showOpenDialog(frame);
    // If no file was selected, bail out.
    if (choice != JFileChooser.APPROVE_OPTION)
    return;
    // Get the file, attempt to open the file and
    // read the data points.
    File dataFile = chooser.getSelectedFile ();
    try
    Scanner input = new Scanner (dataFile);
    // Loop, reading pairs of input.
         String headers = input.nextLine(); //read the headers
         //System.out.println( in);     //skip the headers to the data
    while (input.hasNextInt())
         int date = input.nextInt(); //read date
         int time = input.nextInt(); //read time
    int x = input.nextInt(); //read x
         int y = input.nextInt(); //read y
         int depth = input.nextInt(); //read depth
         if (!input.hasNextInt())
    break;
    int temp = input.nextInt(); //read temperature
    graph.setDataPoint (new Point (x, y));
         graph.setDomainLabel ("x");
         graph.setRangeLabel ("Depth");*/
    catch (FileNotFoundException e)
    System.err.println ("Unable to read data points from " + dataFile.getName
    I really need help on this crew

    Can somebody please help me read this file?
    The data being read come from a file. the data looks
    like this
    Date           Time                          X
    Y     Depth           Temp
    14-Feb-05           10:08:48     3002     -2571     26     3348
    14-Feb-05           10:08:48     3039     -2573     34     3345
    14-Feb-05           10:08:48     3181     -2573     42     3345
    14-Feb-05           10:08:49     2841     -2573     49     3342
    14-Feb-05           10:08:49     2455     -2573     58     3345
    the data is then read into the program in the
    loadData() function shown
    The problem is it only reads the header. It never
    reads the data.public void loadData ()
    // Display the open file dialog, wait for a
    r a response.
    JFileChooser chooser = new JFileChooser();
    int choice = chooser.showOpenDialog(frame);
    // If no file was selected, bail out.
    if (choice != JFileChooser.APPROVE_OPTION)
    return;
    // Get the file, attempt to open the file and
    // read the data points.
    File dataFile = chooser.getSelectedFile ();
    try
    Scanner input = new Scanner (dataFile);
    // Loop, reading pairs of input.
    String headers = input.nextLine(); //read the
    e headers
    //System.out.println( in);     //skip the headers to
    o the data
    while (input.hasNextInt())
         int date = input.nextInt(); //read date
         int time = input.nextInt(); //read time
    int x = input.nextInt(); //read x
         int y = input.nextInt(); //read y
         int depth = input.nextInt(); //read depth
         if (!input.hasNextInt())
    break;
    int temp = input.nextInt(); //read
    nt(); //read temperature
    graph.setDataPoint (new Point (x, y));
         graph.setDomainLabel ("x");
         graph.setRangeLabel ("Depth");*/
    catch (FileNotFoundException e)
    System.err.println ("Unable to read data
    ead data points from " + dataFile.getName
    I really need help on this
    crew
    I modified the code but getting an error when I call the function
    How do I catch an exception in this

  • Need performance! - Need help with Server Architecture for SSAS on Azure VM

    I would like to build 100% Azure VM base solution. We can install as many as needed.
    I have large amount data in DW. (100GB-1000GB)
    I would like to provide PowerView reports in SharePoints.
    I would like to have report data be as real time as possible. (Min data is updated once in 2 hours)
    These are requirements:
    -SharePoint 2013
    -PowerView
    -SSAS OLAP Cube
    -SQL Server DW&Staging DB (Currently DW&Staging on same server)
    I need help specially what can be done with SSAS to meet requirements? Should be installed to own application server? Possible to install multiple SSAS? SSRS needs own server?
    I appreciate also links to server topology diagrams.
    Kenny_I

    I assume you mean 100GB-1000GB (not 1000TB) right?
    For Sharepoint I would refer to the sizing guide for diagrams and sizing:
    http://technet.microsoft.com/en-us/library/ff758647(v=office.15).aspx
    SSRS (and Power View) will run in the SharePoint farm on a SharePoint app server potentially with other SharePoint services.
    I would definitely put SSAS on a dedicated server for a cube that size. Depending on how well your data compresses, there may not be a VM in Azure with enough RAM to put your model into a Tabular SSAS model. I would prototype it with a subset of data to see
    how well it compresses. You can always use a Multidimensional model as a fallback.
    Depending on how much processing the SSAS model impacts user queries (since it is happening during the day) you could build an SSAS processing server and a separate SSAS query server and run the XMLA Synchronize command to copy the cube incrementally from processing
    to query servers.
    Does that help?
    http://artisconsulting.com/Blogs/GregGalloway

Maybe you are looking for

  • Computer won't recognize HD canon HV20--trying to digitize dv tapes

    i don't understand why my computer isn't recognizing my camera when i connect the two via firewire + 400 to 800 adapter. i've tried restarting and all that. checked all connections...messed around with the log+capture settings. the only other reason

  • I want to add Robo Form to my toolbar but can't find out how to do this. Any suggestions?

    I'm trying to add Robo Form to my toolbar to prefill forms I need.I haven't been able to do this on Firefox. I had this on IE 8 and it was nice to be able to just click on it and forms were filled for me.

  • OVS 2.2.1 install on HP ProLiant BL465c G7 Blade

    I'm installing OVS on a HP ProLiant DL465c G7 Blade. The installation bombs at the beginning because it doesn't recognize the storage adapter. It prompts me for a driver disk but I need advise on how to do this. The server uses a HP SmartArray P410i

  • IPod Touch Sync Issues - Fails, then 100% CPU

    I've been having a problem where when I try to sync my iPod Touch on my computer, it fails some way through, then the CPU is cranked up to 100% and I have to forcibly restart my computer. Ever since I've installed Windows 7 64-bit I've been having sy

  • Can't get Final Cut to recognize my camera.

    I have a Canon VIXIA HF11 High def video camera and I can't get Final Cut Pro to recognize it. I don't have a firewire connection on the camera. It is a USB 2.0. I assume this is the root of the problem. iMovie recognizes the camera and imports the f