This should work right?

hi i have created the following jsp and placed it in the jsp folder of my web account but it does not work. and i don't know why can n e 1 help?
<%@ page import="java.sql.*, java.util.*, java.io.* "  %>
<% 
     Class.forName("com.mysql.jdbc.Driver").newInstance();
     java.sql.Connection con1 = null;
     Statement stmt1 = null;
     ResultSet rs1 = null;
     String queryStr1 = null;
try{
    con1 = DriverManager.getConnection(
          "jdbc:mysql://bushmouth.doc.stu.mmu.ac.uk:3306/demos?user=demos&password=demo-pass");
    stmt1 = con1.createStatement();
    queryStr1 = "select * from films where year = 1987";
    rs1 = stmt1.executeQuery(queryStr1);
%>
<table>
<tr>
<%
       while (rs1.next())
                     int id = rs1.getInt(1);
               String title = rs1.getString(2);
               int year = rs1.getInt(3);
               String director = rs1.getString(4);
               String stars = rs1.getString(5);
               String review = rs1.getString(6);
%>
          <tr><td><%=id%></td><td><%=title%></td>
   <td><%=year%></td><td><%=director%></td>
   <td><%=stars%></td></tr>
          <tr><td colspan="5"><%=review%></td></tr>
<%
     }  // end while()
    }catch(SQLException s){%> <%= s%> <% }
   finally{
    // clean up.
         try{
          if (rs1!=null) rs1.close();
          if (stmt1!=null) stmt1.close();
          if (con1!=null) con1.close();
     }catch(SQLException s){}
%>
</TABLE>

It is working.
You just have to go to this URL: http://bushmouth.doc.stu.mmu.ac.uk:8080/student/mod2/dutts/jsp/jsp.jsp
Note that ":8080" added in just after the URL do tell it to use port 8080 (the standard tomcat port)
Cheers,
evnafets

Similar Messages

  • Scripting in Terminal: This should work, right?

    I have mail configured on this Mac, and it [Mail app] is not running while I execute this script:
    echo "fetch the new pages" | mail [email protected]
    Reasons why it wont send the mail?
    Beavis2084

    i feel kinda dumb... the log... duhhhhhh
    yeh... one look and i saw that it was being bounced...
    here is the soultion:
    echo "something u want to say" | sendmail -f [email protected] [email protected]
    the domain of sender address has to exist. at least that is true for .Mac email account users. which is what i use for mail. the log shows it's a mac.com relay server being used:
    status=bounced (host smtp-mx1.mac.com)
    obviously, i could setup postfix to use whatever server i want or some other method, but for this application, this works for me.
    Beavis2084

  • This should work

    I just purchased a Maxtor 200 GB and an enclosure. I had another enclosure with a 120 GB. Both are Oxford chips. Both are 400 firewire.
    I had the 120 setup as a bootable backup, and have no trouble with that working as it should. It shows up in Startup Manager, and can be selected and used as a stratup device.
    Now, the 200 is another issue. I clone over a copy of my hard drive, and it does not show up in Startup Manager. It shows up in the Startup Disk Pane, but when I select it, it goes to the internal drive.
    I switched enclosure cases, and the 120 still works, but the 200 still does not.
    1. Repaired the 200 disk with DU and DW (no problems found).
    2. Reset PRAM
    3. Reset PRAM again
    4. As I said, I switched the enclosures
    Anyone got a helpful hint? Thanks.

    Done it many times myself. Here's how to hide those files:
    Here's how to make a /.hidden file. This only works for admin users.
    1. Open the Terminal.
    2. Type "pico /.hidden" without the quotation marks.
    3. Type the names of the file/folder you want hidden.
       The resulting list should have one name per line.
    4. Hit Control-O then the Return key to save /.hidden.
    5. Hit Control-X to Exit.
    6. Type "sudo chmod a=r /.hidden" without quotes.
    7. Enter password if asked.
    8. Type "sudo chown root:wheel /.hidden" without quotes.
    9. Quit Terminal.
    10. Restart the Computer.

  • Ichat should work right off the box!

    I've been strugling to get video chat to work for months. Users should never have to deal with the complications of network setting and port opening, or if there is any problem the application should be able to point out the right way to solve the issues. It's frustrating to see "user not respond" and "insufficient bandwidth", even when the real problem has little to do with these messages.
    ichat should just work. I'm saying this because long hours of correcting network problems at your end doesn't mean that you'll be able to chat with anyone who might have problems at their end as well. I'm able to get my ichat to work with apple test account but whenever I wanted to talk with anyone I had to go through troubleshooting their network setting to make sure that everything is ok. It is just a waste of time and productivity...
    It's a shame that my only quick solution was to go back to my old pc laptop and use msn messanger for video conference with them. Yes you hear it right, the IM app with those ugly and distastful ad and interface. Guess what? it always worked!
    Since when that mac users need to substitute their reliable OS with microsoft windows?
    (I hope this doesn't offend anyone. I just need to complain)

    I understand what you're trying to say.
    Apple shouldn't be responsible for anyone who's not capable of using thier machine either. Most of people here have spent considerable amount of time in trying to get this thing to work and they all had to be responsible for their time too.
    I'm aware of compatibility issue between apple's application and third-party routers/modems, let alone the fact that ichat connectivity problem from airport base station can also be seen. Any developer of applications like P2P sharing or IM should bear in mind the variability of protocols and standards employed in network periperials people are using these days. Having considered that, I'd say Skype is a successful story.
    So are you saying that there is nothing there needed to be done? One type of users, who appreciate a machine that can do things they want it to do, will have very different opinion to the other type of users, who like to see how the machine is doing it. There is no right or wrong here. It just a subjective view. Some users of ichat are definitely not so happy. That is the fact.
    I believe everybody here appreciate you and Ralph's helps. There is no doubt to that.

  • Iphoto to imovie to idvd should work right?

    After importing my photos and little AVI movies from my Canon digital camera to iphoto, I decided to make a slightly cooler DVD by adding more transitions, chapter titles, video and sound effects. So I imported them into imovie. Everything looked great and I pushed the create idvd button. I made cool menus and dropped slides into the right menus and drop zones etc. Previews played back fine. I was ready to burn. That was three days ago!!! Four successive attempts to burn the DVD failed.
    First a multiplexing problem. I seemed to fix that by taking stuff off my startup disc. Keeping 26 gigs did the trick.
    Then there was this burning error that I still cannot figure out.
    I tested my burner first by taking one of the mini movies from my imovie and burned a DVD in the finder. It burned fine. The file I burned just could not open! I keep getting the following quicktime error: my "quicktime.mp4 contains invalid MPEG-4 audio, see below....An audio elementary stream descriptor is corrupted. Expected type=0X65736473 ('esds');found type=0X000000001 instead"
    I have considered taking each movie I imported from iphoto and converting it with my Quicktime Pro (to what I'm not sure yet) and then putting it back into imovie and then IDVD once again. Also, I have considered starting over with iphoto again. This time importing them from imovie directly rather than exporting them from iphoto and then importing them into imovie. (By the way should the frames be black in the timeline? Only the movies are visible. They all play fine on the viewer but for some reason that does not seem right.
    Anyway, shouldn't iMovie be converting ANY movie imported from iPhoto into a format that iDVD understands? Also, if everything previews fine in IDVD, shouldn't it be burning fine too? I mean these programs are suppose to be seamless right?
    I have the option of omitting iphoto and i movie altogether by importing the pictures and movies into FCE2 and then burning it in toast. Is that an easier solution? Is there any formula to get the best DVD from digital photos and movies from a digital camera? Anyway, any ideas and thoughts would be most welcome.

    I ended up re doing the entire project again. This time though I cropped the photos in iphoto first then exported them as dv files to imovie. This seems to have worked though I was very disappointed with the performance of Imovie and idvd. The transitions between photos in idvd sometimes were yellow particularly the one that the picture shrinks and fades away. Also the pictures seem to be perfectly clear then turn fuzzy. This seems to be a change from earlier versions of the program. I am going to experiment with importing photos info fce2 and directly into idvd. it may be that imovie and idvd are just inferior programs to something like fce2 or dvd studio pro. Good luck
    Theo

  • Handling events in subvis - think this should work but it doesn't.

    In part of a large project I need to handle key down events, but elsewhere I need to handle them differently and want to be able to dynamically register and unregister them in each location. I also want to be able to put one of the event handlers in a subvi. To quote the Help system, "Dynamically Registering Events: With dynamic registration, you can handle events in a subVI rather than only in the VI where the events are generated."
    ViThatHandlesEvents.vi handles key down events. It uses dynamic event registration to demonstrate that it works (though in this simple example it isn't necessary).
    ViContainingSubviThatHandlesEvents registers key down events and passes this to KeyDnEventHndlrSubVI. I thought it would work but it doesn't.
    Attachments:
    KeyDnEventHndlrSubVI.vi ‏14 KB
    ViThatHandlesEvent.vi ‏22 KB
    ViContainingSubviThatHandlesEvent.vi ‏18 KB

    cebailey wrote:
    Here's a version with Panel > OwningVI > Key Down selected in the nodes that register events. It seems to do what I want. It acts on keystrokes that occur when the cursor isn't even over the parent's window, which is good in my situation. I made these choices by experimenting - is this a good approach, if I want to act on all the keystrokes that occur when the parent VI has focus?
    As you noted, this will have the event structure respond to keypresses whenever the parent VI is active. You can simplify the subVI by simply wiring the "VI Refnum" terminal directly to the Register for Events node. Getting the Panel, and then the Owning VI simply gets you back to where you started.
    That's a valid way of doing it, and I'm assuming that this is intended to be a test case. As you noted you have a large project, so I don't know what your overall architecture is, or how you intend to use this technique, so I can't really say whether it's a "good" approach. It's an approach.
    Say, I should have said this before, but you have to be pretty good to answer the question somebody should be asking, especially in brief forum postings.
    Thanks for the compliment. It's just a matter of seeing a lot of code and a lot of questions. I'm only a teenage pup compared to the real veterans on this board.

  • I upgraded to version 9 from version 8. The following items do not work properly - menu, home page, navigation bar, wheel click. I backed up to version 8, and none of this stuff works right. How do I fix this?

    When I open Firefox, the bookmark menu is a little tab in the upper left corner. If I go to view and un-click bookmark menu and then view, click it, the standard menu bar shows up. The Back and Forward buttons don't work. The navigation window does not show the URL of the current page. When opening, the home page does not come up. The wheel click works on the bookmark bar, but not within a page. The menu (file, edit, etc) does not work after the first page. Version 8 worked well. When I upgraded to version 9, all this trouble started. I backed up to version 8, but the problem persists.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox

  • Thi should work but is not. (Longish code Sorry :))

    Hi I am using a ArrayList that can be set to various other arrayList values according to what commant is sent to the BL of my application. I know I am doing something wrong coz if I return the phonlist alone in my getList method by making the modifiedList equal to the phonelist i get the correct output. However I now try make the list variable equal to the phoneList in my createNew() and then i try set the modifiedList variable to the value of the list variable. It does not work.
    Declaration in class
    ArrayList<Person> phoneList = new ArrayList<Person>();               // To hold all the contacts
         ArrayList<Person> searchList = new ArrayList<Person>();               // To hold all contacts that return true on search
         ArrayList<Person> list = new ArrayList<Person>();
         final int maxLength = 10;                                                  // To be used as a boundary value for the Strings enteredWhere I set the list to be the value of the phoneList in my createNew()
    public void createNew()
         { // start of createNew()
              Person p = new Person();
              boolean validNewEntry = true;                                        // A boolean that determines if the ArrayList must be updated
              int count = 0;                                                            // Counter used in loop
              int homeNum, workNum, cellNum =0;                                   // To be used in a try statemant to test validity
              //Get new Contacts name
              String newName = JOptionPane.showInputDialog(null,"Please enter new contacts name or press cancel to exit.");
              if(newName == null)
                   finish();
              //If no name was enetered warn and try again
              if(newName.length() <= 0)
                   JOptionPane.showMessageDialog(null,"You may not enter a empty name. Please try again.","Error",JOptionPane.ERROR_MESSAGE);
                   validNewEntry = false;
                   createNew();
                   return;
              //If name was enetered and it's length was greater then 10 chars long
              //Retry and warn as this will lead to a faulty layout in the GUI
              if(newName.length() > 10)
                   JOptionPane.showMessageDialog(null,"You may not enter a name longer than 10 characters. Please try again.","Error",JOptionPane.ERROR_MESSAGE);
                   validNewEntry = false;
                   createNew();
                   return;
              //Get the new contacts surname
              String newSurname = JOptionPane.showInputDialog(null,"Please enter the new contacts surname or press cancel to exit.");
              if(newSurname == null)
                   finish();
              //If the surname is greater than 10 chars long
              //Retry and warn as this will lead to a faulty layout in the GUI
              if(newSurname.length() > 10)
                   JOptionPane.showMessageDialog(null,"You may not enter a surname longer than 10 characters. Please try again.","Error",JOptionPane.ERROR_MESSAGE);
                   validNewEntry = false;
                   createNew();
                   return;
              //If there was no surname entered check and make sure that they want a whitespace value for the surname.
              if(newSurname.length() <= 0)
                   int answer =JOptionPane.showConfirmDialog(null,"Are you sure you wish to leave the surname blank for new contact?","No date entered",JOptionPane.YES_NO_OPTION);
                   if(answer == JOptionPane.NO_OPTION)
                        validNewEntry = false;
                        createNew();
                        return;
                   else
                        validNewEntry = true;
              //Get the new contacts home number if there is one
              String newHome = JOptionPane.showInputDialog(null,"Please enter the contacts home number or press cancel to exit.");
              if(newHome.length()> 0)
                   try
                        homeNum = Integer.parseInt(newHome);
                   catch(Exception e)
                        JOptionPane.showMessageDialog(null,"You may only use numbers for a valid phone number. Please try again","Error",JOptionPane.ERROR_MESSAGE);
                        validNewEntry = false;
                        createNew();
                        return;
              // If there is a new pone number make sure that it is not longer than 10 characters
              // This may be changed as this is only correct in South Africa where phone number are not longer than 10 characters
              // If Data is changed please ensure to increase the spacing int the Layout
              if(newHome.trim().length()> 10)
                   JOptionPane.showMessageDialog(null,"You may not enter a number longer than 10 digits long. Please try again.","Error",JOptionPane.ERROR_MESSAGE);
                   validNewEntry = false;
                   createNew();
                   return;
              // Get the new work number if there is one.
              String newWork = JOptionPane.showInputDialog(null,"Please enter the contacts work number or press cancel to exit.");
              if(newWork.length()> 0)
                   try
                        workNum = Integer.parseInt(newWork);
                   catch(Exception e)
                        JOptionPane.showMessageDialog(null,"You may only use numbers for a valid phone number. Please try again","Error",JOptionPane.ERROR_MESSAGE);
                        validNewEntry = false;
                        createNew();
                        return;
              // If there is a new pone number make sure that it is not longer than 10 characters
              // This may be changed as this is only correct in South Africa where phone number are not longer than 10 characters
              // If Data is changed please ensure to increase the spacing int the Layout
              if(newWork.trim().length()> 10)
                   JOptionPane.showMessageDialog(null,"You may not enter a number longer than 10 digits long. Please try again.","Error",JOptionPane.ERROR_MESSAGE);
                   validNewEntry = false;
                   createNew();
                   return;
              // Get new cell number if there is one
              String newCell = JOptionPane.showInputDialog(null,"Please enter the contacts cell number or press cancel to exit.");
              if(newCell.length()> 0)
                   try
                        cellNum = Integer.parseInt(newCell);
                   catch(Exception e)
                        JOptionPane.showMessageDialog(null,"You may only use numbers for a valid phone number. Please try again","Error",JOptionPane.ERROR_MESSAGE);
                        validNewEntry = false;
                        createNew();
                        return;
              // If there is a new pone number make sure that it is not longer than 10 characters
              // This may be changed as this is only correct in South Africa where phone number are not longer than 10 characters
              // If Data is changed please ensure to increase the spacing in the Layout
              if(newCell.trim().length()> 10)
                   JOptionPane.showMessageDialog(null,"You may not enter a number longer than 10 digits long. Please try again.","Error",JOptionPane.ERROR_MESSAGE);
                   validNewEntry = false;
                   createNew();
                   return;
              // Check to see if contact is not a duplicate
              for(Person c: phoneList)
                   c = phoneList.get(count);
                   if((c.name).equals(newName.trim().toUpperCase())&&(c.surname).equals(newSurname.trim().toUpperCase()))
                        JOptionPane.showMessageDialog(null,"You may not enter duplicate contacts. \nPlease abbreviate or change the contacts name/surname.","Error",JOptionPane.ERROR_MESSAGE);
                        validNewEntry = false;
                        createNew();
                        break;
                   count ++;
              // If there were no phone numbers at all then set boolean to false as no point in adding a entry without numbers to a phonebook
              if((newHome.length()<=0) && (newWork.length()<=0) && (newCell.length()<=0))
                   JOptionPane.showMessageDialog(null,"You have not entered any phone numbers for "+newName+" "+newSurname+"\nThis phonebook only accepts new entries with at least one phone number.\nPlease try again!","Error",JOptionPane.ERROR_MESSAGE);
                   validNewEntry = false;
                   createNew();
                   return;
              //If all data entered was valid then try add it to the ArrayList
              if(validNewEntry == true)
                   try
                        p.name = newName.trim().toUpperCase();
                        p.surname = newSurname.trim().toUpperCase();
                        p.home = newHome.trim();
                        p.work = newWork.trim();
                        p.cell = newCell.trim();
                        phoneList.add(p);
                   catch(Exception e)
                        JOptionPane.showMessageDialog(null,"Could not add contact. If problem persists Please call the system Administrator.","Information Message",JOptionPane.INFORMATION_MESSAGE);
              list = phoneList;
         } // end of createNew()and lastly my getList() that returns the list to the GUI
    public ArrayList<Person> getList()
              ArrayList<Person> modifiedList = new ArrayList<Person>();
              modifiedList = list;
              return modifiedList;
         }Like I said it works if I do this....
    public ArrayList<Person> getList()
              ArrayList<Person> modifiedList = new ArrayList<Person>();
              modifiedList = phoneList;
              return modifiedList;
         }

    I haven't read everything yet, but looking at that code at the bottom:
    public ArrayList<Person> getList()
              ArrayList<Person> modifiedList = new ArrayList<Person>();
              modifiedList = phoneList;
              return modifiedList;
         }That first line in the method where you create a new ArrayList<Person>() doesn't do anything, since you just point modifiedList to phoneList in the next line anyways. This would do the same thing:
    public ArrayList<Person> getList() {
        ArrayList<Person> modifiedList = phoneList;
        return modifiedList;
    }Or, looking more closely at what you're doing:
    public ArrayList<Person> getList() {
        return phoneList;
    }

  • This should work but it doesn�t Please can someone tell me why !!!

    I have really trid to get this code to work.
    Please an some help me with find out why it will not work.
    void NewShoeOrderjButton_actionPerformed(ActionEvent e) {
       String check = TitleComboBox.getSelectedItem()+" "+FirstNameJText.getText()+" "+LastNameJText.getText();
       if (check !=null){
        return ;
        else
        String[] options = {"Yes", "Cancel"};
        String d= System.getProperty("line.separator");
        int result = JOptionPane.showOptionDialog(null,
            "Do you really want to add a new shoe order for:"+ d +
            (String) TitleComboBox.getSelectedItem()+" "+FirstNameJText.getText()+
            " "+LastNameJText.getText(),"New Order",
            JOptionPane.YES_OPTION,
            JOptionPane.INFORMATION_MESSAGE,
            null,
            options,
            options[0]);
        switch(result){
          case JOptionPane.YES_OPTION: // Add your code for no
            setFieldsEditable(false);
            break;
          case JOptionPane.NO_OPTION: // Add your code for yes
            // just playing with button
            setFieldsEditable(true);
            break;
      if
        (check ==null){
        return ;
        else{
          JOptionPane.showMessageDialog( null,
                                          "There is no order", "No Order",
                                         JOptionPane.WARNING_MESSAGE);
      }

    Thank you for taking the time mate ;)
    This is he code changed with your code.
    when the title,first &last name is null it still only runs the 1st JOptionPanel and dosn't pass to the 2nd ??
    here is the code
      void NewShoeOrderjButton_actionPerformed(ActionEvent e) {
        String check=null;
        if(TitleComboBox.getSelectedItem() != null &&
           FirstNameJText.getText() != null &&
           LastNameJText.getText() != null)
          check=TitleComboBox.getSelectedItem()+FirstNameJText.getText()+LastNameJText.getText(); //the rest of the thing.......;
    //then you check "check":
        if(check != null){
          //show the first optionpane
          String[] options = {"Yes", "Cancel"};
          String d= System.getProperty("line.separator");
          int result = JOptionPane.showOptionDialog(null,
              "Do you really want to add a new shoe order for:"+ d +
              (String) TitleComboBox.getSelectedItem()+" "+FirstNameJText.getText()+
              " "+LastNameJText.getText(),"New Order",
              JOptionPane.YES_OPTION,
              JOptionPane.INFORMATION_MESSAGE,
              null,
              options,
              options[0]);
          switch(result){
            case JOptionPane.YES_OPTION: // Add your code for no
              setFieldsEditable(false);
              break;
            case JOptionPane.NO_OPTION: // Add your code for yes
              // just playing with button
              setFieldsEditable(true);
              break;
        }else{
          //show the second optionpane
          JOptionPane.showMessageDialog( null,
                                         "There is no order", "No Order",
                                         JOptionPane.WARNING_MESSAGE);
      }

  • This should work? error missing return statement.

    Why do I get this error?
    missing return statement
    To me the code seems good?
    public SortAbstractProduct createSorter(String whichAlgorithm) {
    if (whichAlgorithm.equalsIgnoreCase("BubbleSortProduct") )
    System.out.println("from scf buublesort check");
    return new BubbleSortProduct();
    if (whichAlgorithm.equalsIgnoreCase("OptimsedBubbleSortProduct") )
    System.out.println("from scf optimesed buublesort check");
    return new OptimisedBubbleSortProduct();
    if (whichAlgorithm.equalsIgnoreCase("QuickSortProduct") )
    System.out.println("from scf Quicksort check");
    return new QuickSortProduct();
    }

    You need to retrun an object of SortAbstractProduct, yet your are trying to return 3 different types(BubbleSortProduct, OptimisedBubbleSortProduct, QuickSortProduct). These need to be subclasses of SortAbstractProduct, then you will be able to cast them it.

  • ATV V1 and V2 on same network.  That should work, right?

    ATV version 1 and version 2 can be used on the same network, right?  assuming so.  i see V1 selling on craigslist for 25-50 bones and figure i can outfit the rest of my TV's with them.  anyone had issues?  thanks!

    3 1's and 3 2's here, no problems for me

  • Adding a TC into an AT&T U-Verse network - will this scenario work?

    Hi all - my current setup is as follows ...
    DSL service is AT&T U-Verse, provided via a 2WIRE modem/router located in the basement. The house is extensively hardwired with CAT5 cables that all terminate at the 2WIRE location, so I have strong wired support wherever I need it. But the 2WIRE is a poor wireless device, and its location in the basement further limits its usefulness.
    My main machine, a MacBook Pro, is in a 2nd floor office hardwired to the 2WIRE for performance reasons.
    I have been using a Buffalo LinkStation NAS for my Time Machine backups. This was not easy to setup and has had a few hiccups over the past year so I've been thinking of using something else for TM and retask the Buffalo for archiving video and RAW files. Right now I use a Cisco switch to split the office Ethernet run to service the Buffalo and the MBP.
    My first inclination was to purchase an inexpensive 1TB drive for TM and hardwire it to the MBP. This is ok since this machine is normally hooked up to other peripherals when in the house (I only use it as a laptop when I travel). But there are two other mobile MBs in the house, plus an iTouch, and they all suffer from the 2WIRE's poor wireless so I've been thinking of going the TC route instead to solve both problems at the same time.
    Here's what I'd like to do - does this make sense?
    I'd keep the 2WIRE in place, serving the hardwired locations as it does today and leaving it's radio on for the non-Apple devices. I would connect the run from the 2WIRE to the office (which currently feeds the Cisco switch) to the TC and configure the TC in bridge mode so it basically extends the 2WIRE network.
    I would be able to use the TC's wireless for the Apple devices in the house.
    I would hardwire the TC-MBP connection for TM purposes to get better performance, and also run the Buffalo off the TC via wire.
    Does this make sense and, more importantly, will it work? My goals are a) have a more reliable solution for TM, and b) improve wireless support in the house.
    Thanks!
    Message was edited by: PTDiMarzio
    A diagram of what I'd like to have ...
    2WIRE --> various existing wired and wireless devices
    |
    --> Time Capsule
    | | |----> various wireless devices
    | |
    | ----> hardwired to MBP for TM use
    |
    |----> hardwired to Buffalo NAS, visible to MBP
    Message was edited by: PTDiMarzio

    Welcome to the discussion area, PTDiMarzio!
    I'd keep the 2WIRE in place, serving the hardwired locations as it does today and leaving it's radio on for the non-Apple devices. I would connect the run from the 2WIRE to the office (which currently feeds the Cisco switch) to the TC and configure the TC in bridge mode so it basically extends the 2WIRE network.
    This should work very well. For the TC, you'll need to configure the wireless with exactly the same wireless network name, security and password as the 2Wire to create a seamless "roaming" network. Devices will be able to "roam" from area to area without having the change networks in this type of configuration.
    I would be able to use the TC's wireless for the Apple devices in the house.
    The TC will create a dual band network, so you'll have the advantage of both 5 GHz and 2.4 GHz bands for your wireless devices. Since the TC will be in bridge mode, it will not be possible to enable the separate Guest Network feature on the TC...a possible downside depending on your plans.
    I would hardwire the TC-MBP connection for TM purposes to get better performance, and also run the Buffalo off the TC via wire.
    You will be able to take advantage of the Gigabit ethernet capability of the TC and your devices. I'm not sure if the Buffalo drive has Gigibit ethernet ports or not.
    Does this make sense and, more importantly, will it work?
    Should work very well. The only tricky part will be matching the wireless security settings on the TC with the 2Wire. If the security settings don't match exactly, you will wind up with two separate networks, each requiring their own log in.
    I helped a neighbor recently with a similar setup on a 2Wire and Apple router. The 2Wire was using WPA-PSK-TKIP encryption and we found that choosing the WPA/WPA2 Personal option on the AirPort matched up nicely. The two routers now provide in effect, one large wireless network. Works great.

  • ODI and XML - how can I get this to work?

    Hi all.
    I'm working on a new dwh solution where the main source of data will come from XML-files. The problem is that we are having difficulties with the use of abstract types in the xsd-file.
    We currently use ODI to read the XML-files and to store the data in our database, but all fields from the XML-files are not visible in the target tables.
    The problem can be simplified like this example:
    We have a main element, testElement, which can contain one or more publications.
    Publication is of type PublicationType, and PublicationType is an abstract that contains title, author and date.
    We have four other types which extends PublicationType; BookType, MagazineType, NewspaperType and AdsType. They all contain additional fields.
    XSD-file
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="urn:testing:kontroll:example:oppgave:v1"
    xmlns:tns="urn:testing:kontroll:example:oppgave:v1"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    elementFormDefault="qualified">
         <element name="testElement" type="tns:TestElementType" xdb:defaultTable="TEST_TAB" />
         <complexType name="TestElementType">
              <sequence>
                   <element name="publication" type="tns:PublicationType" minOccurs="1"
                        maxOccurs="unbounded" />
              </sequence>
         </complexType>
         <complexType name="PublicationType" abstract="true">
              <sequence>
                   <element name="title" type="string"/>
                   <element name="author" type="string" minOccurs="0"
                        maxOccurs="unbounded" />
                   <element name="date" type="string"/>
              </sequence>
         </complexType>
         <complexType name="BookType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="ISBN" type="string"/>
                             <element name="publisher" type="string"/>
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
         <complexType name="MagazineType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="editor" type="string"/>
                             <element name="period" type="string" minOccurs="0"
                                  maxOccurs="1"/>
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
         <complexType name="NewspaperType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="daily" type="boolean"/>
                             <element name="owner" type="string" minOccurs="0"
                                  maxOccurs="1"/>
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
         <complexType name="AdsType">
              <complexContent>
                   <extension base="tns:PublicationType">
                        <sequence>
                             <element name="company" type="string"/>
                             <element name="article" type="string" />
                        </sequence>
                   </extension>
              </complexContent>
         </complexType>
    </schema>
    XML-file
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:testElement xmlns:tns="urn:testing:kontroll:example:oppgave:v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:testing:kontroll:example:oppgave:v1 ExampleXMLSchema.xsd ">
    <tns:publication xsi:type="tns:BookType">
    <tns:title>Boken</tns:title>
    <tns:author>Arne Svendsen</tns:author>
    <tns:date>2001</tns:date>
    <tns:ISBN>78979797</tns:ISBN>
    <tns:publisher>The Company Ltd</tns:publisher>
    </tns:publication>
    <tns:publication xsi:type="tns:MagazineType">
    <tns:title>Fancy Magazine</tns:title>
    <tns:author>Mads Madsen</tns:author>
    <tns:date>2011</tns:date>
    <tns:editor>Svante Svantesen</tns:editor>
    <tns:period>weekly</tns:period>
    </tns:publication>
    </tns:testElement>
    Can anybody tell me if this should work (and why it doesn`t)? Or if the XSD/XML looks wrong in some way?
    Is this a known limitation in Oracle or ODI etc.?
    Any pointers to documentation describing similar problems would also be helpful.
    Thanks,
    Bjørn
    Edited by: Bob1 on Dec 22, 2011 7:01 AM
    Edited by: Bob1 on Dec 22, 2011 7:03 AM

    From what I found in the document http://docs.oracle.com/cd/E25054_01/integrate.1111/e12644.pdf (section B.7.2.6), ODI does not support abstract=true for complextypes. The driver simply ignore them.
    We made a new xsd without these tags and were able to generate the required tables.
    I am a bit surprised that ODI don't support these abstract-tags.
    Regards Bjørn
    Edited by: Bob1 on Jan 2, 2012 1:45 PM

  • Cando touchscreen right click evtouch - should work for others too

    I've made some changes to the xf86-input-evtouch PKGBUILD that i enclose here (not the official one) , now it works out of the box with Cando touchscreen in monotouch mode and with windows style right click.
    It should work with others touchscreen too, it now works with standard /dev/input/event devices and input class, no need to edit udev rules anymore, but the calibrate conf file which i provide here is for s10-3t, so you probably willl have to calibrate before you can use it.
    If you need to edit evtouch options put them in /etc/X11/xorg.conf.d/99-evtouch_click.conf  because  /etc/X11/xorg.conf.d/90-evtouch_cal.conf get overwritten at every calibration.
    useful options:
    http://www.conan.de/touchscreen/evtouch.html
    http://www.conan.de/touchscreen/libtouch.html
    my tarball (uncompress, cd in the exrated folder and do makepkg)
    http://hotfile.com/dl/100088884/c82cffa … ar.gz.html
    let me know if you have a better hosting
    Thanks to GBORZI for the original packagebuild and the options in 99-evtouch_click.conf :-)

    Hello,
    i want to use evtouch with xorg 1.10, but i can't compile it.
    make[1]: entrant dans le répertoire « /tmp/yaourt-tmp-root/aur-xf86-input-evtouch/src/xf86-input-evtouch-0.8.8 »
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DXINPUT -march=i686 -mtune=generic -O2 -pipe -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -march=i686 -mtune=generic -O2 -pipe -MT evtouch_drv_la-evtouch.lo -MD -MP -MF .deps/evtouch_drv_la-evtouch.Tpo -c -o evtouch_drv_la-evtouch.lo `test -f 'evtouch.c' || echo './'`evtouch.c
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -DXINPUT -march=i686 -mtune=generic -O2 -pipe -fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1 -march=i686 -mtune=generic -O2 -pipe -MT evtouch_drv_la-evtouch.lo -MD -MP -MF .deps/evtouch_drv_la-evtouch.Tpo -c evtouch.c -fPIC -DPIC -o .libs/evtouch_drv_la-evtouch.o
    In file included from evtouch.c:93:0:
    libtouch.h:51:9: erreur: unknown type name ‘LocalDevicePtr’
    libtouch.h:61:44: erreur: unknown type name ‘LocalDevicePtr’
    In file included from evtouch.c:94:0:
    evtouch.h:143:9: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:106:36: erreur: unknown type name ‘IDevPtr’
    evtouch.c:110:15: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:128:9: erreur: ‘EVTouchPreInit’ undeclared here (not in a function)
    evtouch.c:186:13: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c: In function ‘emulate3Timer’:
    evtouch.c:200:9: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:200:33: erreur: ‘LocalDevicePtr’ undeclared (first use in this function)
    evtouch.c:200:33: note: each undeclared identifier is reported only once for each function it appears in
    evtouch.c:200:48: erreur: expected ‘,’ or ‘;’ before ‘_local’
    evtouch.c:201:59: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:205:34: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:215:43: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:224:43: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:236:43: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c: In function ‘DoBtnAction’:
    evtouch.c:251:9: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:269:51: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c: In function ‘EVTouchProcessAbs’:
    evtouch.c:320:3: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:324:31: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:328:31: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:335:31: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:339:31: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c: In function ‘EVTouchLBRBEvent’:
    evtouch.c:388:9: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:399:57: attention : passing argument 5 of ‘TimerSet’ makes pointer from integer without a cast [enabled by default]
    /usr/include/xorg/os.h:189:29: note: expected ‘pointer’ but argument is of type ‘int’
    evtouch.c: Hors de toute fonction :
    evtouch.c:494:16: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c: In function ‘DeviceOn’:
    evtouch.c:507:9: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:507:33: erreur: ‘LocalDevicePtr’ undeclared (first use in this function)
    evtouch.c:507:49: erreur: expected ‘,’ or ‘;’ before ‘dev’
    evtouch.c:508:60: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:510:14: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:510:41: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:514:18: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:516:75: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:520:37: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:527:38: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:528:22: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:538:29: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:540:24: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:541:76: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:545:9: attention : passing argument 1 of ‘xf86AddEnabledDevice’ makes pointer from integer without a cast [enabled by default]
    /usr/include/xorg/xf86Xinput.h:152:23: note: expected ‘InputInfoPtr’ but argument is of type ‘int’
    evtouch.c: In function ‘DeviceOff’:
    evtouch.c:561:9: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:561:33: erreur: ‘LocalDevicePtr’ undeclared (first use in this function)
    evtouch.c:561:49: erreur: expected ‘,’ or ‘;’ before ‘dev’
    evtouch.c:562:60: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:566:18: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:568:28: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:569:17: attention : passing argument 1 of ‘xf86RemoveEnabledDevice’ makes pointer from integer without a cast [enabled by default]
    /usr/include/xorg/xf86Xinput.h:153:23: note: expected ‘InputInfoPtr’ but argument is of type ‘int’
    evtouch.c:575:38: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:576:22: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c: In function ‘DeviceInit’:
    evtouch.c:595:9: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:595:33: erreur: ‘LocalDevicePtr’ undeclared (first use in this function)
    evtouch.c:595:49: erreur: expected ‘,’ or ‘;’ before ‘dev’
    evtouch.c:596:60: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:653:9: attention : ‘Xcalloc’ is deprecated (declared at /usr/include/xorg/os.h:226) [-Wdeprecated-declarations]
    evtouch.c:673:36: erreur: invalid type argument of ‘->’ (have ‘int’)
    evtouch.c:686:36: erreur: too few arguments to function ‘xf86InitValuatorAxisStruct’
    /usr/include/xorg/xf86Xinput.h:148:23: note: declared here
    evtouch.c:695:36: erreur: too few arguments to function ‘xf86InitValuatorAxisStruct’
    /usr/include/xorg/xf86Xinput.h:148:23: note: declared here
    evtouch.c:721:9: attention : passing argument 1 of ‘xf86MotionHistoryAllocate’ makes pointer from integer without a cast [enabled by default]
    /usr/include/xorg/xf86Xinput.h:166:23: note: expected ‘InputInfoPtr’ but argument is of type ‘int’
    evtouch.c: Hors de toute fonction :
    evtouch.c:809:24: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:885:13: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:903:12: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:923:15: erreur: unknown type name ‘LocalDevicePtr’
    evtouch.c:1147:36: erreur: unknown type name ‘IDevPtr’
    make[1]: *** [evtouch_drv_la-evtouch.lo] Erreur 1
    make[1]: quittant le répertoire « /tmp/yaourt-tmp-root/aur-xf86-input-evtouch/src/xf86-input-evtouch-0.8.8 »
    make: *** [all] Erreur 2
    ==> ERREUR: Une erreur s'est produite dans build().
    Abandon...
    ==> ERREUR: Makepkg n'a pas pu construire xf86-input-evtouch.
    ==> Relancer la compilation de xf86-input-evtouch ? [o/N]
    ==> ----------------------------------------------------
    i can't  download the tar.gz at http://hotfile.com/dl/100088884/c82cffa … ar.gz.html.
    thk

  • I seem to have fixed my problem of randomly occuring errors in my filterwheel control. But I don't know why this should actually work.

    Hi there,
    I am using a thorlabs fw102B filterwheel. It's connected via USB (simulating COM port, that's what it says in MAX). The second device is a camera, also connected via USB. The application is running 24/7, at least that's what it's supposed to do. LabView version is 8.6.
    The LabView code I wrote for this, was never really finished, meaning I totally ignored error handling in the first program version.  That never bothered me, because the program ran for weeks and months without any problem. Whenever I had to reboot my system it was not LabViews fault, but I was changing something else.
    Recently I was running into problems with the filterwheel (after a system reboot). However, I don't understand the error in the first place: The filterwheel is supposed to change position every 15 minutes, in between the camera is taking exposures, then the data is written to an ASCII-file (only ~156 kB). At first the error occured just once: the filterwheel was set to the wrong position for about 15 minutes, which might happen, as it is not really could in counting. A few days later it was in that wrong positon for one hour, so it didn't respond to the "move" order four times in a row. Finally I didn't move at all anymore. The error message I was getting is "0xFFFFFFF unkown status code". In my opinion the communcation to the filterwheel got lost somehow. I don't know a better explantion. 
    But why should it recover after some time?
    The problem usually occured at night, when nobody is there to watch.
    I investigated the behaviour in a second setup (see attachment). There is only the filterwheel connected. Through randomly unplugging the USB or power cable I was able to reproduce 'session handle is not valid', 'unkown status code' and 'session handle lost'. The program enters the 'true case', the session is to be closed and resetted, then it shall be reinitialized. This actually works as soon as the cables are reconnected. But why?
    The close.vi still returns 'session handle is not valid', The reset.vi returns the same, but initialize.vi returns 'No Error' and the system works again.
    What am I not getting here?
    I read some threads here and somebody mentioned for another instrument/problem to use the 'reset' command twice. So I tried 'close-initialize', 'reset-reset-initialize', 'reset-initialize' but only 'close-reset-initialize' works (not surprising). Yet I still get the same errors (probe 1 and 2). Am I introducing more bugs without knowing than I fixed?
    I AM CONFUSED.
    Carsten
    Attachments:
    error_catch.png ‏273 KB

    Hello Ulrich,
    thank you for your answer. Concerning the dataflow I agree and it is what I usually do. Actually I follow the dataflow paradigm whenever there is no problem (the 'false case' in the screenshot):
    “FW102x Initialize.vi” -> “FW102x Get Position.vi” -> “FW102x Set Position.vi”.
    Whenever there is a mistake, this just doesn't work with these drivers. The sequence
    “FW102x Initialize.vi” -> “FW102x Get Position.vi”  -> ///error/// -> “FW102x Close.vi”, “FW102x Reset.vi”  ;; “FW102x Initialize.vi”
    will give me errors for “FW102x Close.vi”, “FW102x Reset.vi”  and “FW102x Initialize.vi” reporting "session handle not valid". However, if I "bypass" the instrument handles directly from the first "Initialize" to "Close" and "Reset", they will report the same error, but the second "Initialize" will work again. I can even merge the first two frames and execute "Close" and "Reset" at the same time to do so. But whenever I try something else, e.g. do the 'correct' wiring, I am unable to close, reset or reinitialize. I have to restart LabView completely, to make the vi work again. So I guess the session is still hanging around somewhere in memory, but I can't access it anymore.
    Surprisingly, wherever I put Probes on the data handle wires they show the correct "ASRL5::INSTR" (with or without correct wiring). But only the "Bypass" wire makes the vi work. Since you couldn't find the drivers in the driver network, I guess they might just run into problems, if an error occurs.
    But thanks for your comment anyway. The problem is fixed for the moment. It's just that I prefer to actually know what I am doing here instead of producing some code I'd rather not show anyone.
    Carsten

Maybe you are looking for

  • Office live mail can't connect to Palm Pre Please Help!!!

    My email is through office live, where I set up my own domain .org. I have tried for hours every solution that's been posted online. I have called palm pre support and I knew more then the nice person trying to assist me. Not one solution works even

  • Canon S100 RAW color issues

    Hello, all. I created a thread with this similar issue a few months ago but never really got it resolved. Instead of reviving an old thread, I decided to just recreate it with updated information. I have the new Canon S100 and I am having an issue wi

  • Main window data to be page protected in smartform

    Hello Experts, I want to make Main window data to be page protected. But page Protection check box is in Noneditable mode . Please let me know, how to make main window data to be page protected. Regards Mohit

  • How to use gotoandplay scene link using class property (external code.as)

    Hello I am using 'gotoandplay' scene by scene link using this code. If I use this in the same time line (internal), it's working properly but when I use this code in as a class, I got this error Call to a possibly undefined method MovieClip. I use th

  • Case statement help

    Hi Gurus, I have a requirement like this, I want to extract the service request which closed in last month and opened in the last three months of closing month (close month -3). When open month is previous month and timestampdiff(tsi_month, open mont