Can anyone spot any errors....

<%
     // +------------------------------------------------------------------------
     // | LEARNING STYLE DATA QUERY
     // +------------------------------------------------------------------------
     boolean learningstyle = false;
     String lstyleresult = "";
     int vscore=0;
     int ascore=0;
     int kscore=0;
     for (int i=0;i<visualnos.length;i++)
               if(arraydata[Integer.parseInt(visualnos)-1].equals("Y"))
                    vscore++;
     for (int i=0;i<auditorynos.length;i++)
               if(arraydata[Integer.parseInt(auditorynos[i])-1].equals("Y"))
                    ascore++;
     for (int i=0;i<doingnos.length;i++)
               if(arraydata[Integer.parseInt(doingnos[i])-1].equals("Y"))
                    kscore++;
     lstyleresult = "Visual: "+vscore+"/"+visualnos.length+"<br /><br />Audio: "+ascore+"/"+auditorynos.length+"<br /><br />Kinetic: "+kscore+"/"+doingnos.length;
     RS=Stmt.executeQuery("select userid from learningstyle where userid='"+sr_studentid+"' order by submitted desc,id desc");
     if (RS.first())
          PreparedStatement statement = ConnStar.prepareStatement("select data from learningstyle where userid='"+sr_studentid+"' order by submitted desc,id desc");
          learningstyle = true;
          String data = RS.getString("data");
          String[] arraydata = data.split(",");
          String[] visualnos = {"4","6","8","12","13","17","22","24","25","29","33","35","37"};
          String[] auditorynos = {"1","3","9","11","14","16","18","21","26","28","32","36","38"};
          String[] doingnos = {"2","5","7","10","15","19","20","23","27","30","31","34","39"};
     else if
          PreparedStatement statement = ConnStar.prepareStatement("select data from learningstyle where userid='"+sr_studentid+"' and input_type='manual' order by submitted desc,id desc");
          learningstyle = true;
          String data = RS.getString("data");
          String[] arraydata = data.split(",");
          String[] visualnos = {"1","2","3","4","5","6","7","8","9","10","11","12","13"};
          String[] auditorynos = {"14","15","16","17","18","19","20","21","22","23","24","25","26"};
          String[] doingnos = {"27","28","29","30","31","32","33","34","35","36","37","38","39"};
     else
          learningstyle = false;
%>
// line 77
sorry to annoy everyone.... its bugging me it wont work... the following are the two errors im getting.. line 77 at the bottom of the code
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 0 in the jsp file: /profiles/includes/learning_style_profile.jsp
Generated servlet error:
    [javac] Compiling 1 source file
E:\jakarta-tomcat-5.0.18\work\Catalina\localhost\star\profiles\learning_profile_jsp.java:1602: '(' expected
                ^
An error occurred at line: 77 in the jsp file: /profiles/includes/learning_style_profile.jsp
Generated servlet error:
E:\jakarta-tomcat-5.0.18\work\Catalina\localhost\star\profiles\learning_profile_jsp.java:1621: illegal start of expression
      out.write("\r\n\r\n");
                           ^
2 errors

