Problem with shuffle() code, will not compile

Hi,
Below is some code designed to shuffle a set of integers in the file editET.txt. Basically:
5
2
4 say:
just shuffle these randomly around, however, the code will not compile, any advice or solutions would be great
import java.io.*;
import java.util.*;
public class Shuffle3 {
public static void main (String [] args) {
if (args.length<2){
System.out.println("Usage: java Shuffle3 <input file> <output file>");
System.exit(-1);
ShuffleStringList sl = new ShuffleStringList(args[0]);
sl.shuffle();
sl.save(args[1]);
class ShuffleStringList extends StringList {
public ShuffleStringList(String "editET.txt") {
     super(fileName);
public void shuffle() {
Collections.shuffle(this);
public void save (String "Shuffledok"){
     PrintWriter out = null;
     try {
     out = new PrintWriter(new FileOutputStream("Shuffledok"), true);
for (int i=0; i < size(); i++){
          out.println((String)get(i));
catch(IOException e) {
e.printStackTrace();
finally {
     if(out !=null) {out.close();}
class StringList extends ArrayList{
public StringList(){
     super();
public StringList(String "editET.txt") {
     this();
String line = null;
BufferedReader in = null;
     try {
     in = new BufferedReader(new FileReader("editET.txt"));
     while((line = in.readLine()) !=null) {
          add(line);
catch(IOException e){
     e.printStackTrace();
public void save (String "Shuffledok") {
FileWriter out = null;
try {
     out = new FileWriter("Shuffledok");
     for(int i =0; i < size(); i++){
     out.write((String)get(i));
catch(IOException e){
     e.printStackTrace();
finally {
     try{out.close();} catch (IOException e) {e.printStackTrace();}
public void shuffle() {
Collections.shuffle(this);

import java.io.*;
import java.util.*;
public class Shuffle3 {
public static void main (String [] args) {
ShuffleStringList sl = new ShuffleStringList("editET.txt");
sl.shuffle();
sl.save("Shuffledok");
class ShuffleStringList extends StringList {
public ShuffleStringList(String fileName) {
super(fileName);
public void shuffle() {
Collections.shuffle(this);
public void save (String target){
PrintWriter out = null;
try {
out = new PrintWriter(new FileOutputStream(target), true);
for (int i=0; i < size(); i++){
out.println((String)get(i));
catch(IOException e) {
e.printStackTrace();
finally {
if(out !=null) {out.close();}
class StringList extends ArrayList{
public StringList(){
super();
public StringList(String fileName) {
this();
String line = null;
BufferedReader in = null;
try {
in = new BufferedReader(new FileReader(fileName));
while((line = in.readLine()) !=null) {
add(line);
catch(IOException e){
e.printStackTrace();
public void save (String target) {
FileWriter out = null;
try {
out = new FileWriter(target);
for(int i =0; i < size(); i++){
out.write((String)get(i));
catch(IOException e){
e.printStackTrace();
finally {
try{out.close();} catch (IOException e) {e.printStackTrace();}
public void shuffle() {
Collections.shuffle(this);
}

Similar Messages

  • Having problem with primary sever will not connect, my internet connection is working

    Having problem with primary sever will not connect, my internet connection is working

    Hello pp585,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Troubleshoot issues on a Mac
    If you haven't been able to connect to the iTunes Store, a software conflict or your Internet service provider (ISP) may be blocking your access.
    Update iTunes and Safari to the latest version.
    If you have a firewall, your settings may be preventing you from connecting to the iTunes Store. Follow these steps to configure your firewall.
    You may need to reset your keychain. Connection issues are occasionally caused by keychain issues. Learn how to use Keychain First Aid to resolve any issues with your keychain.
    If you're receiving a specific error message, follow these steps.
    If the issue still persists, contact your Internet service provider and confirm that these ports and servers are enabled over your network.
    Have a nice day,
    Mario

  • Does anyone have a problem with the code window not showing code?

    I am having a problem with this update where the code window is blank and where I cannot add anything/ The text does appears in the design or live window.
    I just use DW to format text that will go into Edge Animate.

    Hi,
    Are you getting this issue on all the files?
    Please share any screenshot.
    Regards,
    Devendra

  • Problem with HR C4280 will not print.

    My printer was working fine until we had a power outage.  The printer was on at the time.  the print cartiages will not stay on the right side.  I had mor than one copy version of the printer so I deleated all but the serries 4200 and copy one.  I have reinstalled the dics.  all messages I get tell me the printer is conceted but it still won't print.  the cartiages are always on the left side of the printer.  If I open the door they will got to the right side but then right back to the left.

    import java.io.*;
    import java.util.*;
    public class Shuffle3 {
    public static void main (String [] args) {
    ShuffleStringList sl = new ShuffleStringList("editET.txt");
    sl.shuffle();
    sl.save("Shuffledok");
    class ShuffleStringList extends StringList {
    public ShuffleStringList(String fileName) {
    super(fileName);
    public void shuffle() {
    Collections.shuffle(this);
    public void save (String target){
    PrintWriter out = null;
    try {
    out = new PrintWriter(new FileOutputStream(target), true);
    for (int i=0; i < size(); i++){
    out.println((String)get(i));
    catch(IOException e) {
    e.printStackTrace();
    finally {
    if(out !=null) {out.close();}
    class StringList extends ArrayList{
    public StringList(){
    super();
    public StringList(String fileName) {
    this();
    String line = null;
    BufferedReader in = null;
    try {
    in = new BufferedReader(new FileReader(fileName));
    while((line = in.readLine()) !=null) {
    add(line);
    catch(IOException e){
    e.printStackTrace();
    public void save (String target) {
    FileWriter out = null;
    try {
    out = new FileWriter(target);
    for(int i =0; i < size(); i++){
    out.write((String)get(i));
    catch(IOException e){
    e.printStackTrace();
    finally {
    try{out.close();} catch (IOException e) {e.printStackTrace();}
    public void shuffle() {
    Collections.shuffle(this);
    }

  • JSPs with custom components will not compile

    All,
    I have written a custom component, but am having trouble getting it to work. When i place it in a jsp or jspx and try to run the application using this control, i get compilation errors:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
    [javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
    [javac] location: class cpidemo.wpfRenderer
    [javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2054: cannot find symbol
    [javac] symbol : method setParent(javax.servlet.jsp.tagext.Tag)
    [javac] location: class cpidemo.wpfRenderer
    [javac] jspxth_cpi_wpf_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_webuijsf_panelLayout_2);
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2063: cannot find symbol
    [javac] symbol : method doStartTag()
    [javac] location: class cpidemo.wpfRenderer
    [javac] int jspxeval_cpi_wpf_0 = jspxth_cpi_wpf_0.doStartTag();
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2064: cannot find symbol
    [javac] symbol : method doEndTag()
    [javac] location: class cpidemo.wpfRenderer
    [javac] if (_jspx_th_cpi_wpf_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2065: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
    [javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
    [javac] ^
    Generated servlet error:
    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2068: reuse(javax.servlet.jsp.tagext.Tag) in org.apache.jasper.runtime.TagHandlerPool cannot be applied to (cpidemo.wpfRenderer)
    [javac] jspxtagPool_cpi_wpf_ttlValue_rendered_paramList_formWidth_formScript_formName_formHeight_detID_nobody.reuse(_jspx_th_cpi_wpf_0);
    [javac] ^
    Generated servlet error:
    [javac] Note: C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java uses unchecked or unsafe operations.
    Generated servlet error:
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 6 errors
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:850)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:480)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:125)
    at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    After fighting with this for a while, I tried the following:
    1) Copy code from a known-working example into the existing web app
    2) Copy the code for the component et al into the known working example app
    results:
    1) Known working component generates the same compilation errors
    2) everything work correctly
    I have compared the tlds and faces-config.xml files and everything appears to be correct. In both cases, the faces-config.xml files are at version 1.2 and the tlds are at version 2.1
    The only difference i can see is that the not-working web app uses far more libraries than the working example, though i'm not sure why this would be a problem.
    From the not working webapp:
    faces-config.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    <!-- Set default locale and add supported locales here...
    <application>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>de</supported-locale>
    <supported-locale>fr</supported-locale>
    <supported-locale>es</supported-locale>
    </locale-config>
    </application>
    -->
    <component>
    <description>A wrapper for workplace forms viewer</description>
    <display-name>Embedded Form Viewer</display-name>
    <component-type>cpidemo.wpfRenderer</component-type>
    <component-class>cpidemo.wpfRenderer</component-class>
    </component>
    </faces-config>
    cpi.tld
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_1.xsd">
    <tlib-version>1.0</tlib-version>
    <short-name>cpi</short-name>
    <uri>http://www.etechway.com/cpi</uri>
    <!-- A validator verifies that the tags are used correctly at JSP
    translation time. Validator entries look like this:
    <validator>
    <validator-class>com.mycompany.TagLibValidator</validator-class>
    <init-param>
    <param-name>parameter</param-name>
    <param-value>value</param-value>
         </init-param>
    </validator>
    -->
    <!-- A tag library can register Servlet Context event listeners in
    case it needs to react to such events. Listener entries look
    like this:
    <listener>
    <listener-class>com.mycompany.TagLibListener</listener-class>
    </listener>
    -->
    <tag>
    <name>wpf</name>
    <tag-class>cpidemo.wpfRenderer</tag-class>
    <body-content>empty</body-content>
    <attribute>
    <description>A value binding that points to a bean property</description>
    <name>binding</name>
    <deferred-value>
    <type>javax.faces.component.UIComponent</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formName</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>rendered</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>boolean</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formScript</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>detID</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>ttlValue</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formHeight</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>formWidth</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    <attribute>
    <name>paramList</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    <deferred-value>
    <type>String</type>
    </deferred-value>
    </attribute>
    </tag>
    </taglib>
    can anyone give me a nudge in the right direction here?
    Thanks in advance!!

    [javac] C:\Sun\SDK\domains\domain1\generated\jsp\j2ee-modules\CPIDemo\org\apache\jsp\cpiMain_jsp.java:2053: cannot find symbol
    [javac] symbol : method setPageContext(javax.servlet.jsp.PageContext)
    [javac] location: class cpidemo.wpfRenderer
    [javac] jspxth_cpi_wpf_0.setPageContext(_jspx_page_context);
    [javac] ^
    Assuming cpidemo.wpfRenderer is your class, does it have the method referenced above?

  • IPod 30GB Problems with iTunes 9; Will not sync iPod and freezes iTunes

    Since I have updated to iTunes 9 on windows xp (and more recently iTunes 9.0.1) I have not been able to sync my 5th generation iPod 30gb.
    What happens when I connect my ipod is that iTunes will instantly freeze and not allow me to do anything on it, but I am able to open other windows just not iTunes. After about 10 minutes iTunes will unfreeze briefly and claim to be syncing my iPod. Eventually after a further 10 minutes I am greeted with a message saying:
    "The ipod 'HARRY'S iPOD" cannot be synced. An unknown error occured (-50)."
    http://tinypic.com/r/2wchbgy/4
    Also when I try to access my iPod through the window's explorer, when I try to enter any files I get the message "Please insert a disc into drive F:" followed by "F:\ Photos is not accesible. The parameter is incorrect"
    I have no problems synicng my iPod Nano 4th Generation 16gb.
    I've tried to revert to iTunes 8 after uninstalling iTunes 9 but when I do it wont let me open it saying it cannot read the file "Itunes Library.lib"
    Does anyone have a clue where the problem is? And better still how to fix it?
    Thanks

    metalhead684 wrote:
    any reason as to why this is happening. I have an Ipod 80 gig fifth generation.
    Do NOT Threadjack. Start your own topic please. Help you get in your topic may help others when searching for like topics (your post could be lost in a unrelated topic).
    If you don't know how to post a new thread...
    In order to see the post link, you need to drill down to the subtopic level of a discussion area. If you see a list of subtopics, you are not down far enough.
    For example, from the main discussion menu, you can choose Classic iPod and you will see the following...
    Note that in the Classic discussion there are three sub-topics you can choose and NO post link yet. Now pick any sub-topic, for example, pick "Using iPod Classic" and you will get the following...
    Now you have a link to post a new topic.
    Regards,
    Patrick

  • ADOBE BRIDGE SAYS HAVE PROBLEM WITH CACHE.  WILL NOT WORK AND I TRIED TO GO TO

    DownLoaded yetserday 2200 new pictures into my mac book por.
    now adobe bridge freezes up and says error in cache settings.
    but when i attempt to open preferences, and clear out cache, it does not work.@

    hnz5758 wrote:
    i attempt to open preferences, and clear out cache, it does not work.@
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Code will not compile when changing method name in related class

    Hello all! I'm wondering if anyone can help a second-time poster. I have a class called Transcription which holds the artist name and song title of a guitar transcription. Transcription has a method toString() which returns a String containing the artist name and title. I have a class GuitarMag which holds a vector of Transcription objects, and has a method WriteGuitarMag() which returns a String containing, among other things, the toString() method for each Transcription in the transcriptions vector. I wanted to change the method name in Transcription to writeTranscription() for consistency, but when I refer to that method in WriteGuitarMag(), GuitarMag gives an error to the effect that the writeTranscription() method does not exist.
    This works fine:
        //Transcription object
        public String toString(){
            return "" + artistName + "\t\t" +  songName;
        //GuitarMag object
        public String WriteGuitarMag() {
            StringBuffer tmp1 = new StringBuffer();
            //find out how many components are in the vector
            int transCount = this.transcriptions.size();
            StringBuffer tmp = new StringBuffer("Name: " + this.getMagName() + "\n" +
                   "Cover: " + this.getCoverDesc() + "\n" +
                   "Date: " + this.getMagDate() + "\n" +
                   "Transcriptions:" + "\n");
            for (int i = 0; i < transCount; i++) {
                tmp1.append(this.transcriptions.elementAt(i).toString() + "\n");
            tmp.append(tmp1);
            return tmp.toString();
        }But this does not:
        //Transcription object
        public String writeTranscription(){
            return "" + artistName + "\t\t" +  songName;
        //GuitarMag object
        public String WriteGuitarMag() {
            StringBuffer tmp1 = new StringBuffer();
            //find out how many components are in the vector
            int transCount = this.transcriptions.size();
            StringBuffer tmp = new StringBuffer("Name: " + this.getMagName() + "\n" +
                   "Cover: " + this.getCoverDesc() + "\n" +
                   "Date: " + this.getMagDate() + "\n" +
                   "Transcriptions:" + "\n");
            for (int i = 0; i < transCount; i++) {
                tmp1.append(this.transcriptions.elementAt(i).writeTranscription() + "\n");
            tmp.append(tmp1);
            return tmp.toString();
        }Any thoughts or feelings about this?

    Thanks for your reply. Yes, I compiled the Transcription class first, and then the GuitarMag class, so it shouldn't have been a problem. In thinking about it more today, I'm wondering if I need to cast the vector component to a Transcription object first. Because all objects have the toString() method, it works without casting, but if I rename the method it doesn't?

  • Problem with I mail  -- will not quit properly

    All of a sudden today, I am unable to close Mail.  I quit mail and the little dot remains under the icon and I am unable to reopen mail unless I force quit the program or shut down the computer and restarting again.  How an I check for problem?

    Try selecting Mail>Mailbox>Rebuild in turn for each of the Mail accounts.
    Or this, which will do all accounts at once. But if you use this, first go to your home folder Library and make a backup copy of mail by option-click dragging the entire Mail folder to the Desktop.
    http://www.tuaw.com/2006/04/12/mail-slowing-you-down-rebuild-its-database/

  • New Problem with Gmail -- account will not work

    All -- I am hopeful that you can help me here as I am about at my wits end with attempting to configure Gmail (of all things!) on my iPhone 4.
    This is my 3rd Iphone and I started out by copying over the configuration from my 3G. All of my other email accounts worked great after inserting the password. Gmail gave bad user/password combo error. I tried about 5-6 times...still no joy. Had my wife type the password in to make sure it wasn't just me (nope)...double checked that the password still logged me in to gmail via web on the macbook (yep).
    So I deleted the gmail account and started over from both selecting "GMAIL" and "OTHER" from the account type and following all appropriate instructions. I've also changed the password just to make sure there's no weird error with the password. Everything else on the iPhone 4 is working great...but I can't get gmail to work at all. Thoughts?

    Thanks for the suggestion. Unfortunately, no joy.
    First time the account was still there.
    2nd time the account was gone but after putting in new info the same bad user/password issue occurred.
    Incidentally I am able to login to gmail via the web interface on my iphone...
    IMAP and POP are both enabled in my gmail account.

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • TS2972 First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first

    First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first night.

    The speed may have been ok at that time and is too inconsistent/too slow overall. interference may have proven to be more of an issue since as well. If using public DNS that will provide Intermittant results
    I'm sure using a hotspot would be fine but it depends on your viewing habits. An HD movie is around 4-5GB. It would also be subject to speed. requirements so best to test to see how it compares.
    You would have to check with your Carrier if hotspot it's enabled then just to into your settings and toggle it ON

  • PHP 4 will not compile in PHP5 on OSX Server 10.5.5  Mac Mini

    I have been using a commercial server which does not give access to php.ini but bought a Mac Mini and OSX Server 10.5.5. My old PHP 4 program will not compile in PHP5. It gives weird compilation errors to do with curly brackets but as soon as I alter one bracket it jumps to another similar error somewhere else in the program. I think it may require tweeking the php.ini or httpd.conf files which I have opened using Terminal but I don't know what might need to be changed. I expected this to be a turn-key system ready to go. I knew there would be changed required to migrate from PHP4 to PHP 5 and read the official PHP site, searched many forums, and google searches, called AppleCare but none knows what to do. I used an editor and there are 276 open brackets and 276 close brackets. If you have made the same migration without difficulty please let me know. Maybe I just need to start again!

    evan-e-sent wrote:
    Well, I don't think the code is too messy except for the globals I use.
    It is. The point of this function is beyond elusive given the number of side effects it seems to induce. Everything in it could be reduced to one or two lines, but odds are good it shouldn't even exist in the first place.
    I just use the same set of globals for all functions so that these variables are readily available everywhere in the program without having to think about it.
    That's a very common beginner tactic which is unfortunately very prevalent in publicly distributed PHP projects due to the fact that many of them are written by beginners. I'd highly recommend you start thinking about it if you want to get anywhere.
    They are all constants once they have been set initially.
    http://us2.php.net/manual/en/function.define.php
    Like $query is set only once when the program picks it up from a $GET statement.
    And I'll bet you're not sanitizing that query string at all before passing it along to mySQL.
    This leaves two questions. Do you think I should treat every function as a separate file and have the mainline bring them in as "included code". There are 126 functions.
    Refactoring should improve the organization, performance and readability of your code according to some logical criteria. Simply putting each function in its own file accomplishes none of these things.
    (I have also written a 6000 line program as a MySQL data processor to make it easier for my wife to manipulate the data in dozens of tables without having to keep track of all the unique keys. So this will be quite a big job.) If so I would appreciate a quick tip about how to do that in PHP. Other pre-processing I do with Applescript.
    Why didn't you just install phpMyAdmin?
    Second, goes back to my initial question. This parsing problem only appeared after switching to PHP 5.2.2 with MySQL. Could this weird behavior be caused by some setting in the PHP.ini or httpd.conf or my.conf files and if so what would I change. The fact that this has not been suggested on this forum makes me think it is not a config. problem. That in itself is useful information.
    Probably not, but who knows what other nightmares might be lurking in this file. Did you use short tags like <? ?> or something?

  • Problem with php code. Please help!

    Hello!
    I'm using the following syntax to bring content into my
    websites' layout template:
    Code:
    <?php //check in the root folder first
    if(file_exists('./' . $pagename . '.php'))
    include './' . $pagename . '.php';
    //if it wasn't found in the root folder then check in the
    news folder
    elseif(file_exisits('./news/' . $filename . '.php'))
    include './news/' . $pagename . '.php';
    // if it couldn't be found display message
    else
    echo $pagename . '.php could not be found in either the root
    folder or the news folder!';
    } ?>
    What it's essentially saying is, if you can't find the .php
    file in the _root folder, look for it in the /news/ folder.
    It works perfectly if loading something from the _root folder
    but I get an error if I need to bring something from the /news/
    folder.
    Can anyone see any potential problems with my code?
    Thank you very much and I hope to hear from you.
    Take care,
    Mark

    I've never seen the code written like that before, but I'm
    assuming it's
    legal?
    Perhaps try:
    <?php
    $newsroot = $_SERVER['DOCUMENT_ROOT']."/news";
    if (!file_exists("$pagename.php")) {
    elseif (!file_exists("$newsroot/$pagename.php")) {
    else
    Or the other thing you can try is replacing the elseif
    statement with:
    elseif (!file_exists("news/$pagename.php"))
    If not - I'm sure Gary will be on here soon...
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Spindrift" <[email protected]> wrote in
    message
    news:e5mled$272$[email protected]..
    > Hello!
    >
    > I'm using the following syntax to bring content into my
    websites' layout
    > template:
    >
    > Code:
    >
    > <?php //check in the root folder first
    > if(file_exists('./' . $pagename . '.php'))
    > {
    > include './' . $pagename . '.php';
    > }
    > //if it wasn't found in the root folder then check in
    the news folder
    > elseif(file_exisits('./news/' . $filename . '.php'))
    > {
    > include './news/' . $pagename . '.php';
    > }
    > // if it couldn't be found display message
    > else
    > {
    > echo $pagename . '.php could not be found in either the
    root folder or
    > the
    > news folder!';
    > } ?>
    >
    > What it's essentially saying is, if you can't find the
    .php file in the
    > _root
    > folder, look for it in the /news/ folder.
    >
    > It works perfectly if loading something from the _root
    folder but I get an
    > error if I need to bring something from the /news/
    folder.
    >
    > Can anyone see any potential problems with my code?
    >
    > Thank you very much and I hope to hear from you.
    >
    > Take care,
    >
    > Mark
    >

  • Vector, what is the problem with this code?

    Vector, what is the problem with this code?
    63  private java.util.Vector data=new Vector();
    64  Vector aaaaa=new Vector();
    65   data.addElement(aaaaa);
    74  aaaaa.addElement(new String("Mary"));on compiling this code, the error is
    TableDemo.java:65: <identifier> expected
                    data.addElement(aaaaa);
                                   ^
    TableDemo.java:74: <identifier> expected
                    aaaaa.addElement(new String("Mary"));
                                    ^
    TableDemo.java:65: package data does not exist
                    data.addElement(aaaaa);
                        ^
    TableDemo.java:74: package aaaaa does not exist
                    aaaaa.addElement(new String("Mary"));Friends i really got fed up with this code for more than half an hour.could anybody spot the problem?

    I can see many:
    1. i assume your code snip is inside a method. a local variable can not be declare private.
    2. if you didn't import java.util.* on top then you need to prefix package on All occurance of Vector.
    3. String in java are constant and has literal syntax. "Mary" is sufficient in most of the time, unless you purposly want to call new String("Mary") on purpose. Read java.lang.String javadoc.
    Here is a sample that would compile...:
    public class QuickMain {
         public static void main(String[] args) {
              java.util.Vector data=new java.util.Vector();
              java.util.Vector aaaaa=new java.util.Vector();
              data.addElement(aaaaa);
              aaaaa.addElement(new String("Mary"));
    }

Maybe you are looking for

  • Error while Creating new Position-Data fields have not been filled (no. 5A135)

    Dear Consultants, My client using SAP HCM form 2008, now they want to create new positions to the existing system, To create new positions I am using T Code : PP03, while creating I am getting error "Date Fields have not been filled- Error Message No

  • Unable to complete photo book order on ipad

    Hi, I hope this is the right place to get some help. Regarding placing an iphoto photo book order on an ipad. I have been working on a photo book project for a long time, and want to finally order some copies of the book. Everything has worked fine,

  • SQL injection and SQLFury

    We have recently had an SQL injection attack on our site.  The web form in question was calling a second cfm with a post command.  The second cfm did the actually db insert. After extensive research and revamping of the web form I believed that I had

  • Macbook pro 2008

    Since i got my macbook pro for christmas last year i haven't had a single problem with it. Now all of a sudden my volume keys at the top of the keyboard aren't working unless i hold the function key down-which can be a pain. I haven't change a thing

  • Security Reports in Shared Services

    Hi guys, Could you please help me with a simple question (well, I believe it's easy, but I'm not able to answer it... :)) I'd like to give a user the permission to run security reports, but it's seems he has to be "Shared Services admin" to do so. Is