Baffled by code....

Can anyone help me out here? I've been over this code for the last hour and still can't figure out what's going wrong with it. It's supposed to take integers from 1 to 1000 and find integers that are perfect numbers (A numbers factors added together equal the original number). For some reason it's only outputing the first number and then stops. Any help would be greatly appreciated.
//Java core packages
import java.awt.*;
//Java extension package
import javax.swing.*;
public class Assign3_3097 extends JApplet {
     int FinalSum;     
     public void init()
     //JTextArea to display results
     JTextArea outputArea = new JTextArea();
     //get applet's content pane
     Container container = getContentPane();
     //attach outputArea to container
     container.add( outputArea );
     int result; //store value of call to method
     String output = ""; //String containing results
     for ( int number = 1; number <= 1000; number++)
          result = perfect (number);
          if (result > 0 )
               //append result to String output
               output += result + " is a perfect number\n";          
          }//end for loop
          outputArea.setText( output );//puts results in JTextArea
     } //end method init
     //perfect method declaration
     public int perfect( int x )
          int value;
          for ( int divisor = 1; divisor <= 500; divisor++ ){
          value = x % divisor;
               if ( value == 0 )
                    FinalSum = FinalSum + divisor;
          }//end for loop
          if ( FinalSum == x)
               return x;
          else
               return 0;
     }//end perfect method
} //end class Assign3_3097

