Stacks the hard way

HI
for this prblem i have to make a stack, but i have to program the stack the hard way and cant use any java predetermined stack things so here goes my problem.
I ahve been given this node class
public class Node {
public String data;
public Node next;
public Node(String tag, Node rest) {
data = tag;
next = rest;
} // end of constructor
} // end of class Node
no in the main body of program would it work as a stack if i did the following:
public class Stacking {
private Node top;
public Stacking() {
top = null;
public void pushTag(String startTag) throws TagError {
if(top==null){
top = new Node(StartTag,null)
else {
top.next=new Node(top,null);
top.data = startTag;
many thanks for any help that you can give me

Here's something to get you started:public class Stack {
    private Node top;
    public Stack () {
        top = null;
    public void push (Object element) {
        top = new Node (element, top);
    public Object pop () { // throws EmptyStackException
        Object element = top.getElement ();
        top = top.getNext ();
        return element;
    public Object peek () { // throws EmptyStackException
        return top.getElement ();
    private class Node {
        private Node next;
        private Object element;
        public Node (Object element, Node next) {
            this.element = element;
            this.next = next;
        public Object getElement () {
            return element;
        public Node getNext () {
            return next;
public class Test {
    public static void main (String[] parameters) {
        Stack stack = new Stack ();
        stack.push ("1");
        stack.push ("2");
        System.out.println (stack.pop ());
        System.out.println (stack.peek ());
        System.out.println (stack.pop ());
}You still need to build the exceptions yourself.
Kind regards,
  Levi

Similar Messages

  • Ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in hte library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    ichat starts to open, lingers a second, then 'unexpectedly' quits. I'm in Snow Leopard 10.6.8. I can't find the ichat plist in the library, even though I've custom re-installed (even the hard way) and downloaded the latest upgrade. Que pasa?

    crash report, not a reply:
    Process:         iChat [611]
    Path:            /Applications/iChat.app/Contents/MacOS/iChat
    Identifier:      com.apple.iChat
    Version:         5.0.3 (745)
    Build Info:      iChat-7450300~8
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [101]
    Date/Time:       2011-12-17 19:23:00.671 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          387052 sec
    Crashes Since Last Report:           18
    Per-App Interval Since Last Report:  65 sec
    Per-App Crashes Since Last Report:   18
    Anonymous UUID:                      D59E7670-AAAB-498C-AEBF-93B692A2DE09
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000004
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   ...thesis.MacinTalkSynthesizer          0x00000001159e418d MEOWReader::MEOWReader(int, void const*, char) + 35
    1   ...thesis.MacinTalkSynthesizer          0x00000001159b4246 SpeechChannelManager::UseVoice(VoiceSpec*, __CFBundle*) + 430
    2   ...thesis.MacinTalkSynthesizer          0x00000001159daf14 SEUseVoice + 71
    3   ....speech.synthesis.framework          0x00007fff85d42d4a NewSpeechChannel + 617
    4   com.apple.AppKit                        0x00007fff86ebee35 -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceCreator:voiceID:] + 125
    5   com.apple.AppKit                        0x00007fff86ebc56d -[NSSpeechSynthesizerVars setSpeechChannelWithVoiceIdentifier:] + 89
    6   com.apple.AppKit                        0x00007fff86ebce7c -[NSSpeechSynthesizer initWithVoice:] + 336
    7   com.apple.iChat                         0x000000010009da09 0x100000000 + 645641
    8   com.apple.iChat                         0x000000010001b3ae 0x100000000 + 111534
    9   com.apple.IMCore                        0x00007fff865fa14c _IMPersonStatusIsOnline + 34989
    10  com.apple.IMCore                        0x00007fff865f9fee _IMPersonStatusIsOnline + 34639
    11  com.apple.IMCore                        0x00007fff865f1b78 _IMPersonStatusIsOnline + 729
    12  com.apple.iChat                         0x00000001000066ad 0x100000000 + 26285
    13  com.apple.iChat                         0x000000010001ac60 0x100000000 + 109664
    14  com.apple.IMCore                        0x00007fff865ecdaa _IMPersonStatusFromFZPersonStatus + 1525
    15  com.apple.CoreFoundation                0x00007fff8512493c __invoking___ + 140
    16  com.apple.CoreFoundation                0x00007fff8512480d -[NSInvocation invoke] + 141
    17  com.apple.CoreFoundation                0x00007fff851406e1 -[NSInvocation invokeWithTarget:] + 49
    18  com.apple.iChat.IMUtils                 0x00007fff859d82f7 -[IMLocalObject _handleInvocation:] + 182
    19  com.apple.iChat.IMUtils                 0x00007fff859d7e6f _IMRDeliverComponentArray + 138
    20  com.apple.iChat.IMUtils                 0x00007fff859d7dba _XDeliverComponentArray + 119
    21  com.apple.iChat.IMUtils                 0x00007fff859d7d23 IMRemoteObjectsMIG_server + 52
    22  com.apple.iChat.IMUtils                 0x00007fff859d7c55 _IMRServerPortCallback + 120
    23  com.apple.CoreFoundation                0x00007fff8511365e __CFMachPortPerform + 366
    24  com.apple.CoreFoundation                0x00007fff850eb6b1 __CFRunLoopRun + 5201
    25  com.apple.CoreFoundation                0x00007fff850e9d8f CFRunLoopRunSpecific + 575
    26  com.apple.HIToolbox                     0x00007fff87b757ee RunCurrentEventLoopInMode + 333
    27  com.apple.HIToolbox                     0x00007fff87b755f3 ReceiveNextEventCommon + 310
    28  com.apple.HIToolbox                     0x00007fff87b754ac BlockUntilNextEventMatchingListInMode + 59
    29  com.apple.AppKit                        0x00007fff869f2eb2 _DPSNextEvent + 708
    30  com.apple.AppKit                        0x00007fff869f2801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
    31  com.apple.AppKit                        0x00007fff869b868f -[NSApplication run] + 395
    32  com.apple.AppKit                        0x00007fff869b13b0 NSApplicationMain + 364
    33  com.apple.iChat                         0x0000000100002da0 0x100000000 + 11680
    Thread 1:  Dispatch queue: com.apple.libdispatch-manager
    0   libSystem.B.dylib                       0x00007fff82939c0a kevent + 10
    1   libSystem.B.dylib                       0x00007fff8293badd _dispatch_mgr_invoke + 154
    2   libSystem.B.dylib                       0x00007fff8293b7b4 _dispatch_queue_invoke + 185
    3   libSystem.B.dylib                       0x00007fff8293b2de _dispatch_worker_thread2 + 252
    4   libSystem.B.dylib                       0x00007fff8293ac08 _pthread_wqthread + 353
    5   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 2:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 3:
    0   libSystem.B.dylib                       0x00007fff8293aa2a __workq_kernreturn + 10
    1   libSystem.B.dylib                       0x00007fff8293ae3c _pthread_wqthread + 917
    2   libSystem.B.dylib                       0x00007fff8293aaa5 start_wqthread + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000001010f2200  rbx: 0x00000001004c6670  rcx: 0x0000000000000000  rdx: 0x0000000000000000
      rdi: 0x00000001010f2200  rsi: 0x0000000000000000  rbp: 0x00007fff5fbfbf90  rsp: 0x00007fff5fbfbf60
       r8: 0x0000000000000017   r9: 0x00000001010f9a00  r10: 0x0000000000007000  r11: 0x0000000000000001
      r12: 0x00000001010f2200  r13: 0x00000001010f2200  r14: 0x0000000000000000  r15: 0x00000001004c70e0
      rip: 0x00000001159e418d  rfl: 0x0000000000010206  cr2: 0x0000000000000004

  • 'Learn Python the Hard Way' book help - PowerShell

    There's a book out called 'Learn Python the Hard Way' and it wants to run the exercises in PowerShell, which no one apparently knows much about,  I just need to do a couple of simple functions, I just don't know how to do them and I don't
    see how online.  Here's an excerpt : "
    8. You should be back at a prompt similar to what you had before you typed python. If not find out why.
    9. Learn how to make a directory in the Terminal. Search online for help.
    10. Learn how to change into a directory in the Terminal. Again search online.
    11. Use your editor to create a file in this directory. Make the file, “Save” or “Save As...”, and pick this directory.
    12. Go back to Terminal using just the keyboard to switch windows. Look it up if you can’t figure it out.
    13. Back in Terminal, see if you can list the directory to see your newly created file. Search online for how to list a directory. " 
    I made  a directory in PowerShell but haven't got past that.  Any help?

    I'm sorry you weren't able to get a knowledge level-appropriate response to your question.
    The answer you were looking for:
    Use the command "cd" (change directory). At the command line type 'cd <directory name>'
    So if the name of your file is is called "testdirectory" you would type 'cd testdirectory'
    And it's that simple.

  • Can i transfer music not purchased from iTunes store from my iPod to new iMac. also need to move photos from iPod to iMac...help! computer was stolen and am now scrambling. Have learned the virtue of backing up the hard way!

    Is there a way to transfer music not purchased from the iTunes store from my ipod to my imac? Also, is it possible to move photos from ipod to imac? My computer was stolen so lost it all...have learned the lesson of backing up the hard way!

    See this older post from another forum member Zevoneer covering the different methods available for copying content on your iPod back to your PC or Mac.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Learn the Hard Way. Zooming in on video = Major Loss in Hi-Def Resolution?

    Hello, I'm doing a job for a friend. Basically a commercial job, but we're amateurs and doing it alone.
    We used a high-end Panasonic camera with a P2 card. It recorded at 30 fps and at 720p.
    I did all the editing, then compressed it for the iPad. Looks okay... BUT.
    BUT. I original shot from a few feet back extra to stop the actors from going out of frame. Then I zoomed in a little in editing using the "Image and Wireframe" option.
    I'm noticing the zoomed in shots look a little grainy. At first I thought this was my video card (don't laugh, but I'm using a white macbook). Now I'm realizing that it's the zooming in that's causing the graininess, as the shots were I didn't zoom in look crystal clear high-def.
    Is there anything I can do? I thought using the P2 Card would have such high resolution I'd be able to zoom in just fine. I guess this is learning the hard way? Next time, should I just mentally let go of the "Image and Wireframe" option as it's going to be a different quality than the other shots?
    Thanks guys. We might have to reshoot this whole thing.

    Yeah, you should render it out before giving up all hope.
    That said, if you zoom by a factor of 2, your 720 becomes 360.
    That's less resolution that SD! So it all depends +how much+ you zoom.
    Maybe you can zoom in a bit less, and it'll look passable.
    Sometimes I shoot at 1080p if I know I'll need to zoom +a little+
    or use a smoothcam function, so I'll have decent resolution at 720p.

  • What external drives work well with a late 2011 MacBook Pro?  I ask because I just found out the hard way that a Samsung EVO 840 does not.  Also should I avail myself of something that works with Thunderbolt or Firewire?

    What external drives work well with a late 2011 MacBook Pro (I7, Lion OS) apart from my Kingston flash and USB drive, and the SD drives that I use in my cameras and recording devices?  I ask because I just found out the hard way that a Samsung EVO 840 does not.  Also, should I avail myself of something that works with the Thunderbolt or Firewire connections?  I'm looking to back up music and video files created and/or processed in Logic Pro and the Adobe Production Premium software suite (Premier Pro, After Effects, Audition, etc).

    Hmm, not sure what problems you had installing this drive. The review here gives it good marks for Mac:
    http://www.amazon.com/Samsung-Electronics-EVO-Series-2-5-Inch-MZ-7TE1T0BW/produc t-reviews/B00E3W16OU
    There does seem to be a lot of prep to make it work:
    "1. Preparation to install your new shiny SSD
    1.a You will need a migration tool (I used the Sabrent kit USB 3.0 to Sata that was suggested in these review) see link http://www.amazon.com/gp/product/B00DQJME7Y/ref=oh_details_o03_s01_i01?ie=UTF8&p sc=1
    1.b You will need to download a trim enabler (mid 2012 macbooks only support native trim with apple brand ssd's) I recommend going to cindori.org and downloading trim enabler version 3.xx. You can do this step before or after the OS migration
    1.c You cannot use the Samsung SSD migration software *don't worry Mac has its own imaging/migration utility*"
    Also in those reviews:
    " Only down side when using this product in a Mac Mini is you will be required to download and install Trim Enabler so that your drive performs optimally on your Mac device. This is an Apple issue, not Samsung, but it is an extra step you will have to take after you install the hard drive, and any time you perform an OS upgrade." He rant's on.
    Personally I only deal with OWC:
    http://eshop.macsales.com/shop/SSD/OWC/
    They are very knowledgable and if there's a problem they will gladly take back the item. (Never happened to me yet - 8 years and counting).
    Just upgraded my 13" MBP 2011 to 120 GB for $79. Adobe CS 6 opens in 3 seconds! Awesome!
    When I was in Chicago I had a pro photographer for a client. She wound up with 4 internal drives in her Pro, 4 external drives and an dual array locked in a steel vault in the basement. All from OWC. OK she was a bit paranoid. Great client though.
    As far as value for price:
    http://eshop.macsales.com/item/OWC/MES3FH7500G/
    500 GB for $130.
    However as far as reliability is concerned:
    http://www.rockpapershotgun.com/2014/01/30/are-ssds-reliable/
    http://www.extremetech.com/computing/173887-ssd-stress-testing-finds-intel-might -be-the-only-reliable-drive-manufacturer
    So sudden power loss is an issue with SSDs.
    Personally I'd go with a moderate sized SSD internally and a conventional external for backup. An array would be the most reliable.

  • Uninstalling iTunes the hard way?

    I installed iTunes in my external hard drive which has done some weird stuff which changed its letter from G to I, and now it will not longer recognize itself, so now I have to uninstall it, but it won't allow me...
    The folder "iTunes" cannot be found or created, and is required.
    The default location for this folder is inside the "My Music" folder.
    So the only way I could think of to pull this off is to uninstall and reinstall the very hard way, which leads to my question... is there a hard way of uninstalling it?

    I installed iTunes in my external hard drive which has done some weird stuff which changed its letter from G to I
    do you get any joy with launching itunes again if you change the drive letter of the external back to G?
    although the following document deals with changing ipod drive letters, the same techniques can apply to changing other drive letters:
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear

  • The only way I got Yosemite to Work.... the Hard way

    I think I have tried every suggestion in the support forum to get my Yosemite running on my 2013 15" MBP from Mavericks.   Everything I tried ended up with a black screen with a white circle with a slash.  Tried the upgrade way, upgrade with safe boot, upgrade with verbose boot.  I cleaned up the MBP, fixed all permissions, ran Disk warrior AND Diskutility first aid.
    I then tried a clean install by creating a boot disc on a USB drive.  Erased the MBP SSD.   That did work and I had a working Yosemite but none of my stuff on it.  So I did migration assistant.  Black screen with white slashed circle.
    Oh also tried the trim enabler someone suggested.
    So I went back and did another clean install to the working yosemite and use shared drives to move music, videos, and photos over to Itunes and Aperture.  Loaded new programs not on app store.  downloaded programs from App store.
    Everything is working now.  But it took about 80 hrs of working and waiting (mostly waiting).  Never had a problem like this before.   Evidently there was something on my MBP in the applications, or settings or something that Yosemite did not like.
    The good news is that my MBP is pretty lean now compared to the previous set up that had lots and lots of little apps that I had tried and stopped using but never removed complete with applications, application support, and application prefs.
    So if you are having problems you can do this brute force clean install and it should work.

    Hi Idreier,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit.
    Hopefully this helps!

  • Add a watermark, the hard way

    Hi.
    I've been drooling over the Acrobat 7.0 SDK documentation. It talks about an addWatermarkFromFile() function in JavaScript. You lucky, lucky, lucky people.
    I have Acrobat 6.0 (Pro). Ugh. You can add a watermark in the application, but there is no addWatermarkFromFile(). I had thought of using MenuItemExecute to work the menus...
    acrApp.MenuItemExecute "COMP:AddBack"
    SendKeys "%b"
    SendKeys MY_PATH & "MY_FILE.pdf"
    SendKeys "{ENTER}"
    However, the crafty dialog seems to be modal, ie the code halts at MenuItemExecute and waits for me to dismiss it before executing the SendKeys commands.
    Is there a way round this?
    Jon
    MS Office 2003
    MS Windows XP Pro SP2
    Adobe Acrobat 6.0 Pro

    > Is there a way round this?
    Upgrade to Acrobat 9.

  • Quick paragraph style application transformation ... or reverse engineering a document the hard way?

    Hi everyone,
    I'm using Indesign 5.5 for Windows and have inherited a technical document with no styling applied (not even text threads or auto-pagination), but all the fonts are in the correct sizes and colours. So it looks ok in print, but trying to actually do anything with it is a nightmare.  For obvious reasons I WANT to apply paragraph styles to the document so I can generate a new auto-updating TOC, maintain and add to it, and all the other good stuff that means.
    My question is this - is my only choice to go through page by page and apply new styles (matching their current appearence) to every different heading and bullet point, or is there a nice easy way (or script) that i can use to whizz through the document for me, neatly applying a new style to each different font variety or element it finds (not altering their appearence) and leaving me with a nice list of styles I can rename (then take all the credit for? ha!) Basically take a document that's already been put together wrong, and make it right? I think this might've been imported into InDesign from something like Quark, hence the state it's in, but I don't have access to anything but this version. Any help you could offer would be great.  Oh, and if (as I suspect) my only option is indeed to apply all the styles manually one line at a time, then feel free to point and laugh, I doubtless deserve it.
    Thanks!
    Phil

    If you need to reproduce the existing page layouts, I'd suggest you read up more on what paragraph styles can do, before annihilating whatever layout and flow behaviors have been stuck on the content. For example, if level "X" headings always start at the top of a text frame, or top of a page, or even top of a right page, or top of a left page, a paragraph style property can do this. So you'd want to create and apply a paragraph that does this to those paragraphs before you thread text frames; the top of <whatever> frame paragraph property will keep the paragraphs in place.
    It is possible to create paragraph styles with properties that behave crazily when they do what you define for them. For example, you can define a paragraph style that sets the style of the paragraph that's created when you press Enter/Return. You can also use the smartness built into the Next Style property. If a paragraph style, say Head1 is defined to create a new paragraph when you press Enter/Return, it can also apply its next style property to the paragraph follows Head1 in the same text selection. So, if you select a paragraph that's supposed to become Head1 (which defines its next style as BodyAfterHead1) and also select the paragraph that follows it,  and then hold down Ctrl+Click on the Head1 style's name in the Paragraph Styles panel, Apply "Head1" then Next Style appears. If BodyAfterHead1 defines Body as its next style, and more than two consecutive paragraphs are selected, Head1 will be applied to the first paragraph, BodyAfterHead1 will be applied to the second paragraph, and Body will be applied to the third and following paragraphs.
    So, you'll be investing in setting up the Next Style property for paragraph styles, and selecting as many consecutive paragraphs as needed for applying a pattern of styles that agrees with your next style definitions. Each time you use this feature, you're collecting benefits from your investment.
    If you need to reproduce the look of the layout on some number of pages, you could export to PDF and use a script to efficiently place each page of a multi-page PDF on a "PDF layer" you create, that appears on every document page in the ID document, lock and move the layer below the active document layer, and use it as a placement underlay.
    Search Google for terms like "InDesign apply style and next style," "InDesign place multipage pdf script," "InDesign installing and using scripts," "InDesign paragraph style keep options," and "InDesign start paragraph options," without quotes, for informative links to anywhere on the Web, as well as on these Adobe forums. To limit the searches to Adobe forums only, include "forums.adobe" without quotes in the search query.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Learning the hard way you should back up your iphone!

    Hey everyone,
    I dropped my iphone 5 in the bathtub, needless to say it no longer works. I can switch it on and off but the screen stays blank. My computer does not register when i try to plug it in. If I take it into an apple store is there any way they will be able to get my photos off the phone for me despite it not working?
    Thanks a lot.

    likely no
    try putting it in an open bowl of rice on the radiator or heated bathroom floor for 48hours to see if being died out will make it work a bit more you may get lucky
    I saved both iphone and ipod touch that way 

  • SPF and altsrchost the hard way

    Just wanted to share my expierence in getting into the world of SPF and altsrchost to help prevent someone else from hitting the potholes I did and to ask a question.
    Situation:
    We just recently deployed a TXT record on our public DNS to begin the setup of making our e-mail pass SPF verification.  Originally I was told to setup a TXT record for a different project.   Not knowing anything about SPF we set it up.   Long story short, it was a SPF1 entry and caused some SMTP servers to reject our e-mail because our IronPort appliances were not included in the entry.  To begin troubleshooting it I added MX to the SPF1 entry and did some testing of the entry and all was well, so I thought.   Turns out our IronPort appliances are using all public interfaces to deliver e-mail for this domain.  No problem, I had read about the altsrchost functionality and thought that it was perfect for setting IronPort to route e-mail from this domain only using the interfaces that are also setup as MX.    Wrong, once I set altsrchost to say only use these two public interfaces our IronPort appliances could not deliver e-mail that is sent from that domain from other internal systems back to our internal messaging system, because I just told it to only use these two public interfaces.  So, I cleared out the altsrchost and mail flow was fixed.  I did have a few hundred e-mails stuck in the queue that would not deliver because they were trying to still use that public interface (stuck in a queue or something).   I did get that cleaned up by just bouncing the e-mail, could not figure out a way to get it to not want to use only a public interface.
    Question:
    How can I get IronPort to only use specified interfaces to deliver e-mail on the public side but still allow it to use the private interfaces to deliver e-mail to our internal messaging system when it needs to?  The altsrchost command appears to only allow me to specify one interface.
    We have two C660s running in a cluster.
    Jason Meyer

    Hi Jason,
    You can use more than one alt-src-host action using filters. Please check the filter below.
    if (recv-listener == 'OutboundMail' and rcpt-to == 'internaldomain\\.com')
    alt-src-host('inbound1');
    else
    alt-src-host('outbound1');
    You can add more filters with different conditions in case you want to use more than one interfaces.
    We will be able to assist you better if you open support ticket and provide us your configuration along with your requirements.
    Thanks,
    Viquar
    Customer Support Engineer

  • Learned the hard way

    I am new to this - have a new iMac as of October.
    This morning the system crashed and when I started it up the photos that I had were gone.
    Can't figure why it crashed, I was typing away in Word.
    Any schooling on this would be appreciated.
    Yeah I know, always back it up....

    tallmom
    My guess is that you're using a v7 of iPhoto because you've only been using Macs since October, yes?
    Somethings to try:
    Try rebuild the library: hold down the apple and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    If that fails, try the following, ignoring number 1, obviously...
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums back.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • The Hard Way

    Looks like there will be some learning at the "professional's" expense. It starts with four identical books ordered - a wedding - and yes - the wedding date on an inside page is wrong.
    Lesson 1 - they don't proof your text -- date was September 16, 2007. Hey they shouldn't have to anyway.
    Lesson 2 - Scramble! I discovered by trying out my new docustyle book binder that Apple books are bound by heat. Unbound one and saw that pages are stapled - must be one heck of a stapler - then heat bound.
    Lesson 3 - Get HELP! Contacted printservicespro to see if they can help. Simply reprinting one page front/back would be the ultimate silk purse solution, but otherwise ...
    Lesson 4 - Order one book with four pages and rest blank. Could work but page numbering can't be overridden and mesh with look of page numbers in rest of books.
    Does anyone have an idea of how to solve this one? It may be moot if printservicepro is willing to help ... but if not ... and how does that heat binding glue work anyway? I have heard it can be reactivated multiple times.
    shannon

    Who didn't proof this? You? Your client? The
    printer?
    Looks like your mistake, eh.
    The OP already admitted it was his mistake. No need
    to rub it in his face.
    Really? A pro has thick skin, he or she can take it. But I don't see an honest admission; certainly nothing stated in plain English. I see a vague reference to a "professional" "learning" that "they" don't proof. You're assuming the OP is the pro but I do not know who "they" are. Could be the printer or the client.
    From the OP:
    Looks like there will be some learning at the "professional's" expense. It starts with four identical books ordered - a wedding - and yes - the wedding date on an inside page is wrong.
    Lesson 1 - they don't proof your text -- date was September 16, 2007. Hey they shouldn't have to anyway. <
    <div class="jive-quote">But the rest of your response is the probably the
    kind of thinking that will help the most.
    Glad to have passed your filtering system.
    bogiesan

  • Find location of substrings the hard way

    In order to find the location of a substring in a string I tend to use this method:
    set ptrFind to (offset of "get in "target" as string)
    this results in ptrFind = 3
    However, I'm at a loss when it gets more complex like when I want to find the location of the second "get" in the string "to get to the target".
    Any suggestions?

    Once you have found the first offset, you can use that as the beginning of the text to get your other offset. From there, to get the offset into the original string, you just have to add the original item back in (plus a correction factor for changing the starting point):
    set Target to "let us proceed to get another get"
    set SubString to "get"
    set FirstOffset to offset of SubString in Target -- the first item
    log result
    get offset of SubString in (text (FirstOffset + (count SubString)) thru -1 of Target)
    set SecondOffset to result + FirstOffset + (count SubString) - 1 -- the second item
    log result
    I also have a handler that gets all of the offsets and returns them in a list:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run -- example
    set TheText to "this is some testing text, some testing text this is"
    set TheItem to "is"
    set TheOffsets to (GetTheOffsets of TheItem from TheText)
    -- show the result
    set the beginning of TheOffsets to "The offsets of \"" & TheItem & "\":"
    set the beginning of TheOffsets to "The text: \"" & TheText & "\""
    choose from list TheOffsets with prompt "Search results:" with empty selection allowed
    end run
    to GetTheOffsets of SomeItem from SomeText
    return a list of all offsets of SomeItem in SomeText
    parameters - SomeItem [text]: the text to look for
    SomeText [text]: the text to look in
      returns [list]: a list of offset(s) - {} if none found
    set {OffsetList, OffsetCount} to {{}, 1}
    repeat
    set TheOffset to (offset of SomeItem in (text OffsetCount thru -1 of SomeText))
    if TheOffset is less than 1 then
    exit repeat
    else
    set OffsetCount to OffsetCount + TheOffset
    set end of OffsetList to OffsetCount - 1
    end if
    end repeat
    return OffsetList
    end GetTheOffsets
    </pre>

Maybe you are looking for

  • Problems with Java cyrillic fonts in Web enabled Forms

    I have a big problem with the deployed forms on the web. The problem is that when a form is run on the web in a Java Applet it uses some strange fonts. I want to make it use only specified fonts but I don't know how. Please help me. I am using Develo

  • Everything changed to other when plugged in

    I recently plugged in my ipod when a window came up saying "you ipod cannot be synced" and turned everything into other so i cant play videos or music. it can now sync but everything is still other how to i change it back. I erased all my audio and v

  • Where is my concurrent log file

    Hi: Would you tell how to find the concurrent request log and internal manager log? We have 12.1.3 on linux. I have tried $APPLCSF, $INST_TOP but didn't work. Thank you.

  • Windows user wants to make the switch

    since it has become very attractive for me to buy an mac i decided to give it a shot the problem is that i don not know which one to choose (mb or mbp) so i ask you kindly to give me some advice in the matter =) i currently own a PC and use it mostly

  • LR4.1 preset for sharpening darkens pictures

    Hello, the Adobe presets delivered with LR4 for sharpening include a command line which forces a switch to the new process engine "2012" or ProcessVersion = "6.7".  I do not understand why Adobe allows a general preset to include a process version ch