Could somebody help about :System.SetProperty

I use JSP to call a java class in which System.SetProperty is used to set the truststore and password for connecting to LDAP server by TLS connection .
in the java class there are following statements
System.setProperty("javax.net.ssl.trustStore",".truststore");
System.setProperty("javax.net.ssl.trustStorePassword","ldapserver");
//to set the property to access to the LDAP with TLS connection.
The java class works well when I call it by a java file .
But when I call this java class in JSP , there are some errors as following.
Who can give me some suggestions ? thanks
exception
org.apache.jasper.JasperException: access denied
(java.util.PropertyPermission javax.net.ssl.trustStore write)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
root cause
java.security.AccessControlException: access denied
(java.util.PropertyPermission javax.net.ssl.trustStore write)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.System.setProperty(System.java:698)
LDAPAuthenPackage.LDAPAuthen.CheckUserNew(LDAPAuthen.java:30)
org.apache.jsp.UserAuthen_jsp._jspService(UserAuthen_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

java.security.AccessControlException: access denied
(java.util.PropertyPermission javax.net.ssl.trustStore write)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)The current security manager does not permit the current code to change the property "javax.net.ssl.trustStore".
The java class works well when I call it by a java file .
But when I call this java class in JSP , there are some errors as following.By default, unless you are running applet or java plug-in, there is no security manager. Then all your code has all permissions. However, it is clear that your tomcat(?) instance is using a security manager.
The first thing you want to know is why or how you started your tomcat instance with a security manager. There are two directions to resolve your problem. You can start your tomcat without a security manager. Or you can add the permission for your class to change that property into the policy file for the security manager.
Lastly, of course, this problem has nothing particular to do with JSP.