hi,
umm, well i can see quite a few mistakes in the code due to which ur program is not working, now as u must be knowing a perfect number is those numbers which are the sum of their positive proper divisors.. for eg
6 = 1 + 2 + 3
now if that is the case, there is a major flaw
for ( int divisor = 1; divisor <= 500; divisor++ ){why would u want to divide the number till 500 ???
should read
for ( int divisor = 1; divisor <  x; divisor++ ){also, the variable
>int FinalSum; which is declared globally must be declared locally for otherwize it will retain itz previous values.
ie
public int perfect( int x )
int value;
int FinalSum = 0;now if you change that ur code will start working fine,
ps: Your program will work faster if you replace the "output" from String type to StringBuffer.
cheerz
ynkrish

Similar Messages

  • Links Pallet Missing. Adobe Help Line baffled.

    A day killed on the Adobe Help Line and no hope in sight. The Links Pallet is AWOL and Adobe tech support can't find it.
    Originally the problem was an error when trying to export a 275 page book to idml format as something was going wrong with the minor panic of losing months worth of work. It kept crashing InDesign CS5 on Win-7 64 Pro.
    In three very long calls over the period of the day, creating new ID's, wiping out all sorts of stuff, including a reinstall of just ID, the Adobe help line finally had us permanently deregister the Suite, remove the whole suite, clean everything with a piece of code they recommended, and reinstall.  It was a clean install. Adobe Creative Suite 5 Master Collection on two DVDs, selected to install every option that had a check box - take a lunch break while it does its thing. Then updated to the latest code for InDesign (7.0.4) and Photoshop (all three check boxes) since those are the only two we generally use.  We went through all the drills such as trashing to preferences, and so on. All the ID extensions are checked as well. When all was said and done, the file still crashed the system, suggesting the problem was a corrupt file. Time to go to plan B...
    We managed to find an older version idml copy that could be updated using draft printouts, and patched our way back to sanity only to discover that none of the images were linked, and when we went to fix this using the link pallet, it was not there. No link panel, not on the /window drop down, not anywhere. We finally relinked the images by using the Package "Repair All". However, one image was RGB, and when we right clicked to edit in orginal (Photoshop), there was no such option anymore. The tech support guy at Adobe was baffled (politely).
    Somehow an awful lot of features related to images have vanished in this futile attempt to fix another problem. We are now worse off than we were this morning.
    We figure there is some sort of switch somewhere, that Adobe tech should know, but their help line seems to be staffed by people whose solution is to delete everything and start over. When that failed to work, they said they will call back, but by the time we rang them back they were closed.
    Has anyone either had this happen, or know what might be causing it? Links is an important feature, and without it, we might as well go back to CS-4...
    Hmmm, good thought, let's try it.  Just tried it before hitting Post Message, saving the file as IDML, but before it would open, the old ID-CS4 crashed with an error "Failed to open plugin resources: PARAGRAPH COMPOSER.RPLN" argh! (Don't let this one distract the question... all we want to know is how to find the Links Pallet on ID-CS5 v 7.0.4)

    lewenz wrote:
    We are writing this saga in hopes someone in management at Adobe may actually read it and make some changes to their company. While they may think they save money farming their support out to a call centre in India, they have chosen the wrong centre, or their quality control is bad. While their hourly costs may be lower than running support out of their home office, we suggest Adobe is paying more because the call centre takes so much time, and creates so many new problems. In fact, we do wonder if the reason the call centre people are so polite and constantly repeating and apologising is not cultural, but so they can keep the meter running longer. Memo to Adobe: You are being ripped off. Even if you don't care about your customers, your too-smart cost-cutters are losing you money. Better to provide high-quality tech support that knows what is wrong and finds the solution in minutes than wasting hours and days as happens now.
    It turns out that the support rep at Adobe gave us bad information and was about to propose more bad answers had we not become stroppy and demanded to speak to someone more competent. The support technician's next step was for us to:
    Load ID CS5 on another windows PC
    If the software worked on that PC either call Microsoft (yeah right) or
    Delete and reinstall Windows 7 Pro
    They did not volunteer any more than step 1, but having lost patience with their erroneous advice in the prior round, we pressed for what they would recommend next, since in fact the CS5 products had been working fine on the main desktop until they started telling us to start deleting and reinstalling things. On a complex multi-application computer, deleting and reinstalling Windows is not a simple matter, it usually results in downtime of three days and invariably important programs are reset, losing customisation that has been done over time. Our team concluded that rather than do this, if there was no other solution, we would trash CS5 and either go back to CS4 or purchase an Apple desktop solely to handle InDesign. Therefore, instead of continuing down this line of blind nonsense, we demanded to speak to someone who spoke better English, had a better phone connection and knew more than to tell us to keep damaging our systems.
    Finally, we got a call back from a more informed 1st tier support rep who goes by the nickname Sonny. For some reason the connection was far better, and we could understand every word of his much better English. It turns out that the Adobe support rep had walked us through the delete and recovery procedure and omitted a key step. This was only learned by pressing Sonny hard, until he realised the missing step. The prior rep walked us through the following support process and only told us to call back after we had begun step 5.
    Deactivate the CS5 Master Collection,
    Download and Unzip Creative Suite Cleaner Tool
    Create a new User ID with Administrator Level authority and sign on to it
    Close all programs and run the Cleaner Tool
    Reinstall CS5
    Download the updates (which is a problem when one is on a 10gb cap broadband plan)
    Of course, this did not fix the problem we had called about (manuscript kept crashing ID), but additionally the Links Pallet was completely missing as was the Edit Original right click function which made managing images in a manuscript impossible.
    When we reviewed this with Sonny, he finally identified the missing step. Before Step 4, running the Cleaner Tool, run the Microsoft Control Panel Uninstall Program to remove all the programs. Then run the cleaner tool to find files that Microsoft missed. Finally, after Step 4, add an additional step of manually looking at the files using File Manager to make sure all files were cleaned out and gone. When all this is done, go to Step 5 reboot and reinstall.
    Well the reboot took about 15 minutes as all sorts of orphan files came up, but when all was reinstalled, the InDesign functioned as it was supposed to function. The links pallet and edit orginal image was back where they belonged.
    The only thing we discovered is that when we went to email, eleven years worth of emails had vanished. We are now in correspondence with the email support team (thankfully, we use a commercial product, not a free one) to see if these can be recovered. It appears the Cleaner cleaned out more than Adobe. Oops, sorry about that. Argh!
    So what have we learned?
    The original problem appears to have been a corrupted file. Since this was a 275 page manuscript, it was not something that could easily be given up. We called Adobe hoping to figure out why the application program was crashing. This was never answered. It would crash when we ran spell check and it would crash when we tried to export it to an IDML file. This is a deficiency in the Adobe product that it allows this. Adobe never addressed this, or identified this.
    It was only when we started doing our own trouble shooting while waiting for Adobe to call back after they trashed the delete and restore application, that we realised we were being supported by ignorant technicians who appear to have little understanding of their products, very poor communications technology (it's hard to understand them due to a low quality line and in some cases a strong Indian accent), and whose "solutions" were to remove and reinstall their products. In this solution approach, the support technicians don't always get the steps right, with the outcome that the "solution" does not work.
    At this point, we realised we were in worse shape than when we made the original call. So we searched our files to find the most recent IDML backup that did work, imported it and then took pdf printouts to re-enter all the changes to the manuscript since that backup was made. We hope we located all the differences between the two drafts. This of course is a manual process and what we sought to avoid by calling Adobe in the first place, but we realised that the Adobe support was going to take more time than clerical re-work. Thus we ended up with a repaired manuscript - no thanks to Adobe, and a newly defective application program where their next "solution: was to trash the operating system.
    At no time did the technician ask the key questions to review what they might have done or not done that could have caused the problem. In other words, Adobe does not run a technical support line, but a trash and rebuild line. They waste hours of their own call centre time, not to mention the client time, creating further problems, call centre hours that we presume Adobe must pay for.
    That we must listen very carefully to what the technician says back, since over 50% of the time, they do not understand. When the record is read back, it is wrong (they wrote down that ID crashed on opening... never true).
    That it is not impolite to ask them to stop wasting time with very long apologies as the opening of every sentence.
    That it is essential that you have the customer identity information in the right order, so they do not spend 10 minutes verifying who you are.
    That it is not impolite to tell them to stop filling the air with nonsense and either answer the questions or get someone who can.
    That it is not inappropriate to threaten to document the call and file a formal complaint with Adobe.
    So for anyone who uses Adobe Help:
    Demand someone who can speak clear English on a clear phone connection. Write down their name and location so they can be tracked.
    Write down every step they propose and ask what is the next step if it fails to achieve the desired outcome.
    Demand that each step be written down in their documentation as well.
    Demand to know every custom file such as preferences and language dictionaries and their location. Make copies outside of Adobe so the cleaner file does not delete them. A folder on the desktop is the safest.
    When it becomes clear the technician does not have a clue what they are doing, demand to speak to their boss.
    Document every step here on this forum, so when they ask how they did, refer them to the public record.
    Thanks to Peter Spier and Jongware for their attempts at solutions. Turned out it was a corrupt file that would have been a disaster had we not made backups and a defective Adobe technical support system that threated to trash our whole operation.
    Bravo for persisting, insisting, asserting, relying on your own intelligence as you realized you were being not only ill-served, but wrongly-served and unforgivably-destructively-served. Sorry to hear how your own civility kept you from acting protectively sooner.
    I agree about escalating cases to the highest-level support manager ASAP as you discover incompetent support. I've written about this in a few posts that you can find with this Google search link: InDesign knowhow pro escalate support. I usually offer "I don't mean to be rude, but if you're not expert with this issue..." or I substitute "...aren't able to read the case notes and have expertise," and similar phrases, THEN I PRESS FOR ESCALATION, EVEN IF I NEED TO BE RUDE TO GET IT.
    However, with the increasing complexity of the stuff we use, and, as in your example, it takes a few days to rebuild a system, don't be lulled by the concurrent increased confidence you get from smarter hardware and software. I suggest cloning working systems for backups in disasters like you're reporting. Don't overwrite stored clone backups with unproven current systems that may have unbeknownst to you just gone bad. Consider virtual software like VMware Fusion or Parallels, even if you're committed to Windows; you can install one or more virtual Windows systems on a real Windows system, make snapshots and revert to them if needed. I think these are more robust than Windows Restore Points, because snapshots track everything done on the virtual drive, whereas restore points only undo the Registry, IIRC, so corrupted user files remain corrupt, lost files remain lost.
    IOW, practice safe computing.
    I heard of a business professional who sued his doctor for time lost when he was kept waiting for an extremely long period with no explanation, offer to reschedule, etc. (IOW, he got "airline treatment.") Whether he collected isn't the point so much as the recognition of the concept, and the corresponding smart pro-customer-service steps taken across many industries and companies. Whether defensive or pro-active, better customer service is better for everyone in chain of relationships.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How do I remove "ALL" incontext editing code?

    Hi, I am hoping someone maybe able to help...
    A while ago I put a site together at applied incontext editing regions. After being notified that it will no longer work in May this year, I decided to purchase contribute and went through the labourious task of removing all incontext editable regions and replacing them with normal editable regions.
    I have launched the site in contribute to test that everything works and it keeps coming up with 'You can't edit this page in Contribute because it has "Adobe InContext Editing" region(s).
    This is on almost every page on the site but two which it allows me to edit. I have gone back to the Dreamweaver file and checked through the code, I am certainly no code expertI have compared it to sites which didnt have the InContext applied to it... I am baffled
    Can anyone shed any light on the situation?
    Much appreciated
    Naomi

    I think I can see the problem! - I have updated the file in dreamweaver but it
    is not updating the copy on the server when I upload it...
    I can see the code that I have deleted still showing at the top of the page - I just cant get it to refresh!
    I will try doing it with fetch.....
    Just done it with fetch and it works! - Dreamweaver will not refresh the server copy.

  • Why can't I get actions to work? BAFFLED

    Hi, I'm a graphic designer, really not up to speed in the web world. I made myself an idiosyncratic little website using edge animate, learning from the built it lessons (I would appreciate any feedback concerning as I'm stumbling around here, if anyone can be bothered )
    I wanted to add an email link to the end of it, also, some kind of 'skip to the end' feature that appears from the beginning, and eventually a link to a portfolio site. But I can't get ANY actions to work.
    However, when I make a new file, I can do all these things. I can draw a rectangle, and make it clickable so that it jumps to the end, or opens an external site. It does this as expected, when I 'preview in browser'. But my main animation that I've spent hours mucking around with, does nothing. Mouse clicks do absolutely nothing...
    So, I'm baffled, and any help would be appreciated greatly.
    Here's my site, its a simple html thing with the edge animation embedded. I'd never offer these services for a client, but I thought I might be able to cobble something together for myself. As I said, any feedback would be welcome, as I'm stumbling around a bit. Ok a lot.
    www.antenna.net.nz
    thank you!
    Simon Gregory

    Thanks!
    I'll past the code below, but actually it think this eror relates to a symbol I created when I was trying to get an email link working, and I forgot to delete it. Though it didn't work, I'm not sure it has much to do with WHY I couldn't get actions to work in the first place, as nothing else I tried, very simple things like a link to an external webpage worked either. Yet they did when I attempted it with a new animate project. Not sure.
    the whole project is here as a zipped file.
    http://www.antenna.net.nz/animatebafflement/published.zip
    and here is that code as mentioned. And thanks for your help!
    (function($,Edge,compId){var Composition=Edge.Composition,Symbol=Edge.Symbol;
    //Edge symbol: 'stage'
          Symbol.bindElementAction(compId, symbolName, "${_arrow}", "click", function(sym, e) {
             // insert code for mouse click here
             sym.stop();
    (function(symbolName){     
    })("stage");
       //Edge symbol end:'stage'
       //=========================================================
       //Edge symbol: 'Symbol_1'
       (function(symbolName) {  
          Symbol.bindElementAction(compId, symbolName, "${_email}", "click", function(sym, e) {
             // insert code for mouse click here
             var emailer = window.open("mailto:[email protected]?subject=Are you my designer?");// sym.$("name") resolves an Edge Animate element name to a DOM
          //Edge binding end
       })("Symbol_1");
       //Edge symbol end:'Symbol_1'
    })(jQuery, AdobeEdge, "EDGE-20179367");

  • Problem with PDF files opening up in code on IMac OS 10.6.6

    Just bought a new IMac three weeks ago (my first Apple Computer after years of using a PC). I've been using their TextEdit program to create simple documents, and routinely save the documents as PDF's to make it easier to share with clients. Everything has worked fine until three days ago - now whenever I open a PDF file it shows up in code. This is happening to documents I created several weeks ago, it is happening to new documents I am creating, and it is happening to PDF files clients are sending to me. (For instance, today I received a PDF file attached to an email from a client - if I hit "quick look" I can view the document with no problem, but if I hit save, or double click the document in order to print, the document shows up in code (and prints in code). Eek! I just spent over an hour with Apple support trying to figure out a solution, but they ended up just as baffled as me, and directed me to call Adobe. Hoping someone can help me figure out what I need to do to resolve this. Thank you!

    Thank you George for your response to my plea for help. Late yesterday I was able to get in touch with a friend familiar with Mac and PC and she figured out my main problem was trying to use TextEdit as a primary document program. (She also had me try to open some PDF files with preview, but they still came up as code.) She quickly realized I would be able to open these files in my documents file - I was trying to open them up in the TextEdit program. Anyway, the main thing I'm realizing is I need to get Microsoft Office to avoid these challenges in the future. As you can tell, I'm not up to speed on computer stuff, but my friend said the Apple support guy should have realized right away that using TextEdit the way I was attempting to use it was my real problem, not an issue with Adobe Reader.
    Thanks again!

  • Baffling Problem with Acrobat Javascript

    I'm hoping someone can help me. I've tried for hours and hours to find what the trouble is but just can't find a solution.
    The following code works, however, this is the baffling part. I need to edit / update the code but the problem occurs when I make ANY changes to the code - even indenting a line. You will notice that the code is not indented and poorly formatted - that's because when I had the code indented, I repeatedly got a "SyntaxError: missing } in compound statement"
    I am completely baffled as to why sometimes I get the SyntaxError and sometimes not. I swear there are instances where the code worked one time and then another time causes a SyntaxError.
    Tried using Adobe Javascript Debugger, tried running code through jslint.com, tried creating a new PDF file and placing this code in that file - still getting SyntaxError if I change or indent the code. The only thing I haven't tried yet is trying it out on the Windows version.
    I'm using Acrobat Pro 10.1.3 (Creative cloud) on a Mac OS X Lion 10.7.4
    Any help would be really appreciated!
    var trackErrors = 0;
    var errorMessage = 'Please complete all of the required fields';
    if (this.getField('1A').value.length === 0) { errorMessage += ' A Wall Height '; trackErrors++; }
    if (this.getField('1B').value.length === 0) { if (trackErrors === 1) { errorMessage += ', B Wall Length '; } else { errorMessage += ' B: Wall Length '; trackErrors++; } }
    if (this.getField('1C').value.length === 0) { if (trackErrors === 1) { errorMessage += ', C Spacing '; } else { errorMessage += ' C: Spacing '; trackErrors++; } }
    if (this.getField('1-4-radio').value === 'Off') { if (trackErrors === 1) { errorMessage += ' and Material Type - Fabric or Laminate.'; } else { errorMessage += ' Mat type'; trackErrors++; } }
    if (trackErrors === 0) {
    var x, y, v, z, kits = '';
    var flag = 0;
    this.getField('1D').value = this.getField('1B').value / 2;
    this.getField('1E').value = this.getField('1D').value / this.getField('1C').value;
    this.getField('1F').value = Math.floor(this.getField('1E').value);
    this.getField('1G').value = this.getField('1F').value + (this.getField('1F').value - 1);
    this.getField('1H').value = this.getField('1A').value * this.getField('1G').value;
    var materialType = this.getField('1-4-radio').value;
    switch (materialType)
    case 'F':
    x = this.getField('1H').value / 32;
    y = Math.ceil(x);
    this.getField('bw-kits-required').value = y + " Kit Required";
    break;
    case 'L':
    x = this.getField('1H').value / 128;
    y = this.getField('1H').value / 32;
    if (flag === 0) {
    if (x === Math.round(x)) { kits += x + ' kit '; flag++; }
    if (y === Math.round(y)) { kits += y + ' kit '; flag++; }
    v = Math.floor(x);
    x -= v;
    if (v > 0) { if (x < 0.75) { kits += v + ' kit'; v = Math.ceil((x * 128) / 32); kits += ' and ' + v + ' kit'; } else if (x >= 0.75) { kits += (v + 1) + ' kit '; } } else { kits += Math.ceil(y) + ' kit'; }
    this.getField('bw-kits-required').value = kits;
    break;
    } else { app.alert(errorMessage); }

    I don't get the same thing in Acrobat 9 on Windows XP. It would be interesting to see what happens if you copy what you posted here on the forum and use it.
    I would suggest changing code like:
    if (this.getField('1A').value.length === 0)
    To something like this:
    if (this.getField('1A').valueAsString.length === 0)
    If you use the value property and the field value is numeric (or "true" or "false"), it won't have a length property because the type of the value isn't "string", so it will be undefined. Since the special value of undefined is not equal to zero the code works, but it's a bit misleading. It could be further refined to just:
    if (!getField('1A').valueAsString)

  • Calling javac in java code- possible?

    I'm writing a reasonably large app which can be run with X11 (using swing etc) or as a CLI app. This is basically because it will be useful in many different circumstances, for instance where there is no swing or X support, it'd be pointless building it with those capabilities. Now the easy way to do this, of course, (and I'm pretty lazy so I'll do it this way) is to write the base app, and then on one copy of it create a CLI, the other a GUI, and then give users the option of which to use. Also because of the size of it, I believe it'd be better for users to compile it themselves, so it is tailored perfectly (esp. where different J/SDKs are used.
    Now what I decided to do was just fire out some javacode to take command line options to compile- makes sense I thought, then I hit a problem... Is it possible to call javac in a java app? Can I have a line of code to call javac in the same way I could in a bash script? For reference, here is my code thus far- the lines that need replacing are the print lines saying which option is being used...
    class MakeII {
         private int choice;
                    public static void main(String[] args) {
                             if (args.length != 1) {
                  System.out.println("Bad choice/ no choice- please try again");
              } else { MakeII myComp = new MakeII(args[0]); }
         public MakeII (String choose) {
              System.out.println(choose);
              if (choose.equals("--make-x11") ) {choice = 1;}
                             else if (choose.equals("--make-sh") ) {choice = 2;}
                             else if (choose.equals("--make-full") ) {choice = 3;}
                             else {choice = 3;} //any error, assume full version
                             switch (choice) {
                  case 1: System.out.println("x only"); break;
                  case 2: System.out.println("cli only"); break;
                  case 3: System.out.println("full ver"); break;
    }And yes I know its ugly code, I just prefer to seperate everything out at this stage- I also know I've done everything the long way too, its for maintainability.

    jamesCondron wrote:
    Employer? Nah- this is a none-paid bit of project, more voluntry than anything, but I regret saying I would. Can't turn around now and say no... And I can't use anything but java because of how the project started, and the guys I'm working with; because Its server side stuff that needs to be distributed and portable I'd rather use python (or perl, but not quite that good) but ah well- what can you do?First off: challenge the requirement that it must be portable. More often than not, that's bogus. Beyond that, dude, you hold all the aces. They don't wanna pay but they still expect you to do it? That means they don't have a clue where to start. Baffle 'em with science, shouldn't be too hard. If it's lines of code they want, write them a bit of custom JSTL and show 'em how 2 lines of JSP can equate to 200 lines of Java, thus proving that lines-of-code is an utterly worthless metric. Then ask them if they want it done or not, and mumble a lot about going to the beach

  • Use of Time Code for Events

    I understand the value of the time code in projects but am baffled by what it exactly means when I click on a project when it starts off with 10 hours or so, wherever that may come from, and what exactly is its use, except for measuring the time and frames.

    lburech wrote:
    My question is whether it has any use whatsoever in the editing process or is it similar to the type of numbers I get from my still camera when I download my pictures such as sc00d0437e which I never use for anything and overwrite with a title, always wondering why the camera puts the effort into the number.
    Yes, it is very useful.
    Just an example: in multicam clips, if they have timecode it can be used for synchronization.

  • Why won't apple supply unlock codes

    why wont apple supply unlock codes to customers, whe they are quite happy to supply the codes to carriers
    i bought an iphone 4 in june i was told it was unlocked, but wasnt informed that the 1st sim inserted would make the phone lock to that specific carrier, (orange)
    orange will not unlock the phone as they say they didnt lock the phone to their network,and the phone was bought via a 3rd party (carphone warehouse) so they cant unlock it, i am going round in circles being passed back nd forth all i want is to be able to use another network on my iphone and no one is taking responsibilty for it

    yeah i agree, i'm even will to pay the unlocking fee, but  they keep saying they haven't locked it, even the lad it the orange shop was baffled by it too, he rang orange cs and they cut him off at the finish oh well i'l just have to keep trying with orange,
    i google my query & aparently there's another post in the discussions similar to this
    https://discussions.apple.com/thread/4382197?start=0&tstart=0
    also just had another email from cpw they say its a condition off apple that all phones sold unlocked apart from apple have to be locked  via the 1st sim , ridiculous if you ask me , i could of easily just went to apple if i'd known

  • Address Book won't import local area code

    I'm trying to export my contact info from Palm Desktop to Address Book. Everything works fine, expect that AB doesn't import a contact's area code if it's my local area's code. In this case AB only imports a contact's 7 digit phone number. This isn't a problem with area codes outside of my local code, --they import just fine, and I get the whole 10 digits.
    I've tried exporting both vCards and text files. By opening the text file with TextEdit, I have verified that Palm Desktop is indeed exporting the area codes --both my local code and distant ones. Yet when I import that same file into AB, contacts in my local area are stripped of the area code.
    Any ideas?
    Thanks in advance, --Brian
    12" Powerbook G4   Mac OS X (10.4.8)  

    Thanks for your questions/suggestions. I think they have helped lead me in the right direction over the past 24 hours, though I still don't have a solution.
    To make the long story short:
    I believe the problem lies in the fact that as I've added contacts to Palm Desktop over the years, I've not included an area code if they were in my area. Now I'm switching to AB since it can sync with my new cell phone, and I'm needing area codes for all calls. Rather than enter my local code for hundreds of contacts, I've used a Palm preference whic sets up a "default area code."
    What I have discovered is that contacts for which I have manually entered an area code transfer to AB just fine. Contacts for which this preference provides the area code lose this information in the transfer. This is baffling, because the two cases look identical when viewed with Textedit, --the area code is visible plain as day in either situation.
    Just as puzzling --when AB imports a contact it gives a chance to review the information if the card is a duplicate. When I perform this review a "Text File Import" window appears. In this window areas codes always appear, --whether manually entered or provided by the Palm preference. However, in the "Reviewing Card" window which follows, cards which had Palm preference provided area codes have inexplicably lost those codes, while those with manually entered codes have retained them.
    Any further thoughts?
    Thanks some more, --Brian
    12" Powerbook G4   Mac OS X (10.4.8)  

  • Baffled by a strange bug - please help!!!

    Hi all,
    I am baffled by a bug in a program I am working on that I just
    can't understand. Here is the code that causes a SIGSEGV crash:
    268      int k = wfall_pixbuf.rowstride;
    269      pix[0] = pix[ -k ];
    270      pix[0] = pix[ -wfall_pixbuf.rowstride ];
    Output of gdb:
    Program received signal SIGSEGV, Segmentation fault.
    0x00000000004152b2 in Display_Waterfall () at display.c:270
    270          pix[0] = pix[ -wfall_pixbuf.rowstride];
    wfall_pixbuf is a struct that encapsulates a GdkPixbuf together
    with some variables that hold the values of some properties like
    rowstride above.
    I added lines 268 and 269 in despair and the program
    works well if I comment out line 270, which does (I think)
    the same job as 269. I can't see how wfall_pixbuf.rowstride
    can change value from line 268 to 270???
    Please help!!!

    danielsoft wrote:
    hello,
    I think it's a type issue: what type is wfall_pixbuf.rowstride ?
    in the case
    int k = wfall_pixbuf.rowstride;
    pix[0] = pix[ -k ];
    you are making a negative value out of type "int" - precisely signed int
    when wfall_pixbuf.rowstride is unsigned, the result is undefined...
    what does
    pix[0] = pix[ -(int)wfall_pixbuf.rowstride ];
    do? should work the same as lines 268 and 269
    Ahh, thank you very much! rowstride is of type guint, which is
    a GTK2 type definition, essentially I think it boils down to
    unsigned int. So that was the issue :-)
    I am surprised that I didn't make a mistake of this sort till now
    but its never too late.... ;-)

  • Integrating tracking codes into iweb.....

    I was so successful in solving a problem I was having here last night that I thought Id throw another question out that has been baffling me, not hard to do I might add, how do you integrate tracking codes at the beginning of each page so that Google analytics for example can track the traffic on your iweb sites??
    This is also a requirement if you are using some affiliate programs so it is really very important to do. Any help anyone out there can give is VERY much appreciated! This is without a doubt the best information forums I have ever read!!....Thanks again in advance for any help on this subject!!...Matt
    http://www.rdeal4u.net

    Google Analytics code (ga.js) required the script to be added into your page source to precisely track the page; Step 4 in the following:
    http://www.google.com/support/analytics/bin/answer.py?answer=66983#0.1.1_step3
    adding GA code in HTML Snippet will cause the code to track widget markup pages, which will give inaccurate results.
    that at this time there is no way to enter tracking code into the pages.
    This is true, because they don't know iweb inner working bits.
    But I can prove them wrong, here is example of HTML code inserted in my page:
    http://hdl.50webs.com/Test/
    the floating nav bar and I have urchin.js loaded from google are coded directly to the page (you need to look at Safari Activity window)
    They suggested I go to www.apple.com/feedback then select the appropriate product (iweb) and seen in a message on the subject directly to the engineers.
    I suggest all that are having a problem with this go ahead and send a message to them as well, you know what they say, the squeaky wheel gets the grease!!
    It's a good idea.

  • BC/Muse syncing issue with third-party code

    Hi there, I was hoping someone had a solution to this issue - which is this:
    I have used some third party code for a Hotel's 'QuickBook' function on every page. Periodically, this code stops working on some pages, and works on others - mainly when I republish the site via Muse.
    I asked the code's developer to look at it and they found this problem:
    <form method="post" action="http://fe.avvio.com/convert/site/Clandeboye%20Lodge/index.php" id="c5QuickBook3Fields"></form>
    The form effectively begins and ends on the same line.
    However, the </form> appears on a completely different line in the code - rather than the wrong place (as indicated above) it appears in excatly the correct place. Does BC 'render' this either in the wrong place, or doesn't recognise it being there at all?
    As a temporary fix: When I log into BC and edit the website from the back end, all I have to do is navigate to the offending page where the QuickBook rests, click 'Update' without making any changes at all and it begins working again.
    As a workaround this is obvioulsy a bit of a chore, but more importantly it's impossible to tell when, or on what page, this third party code decides not to work!
    It's worth pointing out that the third party code seems to be fine - I've had it looked over and it does in fact work continuously on competitor websites I've been checking.
    Apologies if it doesn't make sense... honestly, it has me baffled. I might even have to re-word this at a later stage!
    Thanks for any help though.

    If you have the entire iTunes folder from the old system and have restored this into <User's Music> on the new one then iTunes should treat this as the "home" library for the device. It should sync without removing any content. If not, see Recover your iTunes library from your iPod or iOS device.
    I suspect the options are greyed out because there are currently no Tones in the iTunes library to sync.
    tt2

  • Pasting code into iWeb

    Hi there. I'm trying to install JSKit Echo (comments) into my webpage, using iWeb through an FTP server. I need to paste an HTML snippet onto the homepage to proceed, but I can't! For some reason it just won't 'stick'. I've pasted other snippets in with no problem. Baffled! Anyone got any thoughts?

    If you paste the code in a HTML Snippet, you will not see anything in the widget. Not with this code. Not in iWeb. Publish, js-kit Echo is displayed on your website.
    You have to enlarge this 'empty' widget before publishing (height ~1500 px. you will have to enlarge more later)
    I use [Js-kit Echo|http://iweb.debutersurmac.com/siteiweb/Blog/Entrees/2009/7/23_Commentaires .html#widget0] and [IntenseDebate|http://iweb.debutersurmac.com/siteiweb/Blog/Entrees/2010/3/21Commentaires_gratuits_surFTP.html] on my (french) website.

  • Where do i find the security code if box is lost?

    i currently broke my iPhone...does anyone know how i can share two iTunes accounts?!

    Sarah, you need to provide more information about the problem you're attempting to address and what it is you think you need to accomplish. The sketchy information you've provided doesn't tell us enough to be able to offer any suggestions. We don't know what you mean by "sharing two iTunes accounts" nor how that might apply to a "broken" iPhone. And I for one am completely baffled by the subject line you gave this post about "security code" and "lost box" which seems to have nothing at all to do with anything else you posted.
    Regards.

Maybe you are looking for

  • Can't download songs because itunes wants older versions of it 7.4 and 7.2

    Okay here's my issue. I want to buy a new song from iTunes and most songs come up with this error. It says I need to download 7.2 or 7.4 versions of i Tunes, but I already have 7.5!! Plus everytime I open up iTunes it says I need to update to 7.5 eve

  • Macbook sometimes has problems connecting

    The brief summary is that my Macbook (white, core duo) has problems connecting to my G network when it has been on sleep mode. A restart usually fixes the issue until the computer goes to sleep again. The G network is comprised of a Linksys WRT54GS t

  • FPCJ Cash & Check Payment.

    Hi Can any one tell me that in FPCJ we are using cash payment and check payment. It means can we make incoming and outgoing check payment through FPCJ. If, yes can we generate check print out in case of outgoing check payment. Thanks Ram.

  • How do get a license file for SBO8.8 Beta?

    Hi All Where should one go to get a license for SBO8.8 Beta.. I've tried to download a 2007A license but they are not compatible and in license request it is not possible to choose 8.8 Anyone know? /Rasmus

  • How to properly use CAcroApp

    I referenced Acrobat.dll in a simple C# Console program, and then wrote a couple of lines of codes to run Acrobat. CAcroApp mApp = new AcroAppClass(); Console.WriteLine("Acrobat is running"); bool bClose = mApp.CloseAllDocs(); bool bExit = mApp.Exit(