You have written an "else if" without any test
statement
i.e. you have written:
if (something = true){
// Some code here
else if {
// Some code here
else {
// More code
code]
Can you see the problem with the second part of the
whole if statement?
It should be:if (something = true) {
// Some code
else if (somethingelse = true) {
// More code
else {
// etc etc
code]
Please note the above is psuedo code and you
shouldn't test for true like I have above.
Message was edited by:
c0demonk3yThose should be == comparisons, not = assignments.

Similar Messages

  • Can anyone spot the error in this script for iTunes?

    This AppleScript is designed to copy the Name and Artist of an iTunes track, then populate the Album Artist field with both, separated with an oblique. But when I run the script in iTunes, it only pastes the Artist name in to the Album Artist field and not the whole string.
    tell application "iTunes"
    if selection is not {} then -- if tracks are selected...
    set sel to selection
    set numTracks to (length of sel)
    set s to "s"
    if numTracks is 1 then set s to ""
    display dialog "Adds the name of the track and the name of the artist to the Album Artist field." & return & return & (numTracks & " track" & s & " selected.") buttons {"Cancel", "Continue"} default button 2 with title "Create Album Artist" giving up after 30
    if gave up of result is true then return
    repeat with t from 1 to numTracks
    tell contents of item t of sel
    set {album artist} to ({get artist} & " / " & {get name})
    end tell
    end repeat
    else
    display dialog "No tracks have been selected." buttons {"Cancel"} default button 1 with icon 0 giving up after 30
    end if -- no selection
    end tell

    Hello
    Try -
    tell item t of sel
    set album artist to (get artist) & " / " & (get name)
    end tell
    instead of -
    tell contents of item t of sel
    set {album artist} to ({get artist} & " / " & {get name})
    end tell
    In your original code, the left and right value of assignment are both list, i.e. -
    left value = {album artist}
    right value = {get artist, "/", get name}
    Consequently 'album artist' is assigned to the 1st item of the list at right, which is the result of 'get artist'.
    In order to avoid this, don't use list assingment, which is not necessary at all here.
    Also, I think you may just tell item t of sel, not contents of item t of sel.
    Hope this may help,
    H

  • Can ANYONE spot the memory leak??

    Hi, I have some code here, and there is a SERIOUS memory leak. Basically, I realized the leak was there when a report tried to execute this 100,000+ times and it bogged the system down to a crawl. Can anyone spot the leak? I will explain the variables below the code:
    char* getDescription(char* chFlag, char* chDEID, char* chKey, int keysize)
    //first, we need to allocate new Byte arrays....
    jbyteArray JchFlag = (*env1)->NewByteArray(env1,1);
    jbyteArray JchDEID = (*env1)->NewByteArray(env1,2);
    jbyteArray JchKey = (*env1)->NewByteArray(env1,40);
    //next, we need to put the correct info in those byte arrays....
    (*env1)->SetByteArrayRegion(env1,JchFlag,0,1,(jbyte*)chFlag); (*env1)->SetByteArrayRegion(env1,JchDEID,0,2,(jbyte*)chDEID); (*env1)->SetByteArrayRegion(env1,JchKey,0,40,(jbyte*)chKey);
    getDescriptionID =(*env1)->GetMethodID(env1,myjclass,"getDescription","([B[B[BI)Ljava/lang/String;");
    result              =(jstring)((*env1)->CallObjectMethod(env1,myjobject,getDescriptionID,JchFlag,JchDEID,JchKey,keysize))  ;   
        returnvalue = NULL;
        if(result == NULL)
           strcpy(holder1, "**********Error Finding Description**********");
        else { //now, we convert the jstring to a char *, so we can return the proper type...                       
                returnvalue=(char*)((*env1)->GetStringUTFChars(env1,result,&isCopy)) ;
                strcpy(holder1,returnvalue);           
                if(isCopy == JNI_TRUE)                    
                    (*env1)->ReleaseStringUTFChars(env1,result,returnvalue);                         
    (*env1)->DeleteLocalRef(env1,result);
    return holder1;
    //return description;
    }//end getDescription function
    -myjclass is global, it gets its value in the initialization.
    -any variables that are not declared in this function are, of course, globally defined.

    Hello Friends,
    I had also tried to use the ReleaseStringUTFChars after making the check of whether it does a copy or not.
    For me in Windows, it works fine most of the time. But when I go on increasing the no. of strings in a Vector of objects to more than 500 or something , then it occasionally fails.
    Just before ReleaseStringUTF, I do have the copied string in char* .
    Soon after Releasing, I do get a junk in the character array.
    I dont know why it happens like this.
    Please advice.
    Everyone suggest ReleaseStringUTF.
    But why it fails in Windows.
    And any one know about how it will behave in Alpha.
    It totally fails in Alpha.
    I could not get the string at all.
    Please help
    LathaDhamo

  • When I connect my iPhone 5C to my laptop containing my iTunes library, it does nothing and then I get a message saying phone has timed out! Can anyone shed any light on this one please?

    WHen I connect my iPhone 5C to my laptop containing my iTunes Library, nothing happens for a couple of minutes and then I get an error message saying phone timed out. Can anyone shed any light on this problem please?

    Hi 23Orchard,
    If your iPhone is timing out when connected to your computer, it sounds like a connection issue.
    Please try the things listed in
    iOS: Troubleshooting USB-related alerts when syncing
    http://support.apple.com/kb/TS5254
    Where one of the errors it addresses is
    An alert messages indicates "iPhone has timed out" during syncing.
    Thank you for visiting Apple Support Communities.
    Nubz

  • Problems with Overlay Layout - can anyone spot something wrong/missing?

    Hi folks, I'm developing a tool that allows you to draw rectangles around objects on an image. The rectangles are then saved, and you can move between images. For some reason, though my rectangles are not drawing on the panel. I am using the Overlay Layout. Can anyone spot what I'm doing wrong? (The TopPanel canvas appears to be there, as it's taking input from the mouse - the problem is simply that the red rectangles are not drawing on the panel). Please help!!
    So you know, there is a JFrame in another class which adds an instance of the ObjectMarker panel to it. It also provides buttons for using the next and previous Image methods.
    Any other general advice is appreciated too.
    * Object_Marker.java
    * Created on 07 April 2008, 15:38
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.event.MouseEvent;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.LinkedList;
    import java.util.List;
    import javax.imageio.ImageIO;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.OverlayLayout;
    import javax.swing.event.MouseInputAdapter;
    * @author Eric
    public class ObjectMarker extends javax.swing.JPanel {
         private static final long serialVersionUID = 6574271353772129556L;
         File directory;
         String directory_path;
         Font big = new Font("SansSerif", Font.BOLD, 18);
         List<File> file_list = Collections.synchronizedList(new LinkedList<File>());
         String[] filetypes = { "jpeg", "jpg", "gif", "bmp", "tif", "tiff", "png" };
         // This Hashmap contains List of Rectangles, allowing me to link images to collections of rectangles through the value 'index'.
         public static HashMap<Integer, List<Rectangle>> collection = new HashMap<Integer, List<Rectangle>>();
         BufferedImage currentImage;
         Thread thread;
         Integer index = 0;
         OverlayLayout overlay;
         private TopPanel top;
         private JPanel pictureFrame;
         String newline = System.getProperty("line.separator");
          * Creates new form Object_Marker
          * @throws IOException
         public ObjectMarker(File directory) {
              System.out.println("Got in...");
              this.directory = directory;
              File[] temp = directory.listFiles();
              directory_path = directory.getPath();
              // Add all the image files in the directory to the linked list for easy
              // iteration.
              for (File file : temp) {
                   if (isImage(file)) {
                        file_list.add(file);
              initComponents();
              try {
                   currentImage = ImageIO.read(file_list.get(index));
              } catch (IOException e) {
                   System.out.println("There was a problem loading the image.");
              // 55 pixels offsets the height of the JMenuBar and the title bar
              // which are included in the size of the JFrame.
              this.setSize(currentImage.getWidth(), currentImage.getHeight() + 55);
         public String getImageList() {
              // Allows me to build the string gradually.
              StringBuffer list = new StringBuffer();
              list.append("Image files found in directory: \n\n");
              for (int i = 0; i < file_list.size(); i++) {
                   list.append((((File) file_list.get(i))).getName() + "\n");
              return list.toString();
         private void initComponents() {
              top = new TopPanel();
              pictureFrame = new javax.swing.JPanel();
              OverlayLayout ol = new OverlayLayout(this);
              this.setLayout(ol);
              this.add(top);
              this.add(pictureFrame);
          * private void initComponents() {
          * javax.swing.GroupLayout pictureFrameLayout = new
          * javax.swing.GroupLayout(pictureFrame);
          * pictureFrame.setLayout(pictureFrameLayout);
          * pictureFrameLayout.setHorizontalGroup(
          * pictureFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          * .addGap(0, 497, Short.MAX_VALUE) ); pictureFrameLayout.setVerticalGroup(
          * pictureFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          * .addGap(0, 394, Short.MAX_VALUE) );
          * javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
          * this.setLayout(layout); layout.setHorizontalGroup(
          * layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          * .addComponent(pictureFrame, javax.swing.GroupLayout.DEFAULT_SIZE,
          * javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) );
          * layout.setVerticalGroup(
          * layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
          * .addComponent(pictureFrame, javax.swing.GroupLayout.DEFAULT_SIZE,
          * javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); }
          * This function returns the extension of a given file, for example "jpg" or
          * "gif"
          * @param f
          *            The file to examine
          * @return String containing extension
         public static String getExtension(File f) {
              String ext = null;
              String s = f.getName();
              int i = s.lastIndexOf('.');
              if (i > 0 && i < s.length() - 1) {
                   ext = s.substring(i + 1).toLowerCase();
              } else {
                   ext = "";
              return ext;
         public String getDetails() {
              saveRectangles();
              StringBuffer sb = new StringBuffer();
              for (int i = 0; i < file_list.size(); i++) {
                   try{
                   int count = collection.get(i).size();
                   if (count > 0) {
                        sb.append(file_list.get(i).getPath() + " "); // Add the
                        // filename of
                        // the file
                        sb.append(count + " "); // Add the number of rectangles
                        for (int j = 0; j < collection.get(i).size(); j++) {
                             Rectangle current = collection.get(i).get(j);
                             String coordinates = (int) current.getMinX() + " "
                                       + (int) current.getMinY() + " ";
                             String size = ((int) current.getMaxX() - (int) current
                                       .getMinX())
                                       + " "
                                       + ((int) current.getMaxY() - (int) current
                                                 .getMinY()) + " ";
                             String result = coordinates + size;
                             sb.append(result);
                        sb.append(newline);
                   } catch (NullPointerException e){
                        // Do nothing.  "int count = collection.get(i).size();"
                        // will try to over count.
              return sb.toString();
         private boolean isImage(File f) {
              List<String> list = Arrays.asList(filetypes);
              String extension = getExtension(f);
              if (list.contains(extension)) {
                   return true;
              return false;
         /** Draw the image on the panel. * */
         public void paint(Graphics g) {
              if (currentImage == null) {
                   g.drawString("No image to display!", 300, 240);
              } else {
                   // Draw the image
                   g.drawImage(currentImage, 0, 0, this);
                   // Write the index
                   g.setFont(big);
                   g.drawString(index + 1 + "/" + file_list.size(), 10, 25);
         public void nextImage() throws IOException {
              if (index < file_list.size() - 1) {
                   printOutContents();
                   System.out.println("Index: " + index);
                   saveRectangles();
                   index++;
                   currentImage = ImageIO.read(file_list.get(index));
                   this
                             .setSize(currentImage.getWidth(),
                                       currentImage.getHeight() + 55);
                   top.setSize(this.getSize());
                   top.rectangle_list.clear();
                   if (collection.size() > index) {
                        loadRectangles();
                   repaint();
         private void saveRectangles() {
              // If the current image's rectangles have not been changed, don't do
              // anything.
              if (collection.containsKey(index)) {
                   System.out.println("Removing Index: " + index);
                   collection.remove(index);
              collection.put(index, top.getRectangleList());
              System.out.println("We just saved " + collection.get(index).size()
                        + " rectangles");
              System.out.println("They were saved in HashMap Location " + index);
              System.out.println("Proof: ");
              List<Rectangle> temp = collection.get(index);
              for (int i = 0; i < temp.size(); i++) {
                   System.out.println("Rectangle " + (i + 1) + ": " + temp.get(i));
              // If the rectangle list has changed, set the list the current index
              // as the new list.
         private void loadRectangles() {
              System.out.println("We just loaded index " + index
                        + " into temporary memory.");
              System.out.println("Proof: ");
              List<Rectangle> temp = collection.get(index);
              top.rectangle_list = collection.get(index);
              for (int i = 0; i < temp.size(); i++) {
                   System.out.println("Rectangle " + (i + 1) + ": " + temp.get(i));
         private void printOutContents() {
              System.out.println();
              System.out.println("Contents printout...");
              for (int i = 0; i < collection.size(); i++) {
                   for (Rectangle r : collection.get(i)) {
                        System.out.println("In collection index: " + i + " Rectangle "
                                  + r.toString());
              System.out.println();
         public void previousImage() throws IOException {
              if (index >= 1) {
                   printOutContents();
                   System.out.println("Index: " + index);
                   saveRectangles();
                   index--;
                   currentImage = ImageIO.read(file_list.get(index));
                   this
                             .setSize(currentImage.getWidth(),
                                       currentImage.getHeight() + 55);
                   top.setSize(this.getSize());
                   top.rectangle_list.clear();
                   if (index >= 0) {
                        loadRectangles();
                   repaint();
         public void removeLastRectangle() {
              // This method removes the most recent rectangle added.
              try {
                   int length = collection.get(index).size();
                   collection.get(index).remove(length - 1);
              } catch (NullPointerException e) {
                   try {
                        top.rectangle_list.remove(top.rectangle_list.size() - 1);
                   } catch (IndexOutOfBoundsException ioobe) {
                        JOptionPane.showMessageDialog(this, "Cannot undo any more!");
    * Class developed from SSCCE found on Java forum:
    * http://forum.java.sun.com/thread.jspa?threadID=647074&messageID=3817479
    * @author 74philip
    class TopPanel extends JPanel {
         List<Rectangle> rectangle_list;
         private static final long serialVersionUID = 6208367976334130998L;
         Point loc;
         int width, height, arcRadius;
         Rectangle temp; // for mouse ops in TopRanger
         public TopPanel() {
              setOpaque(false);
              rectangle_list = Collections
                        .synchronizedList(new LinkedList<Rectangle>());
              TopRanger ranger = new TopRanger(this);
              addMouseListener(ranger);
              addMouseMotionListener(ranger);
         public List<Rectangle> getRectangleList() {
              List<Rectangle> temporary = Collections
                        .synchronizedList(new LinkedList<Rectangle>());
              temporary.addAll(rectangle_list);
              return temporary;
         protected void paintComponent(Graphics g) {
              super.paintComponent(g);
              Graphics2D g2 = (Graphics2D) g;
              g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                        RenderingHints.VALUE_ANTIALIAS_ON);
              g2.setPaint(Color.red);
              // Draw all the rectangles in the rectangle list.
              for (int i = 0; i < rectangle_list.size(); i++) {
                   g2.drawRect(rectangle_list.get(i).x, rectangle_list.get(i).y,
                             rectangle_list.get(i).width, rectangle_list.get(i).height);
              if (temp != null) {
                   g2.draw(temp);
         public void loadRectangleList(List<Rectangle> list) {
              rectangle_list.addAll(list);
         public void addRectangle(Rectangle r) {
              rectangle_list.add(r);
    class TopRanger extends MouseInputAdapter {
         TopPanel top;
         Point offset;
         boolean dragging;
         public TopRanger(TopPanel top) {
              this.top = top;
              dragging = false;
         public void mousePressed(MouseEvent e) {
              Point p = e.getPoint();
              top.temp = new Rectangle(p, new Dimension(0, 0));
              offset = new Point();
              dragging = true;
              top.repaint();
         public void mouseReleased(MouseEvent e) {
              dragging = false;
              // update top.r
              System.out.println(top.getRectangleList().size() + ": Object added: "
                        + top.temp.toString());
              top.addRectangle(top.temp);
              top.repaint();
         public void mouseDragged(MouseEvent e) {
              if (dragging) {
                   top.temp.setBounds(top.temp.x, top.temp.y, e.getX() - top.temp.x, e
                             .getY()
                             - top.temp.y);
                   top.repaint();
    }Regards,
    Eric

    Alright so I fixed it! I created a new class called BottomPanel extends JPanel, which I then gave the responsibility of drawing the image. I gave it an update method which took the details of the currentImage and displayed it on the screen.
    If anybody's interested I also discovered/solved a problem with my mouseListener - I couldn't drag backwards. I fixed this by adding tests looking for negative widths and heights. I compensated accordingly by reseting the rectangle origin to e.getX(), e.getY() and by setting the to original_origin.x - e.getX() and original_origin.y - e.getY().
    No problem!

  • I am having trouble with the Jpeg icons and also now thumbnails not being visable in bith teh Apple finder and now also Adobe Bridge. Can anyone shed any light on this ?

    I am having trouble with the Jpeg icons and also now thumbnails not being visable in bith teh Apple finder and now also Adobe Bridge. Can anyone shed any light on this ?

    Argh - once again, I find my solution right after posting this. Left out one modification to the SWIG script, now it runs in 29 seconds vs C 16 seconds, I can live with that.

  • HT204492 can someone help me ? My iMac remote control isn't working properly , well all buttons are working apart from the MENU button !! Can anyone shed any light on this ?

    can someone help me ? My iMac remote control isn't working properly , well all buttons are working apart from the MENU button !! Can anyone shed any light on this ?

    As this is the forum for PPC (pre-2006, non Intel) iMacs I assume that is what you have.
    Try pairing the remote again:
    How to Pair your Remote to your Mac:
    http://support.apple.com/kb/HT1619?viewlocale=en_US

  • I have tried all sugestions for how to charge my ipad 2 that no longer charges, and nothing seems to work, can anyone offer any new advise?

    I have tried all sugestions for how to charge my ipad 2 that no longer charges, and nothing seems to work, can anyone offer any new advise?

    While both the iPhone and the iPad use an Apple dock cable for charging, the iPad wants a 1100 mA charger, and the iPhone charger's a 500 mA charger. USB ports on newer Apple computers can switch into 1100 mA mode, but your average computer is going to put out no more than 500 mA and, possibly, quite less (for example, an un-powered USB hub will only put out 100 mA or so, and an iPad won't charge off that). The iPad will say "not charging" if it is trickle-charging (receiving less than 1000 mA of power).
    If the problem persists when using the 1100 mA iPad charger, you need to take it to an Apple store and have it serviced or replaced. Bring the iPad charger that you received with the iPad as it may be that the charger is defective and not putting out 1100 mA.
    If the problem is that it charges slow because it's being connected to iPhone chargers or PCs or older Macs, then it's not a problem with the iPad. It's charging, it just takes a long time because you are using an under-powered charger.

  • Well i m having an iphone 45  which i puchaes second hand ,well when i upgraded my phone to ios7 its asking me a paascode ,n my phone is disabled ,i never put a passcode ,,can anyone help . any solutios

    well i m having an iphone 45  which i puchaes second hand ,well when i upgraded my phone to ios7 its asking me a paascode ,n my phone is disabled ,i never put a passcode ,,can anyone help . any solutios

    Try this. turn it off > hold power and home button uuntil it says connect to itunes with the connect picture on it > then connect it to itunes > its gunna say you need to restore the iphone. download the software. hope it helps.

  • Can anyone recommend any good books on leaning actionscript for flash?

    Can anyone recommend any good books on leaning actionscript
    for flash?
    Intermediate level
    I have been using flash for about 2 years more as a hobby
    than anything else, some websites etc but now I realise I am going
    to need to learn more actionscripting to do what I want, I have
    come to terms with the simple stuff like goto – basic
    variables – load mov – enough to programme up website
    navigation.
    I ideally want to learn more about the dynamic side of flash,
    mostly for designing user interfaces and websites etc
    I’m after a book that doesn’t get too heavy too
    fast yet I’m a little past the more basic functions
    Any thoughts?
    Cheers

    You appear to be stuck on iOS 4.2.1. That means up really have a 2G iPod. A real 3G can go to 5.1.1
    .To find compatible apps more app for 4.2.1 see:
    Old Apps
    VintApps 3.1.3 for iPhone, iPod touch, and iPad on the iTunes App Store
    apps for ios 4.2.1: Apple Support Communities
    Finding iOS 4.2.1 Apps Compatible with Older Devices - Apple Club
    HT4972 Touch Game 4.2.1 Apps: Apple Support Communities
    apps for 4.2.1 (also works for 3.1.3)
    Tip - Finding 4.2.1 apps that work on an...: Apple Support Communities
    4.2.1 iPod 2nd generation unable to use any...: Apple Support Communities

  • That started today wiIm having a prolemth no changes to my computer. Every search and link I open now opens in a new window which is extremely aggrivating. Can anyone offer any advice on what happened or how to fix this?

    Im having a problem that started today with no changes to my computer. Every search and link I open now opens in a new window which is extremely aggrivating. Can anyone offer any advice on what happened or how to fix this?

    If using the menu bar, or after pressing "Alt" key
    Tools > Options > Tabs, (check) Open new window in a new tab instead
    Firefox red button > Options (in right column) > Options > Tabs > (check) Open new window in a new tab instead
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]

  • Can anyone spot the problem with this coding??

    can anyone spot this problem with my program. it keeps saying
    "missing return statement } " with a little arrow beneath the bracket.
    many thanks
    public class Game extends GameInterface
         GameInterface gameInt = new GameInterface();
         String boardString;
         // final static char NOUGHT='O', CROSS='X';
         private int square = 0;
         Player player1 = new Player();
         Player player2 = new Player();
         String firstPlayer, secondPlayer;
         public Game() // Constructor
              boardString = "0123456789";
    public boolean initialise(boolean first)
                   gameInt.setPlayerNames(player1,player2);
              MyPrint.myPrintln("Player one name is " + player1.getName());
              MyPrint.myPrintln("Player two name is " + player2.getName());
              String P1 = player1.getName();
              String P2 = player2.getName();
    }

    It means you declare your method to return something, but you don't actually return anything.

  • Is it Possible in JSF? Can anyone recommend any java Technology for this?

    I am doing Post Graduate Degree in Computer Science. This is my final semester and doing project work.
    Any body having idea about my requirment, help and guide to me
    My description and questions are as follows:
    Current Approach:
    PHP has been used to achieve the flexibility of creating custom images on-the-fly. Using this approach we were able to create a web-interface similar to the application client, where we could display links and get the exact look and feel of the application client.
    Drawback:
    This approach forces us to use two different technologies Java and PHP, since our system uses 'Java' accessing all the API's from PHP becomes a problem. while PHP provides a way to invoke any java method. It comes with a draw back, the method calls are little slow. This delay's are loading of web-page.
    Requirment:
    1. Creating custom images on various locations of the screen
    2. The Exact look and feel of the application map should be achieved
    3. Place elements and links correctly as in application-client reflect any changes
    4. Generation events on the Links and Elements
    5. Setting Backgroud images for different maps
    Questions:
    1. is it possible in JavaServer Faces (BETA)?
    2. If it is possible is JavaServer Faces(BETA) How to create custom images and create interfaces among them?
    3.Can anyone recommend any java Technology for doing this?
    Anybody having idea, help and guide me for doing my project

    hi,
    I think you can use JSF
    cheers
    Trajano

  • Can anyone solve this error? 0xc 19a0013

    can anyone solve this error? 0xc 19a0013 my black ink cartridge will not print and its full. i've cleaned the heads and still no black.  please help.

    Hello family1023, and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are experiencing print system issues.  I would love to try and help you, but I do need a little information first. I am linking a few HP Support documents below that will show you how to find your product number. Also, please include which operating system you are using. Also, if you're using Windows, please include whether your operating system is 32-bit or 64-bit. With this information and the product number we can provide you with accurate information.
    How Do I Find My Model Number or Product Number?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please let me know what you find, and thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Citrix problem - can anyone offer any advice please ?

    I'm trying to connect to work (Windows environment) with Citrix ICA Client 7.00.407. I use a VPN connection to the server which works fine, and then I try to access a Published Application through ICA client.( This is what I've been instructed to do by my IT people).
    I manage to get as far as the grey window where it says "Checking your Credentials" (which I put into the client editor beforehand) when I get a message saying that I must have Terminal Server User Access permissions to log on to this remote computer. I click OK and the Citrix client quits.
    My IT dept. have assured me that I have these Terminal Server User Access permissions. That's the point when look upon my Mac like an alien and cannot help any further.
    Can anyone offer any suggestions please ?
    Paul

    Did a BT speed test as per instructions on forum reults below:  Speed is slower than normal usually get 12-13.5 Mbps
    1. Best Effort Test: -provides background information.
    Download Speed
    8.27 Mbps
    0 Mbps 21 Mbps
    Max Achievable Speed
    Download speedachieved during the test was - 8.27 Mbps
    For your connection, the acceptable range of speeds is 4 Mbps-21 Mbps.
    IP Profile for your line is - 8.38 Mbps
    2. Upstream Test: -provides background information.
    Upload Speed
    0.68 Mbps
    0 Mbps 0.83 Mbps
    Max Achievable Speed
    Upload speed achieved during the test was - 0.68Mbps
    Additional Information:
    Upstream Rate IP profile on your line is - 0.83 Mbps
    We were unable to identify any performance problem with your service at this time.
    It is possible that any problem you are currently, or had previously experienced may have been caused by traffic congestion on the Internet or by the server you were accessing responding slowly.
    If you continue to encounter a problem with a specific server, please contact the administrator of that server in the first instance.
    Please visit the FAQ if you are unable to understand the test results.

Maybe you are looking for