Similar Messages

  • HT4463 I bought the OS Moutain Lion three weeks ago, but I can't download it. The site does not responde. Could somebody help me?

    I bought the OS Moutain Lion three weeks ago, but I can't download it. The site does not responde. Could somebody help me?

    Turn off the Firewall in System Preferences > Security & Privacy > Firewall
    Disable anti virus software.
    Make sure your Mac meets Mountain Lion requirements > Apple - Upgrade your Mac to OS X Mountain Lion.

  • Please could somebody help me I have an iMac which came with Tiger 10.4.10 installed I have lost my disks and I need to re-install after a hard drive failure. Where can I find this? I will upgrade to Snow Leopard after but I cannot go straight to SL

    Please could somebody help me I have an iMac which came with Tiger 10.4.10 installed I have lost my disks and I need to re-install after a hard drive failure. Where can I find this? I will upgrade to Snow Leopard after but I cannot go straight to SL

    You can go strait to SL, all you need is a retail SL DVD available from Apple for $20. The US online store has them at:
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard

  • I BOUGHT LIGHTROOM 5 IN LAREDO TX AND I TRIED TO GET IN MONTERREY MEXICO THE SERIAL NUMBER WITH THE REDEMPTION CODE BUT APPEARS AN ERROR. MY PC IS WINDOWS 8. COULD SOMEBODY HELP ME?

    I BOUGHT LIGHTROOM 5 IN BEST BUY LAREDO TX AND I TRIED TO GET IN MONTERREY MEXICO THE SERIAL NUMER WITH THE REDEMPTION CODE FROM THE BOX, BUT APPEARS AN ERROR. MY PC IS WINDOWS 8, COULD SOMEBODY HELP ME??

    I don't know that you can purchase Adobe software in the US for installing and using outside of the US.
    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • Hi could somebody help

    Its me again with that loading problem.
    Thanks for all the respond.Even after all the help I got from some of you, I couldn't figure-out what the problem is. I am still stuck with the below given issue, because of this I am unable to step further. Please help.
    <u>Issue</u>:
    I am trying to Load a Masterdata(flatfile) in a infoobject.
    This is what i did:
    I created a infoobject name 'EMPNAM' with some attributes, like [soc_sec, 0city,0country].
    I created and activated communication struct , and Transfer struct.
    Created my own flatfile(.csv) with some fake datas.
    created infopackage and loaded the flatfile, system generated as loading successful. I checked the datas in PSA and i was able to see all the fields ['EMPNAM, soc_sec, 0city,0country] been loaded.
    When i try to see the loaded data in the datatarget i.e the infoobject, i could only see the 'EMPNAM' been loaded, not the attributes[soc_sec,0city,0country].
    Why is that, could anyone help me with this please.

    Hello Ranjani naga,
    How r u ?
    Just check the data in Transaction - SE11
    In the Option "Table" enter "/BIC/PEMPNAM" and "Display"
    Press CTRLSHIFTF10 or Contents icon
    Then Execute.
    Could u see the data there ?
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • Could somebody help me improve my program

    Hi i have created a program that calculates specific properties of a scanned image and uses them to create a better image cropped and angled appropriatley.
    But i am having a few problems and would like to improve it. Sometimes the code will crop the image and cut out text or not angle the image properly.
    Most of the time it works but i want to improve it so that it will work with any image.
    Could somebody possibly look at my code and see if they can see any improvements that can be made. I would really appreciate it.
    My program consists of 4 java files and 2 .bat files. I cannot use attachments on here so if u are interested in looking at the code leave a reply and i could send u the files.
    Thank you
    Mark

    Here is the PageProcess.java file. There are two versions in this piece of code one has been commented out. I haven't taken out all my comments in my code so if u do not like the comments just say and i'll take them out
    import java.awt.* ;
    import java.awt.image.* ;
    import java.awt.image.renderable.* ;
    import java.io.* ;
    import java.text.* ;
    import java.util.* ;
    import javax.media.jai.* ;
    import com.sun.media.jai.codec.* ;
    import rgg.util.* ;
    public class PageProcess
        private static String pageName ;
        private static boolean printPartial ;
        private static PrintWriter lout ;
        private static RenderedOp image1 ;
        private static BufferedImage image1a ;
        private static int imageWidth, imageHeight ;
        private static int leftEdge, cropWidth, topEdge, cropHeight, textEdge ;
        private static float scaleFactor ;
        private static PrintWriter pout1 ;
        private static String outDirectory, outDirectory1 ;
        private static int noOfRows ;
        private static IntegerQuad[] rows = new IntegerQuad[100] ;
        private static int noOfGlossRows ;
        private static IntegerQuad[] glossRows = new IntegerQuad[100] ;
        public static void main(String[] args) throws Exception
         // read in command line parameters
         String pages = "" ;
         outDirectory = "" ;
         outDirectory1 = "" ;
         String logFile = "" ;
         printPartial = false ;
         String imageDirectory = "" ;
         for (int i = 0 ; i < args.length ; i++)
             if (args.equals("-p"))
              i++ ;
              pages = args[i] ;
         else if (args[i].equals("-o"))
              i++ ;
              outDirectory = args[i].replace('=', ' ') ;
         else if (args[i].equals("-o1"))
              i++ ;
              outDirectory1 = args[i].replace('=', ' ') ;
         else if (args[i].equals("-l"))
              i++ ;
              logFile = args[i] ;
         else if (args[i].equals("-partial"))
              printPartial = true ;
         else if (args[i].equals("-f"))
              i++ ;
              imageDirectory = args[i].replace('=', ' ') ;
         else
              System.err.println("invalid command line parameter " + args[i]) ;
              System.exit(1) ;
    if (outDirectory.length() == 0)
         System.err.println("no output directory specified") ;
         System.exit(1) ;
    if (outDirectory1.length() == 0)
         System.err.println("no supplementary output directory specified") ;
         System.exit(1) ;
         lout = null ;
         if (logFile.length() != 0)
         String name = outDirectory1 + File.separator + logFile + ".txt" ;
         File file = new File(name) ;
         if (file.exists())
              System.err.println("log file '" + name + "' exists") ;
              System.exit(1) ;
         lout = new PrintWriter(new FileWriter(name)) ;
         String firstPage, lastPage ;
         if (pages.length() != 0)
         firstPage = pages ;
         lastPage = pages ;
         int offset = pages.indexOf('-') ;
         if (offset != -1)
         firstPage = pages.substring(0,offset) ;
         lastPage = pages.substring(offset + 1) ;
         if (lastPage.length() < firstPage.length())
              String prefix = firstPage.substring(0,
                             firstPage.length() - lastPage.length()) ;
              lastPage = prefix + lastPage ;
         else
         BufferedReader iin = new BufferedReader(new InputStreamReader(System.in)) ;
         System.err.print("first page? ") ;
         firstPage = iin.readLine().trim() ;
         System.err.print("last page? ") ;
         lastPage = iin.readLine().trim() ;
         if (lastPage.length() == 0)
              lastPage = firstPage ;
         message("first page = " + firstPage + "; last page = " + lastPage) ;
         pageName = "" ;
         String nextPageName = firstPage ;
         while (true)
         if (pageName.equals(lastPage))
              break ;
         pageName = nextPageName ;
         nextPageName = getNextPage(pageName) ;
         message("") ;
         message("Page: " + pageName) ;
         int ii = 0 ;
         while (Character.isDigit(pageName.charAt(ii)))
         ii++ ;
         int pageNumber = Integer.parseInt(pageName.substring(ii + 1)) ;
         boolean leftPage = (pageNumber % 2 == 0) ;
         // process the image
         IntegerPair temp = getPageImage(imageDirectory, pageName) ;
         int mx = temp.int1 ;
         int my = temp.int2 ;
         setCroppingWidth(mx) ;
         setCroppingHeight(my) ;
         pout1 = new PrintWriter(new FileWriter(outDirectory1 + File.separator +
                        pageName + "coordinates.txt")) ;
         pout1.println("Image = " + pageName) ;
         pout1.println() ;
         pout1.println("(" + leftEdge + ", " + topEdge + ", " + cropWidth +
              ", " + cropHeight + ")") ;
         pout1.println() ;
         double angleRadians = getTextAngle(my) ;
         if (Math.abs(angleRadians) > 0.001)
              rotateImage(angleRadians) ;
              String newImageName = outDirectory + File.separator + pageName + "a.tif" ;
              JAI.create("filestore", image1, newImageName, "tiff", null) ;
              message("created file " + newImageName) ;
         textEdge = setTextEdge(leftPage) ;
         splitTextArea(leftPage) ;
         splitGlossArea(leftPage) ;
         cropScaleOutputImage() ;
         image1 = null ;
         image1a = null ;
         System.gc() ;
         } // end of main method
    private static int getColour(int x, int y)
         int c = image1a.getRGB(x, y) ;
         int blue = c & 0377 ;
         int green = (c & 0177400) >> 8 ;
         int red = (c & 077600000) >> 16 ;
         int temp = (red + green + blue) / 3 ;
         if (temp > 200)
         return 255 ;
         else
         return 0 ;
         // return (red + green + blue) / 3 ;
         } // end of method getColour
    private static int getUpColour(int x, int y)
         if ((getColour(x, y) == 255) || (getColour(x, y - 1) == 255))
         return 255 ;
         else
         return 0 ;
         } // end of method getUpColour
    private static int getDownColour(int x, int y)
         if ((getColour(x, y) == 255) || (getColour(x, y + 1) == 255))
         return 255 ;
         else
         return 0 ;
         } // end of method getDownColour
    private static int getColumnColour(int top, int bottom, int x)
         int sum = 0 ;
         for (int y = top ; y < bottom ; y++)
         sum += getColour(x, y) ;
         return sum / (bottom - top) ;
         } // end of method getColumnColour
    private static int getRowColour(int left, int right, int y)
         int sum = 0 ;
         for (int x = left ; x < right ; x++)
         sum += getColour(x, y) ;
         return sum / (right - left) ;
         } // end of method getRowColour
    public static void message(String m)
         System.err.println(m) ;
         if (lout != null)
         lout.println(m) ;
         } // end of method message
    private static String getNextPage(String f)
         int ii = f.length() - 1 ;
         while ((ii >= 0) && (Character.isDigit(f.charAt(ii))))
         ii-- ;
         String restOfName = f.substring(0, ii + 1) ;
         int num1 = Integer.parseInt(f.substring(ii + 1)) ;
         int length = f.length() - ii - 1 ;
         String num2 = Integer.toString(num1 + 1) ;
         while (num2.length() < length)
         num2 = "0" + num2 ;
         return restOfName + num2 ;
         } // end of method getNextPage
    private static IntegerPair getPageImage(String directory, String pageName)
                             throws IOException
    String fileName = directory + File.separator + pageName + ".tif" ;
         FileSeekableStream stream = null ;
         try {
         stream = new FileSeekableStream(fileName) ;
         catch (IOException ex)
         message(fileName + " not found") ;
         System.exit(-1) ;
         message("reading image " + pageName) ;
         image1 = JAI.create("stream", stream) ;
    imageWidth = image1.getWidth() ;
    imageHeight = image1.getHeight() ;
         message("width = " + imageWidth + " height = " + imageHeight) ;
         image1a = image1.getAsBufferedImage() ;
         // work out the colour scheme, and a start point in the background
         int cx = imageWidth / 2 ;
         int cy = imageHeight / 2 ;
         int foreColour = 300 ;
    int backColour = -1 ;
         int mx = -1,
         my = -1 ;
         int search_length = 100 ;
         for (int i = 0 ; i < search_length ; i++)
         int colour = getColour(cx, cy) ;
         if (colour > backColour)
              backColour = colour ;
              mx = cx ;
              my = cy ;
         if (colour < foreColour)
              foreColour = colour ;
         cx++ ;
         cy++ ;
         if (printPartial)
         message("background colour is " + backColour +
                   "; foreground colour is " + foreColour) ;
         message("new white centre point is (" + mx + ", " + my + ")") ;
         // display the central pixels
         if (printPartial)
         int display_size = 70 ;
         for (int i = 0 ; i < display_size ; i++)
         for (int j = 0 ; j < display_size ; j++)
              // int c = getColour(mx - display_size + j, my - display_size + i) ;
              int c = getColour(170 - display_size + j, my - display_size + i) ;
              if (c > 200)
              c = 0 ;
              else
              c = 1 ;
              System.err.print(c) ;
         System.err.println() ;
         return new IntegerPair(mx, my) ;
         } // end of method getPageImage
    private static void setCroppingWidth(int mx)
         int[] firstMode = new int[imageWidth + 1] ;
         int[] secondMode = new int[imageWidth + 1] ;
         for (int i = 0 ; i <= imageWidth ; i++)
         firstMode[i] = 0 ;
         secondMode[i] = 0 ;
         int minimum_width = (int) (0.67 * imageWidth) ;
         for (int i = 0 ; i < imageHeight ; i++)
         int mx1 = mx ;
         while ((mx1 > 0) && (getColour(mx1, i) > 200))
              mx1-- ;
         int mx2 = mx ;
         while ((mx2 < imageWidth) && (getColour(mx2, i) > 200))
         mx2++ ;
         if ((mx2 - mx1) > minimum_width)
              firstMode[mx1]++ ;
              secondMode[mx2]++ ;
         int maxMode = -1,
         posMode = -1 ;
         for (int i = 3 ; i < imageWidth - 3 ; i++)     // omit max width
         int s = firstMode[i-3] + firstMode[i-2] + firstMode[i-1] +
              firstMode[i] + firstMode[i+1] + firstMode[i+2] +
              firstMode[i+3] ;
         if (maxMode < s)
              maxMode = s ;
              posMode = i ;
         int maxMode1 = -1,
         posMode1 = -1 ;
         for (int i = 3 ; i < imageWidth - 3 ; i++)     // omit max width
         int s = secondMode[i-3] + secondMode[i-2] + secondMode[i-1] +
              secondMode[i] + secondMode[i+1] + secondMode[i+2] +
              secondMode[i+3] ;
         if (maxMode1 < s)
              maxMode1 = s ;
              posMode1 = i ;
         message("proposed left/right edges at (" + posMode +
                                  ", " + posMode1 + ")") ;
         int crop_horiz_clearance = 10 ;
         leftEdge = posMode + crop_horiz_clearance ;
         cropWidth = posMode1 - leftEdge - 2 * crop_horiz_clearance ;
    private static void setCroppingHeight(int my) throws IOException
         // PrintWriter pout2 = new PrintWriter(new FileWriter(outDirectory1 +
         //               File.separator + "xxx.txt")) ;
         int[] firstMode = new int[imageHeight + 1] ;
         int[] secondMode = new int[imageHeight + 1] ;
         for (int i = 0 ; i <= imageHeight ; i++)
         firstMode[i] = 0 ;
         secondMode[i] = 0 ;
         int minimum_height = (int) (0.67 * imageHeight) ;
         int band_width = 300 ;
         for (int i = 0 ; i < band_width ; i++)
         int my1 = my ;
         while ((my1 > 0) && (getUpColour(i, my1) > 200))
              my1-- ;
         int my2 = my ;
         while ((my2 < imageHeight) && (getDownColour(i, my2) > 200))
         my2++ ;
         // pout2.println(i + " " + my1 + " " + my2) ;
         /* if ((my2 - my1) > minimum_height)
              firstMode[my1]++ ;
              secondMode[my2]++ ;
         // pout2.println(i + " " + my1 + " " + my2) ;
         if (my1 < 300)
              firstMode[my1]++ ;
         if (my2 > 1200)
              secondMode[my2]++ ;
         int ii1 = imageWidth - band_width + i ;
         my1 = my ;
         while ((my1 > 0) && (getUpColour(ii1, my1) > 200))
              my1-- ;
         my2 = my ;
         while ((my2 < imageHeight) && (getDownColour(ii1, my2) > 200))
              my2++ ;
         // pout2.println(ii1 + " " + my1 + " " + my2) ;
         /* if ((my2 - my1) > minimum_height)
              firstMode[my1]++ ;
              secondMode[my2]++ ;
         // pout2.println(ii1 + " " + my1 + " " + my2) ;
         if (my1 < 300)
              firstMode[my1]++ ;
         if (my2 > 1200)
              secondMode[my2]++ ;
         int maxMode = -1,
         posMode = -1 ;
         for (int i = 3 ; i < imageHeight - 3 ; i++)     // omit max height
         int s = firstMode[i-3] + firstMode[i-2] + firstMode[i-1] +
              firstMode[i] + firstMode[i+1] + firstMode[i+2] +
              firstMode[i+3] ;
         if (maxMode < s)
              maxMode = s ;
              posMode = i ;
         int maxMode1 = -1,
         posMode1 = -1 ;
         for (int i = 3 ; i < imageHeight - 3 ; i++)     // omit max height
         int s = secondMode[i-3] + secondMode[i-2] + secondMode[i-1] +
              secondMode[i] + secondMode[i+1] + secondMode[i+2] +
              secondMode[i+3] ;
         if (maxMode1 < s)
              maxMode1 = s ;
              posMode1 = i ;
         message("proposed top/bottom edges at (" + posMode +
                        ", " + posMode1 + ")") ;
         int crop_vert_clearance = 10 ;
         topEdge = posMode + crop_vert_clearance ;
         cropHeight = posMode1 - topEdge - 2 * crop_vert_clearance ;
         // pout2.close() ;
         } // end of method getCroppingHeight
    private static double getTextAngle(int my) throws IOException
         // PrintWriter pout2 = new PrintWriter(new FileWriter(outDirectory1 +
         //               File.separator + "xxx.txt")) ;
    // VERSION I
         /* int profileSearchLength = 200 ;
         int[] section1 = new int[cropWidth] ;
         for (int i = 0 ; i < cropWidth ; i++)
         int j = 0 ;
         while ((j < profileSearchLength) &&
              ((getColour(leftEdge + i, my - j) > 230)) ||
              (getColour(leftEdge + i + 1, my - j) > 230)))
              j++ ;
         section1[i] = j ;
         // pout2.println(i + " " + j) ;
         int[] section2 = new int[profileSearchLength + 1] ;
         for (int i = 0 ; i <= profileSearchLength ; i++)
         section2[i] = 0 ;
         for (int i = 0 ; i < cropWidth ; i++)
         section2[section1[i]]++ ;
         int maxLine = -1,
         posLine = -1 ;
         for (int i = 0 ; i < profileSearchLength ; i++) // note - omit largest offset
         if (maxLine < section2[i])
              maxLine = section2[i] ;
              posLine = i ;
         message("maximum is " + section2[posLine] + " at " + posLine) ;
         int xSum = 0, ySum = 0, count = 0 ;
         int text_clearance = 10 ;
         for (int i = 0 ; i < cropWidth ; i++)
         if ((section1[i] > posLine - text_clearance) &&
         (section1[i] < posLine + text_clearance))
    //     if (section1[i] < (profileSearchLength / 3))
              xSum += i ;
              ySum += section1[i] ;
              count++ ;
         double xBar = ((double) xSum) / count,
         yBar = ((double) ySum) / count ;
         message("xBar = " + xBar + " yBar = " + yBar) ;
         double numerator = 0.0,
         denominator = 0.0 ;
         for (int i = 0 ; i < cropWidth ; i++)
         if ((section1[i] > posLine - text_clearance) &&
         (section1[i] < posLine + text_clearance))
    //     if (section1[i] < (profileSearchLength / 3))
              numerator += (i - xBar) * (section1[i] - yBar) ;
              denominator += (i - xBar) * (i - xBar) ;
         double slope = numerator / denominator ;
         message("slope is " + slope) ;
         double angleRadians = Math.atan(slope) ;
    // double x = 10.0 ;
    // angleRadians = x / 180.0 * Math.PI ;
    // this proves that positive angles cause rotation clockwise 4/July/00
         double angleDegrees = angleRadians / Math.PI * 180 ;
         message("angle is " + angleDegrees + " degrees") ;
         // pout2.close() ;
         return angleRadians ; */
    // COALFACE
    // VERSION II
    // get profile of left-hand side of text
         int[] section1 = new int[cropHeight] ;
         for (int i = 0 ; i < cropHeight ; i++)
         int mx1 = 40 ;
         while ((mx1 <= cropWidth) &&
              ((getColour(leftEdge + mx1, topEdge + i) > 200) ||
              (getColour(leftEdge + mx1 + 1, topEdge + i) > 200)))
              mx1++ ;
         section1[i] = mx1 ;
         // pout2.println(i + " " + mx1) ;
    // find most frequent text offset
         int[] section2 = new int[imageWidth + 1] ;
         for (int i = 0 ; i <= imageWidth ; i++)
         section2[i] = 0 ;
         for (int i = 0 ; i < cropHeight ; i++)
         if (section1[i] < (cropWidth / 2))
         section2[section1[i]]++ ;
         int maxLine = -1,
         posLine = -1 ;
         for (int i = 1 ; i < imageWidth ; i++)
         if (maxLine < section2[i])
              maxLine = section2[i] ;
              posLine = i ;
         // pout2.println("maximum is " + section2[posLine] + " at " + posLine) ;
    // fit line ot profile (cf "Teach Yourself Statistics" pp102-4)
         int xSum = 0, ySum = 0, count = 0 ;
         int text_clearance = 20 ;
         for (int i = 0 ; i < cropHeight ; i++)
         if ((section1[i] > posLine - text_clearance) &&
         (section1[i] < posLine + text_clearance))
              xSum += i ;
              ySum += section1[i] ;
              count++ ;
         double xBar = ((double) xSum) / count,
         yBar = ((double) ySum) / count ;
         // pout2.println("xBar = " + xBar + " yBar = " + yBar) ;
         double numerator = 0.0,
         denominator = 0.0 ;
         for (int i = 0 ; i < cropHeight ; i++)
         if ((section1[i] > posLine - text_clearance) &&
         (section1[i] < posLine + text_clearance))
              numerator += (i - xBar) * (section1[i] - yBar) ;
              denominator += (i - xBar) * (i - xBar) ;
         double slope = numerator / denominator ;
         // pout2.println("slope is " + slope) ;
         double angleRadians = Math.atan(slope) ;
         message("angle is " + (angleRadians / Math.PI * 180) + " degrees") ;
    int x1 = (int) Math.round(yBar + leftEdge) ;
    int x2 = (int) Math.round(xBar + topEdge) ;
    double xxx = yBar - (slope * xBar) + leftEdge ;
    int x3 = (int) Math.round(xxx) ;
    int x4 = (int) Math.round(xxx + (slope * cropHeight)) ;
         pout1.println("(" + x1 + ", " + x2 + ", " + x3 + ", " + x4 + ")") ;
         pout1.println() ;
         // pout2.close() ;
         return angleRadians ;
         } // end of method getTextAngle
    private static void rotateImage(double angleRadians)
         float cx1 = ((float) imageWidth) / 2 ;
         float cy1 = ((float) imageHeight) / 2 ;
         float angle = (float) angleRadians ;
         ParameterBlock pb = new ParameterBlock() ;
    pb.addSource(image1);
         pb.add(cx1) ;
         pb.add(cy1) ;
         pb.add(angle) ;
         pb.add(new InterpolationBilinear()) ;
         RenderedOp image2 = JAI.create("Rotate", pb, null) ;
         message("angle rotated is " + angle) ;
         image1 = null ;
         image1a = null ;
         System.gc() ;
         image1 = image2 ;
    image1a = image1.getAsBufferedImage() ;
         } // end of method rotateImage
    private static int setTextEdge(boolean leftPage)
         int[] firstMode = new int[imageWidth + 1] ;
         for (int i = 0 ; i <= imageWidth ; i++)
         firstMode[i] = 0 ;
         for (int i = 0 ; i < cropHeight ; i++)
         int mx1 = 0 ;
         if (leftPage)
         while ((mx1 <cropWidth) &&
              (getColour(leftEdge + mx1, topEdge + i) > 200))
              mx1++ ;
         else
         while ((mx1 <cropWidth) &&
              (getColour(leftEdge + cropWidth - mx1, topEdge + i) > 200))
              mx1++ ;
         if (mx1 < (cropWidth / 2))
              firstMode[mx1]++ ;
         int maxMode = -1,
         posMode = -1 ;
         for (int i = 0 ; i < imageWidth ; i++)
         if (maxMode < firstMode[i])
              maxMode = firstMode[i] ;
              posMode = i ;
         posMode -= 2 ;
         if (leftPage)
         message("left edge of text is at " + (leftEdge + posMode)) ;
         return leftEdge + posMode ;
         else
         message("right edge of text is at " + (leftEdge + cropWidth - posMode)) ;
         return leftEdge + cropWidth - posMode ;
         } // end of method setTextEdge
    private static void splitTextArea(boolean leftPage) throws IOException
         int left = 0,
         right = 0 ;
         if (leftPage)
         left = textEdge ;
         right = leftEdge + cropWidth ;
         else
         left = leftEdge ;
         right = textEdge ;
         int rowWidth = right - left ;
         // int backcolour1 = 253 ;
         int backcolour1 = 245,
         max_light_lines = 4,
         max_dark_lines = 8,
         lightLineCounter = 0,
         darkLineCounter = 0 ;
         boolean inLightZone = true,
              inTextZone = false ;
         int lastY = topEdge,
         descender_space = 3 ;
         // PrintWriter pout2 = new PrintWriter(new FileWriter(outDirectory1 +
         //                    File.separator + "xxx.txt")) ;
         noOfRows = 0 ;
         int clearance = 40 ;
         for (int i = topEdge + clearance ; i < topEdge + cropHeight - clearance ; i++)
         int colour = getRowColour(left, right, i) ;
         // pout2.println(i + ", " + colour) ;
    if (colour >= backcolour1)
              lightLineCounter++ ;
              darkLineCounter-- ;
         else
              darkLineCounter++ ;
              lightLineCounter-- ;
         if (lightLineCounter > max_light_lines)
         lightLineCounter = max_light_lines ;
         if (lightLineCounter < 0)
         lightLineCounter = 0 ;
         if (darkLineCounter > max_dark_lines)
         darkLineCounter = max_dark_lines ;
         if (darkLineCounter < 0)
         darkLineCounter = 0 ;
         if ((lightLineCounter == max_light_lines) && (inTextZone))
              inLightZone = true ;
              inTextZone = false ;
              int line = noOfRows + 1 ;
              int rowHeight = i + descender_space - lastY ;
              // message("(" + left + ", " + lastY + ", " + rowWidth + ", " +
              //               rowHeight + ")") ;
              pout1.println("(" + left + ", " + lastY + ", " + rowWidth +
                             ", " + rowHeight + ")") ;
              rows[noOfRows] = new IntegerQuad(left, lastY, rowWidth, rowHeight) ;
              noOfRows++ ;
              lastY = i + descender_space ;
         else if ((darkLineCounter == max_dark_lines) && (inLightZone))
              inLightZone = false ;
              inTextZone = true ;
         // pout2.close() ;
         message("no of lines = " + noOfRows) ;
         pout1.println("No of Lines = " + noOfRows) ;
         pout1.println() ;
         } // end of method splitTextArea
    private static void splitGlossArea(boolean leftPage)
         int left = 0,
         right = 0 ;
         if (leftPage)
         left = leftEdge ;
         right = textEdge ;
         else
         left = textEdge ;
         right = leftEdge + cropWidth ;
         int rowWidth = right - left ;
         if (rowWidth == 0)
         message("WARNING: no gloss area found") ;
         noOfGlossRows = 0 ;
         return ;
         // int backcolour1 = 253,
         int backcolour1 = 245,
         max_light_lines = 20,
         max_dark_lines = 10,
         lightLineCounter = 0,
         darkLineCounter = 0 ;
         boolean inLightZone = true,
              inTextZone = false ;
         int lastY = topEdge,
         descender_space = 17,
         ascender_space = 20 ;
         noOfGlossRows = 0 ;
         int clearance = 40 ;
         for (int i = topEdge + clearance ; i < topEdge + cropHeight - clearance ; i++)
         int colour = getRowColour(left, right, i) ;
         if (colour >= backcolour1)
         lightLineCounter++ ;
         darkLineCounter-- ;
         else
              darkLineCounter++ ;
              lightLineCounter-- ;
         if (lightLineCounter > max_light_lines)
         lightLineCounter = max_light_lines ;
         if (lightLineCounter < 0)
         lightLineCounter = 0 ;
         if (darkLineCounter > max_dark_lines)
         darkLineCounter = max_dark_lines ;
         if (darkLineCounter < 0)
         darkLineCounter = 0 ;
         if ((lightLineCounter == max_light_lines) && (inTextZone))
         inLightZone = true ;
              inTextZone = false ;
              int line = noOfGlossRows + 1 ;
              int rowHeight = i + descender_space - lastY ;
              // message("(" + left + ", " + lastY + ", " + rowWidth + ", " +
              //          rowHeight + ")") ;
              pout1.println("(" + left + ", " + lastY + ", " + rowWidth +
                        ", " + rowHeight + ")") ;
              glossRows[noOfGlossRows] = new IntegerQuad(left, lastY, rowWidth,
                        rowHeight) ;
              noOfGlossRows++ ;
         lastY = i + descender_space ;
         else if ((darkLineCounter == max_dark_lines) && (inLightZone))
              inLightZone = false ;
              inTextZone = true ;
              // this overrides other values of lastY,
              //      to eliminate gloss whitespace
              lastY = i - max_dark_lines - ascender_space ;
         message("no of glosses = " + noOfGlossRows) ;
         pout1.println("No of Glosses = " + noOfGlossRows) ;
    pout1.close() ;
    } // end of method splitGlossArea
    private static void cropScaleOutputImage() throws IOException
         /* image1a = null ;
         System.gc() ; */
         // crop the image
         float fx = leftEdge, fy = topEdge, fw = cropWidth, fh = cropHeight ;
         ParameterBlock pb = new ParameterBlock();
    pb.addSource(image1);
    pb.add(fx);
    pb.add(fy);
    pb.add(fw);
    pb.add(fh);
         RenderedOp image2 = JAI.create("Crop", pb, null);
         // scale the image
         int newPageWidth = 600 ;
         scaleFactor = ((float) newPageWidth) / cropWidth ;
    pb = new ParameterBlock();
    pb.addSource(image2);
    pb.add(scaleFactor);
    pb.add(scaleFactor);
    pb.add(0.0f);
    pb.add(0.0f);
         // pb.add(new InterpolationNearest()) ;
         pb.add(new InterpolationBilinear()) ;
         RenderedOp image3 = JAI.create("Scale", pb, null) ;
         if (printPartial)
         message("scale factor is " + scaleFactor) ;
         image2 = null ;
         // output the image
         String newImageName = outDirectory + File.separator + pageName + "s.jpg" ;
         JAI.create("filestore", image3, newImageName, "jpeg", null) ;
         message("created file " + newImageName) ;
         image3 = null ;
         // revise coordinates, etc
         /* pout1 = new PrintWriter(new FileWriter(outDirectory1 + File.separator +
                             pageName + "scoordinates.txt")) ;
         pout1.println("Image = " + pageName) ;
         pout1.println() ;
         pout1.println("(0, 0, " + cropWidth + ", " + cropHeight + ")") ;
         pout1.println() ;
         for (int i = 0 ; i < noOfRows ; i++)
         IntegerQuad temp = rows[i] ;
         int x = (int) (scaleFactor * (temp.int1 - leftEdge)) ;
         int y = (int) (scaleFactor * (temp.int2 - topEdge)) ;
         int w = (int) (scaleFactor * temp.int3) ;
         int h = (int) (scaleFactor * temp.int4) ;
         pout1.println("(" + x + ", " + y + ", " + w + ", " + h + ")") ;
         rows[i] = new IntegerQuad(x, y, w, h) ;
         pout1.println("No of Lines = " + noOfRows) ;
         pout1.println() ;
         for (int i = 0 ; i < noOfGlossRows ; i++)
         IntegerQuad temp = glossRows[i] ;
         int x = (int) (scaleFactor * (temp.int1 - leftEdge)) ;
         int y = (int) (scaleFactor * (temp.int2 - topEdge)) ;
         int w = (int) (scaleFactor * temp.int3) ;
         int h = (int) (scaleFactor * temp.int4) ;
         pout1.println("(" + x + ", " + y + ", " + w + ", " + h + ")") ;
         glossRows[i] = new IntegerQuad(x, y, w, h) ;
         pout1.println("No of Glosses = " + noOfGlossRows) ;
    pout1.close() ; */
         } // end of method cropAndScaleImage
    } // end of class PageProcess
    Here is the ViewPage.java file
    import java.awt.* ;
    import java.awt.event.* ;
    import java.awt.image.* ;
    import java.awt.image.renderable.* ;
    import java.io.* ;
    import java.util.* ;
    import javax.media.jai.* ;
    import com.sun.media.jai.codec.* ;
    public class ViewPage extends Frame implements WindowListener, ActionListener
        // picture elements
        private Label label ;
        private ScrollPane scroll ;
        private ViewPageCanvas canvas ;
        private Button quit ;
        Image image ;
        int imageWidth, imageHeight ;
        boolean scaledImage, displayLines ;
        int cropX ;
        int cropY  ;
        int cropWidth ;
        int cropHeight ;
        int noOfLines ;
        int[] lineX = new int[100] ;
        int[] lineY = new int[100] ;
        int[] lineWidth = new int[100] ;
        int[] lineHeight = new int[100] ;
        int noOfGlosses ;
        int[] glossX = new int[100] ;
        int[] glossY = new int[100] ;
        int[] glossWidth = new int[100] ;
        int[] glossHeight = new int[100] ;
    //COALFACE
        int x1, x2, x3, x4 ;
         * main                                        *
        public static void main(String[] args) throws IOException
         boolean scaleDown = false ;
         String imageName = "" ;
         String coordsName = "" ;
         for (int i = 0 ; i < args.length ; i++)
             if (args.equalsIgnoreCase("-scale"))
              scaleDown = true ;
         else if (imageName.length() == 0)
              imageName = args[i] ;
         else if (coordsName.length() == 0)
              coordsName = args[i] ;
         else
              System.err.println("java ViewPage imageName coordsName -scale") ;
              System.exit(1) ;
         if (imageName.length() == 0)
         System.err.println("java ViewPage imageName coordsName -scale") ;
         System.exit(1) ;
    ViewPage f = new ViewPage(imageName, coordsName, scaleDown) ;
    f.setVisible(true) ;
    } // end of method main
    * ViewPage                                        *
    private ViewPage(String imageName, String coords, boolean scaleDown) throws IOException
         scaledImage = scaleDown ;
         displayLines = (coords.length() != 0) ;
         FileSeekableStream stream = null ;
         try {
         stream = new FileSeekableStream(imageName) ;
         catch (IOException ex)
         System.err.println("ERROR: cannot open image file " + imageName) ;
         System.err.println("reading image " + imageName) ;
         RenderedOp image0 = JAI.create("stream", stream) ;
    imageWidth = image0.getWidth() ;
    imageHeight = image0.getHeight() ;
         System.err.println("width = " + imageWidth + " height = " + imageHeight) ;
         image = image0.getAsBufferedImage() ;
         int new_page_width = 600 ;
         double scaleFactor = 1.0 ;
         if (scaleDown)
         image = image.getScaledInstance(new_page_width, -1, Image.SCALE_DEFAULT) ;
         scaleFactor = ((double) new_page_width) / imageWidth ;
         imageWidth = new_page_width ;
         imageHeight = (int) (scaleFactor * imageHeight) ;
         System.err.println("image scaled: scale factor = " + scaleFactor) ;
         if (displayLines)
         BufferedReader fin1 = new BufferedReader(new FileReader(coords)) ;
         String line = fin1.readLine() ;
         line = fin1.readLine() ;
         line = fin1.readLine() ;
         StringTokenizer st = new StringTokenizer(line, "(, )") ;
         cropX = Integer.parseInt(st.nextToken()) ;
         cropY = Integer.parseInt(st.nextToken()) ;
         cropWidth = Integer.parseInt(st.nextToken()) ;
         cropHeight = Integer.parseInt(st.nextToken()) ;
         line = fin1.readLine() ;
         line = fin1.readLine() ;
    //COALFACE
         st = new StringTokenizer(line, "(, )") ;
         x1 = Integer.parseInt(st.nextToken()) ;
         x2 = Integer.parseInt(st.nextToken()) ;
         x3 = Integer.parseInt(st.nextToken()) ;
         x4 = Integer.parseInt(st.nextToken()) ;
    System.err.println(x1 + " " + x2 + " " + x3 + " " + x4) ;
         line = fin1.readLine() ;
         int j = 0 ;
         while (true)
              line = fin1.readLine() ;
              if (line.startsWith("No of Lines"))
              break ;
              st = new StringTokenizer(line

  • Could somebody help please, my albums are all split in to individual tracks in my library how can i merge in to one album. many thanks

    could sombody help please, my albums in my library are split in to individual tracks how can i merge them in to one album. many thanks

    This web page can help you figure it out: http://samsoft.org.uk/iTunes/grouping.asp

  • Could somebody help me to get rid of mackeeper?

    Advertisements everywhere. Can somebody make my day?

    There is no need to download anything to solve this problem.
    You may have installed the "Downlite" or "VSearch" ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have an adware variant not covered by the support article. Ask for instructions in that case.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This malware is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • All of a sudden an additional "Search Web" box has appeared on my firefox below the bookmarks toolbar and above the tabs bar. I am not able to remove it through customizing the toolbars like you do with all other icons, etc. Could somebody help me?

    This new "Search Web" box/bar has a magnifying glass on the left side and on the right, just outside of the box, there is "-or-". I am unable to remove it or even just move it around the toolbars, and it is unresponsive to any left or right clicks. When it first appeared, it showed up with shortcut icons for Facebook and Twitter. It would be really appreciated if someone could help me with permanently removing the above. I had already tried deleting Firefox from my Mac OS but when I re-install a new one, all plug-ins, bookmarks, etc. are retained. Alternatively could someone advise me how to do a clean uninstall of Firefox?

    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Could somebody help me regarding Jbottons,please

    i wanna add two bottons in my programe so that if i press botton 'save' it should execute the following method (given below)and if i press botton 'Cancel' the programe should remove all the Text(from Jfield).right now i have to press"enter"in order to execute this method.i have already set the Jbottons on my GridBagWindow but i don't know how to make them work.
    somebody please help me.
    private class TextFieldHandler implements ActionListener {
    public void actionPerformed( ActionEvent e )
    String s = Email.getText();
    if ( e.getSource() == Email){
    if(s.endsWith("."))
    s="Email address cannot end with a dot";//+e.getActionCommand();
    else if(s.startsWith("@"))
    s="The Email address cannot start with @";//+e.getActionCommand();
    else if(s.indexOf('.')-s.indexOf('@')==1)
    s="Dot and @ cannot be consecitive charecter";//+e.getActionCommand();
    else if(s.indexOf('@')-s.indexOf('.')==1)
    s="Dot and @ cannot be consecitive charecter";//+e.getActionCommand();
    else if(s.indexOf(' ')>0)
    s="There has to be no space between any of two Email charecter";//+e.getActionCommand();
    else
    s="your Email address has been saved";//+e.getActionCommand();
    JOptionPane.showMessageDialog( null, s );
    }

    You just posted the same question less than 20 minutes ago.

  • I'm trying to find the dcim file so i can drag and drop my photos onto my pc. However, all i can see this time is a "photostream" folder that is empty as i don't wish to use any icloud functionality. please could somebody help me locate the dcim? thx

    im using iphone 4s and windows vista. thanks.
    also when i plug my phone in i no longer get asked if i want to explore files. how do i enable that? thanks

    Hello iMuppet2, 
    Thanks for visiting Apple Support Communities. 
    It appears that your PC is not recognizing your iPhone 4s as a camera when you connect it. 
    You may find the troubleshooting steps in the "Windows Vista, Windows 7, and Windows 8" section of this article helpful with getting your PC to recognize the iPhone:
    iOS: Unable to import photos to computer - Apple Support
    Sincerely,
    Jeremy 

  • Please could somebody help? Aperture will not open - has a coloured spinning disc prior to opening the program correctly. I have the latest Snow Leopard  update on a Mini Mac. I have "successfully installed" the latest Aperture 3.1.2 update.

    I am running the latest OS version and uploaded the latest version of Aperture 3.1.2 all successfully installed. I have all my photos (say 12000 files) stored on a RAID WD (MyBook) external hard-drive and I assume that that has the latest software update Wd 2.25. I have previously had problems with Aperture's external referencing - which drops out frustratingly, I was in the middle of a major import of photos when the spinning rainbow ball appeared. I am now unable to open Aperture.
    I have tried rebooting to no change.
    Help please?

    Colin-
    Thanks for the detailed info. One additional question, how full is each hard drive? The internal and external drives' % full.
    Step one is to change the import workflow. Even though lots of manuals inappropriately lead folks in that direction, one should never import directly into Aperture or any other images management app. Instead, in this exact order:
    • Restart the Mini (to clear possible memory leaks of the limiting 2-GB of RAM).
    • Create a folder ("abc") for the incoming images. Since you are on a Mini you will want to be referencing Masters with the Library on the Mini's hard drive and the Masters on your external RAID array. The abc folder should be created on the RAID.
    • Connect a card reader with the camera card in it. The camera card should show on the desktop. If it does not show, restart the Mini with the reader and card still plugged in. You can of course use the camera directly in this step, but I do not recommend it. Obviously cameras like the iPad do require direct camera-to-computer uploading.
    • Drag the contents of the card's image folder(s) to the abc folder that you previously created on the hard drive.
    • Review the abc folder contents to be sure they all copied properly.
    • Software-eject the camera card.
    • Physically disconnect the camera card reader from the Mini. This step is important to help avoid all-too-common human error.
    • Again review the abc folder contents to be sure they are indeed all there (because stuff happens sometimes...).
    • Back up the abc folder contents on to another drive.
    • Review the files on the backup to be sure they all copied properly.
    • At any time after but not before the previous step you can reformat the camera card in-camera. Do not delete images on the card using the computer.
    • Start Aperture and only have Aperture running (due to your limited 2 GB RAM).
    • Import the images from folder abc into Aperture, selecting "Store Files: In their current location" on the right-hand side of the import window.
    Some generic advice I posted in another thread:
    Aperture is a heavy pro graphics app that is very demanding of hardware. Your Mac's CPU, GPU, i/o and RAM are all limiting to Aperture so we need to do what we can to optimize. Some steps:
    • Set Previews to only be built manually, and only tell Aperture to build Previews when you are not otherwise editing in Aperture. I suggest setting the size of Previews to be the pixel dimensions of your display.
    • Keep the internal drive underfilled for speed, which sooner or later usually requires using a Referenced-Masters-Library with Masters on external drives. Back up originals before importing into Aperture or any other images app.
    • The Aperture Library should be on an internal drive.
    • Turn off Share Previews with iLife and iWork.
    • Remember that HDs slow as they fill and keep the internal drive underfilled. Approx. 70% full _maximum_ is a good guideline.
    • If page outs increase significantly during operation, max out RAM and/or try to run Aperture by itself. On my C2D MBP with its max of 3 GB RAM I always did a restart prior to a heavy Aperture session to clear any memory leaks and make sure no other apps were open. Browsers in particular will often suck RAM Aperture would otherwise be using.
    IMO all Aperture users who can should routinely bump RAM to at least 8 GB.
    • Some users have observed that it can take a new Aperture installation time (weeks) to stabilize on slow computers. So do not panic; and allow Aperture to continue background work by not fully shutting down the computer.
    HTH
    -Allen Wicks

  • Please could somebody help :(

    I feel like a bit of a dense idiot, I tried charging my ipod on my rents computer, came back and all my songs, playlists were gone. I don't have much of a clue with technical stuff nor if I'm posting in the right place. Any help with this would be really, really appreciated. Basically, what do I do?!?!

    Thank you for your response, still a little confused, soz. I didn't do any updates on the rents comp, just plugged it into charge and left it. All my songs are still on my itunes. When I click to update it comes up with the msge songs on the ipod cannot be updated because all of the playlists selected for updating no longer exist.

  • Why does Apple have so many other languages into their devices but Swahili language from East Africa isn't added? Could somebody help me answer this question please? Thanks!

    Hopefully someone inside Apple will see this and help us People that are using Apple devices but we do not have the option to change to our own language. Please Apple People look into this and consider it as a lot of people speaking Swahili are using apple products. Thank you in advance for your consideration.
    Message was edited by: anne.mafie

    If Swahili is not on the list and you would like to recommend it to Apple, please tell them at http://apple.com/feedback
    This is the User support forums operated by users just like yourself.  Apple rarely appears here.

  •   Could somebody help in "how to Connect to database" 

    I'm trying to connect to database and there's a messege appearing tells " ORA-12154: TNS: could not resolve service name", so please if does anybody know how to solve this problem to send me a solution on my email address ( [email protected])........... Thanks

    What client you are using to connect to the database??
    If you are using the database's own client that the above solution works.
    If you are using forms then you must set the tnsnames.ora of the forms that you are using, and not the database's.
    Forms6: %ORACLE_HOME%/Net80/ADMIN/tnsnames.ora
    Forms9 and above: %ORACLE_HOME%/NETWORK/ADMIN/tnsnames.ora
    Or for both cases you can use the net Configuration Assistance provided by Oracle which is a GUI interface of defining TNS Names.
    Regards,
    Tony Garabedian

Maybe you are looking for

  • Regarding order reversal without affecting stock

    Dear all, Issue is regarding the prod. order reversal without affecting stock of materials. Scenario is as follows. I have an order of X matl. year 2011 - this order not yet delivered where as the raw materials has been issued by mb1b (261). As this

  • RE:  is it possible to purchase only IPHOTO

    My Imac crashed a few weeks ago, the apple support re-installed most ILife applications except for Iphoto.  Is it possible to only purchase IPhoto?  I heard ILife11, has more bugs than improvements, hence wanted to try to avoid it.  Thanks

  • Skype 7.0.0.102 and 7.0.59.102

    hello and good evening everybody. i would like to know what is the difference between Skype version 7.0.0.102 and Skype 7.0.59.102. thanks a lot for your answer and have a nice week, greetings. 

  • Generate or import xml form content into portal

    Hi, we have a content repository type "fsdb" in wich we have created a xml form to publish content. Now we need to develope a program or process that read information from a database and generate the xml content in the repository, How can we generate

  • MacBook Pro 13 inch and 16 GB of RAM.

    On apple support page i can see that mac book pro 13.3 supports only 8 GB of RAM! http://support.apple.com/kb/ht1651?viewlocale=ja_jp&locale=ja_jp#link1 But i really need to install 16 GB of RAM! Is it supported by MacBook pro 13 inch hardware? I wan