Photosmart 4480 False Jams

K, this printer has just been FRUSTRATING! I've searched everywhere online for answers, including HP support and all that jazz, but to no avail. My problem is, every time I turn on the printer and try to print anything at all, I get a "Paper Jam" error message. The thing is, this happens if it has paper or no paper, connected to the computer or not connected, and it WON'T TURN OFF, even if I keep pressing OK or cancle once it's "cleared". I've claned the rollers, restarted the printer multiple times, installed and reinstalled drivers, and done all the steps given by HP support. Is there some sort of sensor I can clean off, or screw I can tighten, or anything? I've gotten it to color copy a page once after following the HP reset instuctions of taking out the cartridges, turning off the printer, and restarting it. Then it started giving me the jam messages again, and the reset no longer works. Help please?

Out of curiousity, does it "dog ear" the RHS of the leading edge of the paper?
Sounds like a jam I get.  Another fellow on this forum also got the same "dog ear jam" and yet no one has anything to say about it unfortunately.  I have a theory but it is a weak one involving a "bent black finger."
Good luck,
Tom

Similar Messages

  • Have hp laserjet 3015dn that keeps jamming. seems to be false jam?

    I have an HP LaserJet 3015 DN that keeps giving me a jamming message.  When I follow the instructions on the display, I open the paper tray and then the top front door and remove and replace the toner cartridge and then close everything up, the printer starts working again.  Nothing ever seems to be really jammed .  This seems to be a "false"jamming situation.  Anyone have any ideas?

    When you use the ADF you place the printed side of the paper in the up positon.  The roller that moves the paper rolls over the top of the page which over time causes ink from the pages to cause the roller to become slick.  What I usually do is clean the pickup roller with warm soapy water and then dry.  If that does not help, then you need to replace the roller assembly. http://www.precisionroller.com/doc-feeder-parts-for-hp-color-laserjet-cm2320nf/details_42082.html

  • Photosmart 5515 carriage jamming. Grating noise when switched on

    When I switch on my Photosmart 5515 the carriage moves over to the right as usual trhen a loud noise of slipping cogs occurs and the carriage jams.
    What appears to be happening is that the little doofus that wipes the printhead moves forward as it should but whatever should be telling it that it's gone far enough doesn't seem to be doing so.
    I can't see any sensor at the front so I assume it must be under the back where the motors are.
    I'd rather not take it apart any further unless I have to. There a lot of precarious looking springs and things under there and I reckon my chances of getting them back on are remote if I dislodge them
    Has anyone seen this problem who could tell me what the likely cause is?

    Hello Jerakeen, and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are getting jams and grinding noises in the carriage path.  I would like to try and help.
    I would first suggest performing a power reset.  Disconnect the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug the printer back in. Ensure you plug the printer directly to a wall outlet. Make sure to bypass any sort of surge protector or power bar.
    I would also recommend following the steps in this document on a 'Carriage Jam' Message Displays on the Control Panel.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Photosmart c7180 paper jams & wrong paper size errors

    About 5 weeks ago I bought an ASUS computer with Windows 7, 64 bit and installed the drivers for my printer from the hp website. The printer is hooked up to my wireless network. No problem. 3 weeks later I have constant paper jams, I did the standard clean out paper, clean dust off of rollers and while on, unplug plug from back of printer then from outlet and wait a bit then plug back in. I was able to print a test page then it started happening again, sometimes reporting a paper jam error, sometimes a wrong size paper error, and sometimes an out of paper error.  I also noticed that the rollers seem to be trying to grab the paper really fast (faster than they normally did). I have had this printer for many years-not even sure how many-and have hardly had an issue with it ever. I love it.

    HI CFox,
    Here is the link to the support document for paper jams for your printer. This is the most comprehensive document for paper jams on your printer. Let us know if this works for you or not.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • HT3669 My HP Photosmart 4480 its not scaning on my MAC OS X Mavericks 10.9.2

    My mac have OS X Mavericks 10.9.2 and my HP Photosmart C4480 its printing fine but im having trouble scaning, when i checked on apple site printer softwares i dont see mine listed only the HP photosmart C4400, y deleted/added few times and the scanner still isnt working, any sugestions?

    Hi..
    There's an alternative for scanning when the printer / scanner model driver isn't available.
    Launch Image Capture located in your Applications folder.
    Connect the scanner to your Mac whether Wi-Fi or USB.
    Click the very small black box bottom left side of the Image Capture window.
    You'll see this pop up menu:   Connecting this (device) opens:
    You can select a default app to scan (Image Capture) and select a folder from the Import To pop up menu on the right to save scanned files to.
    If you need help with the Image Capture software, click Help from the Image Capture menu bar.
    And here >  Mac Basics: Using a scanner

  • HP Photosmart D7160 paper jam error and clicking sound

    I have a D7160 that has been working great, and yesterday started making a clicking sound when I start it up. It clicks and sort of grinds when I turn it on, and then the screen says there is a paper jam and that I should open the back and remove the paper.
    I have never run stickers, labels or other items through the printer. I have only used HP photo paper in it, and occasionally printed on regular copy paper. No thin papers, no paper jams, no stuck or torn paper.
    This printer literally sat for about two years at my parent's house unused until they loaned it to me about a month ago. I doubt there have been more than 250 pages put through it total.
    My other HP printer broke a lever inside of it, so I have to take the side panel off of it to make it "understand" that the cover is closed. I'm wondering if this is something similar (a broken gear or lever), but I can't figure out where to look or what it might be.
    Thanks for any help you can give!
    Michelle

    This happens periodically.  Evenutally it "fixes itself," but I'm not sure what it is.  I've cleaned the rollers, the toner heads, printed an 8 1/2 x 11 sheet (which prints fine), reloaded paper, made sure paper was not curled or there wasn't too much in the tray, made sure the side hold bar wasn't too tight, etc. etc.  Try disconnecting the printer from both power and the PC.  Reboot, then reconnect the printer.  Print a test page.  Try again.

  • Photosmart C5250 Paper Jam???

    My printer is kicking the paper jam door open even though there is no jam.  Seems to be a feeding problem.  I makes a grinding noise before this happens.  Any ideas?

    Hi,
    If you haven't tried resetting the printer yet... to do this you'd leave the printer on and unplug the power cord from the power source.  Wait 60 seconds and plug the power cord back in.  This should allow the printer to reset.
    As far as pulling 5 sheets of paper, when this has happened to me it is because my paper tray isn't full.  Also, you might try fanning the paper before putting the paper in the paper tray.  This has helped too.
    Say Thanks by clicking the Kudos Star in the post that helped you. Please mark the post that solves your problem as Accepted Solution.
    I am employed by HP

  • Photosmart 7515 jams using Kirkland (Costco) glossy photo paper

    I have used other photo papers in the past including HP.  But this time I purchased a package of Kirkland Professional Glossy Inkjet Photo Paper.  After starting a print job, the paper starts to feed and then jams.  Once it actually printed, but the print was about half off the paper.  The other attempts all jammed.  I ruined 5 sheets so far with no success. This Kirkland paper does not seem any different from the others used.  Is there something wrong with the printer?  I don't have a different paper to try at the moment.

    Hi , Welcome to the HP Forums! I see that your HP Photosmart 7515 is jamming when using Kirkland (Costco) glossy photo paper. I am happy to help!  It is possible, that this type of paper may not be supported with this printer. In order for me to find out, I will need to know the size and weight of the paper you are using. In the meantime, please try the steps in this paper jam guide. A 'Paper Jam' Error Displays on the HP Photosmart 7510 e-All-in-One Printer Series. Hope this guide helps, and hope to hear from you soon!  “Please click the Thumbs up icon below to thank me for responding.”

  • James Send to Junk Mail

    Hello , i am using james 2.2.0 installed on a server with a online DNS , it recives mails properly , but when i try to send emails ( also when using Authenticated SMTP) , mail go to junk mails ( as hotmail and yahoo) , When i use Outlook express outside the server to send mail i get the following error :
    The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was '[email protected]'. Subject 'hahahhaha', Account: 'mytrans-port.com', Server: 'mytrans-port.com', Protocol: SMTP, Server Response: '550 - Requested action not taken: relaying denied', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
    here is my config.xml , Thanks
    <?xml version="1.0"?>
    <!DOCTYPE config [
    <!ENTITY listserverConfig SYSTEM "../conf/james-listmanager.xml">
    <!ENTITY listserverStores SYSTEM "../conf/james-liststores.xml">
    <!ENTITY fetchmailConfig SYSTEM "../conf/james-fetchmail.xml">
    ]>
    <!--  Configuration file for the ASF James server -->
    <!--  This file contains important settings that control the behaviour -->
    <!--  of all of the services and repositories. -->
    <!--                               README!                            -->
    <!-- This configuration file is designed to run without alteration for simple tests. -->
    <!-- It assumes you have a DNS server on localhost and assigns a root password of root. -->
    <!-- In case the defaults do not suit you, the items you are most likely to need to change -->
    <!-- are preceded by a CHECKME! or CONFIRM? comment in the left margin. -->
    <!-- For production use you will probably need to make more extensive changes, see -->
    <!-- http://james.apache.org/documentation_2_1.html -->
    <!-- $Revision: 1.40.2.26 $ Committed on $Date: 2004/06/16 02:42:08 $ by: $Author: noel $ -->
    <config>
       <James>
    <!-- CHECKME! -->
          <!-- This is the postmaster email address for this mail server. -->
          <!-- Set this to the appropriate email address for error reports -->
          <!-- If this is set to a non-local email address, the mail server -->
          <!-- will still function, but will generate a warning on startup. -->
          <postmaster>Postmaster@localhost</postmaster>
          <!-- servernames identifies the DNS namespace served by this instance of James. -->
          <!-- These servernames are used for both matcher/mailet processing and SMTP auth -->
          <!-- to determine when a mail is intended for local delivery. -->
          <!-- -->
          <!-- If autodetect is TRUE, James wil attempt to discover its own host name AND -->
          <!-- use any explicitly specified servernames. -->
          <!-- If autodetect is FALSE, James will use only the specified servernames. -->
          <!-- -->
          <!-- If autodetectIP is not FALSE, James will also allow add the IP address for each servername. -->
          <!-- The automatic IP detection is to support RFC 2821, Sec 4.1.3, address literals. -->
          <!-- -->
          <!-- To override autodetected server names simply add explicit servername elements. -->
          <!-- In most cases this will be necessary. -->
          <!-- By default, the servername 'localhost' is specified. This can be removed, if required. -->
          <!-- -->
          <!-- Warning: If you are using fetchpop it is important to include the -->
          <!-- fetched domains in the server name list to prevent looping.       -->
          <servernames autodetect="true" autodetectIP="true">
    <!-- CONFIRM? -->
             <servername>mytrans-port.com</servername>
          </servernames>
          <!-- Set whether user names are case sensitive or case insensitive -->
          <!-- Set whether to enable local aliases -->
          <!-- Set whether to enable forwarding -->
          <usernames ignoreCase="true" enableAliases="true" enableForwarding="true"/>
          <!-- The inbox repository is the location for users inboxes -->
          <!-- Default setting: file based repository - enter path ( use  "file:///" for absolute) -->
          <inboxRepository>
             <repository destinationURL="file://var/mail/inboxes/" type="MAIL"/>
          </inboxRepository>
          <!-- Alternative inbox repository definition for DB use. -->
          <!-- The format for the destinationURL is "db://<data-source>/<table>" -->
          <!-- <data-source> is the datasource name set up in the database-connections block, below -->
          <!-- <table> is the name of the table to store user inboxes in -->
          <!-- The user name is used as <repositoryName> for this repository config. -->
          <!--
          <inboxRepository>
             <repository destinationURL="db://maildb/inbox/" type="MAIL"/>
          </inboxRepository>
          -->
          <!-- Alternative inbox repository definition for DB use. -->
          <!-- Stores message body in file system, rest in database -->
          <!--
          <inboxRepository>
             <repository destinationURL="dbfile://maildb/inbox/" type="MAIL"/>
          </inboxRepository>
          -->
          <!-- Alternative inbox repository definition for mbox use. -->
          <!-- This method uses UNIX standard mbox files and is meant for people using mbox files -->
          <!-- with systems such as mail list archive displayers -->
          <!-- Note that dot-locking is not currently supported -->
          <!-- so network (write) accesses may cause mbox corruption -->
          <!-- the sample mbox URL is an absolute URL; mbox:///var/mail will put the users mbox files in /var/mail/-->
          <!--
          <inboxRepository>
             <repository destinationURL="mbox:///var/mail/" type="MAIL"/>
          </inboxRepository>
          -->
       </James>
       <!-- Fetch pop block, fetches mail from POP3 servers and inserts it into the incoming spool -->
       <!-- Warning: It is important to prevent mail from looping by setting the  -->
       <!-- fetched domains in the <servernames> section of the <James> block     -->
       <!-- above. This block is disabled by default.                             -->
       <!-- FetchPOP is being deprecated in favor of FetchMail                    -->
        <fetchpop enabled="true">
            <!-- You can have as many fetch tasks as you want, but each must have a -->
            <!-- unique name by which it identified -->
            <fetch name="mydomain.com">
                <!-- Host name or IP address -->
                <host>mail.mydomain.com</host>
                <!-- Account login username -->
                <user>username</user>
                <!-- Account login password -->
                <password>pass</password>
                <!-- How frequently this account is checked - in milliseconds. 600000 is every ten minutes -->
                <interval>600000</interval>
            </fetch>
        </fetchpop>
        <!-- This is an example configuration for FetchMail, a JavaMail based gateway  -->
        <!-- service that pulls messages from other sources, and inserts them into the -->
        <!-- spool.  They are then processed normally, although FetchMail generally    -->
        <!-- has to fabricate some of the envelope information.  FetchMail should be   -->
        <!-- considered a mail gateway, rather than a relay, in RFC terms.             -->
        <!-- Fetchmail is a functionally richer replacement for FetchPOP.              -->
        <!-- CHECKME: FetchMail is disabled by default, and must be configured to use. -->
        <!-- Edit the file referred to by fetchmailConfig to enable and configure.     -->
        &fetchmailConfig;
       <!-- The James Spool Manager block  -->
       <!-- -->
       <!-- This block is responsible for processing messages on the spool. -->
       <spoolmanager>
          <!-- Number of spool threads -->
          <threads> 10 </threads>
          <!-- Set the Java packages from which to load mailets and matchers -->
          <mailetpackages>
             <mailetpackage>org.apache.james.transport.mailets</mailetpackage>
          </mailetpackages>
          <matcherpackages>
             <matcherpackage>org.apache.james.transport.matchers</matcherpackage>
          </matcherpackages>
          <!-- The root processor is a required processor - James routes all mail on the spool -->
          <!-- through this processor first. -->
          <!-- -->
          <!-- This configuration is a sample configuration for the root processor. -->
          <processor name="root">
             <!-- Checks that the email Sender is associated with a valid domain. -->
             <!-- Useful for detecting and eliminating spam. -->
             <!-- For this block to function, the spam processor must be configured. -->
             <!--
             <mailet match="SenderInFakeDomain=64.55.105.9,64.94.110.11,194.205.62.122,194.205.62.62,195.7.77.20,206.253.214.102,212.181.91.6,219.88.106.80,194.205.62.42,216.35.187.246,203.119.4.6" class="ToProcessor">
                <processor> spam </processor>
             </mailet>
             -->
             <!-- Important check to avoid looping -->
             <mailet match="RelayLimit=30" class="Null"/>
             <!--
             <mailet match="All" class="XMLVirtualUserTable">
                <!- 1:1 mapping ->
                <mapping>morgoth@middle-earth=sauron@mordor</mapping>
                <!- 1:n mapping ->
                <mapping>istari@middle-earth=saruman@isengard;radigast;gandalf</mapping>
                <!- DSN mapping ->
                <mapping>boromir@osgilliath=error:550 Requested action not taken: no such user here</mapping>
                <!- regex based mapping ->
                <mapping>*@osgilliath=regex:(.*)@osgilliath:${1}@minas-tirith</mapping>
                <!- both standard and regex mapping ->
                <mapping>ring@*=onering@mordor;regex:ring@(.*):ring@${1}</mapping>
                <!- conditional regex mapping example ->
                <mapping>*@listserver=regex:(.*)-on@listserver:${1}-subscribe@listserver;
                                      regex:(.*)-off@listserver:${1}-unsubscribe@listserver
                </mapping>
             </mailet>
             -->
             <!-- White List:
                  If you use block lists, you will probably want to check
                  for known permitted senders.  This is particularly true
                  if you use more aggressive block lists, such as SPEWS,
                  that are prone to block entire subnets without regard
                  for non-spamming senders.
              -->
             <!-- specific known senders -->
             <!--
             <mailet match="SenderIs=goodboy@goodhost"
                     class="ToProcessor">
                <processor> transport </processor>
             </mailet>
             -->
             <!-- People on this list agree to pay a penalty if they send spam -->
             <mailet match="InSpammerBlacklist=query.bondedsender.org"
                     class="ToProcessor">
               <processor> transport </processor>
             </mailet>
             <!-- E-mail legally required not to be spam (see: http://www.habeas.com) -->
             <!--
             <mailet match="HasHabeasWarrantMark" class="ToProcessor">
                <processor> transport </processor>
             </mailet>
             -->
             <!-- End of White List -->
             <!-- Check for delivery from a known spam server -->
             <!-- This set of matchers/mailets redirect all emails from known -->
             <!-- black holes, open relays, and spam servers to the spam processor -->
             <!-- For this set to function properly, the spam processor must be configured. -->
             <mailet match="InSpammerBlacklist=dnsbl.njabl.org"
                     class="ToProcessor">
               <processor> spam </processor>
               <notice>550 Requested action not taken: rejected - see http://njabl.org/ </notice>
             </mailet>
             <mailet match="InSpammerBlacklist=relays.ordb.org"
                     class="ToProcessor">
               <processor> spam </processor>
               <notice>550 Requested action not taken: rejected - see http://www.ordb.org/ </notice>
             </mailet>
             <!-- Sample matching to kill a message (send to Null) -->
             <!--
             <mailet match="RecipientIs=badboy@badhost" class="Null"/>
             -->
             <!-- Send remaining mails to the transport processor for either local or remote delivery -->
             <mailet match="All" class="ToProcessor">
                <processor> transport </processor>
             </mailet>
          </processor>
          <!-- The error processor is required.  James may internally set emails to the -->
          <!-- error state.  The error processor is generally invoked when there is an -->
          <!-- unexpected error either in the mailet chain or internal to James. -->
          <!-- -->
          <!-- By default configuration all email that generates an error in placed in -->
          <!-- an error repository. -->
          <processor name="error">
             <!-- If you want to notify the sender their message generated an error, uncomment this       -->
             <!--
             <mailet match="All" class="Bounce"/>
             -->
             <!-- If you want to notify the postmaster that a message generated an error, uncomment this  -->
             <!--
             <mailet match="All" class="NotifyPostmaster"/>
             -->
             <!-- Logs any messages to the repository specified -->
             <mailet match="All" class="ToRepository">
                <repositoryPath> file://var/mail/error/</repositoryPath>
                <!-- An alternative database repository example follows. -->
                <!--
                <repositoryPath> db://maildb/deadletter/error </repositoryPath>
                -->
             </mailet>
          </processor>
          <!-- Processor CONFIGURATION SAMPLE: transport is a sample custom processor for local or -->
          <!-- remote delivery -->
          <processor name="transport">
            <!-- This is an example configuration including configuration for a list server. -->
            <!-- CHECKME: before uncommenting this, edit the configuration file's contents   -->
            <!--
              &listserverConfig;
            -->
             <!-- Is the recipient is for a local account, deliver it locally -->
             <mailet match="RecipientIsLocal" class="LocalDelivery"/>
             <!-- If the host is handled by this server and it did not get -->
             <!-- locally delivered, this is an invalid recipient -->
             <mailet match="HostIsLocal" class="ToProcessor">
                <processor> local-address-error </processor>
                <notice>550 - Requested action not taken: no such user here</notice>
             </mailet>
    <!-- CHECKME! -->
             <!-- This is an anti-relay matcher/mailet combination -->
             <!-- -->
             <!-- Emails sent from servers not in the network list are  -->
             <!-- rejected as spam.  This is one method of preventing your -->
             <!-- server from being used as an open relay.  Make sure you understand -->
             <!-- how to prevent your server from becoming an open relay before -->
             <!-- changing this configuration. See also <authorizedAddresses> in SMTP Server -->
             <!-- -->
             <!-- This matcher/mailet combination must come after local delivery has -->
             <!-- been performed.  Otherwise local users will not be able to receive -->
             <!-- email from senders not in this remote address list. -->
             <!-- -->
             <!-- If you are using this matcher/mailet you will probably want to -->
             <!-- update the configuration to include your own network/addresses.  The -->
             <!-- matcher can be configured with a comma separated list of IP addresses  -->
             <!-- wildcarded IP subnets, and wildcarded hostname subnets. -->
             <!-- e.g. "RemoteAddrNotInNetwork=127.0.0.1, abc.de.*, 192.168.0.*" -->
             <!-- -->
             <!-- If you are using SMTP authentication then you can (and generally -->
             <!-- should) disable this matcher/mailet pair. -->
             <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
                <processor> relay-denied </processor>
                <notice>550 - Requested action not taken: relaying denied</notice>
             </mailet>
             <!-- Attempt remote delivery using the specified repository for the spool, -->
             <!-- using delay time to retry delivery and the maximum number of retries -->
             <mailet match="All" class="RemoteDelivery">
                <outgoing> file://var/mail/outgoing/ </outgoing>
                <!-- alternative database repository example below -->
                <!--
                <outgoing> db://maildb/spool/outgoing </outgoing>
                -->
                <!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 -->
                <!-- 5 day retry period, with 4 attempts in the first
                     hour, two more within the first 6 hours, and then
                     every 6 hours for the rest of the period. -->
                <delayTime>  5 minutes </delayTime>
                <delayTime> 10 minutes </delayTime>
                <delayTime> 45 minutes </delayTime>
                <delayTime>  2 hours </delayTime>
                <delayTime>  3 hours </delayTime>
                <delayTime>  6 hours </delayTime>
                <maxRetries> 25 </maxRetries>
                <!-- The number of threads that should be trying to deliver outgoing messages -->
                <deliveryThreads> 1 </deliveryThreads>
                <!-- If false the message will not be sent to given server if any recipients fail -->
                <sendpartial>false</sendpartial>
                <!-- A single mail server to deliver all outgoing messages. -->
                <!-- This is useful if this server is a backup or failover machine, -->
                <!-- or if you want all messages to be routed through a particular mail server, -->
                <!-- regardless of the email addresses specified in the message -->
                <!-- -->
                <!-- The gateway element specifies the gateway SMTP server name. -->
                <!-- If your gateway mail server is listening on a port other than 25, -->
                <!-- you can set James to connect to it on that port using the gatewayPort -->
                <!-- element. -->
                <!-- Although normally multiple addresses are implemented through proper -->
                <!-- DNS configuration, the RemoteDelivery mail does allow specifying -->
                <!-- multiple gateway elements, each of which may also have a port -->
                <!-- e.g., mygateway:2525 -->
                <!-- the gatewayPort element is used as a default -->
                <!--
                <gateway> mytrans-port.com</gateway>
                <gatewayPort>25</gatewayPort>
                -->
             </mailet>
          </processor>
          <!-- Processor CONFIGURATION SAMPLE: spam is a sample custom processor for handling -->
          <!-- spam. -->
          <!-- You can either log these, bounce these, or just ignore them. -->
          <processor name="spam">
             <!-- To destroy all messages, uncomment this matcher/mailet configuration -->
             <!--
             <mailet match="All" class="Null"/>
             -->
             <!-- To notify the sender their message was marked as spam, uncomment this matcher/mailet configuration -->
             <!--
             <mailet match="All" class="Bounce"/>
             -->
             <!-- To notify the postmaster that a message was marked as spam, uncomment this matcher/mailet configuration -->
             <!--
             <mailet match="All" class="NotifyPostmaster"/>
             -->
             <!-- To log the message to a repository, this matcher/mailet configuration should be uncommented. -->
             <!-- This is the default configuration. -->
             <mailet match="All" class="ToRepository">
                <repositoryPath>file://var/mail/spam/</repositoryPath>
                <!-- Changing the repositoryPath, as in this commented out example, will -->
                <!-- cause the mails to be stored in a database repository.  -->
                <!-- Please note that only one repositoryPath element can be present for the mailet -->
                <!-- configuration. -->
                <!--
                <repositoryPath> db://maildb/deadletter/spam </repositoryPath>
                -->
             </mailet>
          </processor>
          <!-- This processor handles messages that are for local domains, where the user is unknown -->
          <processor name="local-address-error">
             <!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration -->
             <!-- The original message is not attached to keep the bounce processor from deliverying spam -->
             <!--
             <mailet match="All" class="Bounce">
                <attachment>none</attachment>
             </mailet>
             -->
             <!-- To notify the postmaster that a message had an invalid address, uncomment this matcher/mailet configuration -->
             <!--
             <mailet match="All" class="NotifyPostmaster"/>
             -->
             <mailet match="All" class="ToRepository">
                <repositoryPath> file://var/mail/address-error/</repositoryPath>
                <!-- An alternative database repository example follows. -->
                <!--
                <repositoryPath> db://maildb/deadletter/address-error </repositoryPath>
                -->
             </mailet>
          </processor>
          <!-- This processor handles messages that are for foreign domains, where relaying is denied -->
          <!-- As of James v2.2, this processor can be deprecated by using the <authorizedAddresses> tag
               in the SMTP Server, and rejecting the message in the protocol transaction.  -->
          <processor name="relay-denied">
             <!-- To notify the sender the address was invalid, uncomment this matcher/mailet configuration -->
             <!-- The original message is not attached to keep the bounce processor from deliverying spam -->
             <!--
             <mailet match="All" class="Bounce">
                <attachment>none</attachment>
             </mailet>
             -->
             <!-- To notify the postmaster that a relay request was denied, uncomment this matcher/mailet configuration -->
             <!--
             <mailet match="All" class="NotifyPostmaster"/>
             -->
             <mailet match="All" class="ToRepository">
                <repositoryPath>file://var/mail/relay-denied/</repositoryPath>
                <!-- An alternative database repository example follows. -->
                <!--
                <repositoryPath> db://maildb/deadletter/relay-denied </repositoryPath>
                -->
             </mailet>
          </processor>
       </spoolmanager>
       <!-- DNS Server Block -->
       <!-- -->
       <!-- Specifies DNS Server information for use by various components inside -->
       <!-- James. -->
       <!-- -->
       <!-- If autodiscover is true, James will attempt to autodiscover the DNS servers configured on your underlying system.-->
       <!-- Currently, this works if the OS has a unix-like /etc/resolv.conf,-->
       <!-- or the system is Windows based with ipconfig or winipcfg.-->
       <!-- -->
       <!-- If no DNS servers are found and you have not specified any below, 127.0.0.1 will be used-->
       <!-- If you use autodiscover and add DNS servers manually a combination of all the dns servers will be used  -->
       <!--  -->
       <!-- Information includes a list of DNS Servers to be used by James.  These are -->
       <!-- specified by the server elements, each of which is a child element of the -->
       <!-- servers element.  Each server element is the IP address of a single DNS server. -->
       <!-- The servers element can have multiple server children. -->
       <dnsserver>
          <servers>
             <!--Enter ip address of your DNS server, one IP address per server -->
             <!-- element. -->
             <!--
              <server>216.251.32.100</server>
             -->
          </servers>
          <!-- Change autodiscover to false if you would like to turn off autodiscovery -->
          <!-- and set the DNS servers manually in the <servers> section -->
          <autodiscover>true</autodiscover>
          <authoritative>false</authoritative>
       </dnsserver>
       <remotemanager>
          <port>4555</port>
          <!--  Uncomment this if you want to bind to a specific inetaddress -->
          <!--
          <bind> </bind>
          -->
          <!--  Uncomment this if you want to use TLS (SSL) on this port -->
          <!--
          <useTLS>true</useTLS>
          -->
          <handler>
             <!-- This is the name used by the server to identify itself in the RemoteManager -->
             <!-- protocol.  If autodetect is TRUE, the server will discover its -->
             <!-- own host name and use that in the protocol.  If discovery fails, -->
             <!-- the value of 'localhost' is used.  If autodetect is FALSE, James -->
             <!-- will use the specified value. -->
             <helloName autodetect="true">myMailServer</helloName>
             <administrator_accounts>
    <!-- CHECKME! -->
                <!-- Change the default login/password. -->
                <account login="username" password="password"/>
             </administrator_accounts>
             <connectiontimeout> 60000 </connectiontimeout>
          </handler>
       </remotemanager>
        <!-- The POP3 server is enabled by default -->
        <!-- Disabling blocks will stop them from listening, -->
        <!-- but does not free as many resources as removing them would -->
       <pop3server enabled="true">
          <!-- port 995 is the well-known/IANA registered port for POP3S  ie over SSL/TLS -->
          <!-- port 110 is the well-known/IANA registered port for Standard POP3 -->
          <port>110</port>
          <!-- Uncomment this if you want to bind to a specific inetaddress -->
          <!--
          <bind> </bind>
          -->
          <!--  Uncomment this if you want to use TLS (SSL) on this port -->
          <!--
          <useTLS>true</useTLS>
          -->
          <handler>
             <!-- This is the name used by the server to identify itself in the POP3 -->
             <!-- protocol.  If autodetect is TRUE, the server will discover its -->
             <!-- own host name and use that in the protocol.  If discovery fails, -->
             <!-- the value of 'localhost' is used.  If autodetect is FALSE, James -->
             <!-- will use the specified value. -->
             <helloName autodetect="true">myMailServer</helloName>
             <connectiontimeout>120000</connectiontimeout>
          </handler>
       </pop3server>
        <!-- The SMTP server is enabled by default -->
        <!-- Disabling blocks will stop them from listening, -->
        <!-- but does not free as many resources as removing them would -->
       <smtpserver enabled="true">
          <!-- port 25 is the well-known/IANA registered port for SMTP -->
          <port>25</port>
          <!-- Uncomment this if you want to bind to a specific inetaddress -->
          <!--
          <bind> </bind>
          -->
          <!-- Uncomment this if you want to use TLS (SSL) on this port -->
          <!--
          <useTLS>true</useTLS>
          -->
          <handler>
             <!-- This is the name used by the server to identify itself in the SMTP -->
             <!-- protocol.  If autodetect is TRUE, the server will discover its -->
             <!-- own host name and use that in the protocol.  If discovery fails, -->
             <!-- the value of 'localhost' is used.  If autodetect is FALSE, James -->
             <!-- will use the specified value. -->
             <helloName autodetect="true">myMailServer</helloName>
             <connectiontimeout>360000</connectiontimeout>
             <!--  Uncomment this if you want to require SMTP authentication. -->
             <!--
             <authRequired>true</authRequired>
             -->
    <!-- CHECKME! -->
             <!--  Uncomment this if you want to authorize specific addresses/networks.
                   If you use SMTP AUTH, addresses that match those specified here will
                   be permitted to relay without SMTP AUTH.  If you do not use SMTP
                   AUTH, and you specify addreses here, then only addresses that match
                   those specified will be permitted to relay.
                   Addresses may be specified as a an IP address or domain name, with an
                   optional netmask, e.g.,
                   127.*, 127.0.0.0/8, 127.0.0.0/255.0.0.0, and localhost/8 are all the same
                   See also the RemoteAddrNotInNetwork matcher in the transport processor.
                   You would generally use one OR the other approach.
             -->
             <authorizedAddresses>127.0.0.0/8</authorizedAddresses>
             <!--  Uncomment this if you want to verify sender addresses, ensuring that -->
             <!--  the sender address matches the user who has authenticated. -->
             <!--  This prevents a user of your mail server from acting as someone else -->
             <!--
             <verifyIdentity>true</verifyIdentity>
             -->
             <!--  This sets the maximum allowed message size (in kilobytes) for this -->
             <!--  SMTP service. If unspecified, the value defaults to 0, which means no limit. -->
             <maxmessagesize>0</maxmessagesize>
          </handler>
       </smtpserver>
        <!-- The NNTP server is enabled by default -->
        <!-- Disabling blocks will stop them from listening, -->
        <!-- but does not free as many resources as removing them would -->
        <!-- NNTP-specific: if you disable the NNTP Server, you should also set the nntp-repository's
             threadCount to 0, otherwise there will be threads active and polling  -->
       <nntpserver enabled="true">
       <!-- THE NNTP PROTOCOL IS EXPERIMENTAL AND NOT AS WELL TESTED AS SMTP AND POP3 IN THIS RELEASE.
            The James project recommends that you check the James web site for updates to the NNTP
            service.  -->
          <!-- port 563 is the well-known/IANA registered port for NNTP over SSL/TLS -->
          <!-- port 119 is the well-known/IANA registered port for Standard NNTP -->
          <port>119</port>
          <!-- Uncomment this if you want to bind to a specific inetaddress -->
          <!--
          <bind> </bind>
          -->
          <!-- Uncomment this if you want to use TLS (SSL)  on this port -->
          <!--
          <useTLS>true</useTLS>
          -->
          <handler>
             <!-- This is the name used by the server to identify itself in the NNTP -->
             <!-- protocol.  If autodetect is TRUE, the server will discover its -->
             <!-- own host name and use that in the protocol.  If discovery fails, -->
             <!-- the value of 'localhost' is used.  If autodetect is FALSE, James -->
             <!-- will use the specified value. -->
             <helloName autodetect="true">myMailServer</helloName>
             <co                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    hi
    you have to change the config.xml to allow the server accept relay mails from your host machine from which you are sendign the mail ...
    ie
    change
    <mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
    <processor> relay-denied </processor>
    <notice>550 - Requested action not taken: relaying denied</notice>
    </mailet>
    add few more ips (your network / subnet ip)
    so that it accpets mails from that machine to be relayed ...
    you can also change the smtp autheriZation part and do that ...
    any one is enough ..
    Regards
    Venkat

  • C6350 paper jam error on screen,no paper in machine,no pc connected, error will not clear

    c6350 photosmart printer, paper jam indication that will not clear,no paper in path,no computer involved. cleaned optical paperpath sensor,checked actuation on mech. switch. Does anyone have any ideas or suggestions? Thanks, Larryt
    This question was solved.
    View Solution.

    Hi,
    I see... so if the carriage wud nmot move to the center or right side of the printer- try to unplug the printer and manually move the carriage... but if that step will not work.. you need to replace the printer becayse the unit is already defective...
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • Best of the Month – October '14

    Time passes, months go by, technologies evolve and replace their old selves… but the Forum doesn’t grow old, at least not by its sprit. It still has the same rush of customers swarming through its boards, trying to get help for their HP products and the same enthusiasm of the forum experts jumping in to help them, maybe even more than before. Take October for instance; More than 5.8 million customers visited our forum this month and created over 16 thousand new topics. The experts maintained their momentum by creating more than 19 thousand replies and solving around 2,000 topics. In the October edition of this blog, we want to specially acknowledge the efforts of three people who went an extra mile to help the community members. Top Contributor  The best of the month blog isn’t complete without Paul’s name in it and Paul doesn’t disappoint the readers this month either. He is still the reigning king of the contributors’ leaderboard. In October, Paul contributed 1246 posts in the Forum and solved 206 of them. He made a lot of fans, as 346 customers appreciated his help by giving him kudos. Here are a couple of comments from his fans. ‘Thank You’ Note 1: Thank you from the bottom of my heart. I've been trying to resolve this problem for the whole day. ‘Thank You’ Note 2: THANK YOU SO MUCH!!!!! A solution that finally worked!  Special Recognition:  The first person we want to recognize this month is ManjunathTech. He is a committed individual and terrific Expert, who recently inspired quite a few people to join the expert family. Learn more about him in this article in the Expert Portal section. Manjunath made an impressive 639 posts this month, out of which 55 were solved. He received 147 kudos as appreciation and also some wonderful thank you notes. Here are a couple of them. ‘Thank You’ Note 1: It is working and I am so happy now. Thank you very much for your assistance. ‘Thank You’ Note 2: I must say, you response was not only fast, but also EXTREMELY helpful!! Thank you so much!  The other person we want to specially recognize this month is KNRK. He is a very new member of our community, joined just a few months back and is yet to become an expert. However, what he may lack in experience, he sure makes up with his sheer energy and passion to help customers. KNRK made a huge 1058 posts in October and solved 97 of them. He received appreciation from 204 customers on return, along with some pleasant comments. Here are a couple of the comments. ‘Thank You’ Note 1: Worked, thanks so much KNRK! ‘Thank You’ Note 2: Thank you KNRK, you are a life saver. PCI Device link worked like a charm.  Support Highlights Although we just recognized 3 experts in the blog, we want to give “shout-outs” for team members who keep the community vibrant and vital. Here is a sampling of the feedback we received from HP Support Forum fans in October. USB Ports not working10-27-2014Awesome! That did it. Thank you - ceilingwalker Same problem . PLZ HELP!!!10-05-2014WOO - HOOO!!!! Yes! Thank you soooo much!!! My friend bet me I couldn't get it~ sometimes not thinking of yourself as too smart is an advantage.... Thanks a thousand times!! - Mushroom-patch Bios administrator password‎10-20-2014It worked thank you so much. Awesome - Zedrix 15-g049au driver for windows 7 32 bit10-12-2014Big Thanks To Mr. Expert.. Everthing Working Like Charm.... Thanks... Im Happy. - kartikpatts Photosmart 5524 Carriage Jam warning but no jam evident‎10-31-2014You star. That saved me some money! - And1234 Envy Touchsmart m6 sleekbook - the touch screen stopped working‎10-01-2014YOU ROCK!  I installed the AMD Graphics driver and it worked!  THANK YOU!!! - raeban HP Forum is a community; it’s not just a place to solve your HP product issues, it’s much more than that. If you let it, it can also be a pleasant virtual place to hang out and to make lifelong friends. So, come to our forum some time, I bet you will like it. 

    thanks for your kind support.

  • Is it possible to call methods from another class from within an abstract c

    Is it possible to call methods from another class from within an abstract class ?

    I found an example in teh JDK 131 JFC that may help you. I t is using swing interface and JTable
    If you can not use Swing, then you may want to do digging or try out with the idea presented here in example 3
    Notice that one should refine the abstract table model and you may want to create a method for something like
    public Object getValuesAtRow(int row) { return data[row;}
    to give the desired row and leave the method for
    getValuesAt alone for getting valued of particaular row and column.
    So Once you got the seelcted row index, idxSelctd, from your table
    you can get the row or set the row in your table model
    public TableExample3() {
    JFrame frame = new JFrame("Table");
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}});
    // Take the dummy data from SwingSet.
    final String[] names = {"First Name", "Last Name", "Favorite Color",
    "Favorite Number", "Vegetarian"};
    final Object[][] data = {
         {"Mark", "Andrews", "Red", new Integer(2), new Boolean(true)},
         {"Tom", "Ball", "Blue", new Integer(99), new Boolean(false)},
         {"Alan", "Chung", "Green", new Integer(838), new Boolean(false)},
         {"Jeff", "Dinkins", "Turquois", new Integer(8), new Boolean(true)},
         {"Amy", "Fowler", "Yellow", new Integer(3), new Boolean(false)},
         {"Brian", "Gerhold", "Green", new Integer(0), new Boolean(false)},
         {"James", "Gosling", "Pink", new Integer(21), new Boolean(false)},
         {"David", "Karlton", "Red", new Integer(1), new Boolean(false)},
         {"Dave", "Kloba", "Yellow", new Integer(14), new Boolean(false)},
         {"Peter", "Korn", "Purple", new Integer(12), new Boolean(false)},
         {"Phil", "Milne", "Purple", new Integer(3), new Boolean(false)},
         {"Dave", "Moore", "Green", new Integer(88), new Boolean(false)},
         {"Hans", "Muller", "Maroon", new Integer(5), new Boolean(false)},
         {"Rick", "Levenson", "Blue", new Integer(2), new Boolean(false)},
         {"Tim", "Prinzing", "Blue", new Integer(22), new Boolean(false)},
         {"Chester", "Rose", "Black", new Integer(0), new Boolean(false)},
         {"Ray", "Ryan", "Gray", new Integer(77), new Boolean(false)},
         {"Georges", "Saab", "Red", new Integer(4), new Boolean(false)},
         {"Willie", "Walker", "Phthalo Blue", new Integer(4), new Boolean(false)},
         {"Kathy", "Walrath", "Blue", new Integer(8), new Boolean(false)},
         {"Arnaud", "Weber", "Green", new Integer(44), new Boolean(false)}
    // Create a model of the data.
    TableModel dataModel = new AbstractTableModel() {
    // These methods always need to be implemented.
    public int getColumnCount() { return names.length; }
    public int getRowCount() { return data.length;}
    public Object getValueAt(int row, int col) {return data[row][col];}
    // The default implementations of these methods in
    // AbstractTableModel would work, but we can refine them.
    public String getColumnName(int column) {return names[column];}
    public Class getColumnClass(int col) {return getValueAt(0,col).getClass();}
    public boolean isCellEditable(int row, int col) {return (col==4);}
    public void setValueAt(Object aValue, int row, int column) {
    data[row][column] = aValue;
    };

  • Store Moves to memory

    I have a simple twist on the hunt the Wumpus game where the object is to find a pile of smelly socks and then return to the starting position. My code is very basic and not the most intelligent agent but it gets the job done. the problem I am having is returning to the starting position. I have considered using an array or a stack but I am unsure how to implement it. Thanks for reading
    import java.applet.Applet;
       import java.util.Random;
       import javax.swing.JOptionPane;
        public class WumpusWorld extends Applet
           public void init ()
             Room   edsRoom = new Room("wumpusworld.room", this);
             Butler james   = new Butler (18, 3, edsRoom);
             System.out.print(james.getX());
           System.out.print ( james.getY()); 
             edsRoom.waitForStart();
             int[] move = new int[600];
             int index = 0;
             Random rand = new Random();
             while(true)
                while(james.isFrontClear() == true)
                   james.forward();     
                   move[index]++;
                              System.out.print(move[index]+"Shit\n");
                while(james.isFrontClear() == false && james.isLeftClear()||james.isRightClear())
                   if(Math.random() < .25)
                      james.turnLeft();
                   else if(Math.random() < .25)
                      james.turnRight();
                   while(james.isFrontClear())
                      james.forward();
                      move[index]++;
                   if(james.isFrontClear() == false && james.isLeftClear() == false && james.isRightClear() == false)
                      james.backward();
                      james.turnLeft();
                   if(james.senseSmell() == 96 && james.seeSocks())
                      james.pickUp();
                      james.forward();
                      move[index]--;
                      System.out.print(move[index]+"Number of moves");
                                  String outputStr;
                                  outputStr = "Health"+james.getHealth();
                                  JOptionPane.showMessageDialog(null,outputStr,"HEALTH",JOptionPane.INFORMATION_MESSAGE);
                                  System.out.print(james.getHealth());            
                while(true)
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());
                   System.out.println(james.seeSocks());
                   james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());     
                   System.out.println(james.seeSocks());
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());
                   System.out.println(james.seeSocks());
                //james.forward();
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());     
                   System.out.println(james.seeSocks());
                //james.forward();
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());     
                   System.out.println(james.seeSocks());
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());     
                   System.out.println(james.seeSocks());
                //james.turnLeft();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());     
                   System.out.println(james.seeSocks());
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());     
                   System.out.println(james.seeSocks());
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());     
                   System.out.println(james.seeSocks());
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());
                   System.out.println(james.seeSocks());
                //james.forward();
                   System.out.println(james.senseSmell());
                   System.out.println(james.senseBreeze());
                   System.out.println(james.senseHeat());
                   System.out.println(james.seeSocks());
                //if (james.seeSocks()) james.pickUp();
                   System.out.println(james.getHealth());
             //james.turnLeft(2);
             //james.forward(4);
             //james.turnRight();
             //james.forward(7);
       }

    I looked into the approaches and I appreciate the idea because I had never heard of those algorithms before and for a more advanced project i will look into those. I think for this project a stack or array will be more ideal. I have a working stack now that stores a value for each move. forward = 1, backward = -1, left = 2, and right = 3. Now i dont know how to go about the pop. should i use a case switch or if statements. The plan is to swap the values, that is when bactracking backward = 1, forward = -1, right = 2, and left = 3. here is the new code.
       import java.applet.Applet;
       import java.util.Random;
       import javax.swing.JOptionPane;
       import java.util.*;
        public class WumpusWorld extends Applet
           public void init ()
             Room   edsRoom = new Room("wumpusworld.room", this);
             Butler james   = new Butler (18, 3, edsRoom);
             edsRoom.waitForStart();
             int direction = 0;
             boolean n = true;
                        Random rand = new Random();
             Stack movesMade = new Stack();
             while(james.seeSocks() == false)
                if(james.isFrontClear() == true){
                   james.forward();
                   movesMade.push(new Integer(1));
                    if(james.isFrontClear()
                      james.forward();
                      movesMade.push(new Integer(1));
                   if(james.isFrontClear() == false && james.isLeftClear()||james.isRightClear())
                   direction = rand.nextInt(2);
                      if(direction == 0)
                         james.turnLeft();
                         movesMade.push(new Integer(2));
                      else if(direction == 1)
                         james.turnRight();
                         movesMade.push(new Integer(3));
                   if(james.isFrontClear() == false && james.isLeftClear() == false && james.isRightClear() == false)
                      james.backward();
                      movesMade.push(new Integer(-1));
                      james.turnLeft();
                      movesMade.push(new Integer(2));
                   else if(james.senseSmell() == 96 && james.seeSocks() )
                      james.pickUp();
                      break;
                while(!movesMade.empty())
              // Insert backtracking pop here

  • Safari 5.1 won't load "alternate stylesheets" properly

    We maintain a site that uses text resize buttons. Stylesheets are dynamically disabled to change text size. It works in every browser except Safari 5.1
    We have tracked it down to something with rel="alternate stylesheet" and title="". Title doesn't apply if "alternate stylesheet" is set. Please help.

    Thank you Rob for the solution.
    I clarify that we are talking about changing the following scripts to achieve compatibility with Safari 5.1.
    http://www.alistapart.com/articles/alternate/
    http://www.ecst.csuchico.edu/~bertucci/csci245/styleswitcher.htm
    I changed something else to distinguish the alternative styles and to avoid reloading the current style.
    function setActiveStyleSheet(title) {
              var styleTag;
              var styleSwitch;
              var styleHref='';
              for(var i=0; (styleTag = document.getElementsByTagName("link")[i]); i++) {
                        if(styleTag.getAttribute("title")=="switch") {styleSwitch=styleTag;}
                        if(styleTag.getAttribute("rel").indexOf("alternate stylesheet")!=-1 && styleTag.getAttribute("title")) {
                                  if(styleTag.getAttribute("title")==title) {styleHref=styleTag.getAttribute("href");}
              if (styleSwitch.getAttribute("href") != styleHref) {styleSwitch.setAttribute("href",styleHref);}
              return false;
    James,
    to use cookies you can try to replace also that function:
    function getActiveStyleSheet() {
              var styleTag;
              var styleSwitch;
              var styleTitle='';
              for(var i=0; (styleTag = document.getElementsByTagName("link")[i]); i++) {
                        if(styleTag.getAttribute("title")=="switch") {styleSwitch=styleTag;}
              for(var i=0; (styleTag = document.getElementsByTagName("link")[i]); i++) {
                        if(styleTag.getAttribute("rel").indexOf("alternate stylesheet")!=-1 && styleTag.getAttribute("title")) {
                                  if(styleTag.getAttribute("href")==styleSwitch.getAttribute("href ")) {styleTitle=styleTag.getAttribute("title");}
      return styleTitle;
    I used that solution on the website
    http://www.umrio.com

  • CRC-16 CCITT with Hex input string

    Hiya
    I am new to Labview and CRCs, I am trying to create a program that performs a CRC-16 CCITT check. I have searched the forums and found a few examples but my input string that is entered into the CRC is hex and the examples I have found the input string should be in ASCII. Apologies if the answer to this question is simple! I am very new too all this so please be nice!!
    Thanks
    Nicola

    http://forums.ni.com/t5/LabVIEW/crc16-ccitt/m-p/232411?requireLogin=False
    - James
    Using LV 2012 on Windows 7 64 bit

Maybe you are looking for