CLI template creator with variables - where to start

Hello people !
I would like to be able to create a template that checks a device hostname and  takes actions according to it - my goal is to enable Energy Wise Domains - one for every location.
If I could have LMS4.2 to check the hostname of the device then would be easy to attribute the device to the aproppriate domain.
Exam.
Device hostname AAAA_switch1 - Domain 1
Device hostname AAAA_switch2 - Domain 1
Device hostname BBBB_switch1 - Domain 2
I have read several threads about this but I am not being able to understand where is the best place to start.
Any help would be most apprecciated and will be rewarded with the deserved points
Thanks in advance
Isaac

Hello again
I am moving forward on my quest and hope that someone will give me a hand at some point   - these are my first steps on XML on LMS so I'll probably do some not so clever remarks.
Anyway to start I have created a cli template and exported it - that way I would have an XML file with the correct structure - I thought :).
Even if I dont do any changes and try so simply import to LMS the file created on the template I get the error message:
"Template import Failed. Unable to parse the XML file.Please ensure that the XML file is complaint to the schema."
Any ideas on what could be causing this?
many thanks
Isaac

Similar Messages

  • Newbee: I want to Podcast with Apple - where to start?

    Hi,
    I am in a WINDOWS environment trying to give apple technology a chance. At Heilbronn university we want to experiment with podcast technology using apples podcast producer. Blue-eyed I tried to install the Server OS and, as the next step, tried to configure the machine using the "podcast producer administration guide". I failed. E.g. the guide tells me to set up DNS to strange addresses, but only HOW, not WHY. And it doesn't work.
    So I need help:
    I have an environment where the server (mac mini) is attached via ethernet (manual DHCP with static IP address) using our university DNS. Our university has its own mail server, its own LDAP Server, etc.
    Attachment to LDAP is not needed but I want to use a macbook air to capture the podcasts.
    Where should I start?
    Any help is welcome.
    Best regards,
    Dr. Jörg Winckler

    Guten Tag Jörg!
    Your setup is similar to one i've just deployed for a college here in England.
    Are you planning on using Podcast Capture or quicktime on the macbook air to capture the podcasts? You have to login to the mac server in order to submit the podcasts, and that requires a user account either standalone on the mac server's openldap, or your university wide LDAP.
    The other options depend on exactly what you want to do with your podcasts. You might not need a mail server at all if you're not publishing notifications..
    As for DNS, its actually fairly simple. You just need the FQDN of the mac server to be published on the network you will be using to connect to the mac server from the macbook air, and it needs a reverse DNS entry for the same.
    I hope this helps, but feel free to ask detailed questions on anything i've missed.
    Thanks,
    Liam Gladdy
    GladdyMedia
    Message was edited by: Liam Gladdy

  • Mac Pro keeps crashing when using with KVM. where to start my investigation

    hi guys.
    i have recently ordered ATEN CS-1762 KVM switch (2 ports model) to control my Mac and PC with a single keyboard and mouse. This KVM supports USB and DVI. the problem i have is Mac crashing when i switch from PC. I contacted mfg lately and they are unaware of this issue due to not having Mac Pro to test with this appliance. They have tested it with Mac Mini, G4 and G5 though and all was OK. based on this they put a description that this box is compatible with Mac. Anyway, being relatively new Mac user i ask for your help.
    here are my steps and some ATEN's thoughts:
    1. accroding to ATEN tech support, i should power up my second computer after the first one was started and is running. firstly i start the Mac Pro, 5 mins after that i power up my PC.
    2. When both computers are up and running (Mac is in KVM focus), i switch to PC and all seems OK. I have noticed though that if NumLock is activated during the PC session, I won't be able to switch back to Mac. However, even though NumLock is OFF i still may have troubles when switching back to Mac. So it is not the rule, but maybe the clue to start with..
    NOTES:
    1. if i start PC first, Mac won't start at all. The power led will be on, but there will be no picture on the monitor and it won't accept any keyboard/mouse inputs as well as it will be network inaccessible.
    2. I tried looking into Mac's logs but need your help in getting this clear.
    here is the log. as you will see it stops at 13:04 and then continues at 13:08 after reboot.
    i've seen some parallel's VMs but i don't have Parallels installed. i used to have it, but then it never happened to work so i deleted it from the machine. can this be the case it is still somewhere?
    pls guys, any thoughts are very welcome!!!
    PS: i can cause Mac to crash the same way if necessary or if log looks inclomplete. the thing forgot to mention is: when Mac crashes and i reboot it, it will not necessarily boot up completely. i've noticed that i would have to reset the KVM switch prior to Mac's successful start up. so maybe i copied the wrong log (not the one immediately after the crash). pls advise here
    Alex
    EDIT: specs for machines are:
    Mac Pro dual 2.6GHz, 1GB (+1GB aftermarket added half a year back, works perfectly), HDD 260GB, Nvidia 7300 256Mb.
    PC - Supermicro dual xeon 1.6GHz, 4GB Ram, 4 x 36GB SCSI, Nvidia 5200 256 MB with Windows 2000 Server.
    Apr 18 13:03:38 localhost kernel[0]: hi mem tramps at 0xffe00000
    Apr 18 13:03:38 localhost kernel[0]: PAE enabled
    Apr 18 13:03:38 localhost kernel[0]: 64 bit mode enabled
    Apr 18 13:03:38 localhost kernel[0]: standard timeslicing quantum is 10000 us
    Apr 18 13:03:38 localhost kernel[0]: vmpagebootstrap: 512109 free pages
    Apr 18 13:03:38 localhost kernel[0]: migtable_maxdispl = 71
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: 77 prelinked modules
    Apr 18 13:03:38 localhost kernel[0]: ACPI CA 20060421
    Apr 18 13:03:38 localhost kernel[0]: AppleIntelCPUPowerManagement: ready
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=0 LocalApicId=0 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=1 LocalApicId=1 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=2 LocalApicId=7 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=3 LocalApicId=6 Enabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=4 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=5 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=6 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: AppleACPICPU: ProcessorApicId=7 LocalApicId=0 Disabled
    Apr 18 13:03:38 localhost kernel[0]: Copyright (c) 1982, 1986, 1989, 1991, 1993
    Apr 18 13:03:38 localhost kernel[0]: The Regents of the University of California. All rights reserved.
    Apr 18 13:03:38 localhost kernel[0]: using 10485 buffer headers and 4096 cluster IO buffer headers
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: Started CPU 01
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: Started CPU 02
    Apr 18 13:03:38 localhost kernel[0]: Enabling XMM register save/restore and SSE/SSE2 opcodes
    Apr 18 13:03:38 localhost kernel[0]: IOAPIC: Version 0x20 Vectors 64:87
    Apr 18 13:03:38 localhost kernel[0]: Started CPU 03
    Apr 18 13:03:38 localhost kernel[0]: ACPI: System State [S0 S3 S4 S5] (S3)
    Apr 18 13:03:38 localhost kernel[0]: Security auditing service present
    Apr 18 13:03:38 localhost kernel[0]: BSM auditing present
    Apr 18 13:03:38 localhost kernel[0]: disabled
    Apr 18 13:03:38 localhost kernel[0]: rooting via boot-uuid from /chosen: BE5A00F3-0C3D-4125-9DE4-3F2193D3DAA8
    Apr 18 13:03:38 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    Apr 18 13:03:38 localhost kernel[0]: USB caused wake event (EHCI)
    Apr 18 13:03:38 localhost kernel[0]: FireWire (OHCI) TI ID 8025 built-in now active, GUID 0016cbfffe6cfb5c; max speed s800.
    Apr 18 13:03:38 localhost kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT0 @0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDri ver/ST3160812AS P Media/IOGUIDPartitionScheme/Customer@2
    Apr 18 13:03:38 localhost kernel[0]: BSD root: disk0s2, major 14, minor 2
    Apr 18 13:03:38 localhost kernel[0]: jnl: replay_journal: from: 3560448 to: 7934976 (joffset 0x48b341000)
    Apr 18 13:03:38 localhost kernel[0]: HFS: Removed 9 orphaned unlinked files
    Apr 18 13:03:38 localhost kernel[0]: Jettisoning kernel linker.
    Apr 18 13:03:38 localhost kernel[0]: Resetting IOCatalogue.
    Apr 18 13:03:38 localhost kernel[0]: PXS1: family specific matching fails
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 1
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: Matching service count = 2
    Apr 18 13:03:38 localhost kernel[0]: NVDANV40HAL loaded and registered.
    Apr 18 13:03:38 localhost kernel[0]: PXS1: family specific matching fails
    Apr 18 13:03:38 localhost kernel[0]: Previous Shutdown Cause: 3
    Apr 18 13:03:38 localhost kernel[0]: IPv6 packet filtering initialized, default to accept, logging disabled
    Apr 18 13:03:38 localhost mDNSResponder-108.4 (Jan 8 2007 20: 39:46)[30]: starting
    Apr 18 13:03:38 localhost memberd[38]: memberd starting up
    Apr 18 13:03:38 localhost DirectoryService[42]: Launched version 2.1 (v353.6)
    Apr 18 13:03:39 localhost lookupd[44]: lookupd (version 369.6) starting - Wed Apr 18 13:03:39 2007
    Apr 18 13:03:39 localhost kernel[0]: AppleIntel8254XEthernet: Ethernet address 00:17:f2:01:63:16
    Apr 18 13:03:39 localhost configd[34]: No AirPort Driver found.
    Apr 18 13:03:39 localhost kernel[0]: AppleIntel8254XEthernet: Ethernet address 00:17:f2:01:63:17
    Apr 18 13:03:39 localhost diskarbitrationd[37]: disk0s2 hfs FDAB59BA-2B84-3AD5-AF66-4BD8CFA20261 Macintosh HD /
    Apr 18 13:03:40 localhost lookupd[55]: lookupd (version 369.6) starting - Wed Apr 18 13:03:40 2007
    Apr 18 13:03:42 localhost kernel[0]: Intel8254x -- Link Up -- 00:17:f2:01:63:16 -- called by interruptOccurred() --
    Apr 18 13:03:42 localhost /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow: Login Window Application Started
    Apr 18 13:03:42 localhost kernel[0]: -- Auto-Neg Advertise Reg (04d) = 0xde1, Link Partner Ability Reg (05d) = 0x41e1, Gig Advertise Reg (09d) = 0xe00, Gig Link Partner Ability Reg (10d) = 0x4000
    Apr 18 13:03:42 localhost mDNSResponder: Adding browse domain local.
    Apr 18 13:03:43 localhost loginwindow[62]: Login Window Started Security Agent
    Apr 18 13:03:46 localhost kernel[0]: Intel8254x -- Link down -- 00:17:f2:01:63:17 -- called by enableHardware() --
    Apr 18 13:03:46 localhost kernel[0]: -- Auto-Neg Advertise Reg (04d) = 0xde1, Link Partner Ability Reg (05d) = 0x0, Gig Advertise Reg (09d) = 0xe00, Gig Link Partner Ability Reg (10d) = 0x4000
    Apr 18 13:03:46 Alexs-Computer configd[34]: setting hostname to "Alexs-Computer.local"
    Apr 18 13:03:46 Alexs-Computer TabletDriver[71]: RunApplication called while eRelaunching
    Apr 18 13:03:52 Alexs-Computer configd[34]: executing /System/Library/SystemConfiguration/Kicker.bundle/Contents/Resources/enable-net work
    Apr 18 13:03:52 Alexs-Computer configd[34]: posting notification com.apple.system.config.network_change
    Apr 18 13:03:52 Alexs-Computer lookupd[82]: lookupd (version 369.6) starting - Wed Apr 18 13:03:52 2007
    Apr 18 13:03:52 Alexs-Computer ntpdate[94]: can't find host time.euro.apple.com\n
    Apr 18 13:03:52 Alexs-Computer ntpdate[94]: no servers can be used, exiting
    Apr 18 13:03:55 Alexs-Computer configd[34]: target=enable-network: disabled
    Apr 18 13:04:15 Alexs-Computer configd[34]: posting notification com.apple.system.config.network_change
    Apr 18 13:04:15 Alexs-Computer lookupd[148]: lookupd (version 369.6) starting - Wed Apr 18 13:04:15 2007
    Apr 18 13:04:15 Alexs-Computer SystemStarter[41]: "/Library/StartupItems/Tablet" failed security check: permissions
    Apr 18 13:04:17 Alexs-Computer kernel[0]: Parallels Workstation Hypervisor started.
    Apr 18 13:04:17 Alexs-Computer kernel[0]: Parallels Workstation VMM Main driver started.
    Apr 18 13:04:18 Alexs-Computer kernel[0]: comparallels_kextPvsvnic: Ethernet address 00:01:23:45:67:89
    Apr 18 13:04:19 Alexs-Computer SystemStarter[41]: Parallels VirtualMachine drivers (149) did not complete successfully
    Apr 18 13:08:25 localhost kernel[0]: hi mem tramps at 0xffe00000
    Apr 18 13:08:25 localhost kernel[0]: PAE enabled
    Apr 18 13:08:25 localhost kernel[0]: 64 bit mode enabled
    here couple more logs right at the moment of crash (found in paic.log). hopefully then can shed som elight on the troubles:
    pls advise
    Wed Apr 18 13:04:16 2007
    panic(cpu 0 caller 0x001A429B): Unresolved kernel trap (CPU 0, Type 14=page fault), registers:
    CR0: 0x8001003b, CR2: 0x00004000, CR3: 0x01019000, CR4: 0x000006e0
    EAX: 0x23a3d578, EBX: 0x00000000, ECX: 0x00001000, EDX: 0x00004000
    CR2: 0x00004000, EBP: 0x2544bc18, ESI: 0x23a3d578, EDI: 0x00004000
    EFL: 0x00010206, EIP: 0x0019637c, CS: 0x00000008, DS: 0x00000010
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x2544b9d8 : 0x128d08 (0x3cb134 0x2544b9fc 0x131de5 0x0)
    0x2544ba18 : 0x1a429b (0x3d0e4c 0x0 0xe 0x3d0670)
    0x2544bb28 : 0x19ada4 (0x2544bb40 0x23a39578 0x2544bb98 0x84ae50)
    0x2544bc18 : 0x84b148 (0x23a39000 0x2 0x2544bc68 0x1a1738)
    0x2544bc38 : 0x8393d4 (0x2544bddc 0x0 0x2544bc68 0x4b0000)
    0x2544bd18 : 0x6ca33a (0x23a39000 0x2544bdaa 0x2544bdaa 0x84)
    0x2544bd78 : 0x6be697 (0x3c34000 0x2544bdaa 0x2544bdaa 0x84)
    0x2544bdf8 : 0x6a72e3 (0x3c34000 0x1 0x2544be48 0x1a1738)
    0x2544be18 : 0x6aee4a (0x553f8000 0x0 0x3ff96a27 0x3d87)
    0x2544be78 : 0x546b55 (0x3c34000 0x2544beac 0x1 0x1a26ce)
    0x2544bec8 : 0x54a1d0 (0x3a21e00 0x3 0x3f60ddf8 0x3d87)
    0x2544bee8 : 0x54bc8d (0x3a21e00 0x7abf 0x5cbd220 0x5cbd160)
    0x2544bf28 : 0x39c536 (0x3a21e00 0x3a40280 0x8 0x2)
    0x2544bf78 : 0x13d7d9 (0x3a40280 0x3a87e78 0x0 0x0)
    0x2544bfc8 : 0x19ac1c (0x0 0x0 0x19e0b5 0x397fcec) Backtrace terminated-invalid frame pointer 0x0
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.NVDAResman(4.5.2)@0x6c9000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    com.apple.iokit.IOHIDFamily(1.4.10)@0x531000
    Kernel version:
    Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386
    Wed Apr 18 17:06:26 2007
    panic(cpu 1 caller 0x001A429B): Unresolved kernel trap (CPU 1, Type 14=page fault), registers:
    CR0: 0x8001003b, CR2: 0x00004000, CR3: 0x01019000, CR4: 0x000006e0
    EAX: 0x23a4d578, EBX: 0x00000000, ECX: 0x00001000, EDX: 0x00004000
    CR2: 0x00004000, EBP: 0x25443c18, ESI: 0x23a4d578, EDI: 0x00004000
    EFL: 0x00010206, EIP: 0x0019637c, CS: 0x00000008, DS: 0x04080010
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x254439d8 : 0x128d08 (0x3cb134 0x254439fc 0x131de5 0x0)
    0x25443a18 : 0x1a429b (0x3d0e4c 0x1 0xe 0x3d0670)
    0x25443b28 : 0x19ada4 (0x25443b40 0x23a49578 0x1 0x4065004)
    0x25443c18 : 0x84b148 (0x23a49000 0x2 0x25443c48 0x713bbf)
    0x25443c38 : 0x8393d4 (0x25443ddc 0x0 0x25443c68 0x7116c2)
    0x25443d18 : 0x6ca33a (0x23a49000 0x25443daa 0x25443daa 0x84)
    0x25443d78 : 0x6be697 (0x3c61c00 0x25443daa 0x25443daa 0x84)
    0x25443df8 : 0x6a72e3 (0x3c61c00 0x2 0x25443e28 0x1e)
    0x25443e18 : 0x6aee4a (0x523e0000 0x0 0xfd8e30e2 0xc93)
    0x25443e78 : 0x546b55 (0x3c61c00 0x25443eac 0x2 0x1a26ce)
    0x25443ec8 : 0x54a1d0 (0x3a21e00 0x3 0xfcf5a332 0xc93)
    0x25443ee8 : 0x54bc8d (0x3a21e00 0x1917 0x4336be0 0x4336b20)
    0x25443f28 : 0x39c536 (0x3a21e00 0x3a40280 0x8 0x2)
    0x25443f78 : 0x13d7d9 (0x3a40280 0x3a39ff8 0x0 0x3303)
    0x25443fc8 : 0x19ac1c (0x0 0x0 0x19e0b5 0x5cb2144) Backtrace terminated-invalid frame pointer 0x0
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.NVDAResman(4.5.2)@0x6c9000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    com.apple.iokit.IONDRVSupport(1.4.5)@0x6ba000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    dependency: com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    com.apple.iokit.IOGraphicsFamily(1.4.5)@0x69f000
    dependency: com.apple.iokit.IOPCIFamily(2.2)@0x5e0000
    com.apple.iokit.IOHIDFamily(1.4.10)@0x531000
    Kernel version:
    Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386

    ok so i experimented a little with the hardware and here what i have to the moment:
    1. i thought that the usb kb could be the case for mac os to crash so i disconnected the cable from the KVM and plugged normal apple kb to the mac.
    2. however when i tried switching back to mac, the machine crashed again.
    from what i noticed for the last few days 'working' with this kvm switch was the screen resolution changing while i was switching. meaning the screen flickered for couple of times prior to showing 1280x1024 that was set up in the system. during flickering the resoution became 1024x768. i 've seen it pretty clearly, just it was for half of a second.
    also when powering up both machines, they were starting with 1024x768 and not 1280x1024 as was set up. i had to manually change the screen resolution on both machines (pc and mac) every time after successful start up.
    so by far my understanding is that kvm switch forces monitor for 1024x768 during switches and on start up. it also causes the OSes (win2K and MacOSX) to lose 1280x1024 and accept 1024x768 as if the monitor was changed and couldn't operate at a higher resolution.
    having said that i uploaded this info to kvm mfg (ATEN) and couple more mac forums so that this info may help someone else when ordering a kvm for mac. at the same time i am still open for any thoughts, advices and crazy ideas to get round this bug.
    alex

  • Can we run a query with variable screen at start up in Bex Analyzer

    Hello all,
    I have a query which asks for fiscal year and posting period at the start of query run. But when I run the query in analyzer, it gives me this error all the time.
    "Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System error in Program CL_RSR_REQUEST and form TEXT_ELEMENTS_GET: VARIABLE"
    Can someone help,
    Thanks in advance.

    Hello,
    Please check if OSS note 858458 is applicable in your case.
    Regards,
    Praveen

  • Custom shapes/sprites with code, where to start?

    Hello,
    I want to start building some prebuild shapes, like a star, cross, heart, and some more with code.
    Does anyone know if there is already something like this ? A library with custom sprites or shapes?
    And should i create these graphics extending the sprite or shape class? I read that shapes would
    be better for performance?
    Regards,
    Chris.

    thanks Kglad, i did some search on this topic, but could not find
    prebuild shapes in Flash. So when i want to set properties of a shape, then
    it is better to use a Sprite?
    var myShape:CustomArrow = new CustomArrow();
    myShape.color = 0xFF0000;
    myShape.arrowSize = 14;
    myShape.arrowlineWidth = 200;
    This is the idea of using dynamic Shapes.
    Regards,
    Chris.

  • Multiple problems with 80GB classic, don't know where to start.

    Hey guys,
    I got an Apple classic 80GB for my bday early August and lately i've been having so many problems i dont know where to start, i'll try to explain them as best as i can.
    *problem 1:* Whenever i plug my iPod into my PC, it locks up the system for about 5 minutes, then comes up with an error box saying that 'There is a problem with your iPod yadda yadda restore etc'.
    I proceed to restore the iPod, then once its restored and reconnects itself, it repeats the cycle by freezing then telling me to restore. The only way i can do a restore and have it not give me an error is if i reboot when it is disconnected.
    *Problem 2:* When i finally get it up and ready to sync, i go to sync all my files (About 2000 songs). It gets to around the 1500 song mark then says there is an error and the iPod disconnects itself.
    It then instantaneously reconnects itself and starts syncing from where it left off.
    Once it has then sync'd all of the music ad tells me its ready to be ejected. I eject the iPod and disconnected it.
    I then go into the iPod and it has no songs/videos/photos, yet it has still used up about 15gb. If i reconnect it, it will just sit there for 5 minutes not syncing, it will then randomly say the sync is done and it will eject itself.
    FINALLY after all that i have my music on there
    *Problem 3* Once the songs are on the iPod, it becomes insanely laggy. If i navigate to a song and press play, it will take about 10 seconds for the actual song to play. The delay is just as bad for next song, pause etc. Even using it in my cars head unit causes it to lag.
    *Problem 4* If i do get a song playing after all that, about 1/5 songs will just randomly skip to the next song without letting it play through.
    I have all the latest iTunes/Firmware/Drivers for everything on my PC and iPod.
    I have sent it back to Apple for repair yet they could not find anything wrong (Yeah right :|)
    If anyone out there could help me please, im at my wits end with this infernal machine.
    Thankyou

    *Outdated operating system:* Cant be, im running XP SP3 with the latest updates
    *Computer needs updates:* I've got the latest drivers for all of my hardware, including BIOS
    *Software interference:* THe only other program i have running in the background is Kaspersky Antivirus, but that is disabled when i try to sync
    *Damaged Files* Possibly, i played through the album where it froze at and even reo-imported it, it seemed to play and import fine
    *Unregistered .dll files (Windows):* Tried this fix, but it did the same problems as the original post. Such as freezing on a certain song, then reconnecting itself only to put the music on there, yet it is really laggy
    *Damaged disk structure:* Tried this fix, didn't help
    *Corrupt iPod photo Cache* I have never tried to put photos on it, so i dont see how this could be it.
    *Lost connection:* Checked it, it's very firm and unlikely to come loose.
    *Conflict with third-party hardware:* I dont have any connected, nor have i ever
    *Bad hardware:* I tried it on all of my 8 USB drives. I dont use any hubs or firewire cards so this couldn't be it.
    Also i forgot to add that 1/5 times i go to restore, it locks the computer up and windows gives me a 'delayed write failed' bubble

  • Create sequence start with variable

    Trying to create a sequence within plsql passing a variable into the start with clause. I am getting the 'ora-01722: invalid number' error. Thoughts?
    -- Created on 06-Jun-07 by CARSONBC
    declare
    -- Local variables here
    v_staff_proxy_user_seq_num number;
    begin
    -- find max value
    select max(staff_proxy_user_id)+1
    into v_staff_proxy_user_seq_num
    from icmr32dv.staff_proxy_user;
    -- create sequence
    execute immediate 'create sequence icmr32dv.staff_proxy_user_seq2 minvalue 1 maxvalue 999999999999999999999999999 start with v_staff_proxy_user_seq_num increment by 1 nocache';
    end;

    What is the requirement of creating sequnce dynamically.?
    may be you can try this?
    execute immediate 'create sequence icmr32dv.staff_proxy_user_seq2 minvalue 1 maxvalue 999999999999999999 start With  '|| v_staff_proxy_user_seq_num || '  increment by 1 nocache';

  • When I try to upload a movie from I movie with the new iOS 7 it says sign in to YouTube when I do the screen goes back to where are started and it says to sign in again.  Any suggestions?

    When I try to upload a movie from I movie with the new iOS 7 it says sign in to YouTube when I do the screen goes back to where are started and it says to sign in again.  Any suggestions?

    Google seems to change their login security occasionally, and apps that assume it will work a particular way get left out in the cold till they are updated, since the login process is hard-coded into the app.
    Here is the automated e-mail I received today from Google when tried to upload a movie using iMovie.
    We recently blocked a sign-in attempt to your Google Account [REDACTED].
    Sign in attempt details
    REDACTED
    If this wasn't you
    Please review your Account Activity page at https://security.google.com/settings/security/activity to see if anything looks suspicious. Whoever tried to sign in to your account knows your password; we recommend that you change it right away.
    If this was you
    You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards.
    To learn more, see https://support.google.com/accounts/answer/6010255.

  • ONCE I CHAT WITH APPLE EXPERT TO RESOLVE MY PROBLEM BUT NOW I WAS UNABLE TO FIND FROM WHERE TO START CHAT. KINDLY TELL ME HOW I CAN CHAT WITH APPLE EXPERT

    once i chat an apple expert to resolve my issue. but now i am unable to find the place on apple website from where i start chat.kindle tell me from where i can find that chat section..

    This is one route.   Apple - Support - Contact Apple Support    But I am wondering if your previous chat was within the 90 days allowed in the guarantee period ... a different situation entirely to what you now want.   Why not Google Kindle to see if your interests appear there.

  • Where to start with Adobe Photoshop

    I need a program to do editing, composing, etc. that does more than Printshop. I know Adobe Photoshop is the "top of the line" for design and publishing. There are SO many different versions and upgrades. It is very confusing. I don't want to make a costly mistake.
    So.....what is the entry level version of Adobe Photoshop? Also do I need the upgrades that seem to be offered with each version? Thanks so much for any input.

    Unless you intend to use Photoshop for professional graphic design work (in which case you have a long learning curve ahead just to get conversant enough with the program to start), the much less expensive Photoshop Elements is all you need.
    http://www.graphic-design.com/Photoshop/vs_elements.html

  • I have no idea where to start

    okay, hi! i'm trying to write a vending machine program for a class i'm taking. i have a text file with names, image URLs, and prices. I have a product class which is supposed to use filereader to read the fields in the text file. The product class is going to be loaded by the main VendMach class file, where i will have all of the main ui stuff written. The last file is the MoneyInOut class, which handles all of the money methods. i've got the majority of the UI file done, the text file is ready, and the money file is almost done...everything is hanging on whether or not i can write the product file. i have no idea where to start. any help would be greatly appreciated. i'm not looking for somebody else to write my code, but a point in the right direction would be great! here are the UI and text files:
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.text.NumberFormat;
    import java.util.StringTokenizer;
    // Still to be fixed:
    // 1. Purchase & Maintenance buttons.
    // 2. fix repaint of pictures, they don't display until a repaint is hit.
    // 3. fix the Quit from program, it doesn't work right.
    // 4. Put in the code for doing Maintenance.
    // 5. Button super.setSize
    // 6. Animate picture on selection.
    public class VendMach extends Applet implements ActionListener
    // Fonts for text and buttons.
    private Font boldSerif16 = new Font("Serif",Font.BOLD,16);
    private Font boldSerif24 = new Font("Serif",Font.BOLD,24);
    private Font boldItalicSerif24 = new Font("Serif",Font.BOLD+Font.ITALIC,24);
    private Font boldItalicSerif13 = new Font("Serif",Font.BOLD+Font.ITALIC,13);
    private Font boldItalicSerif40 = new Font("Serif",Font.BOLD+Font.ITALIC,40);
    //%% private Font boldItalicDialog16 = new Font("Dialog",Font.BOLD+Font.ITALIC,16);
    // Mode flag.
    private int mode = 0;
    // Panels for the buttons
    private Panel mainPanel = new Panel();
    private Panel cashPanel = new Panel();
    private Panel selPanel = new Panel();
    private Panel maintPanel = new Panel();
    // Product selection panel buttons
    private Button selBtn[] = new Button[6];
    // Cash customer puts in machine panel buttons
    private Button viewC = new Button("View The Products");
    private Button quit = new Button("Quit");
    private Button bNickle = new Button("Nickel");
    private Button bDime = new Button("Dime");
    private Button bQuarter = new Button("Quarter");
    private Button b$Paper = new Button("$1 Paper");
    private Button b$Coin = new Button("$1 Coin");
    private Label lCredit = new Label(" Credit:");
    private Label lMsg = new Label("");
    private Button bChange = new Button("Change Return");
    private Button purchase = new Button("Purchase");
    private Button maintenance = new Button("Maintenance");
    private Product productForSale [];
    private CashIn changeOH;
    private int $collected = 0;
    private double total$In = 0.00;
    private NumberFormat nf;
    private Image pic;
    private Image picAnim;
    private int prodSel = 999;
    private String line;
    private String f[] = new String[8];
    private int tokenCount;
    private int int3, int4, int5, int6, int7;
    private double dbl4;
    private StringTokenizer strings;
    private int dispense = 99;
    public void init()
    {  setLayout(new BorderLayout());
    productForSale = new Product[6];
    try
    {  BufferedReader inPut = new BufferedReader(new FileReader("Vend_Machine.txt"));
    while ((line=inPut.readLine()) != null)
    {  strings = new StringTokenizer(line,",");
    tokenCount = strings.countTokens();
    // Loop thru and retrieve each data element.
    for (int i=0; i<tokenCount; i++)
    f[i] = strings.nextToken();
    // Load the money.
    if (f[0].compareTo("M") == 0)
    {  int3 = Integer.parseInt(f[3]);
    int4 = Integer.parseInt(f[4]);
    int5 = Integer.parseInt(f[5]);
    int6 = Integer.parseInt(f[6]);
    int7 = Integer.parseInt(f[7]);
    changeOH = new CashIn(f[1],f[2],int3,int4,int5,int6,int7);
    // Load the products.
    if (f[0].compareTo("P") == 0)
    {  int3 = Integer.parseInt(f[3]);
    dbl4 = (new Double(f[4])).doubleValue();
    int5 = Integer.parseInt(f[5]);
    int6 = Integer.parseInt(f[6]);
    int7 = Integer.parseInt(f[7]);
    productForSale[int3] = new Product(f[1],f[2],dbl4,int5,int6,int7);
    inPut.close();
    catch(IOException e)
    {  e.printStackTrace();
    setBackground(Color.pink);
    setForeground(new Color(120,0,120));
    setFont(boldSerif16);
    cashPanel.setLayout(new GridLayout(10,1));
    cashPanel.add(viewC);
    cashPanel.add(quit);
    cashPanel.add(bNickle);
    cashPanel.add(bDime);
    cashPanel.add(bQuarter);
    cashPanel.add(b$Paper);
    cashPanel.add(b$Coin);
    cashPanel.add(lCredit);
    cashPanel.add(lMsg);
    cashPanel.add(bChange);
    add(cashPanel,"East");
    selPanel.setLayout(new GridLayout(1,6));
    for (int i=0; i<6; i++)
    {  selBtn[i] = new Button(productForSale.getName());
    selPanel.add(selBtn[i]);
    add(selPanel,"South");
    setBackground(Color.black);
    viewC.addActionListener(this);
    quit.addActionListener(this);
    bNickle.addActionListener(this);
    bDime.addActionListener(this);
    bQuarter.addActionListener(this);
    b$Paper.addActionListener(this);
    b$Coin.addActionListener(this);
    bChange.addActionListener(this);
    nf = NumberFormat.getCurrencyInstance();
    for (int i=0; i<6; i++)
    selBtn[i].addActionListener(this);
    } // =======>> END OF INIT METHOD
    // ** PAINT METHOD **
    public void paint(Graphics g)
    {  int xVal = 35;
    int yVal = 85;
    int xValAnim = 0;
    int yValAnim = 0;
    int c = 0;
    // Paint the product pictures on the vending machine.
    g.setColor(Color.cyan);
    g.setFont(boldItalicSerif24);
    g.drawString(changeOH.getLogo1(),115,40);
    g.setFont(boldItalicSerif13);
    g.drawString(changeOH.getLogo2(),200,60);
    for (int z=0; z<2; z++)
    {  xVal = 35;
    yVal = 85;
    c = 0;
    g.setColor(Color.black);
    g.fillRect(xVal,yVal,500,350);
    g.setColor(Color.yellow);
    for (int i=0; i<2; i++)
    {  for (int j=0; j<3; j++)
    {  g.setFont(boldSerif16);
    g.drawString(nf.format(productForSale[c].getPrice()),xVal+45,yVal-5);
    pic = getImage(getCodeBase(),productForSale[c].getPic());
    g.drawImage(pic,xVal,yVal,null);
    // If product is dispensed get ready to animate.
    if (c == dispense)
    {  xValAnim = xVal;
    yValAnim = yVal;
    picAnim = pic;
    xVal = xVal + 170;
    c++;
    yVal = yVal + 160;
    xVal = 35;
    // If product is dispensed, animate it.
    if (dispense < 99)
    {  for (int y=0; y<40; y++)
    {  g.setColor(Color.black);
    g.fillRect(xValAnim,yValAnim-9,125,125);
    g.setColor(Color.yellow);
    g.drawImage(picAnim,xValAnim,yValAnim,null);
    yValAnim = yValAnim + 10;
    pause(3);
    dispense = 99;
    if (mode == 0)
    {  pic = getImage(getCodeBase(),"OutStock.gif");
    g.drawImage(pic,300,300,null);
    g.setColor(Color.black);
    g.fillRect(1,1,500,300);
    g.setColor(Color.pink);
    g.setFont(boldItalicSerif40);
    g.drawString(changeOH.getLogo1(),10,150);
    g.setFont(boldItalicSerif24);
    g.drawString(changeOH.getLogo2(),160,250);
    mode++;
    } // =======>> END OF PAINT METHOD
    // ** ACTIONPERFORMED METHOD **
    public void actionPerformed(ActionEvent event)
    {  Object source = event.getSource();
    lMsg.setText(" Enter up to $1.00");
    // Customer puts money in the vending machine.
    // Customer paid a nickle
    if (source == bNickle && $collected < 96)
    {  changeOH.nickleIn();
    $collected = $collected + 5;
    // Customer paid a dime
    if (source == bDime && $collected < 91)
    {  changeOH.dimeIn();
    $collected = $collected + 10;
    // Customer paid a quarter
    if (source == bQuarter && $collected < 76)
    {  changeOH.quarterIn();
    $collected = $collected + 25;
    // Customer paid a paper dollar
    if (source == b$Paper && $collected == 0)
    {  changeOH.dollarPaperIn();
    $collected = $collected + 100;
    // Customer paid a coin dollar
    if (source == b$Coin && $collected == 0)
    {  changeOH.dollarCoinIn();
    $collected = $collected + 100;
    // Customer makes their product selection.
    for (int i=0; i<6; i++)
    {  if (source == selBtn[i])
    // Do nothing if customer selects item that isn't on-hand.
    if (productForSale[i].getOnHand() == 0)
    repaint();
    // We have product on-hand.
    else
    {  prodSel = i;
    // Tell customer to add more money if they don't have
    // enough in the machine to handle the purchase.
    if ($collected < (int) (productForSale[i].getPrice() * 100))
    { lMsg.setText("    Insert Money");
    // Customer has enough money in machine to cover purchase.
    else
    {  // Take cost of item from customer's money
    dbl4 = productForSale[i].getPrice() * 100;
    int4 = changeOH.giveChange($collected - (int)dbl4,0);
    // Tell customer to put exact amount in the machine
    // because there isn't enough change to handle purchase.
    if (int4 == 9)
    {  lMsg.setText("Exact Amount Only!");
    // **** Here the purchase was made and committed. ****
    else
    {  total$In = productForSale[i].getPrice() * 100;
    $collected = $collected - (int) total$In;
    productForSale[i].sellProduct();
    dispense = i;
    repaint();
    // If the last product item was sold, set picture to OutStock.gif.
    if (productForSale[i].getOnHand() <= 0)
    productForSale[i].setOutOfStock();
    if ((source == bChange || source == quit) && $collected > 0)
    {  $collected = changeOH.giveChange($collected,1);
    // Here we save the machine info file when customer asks
    // for their change back or quits the machine.
    // Customer has selected to Quit the vending machine program.
    // Quit the program.
    if (source == quit)
    System.exit(0);
    // These commands set up variables to show how much money
    // the customer has in the machine.
    total$In = $collected;
    total$In = total$In / 100;
    lCredit.setText(" Credit: " + nf.format(total$In));
    repaint();
    } // =======>> END OF ACTIONPERFORMED METHOD
    // ** PAUSE METHOD **
    public void pause(int i)
    {  for(long l = System.currentTimeMillis() + (long) i; System.currentTimeMillis() < l;);
    // =======>> END OF VENDMACH CLASS APPLET
    // ** CASHIN CLASS **
    class CashIn
    {  private String logo1;
    private String logo2;
    private int numProd;
    private int nickles;
    private int dimes;
    private int quarters;
    private int dollarsP;
    private int dollarsC;
    private int money;
    private double moneyVal;
    private int amtToChange = 0;
    private int hNickle;
    private int hDime;
    private int hQuarter;
    private int hpDollar;
    private int hcDollar;
    public CashIn(String l1, String l2, int p, int q, int d, int n, int dP)
    {  logo1    = l1;
    logo2 = l2;
    numProd = p;
    quarters = q;
    dimes = d;
    nickles = n;
    dollarsP = dP;
    dollarsC = 0;
    money = (n * 5) + (d * 10) + (q * 25) + (dP * 100);
    // Get total of money in machine.
    public double getCashIn()
    {  moneyVal = money;
    moneyVal = moneyVal / 100;
    return moneyVal;
    // Get machine record information.
    public String getLogo1()
    {  return logo1;
    public String getLogo2()
    {  return logo2;
    public int getNumProd()
    {  return numProd;
    public int getNickles()
    {  return nickles;
    public int getDimes()
    {  return dimes;
    public int getQuarters()
    {  return quarters;
    public int getDollarPaper()
    {  return dollarsP;
    public int getDollarCoins()
    {  return dollarsC;
    // Money comes into the machine
    public void nickleIn()
    {  nickles++;
    money = money + 05;
    public void dimeIn()
    {  dimes++;
    money = money + 10;
    public void quarterIn()
    {  quarters++;
    money = money + 25;
    public void dollarPaperIn()
    {  dollarsP++;
    money = money + 100;
    public void dollarCoinIn()
    {  dollarsC++;
    money = money + 100;
    // Give the customer their change.
    public int giveChange(int custMoney, int mode)
    {  hNickle   = nickles;
    hDime = dimes;
    hQuarter = quarters;
    hpDollar = dollarsP;
    hcDollar = dollarsC;
    amtToChange = custMoney / 100;
    for (int i=0; i<amtToChange; i++)
    {  // Give change in dollar coin if possible
    if (hcDollar > 0)
    {  hcDollar--;
    custMoney = custMoney - 100;
    // or else give change in paper dollar
    else
    {  if (hpDollar > 0)
    {  hpDollar--;
    custMoney = custMoney - 100;
    amtToChange = custMoney / 25;
    for (int i=0; i<amtToChange; i++)
    {  if (hQuarter > 0)
    {  hQuarter--;
    custMoney = custMoney - 25;
    amtToChange = custMoney / 10;
    for (int i=0; i<amtToChange; i++)
    {  if (hDime > 0)
    {  hDime--;
    custMoney = custMoney - 10;
    amtToChange = custMoney / 5;
    if (amtToChange > hNickle)
    {  mode = 9;
    for (int i=0; i<amtToChange; i++)
    {  hNickle--;
    custMoney = custMoney - 5;
    if (mode == 1)
    {  nickles   = hNickle;
    dimes = hDime;
    quarters = hQuarter;
    dollarsP = hpDollar;
    dollarsC = hcDollar;
    money = money - custMoney;
    if (mode == 9) custMoney = 9;
    return custMoney;
    } // =======>> END OF CASHIN CLASS
    // ** PRODUCT CLASS **
    class Product
    {  private String name;
    private String image;
    private String picUsed;
    private double price;
    private int onHand;
    private int sold;
    private int maint;
    public Product(String n, String i, double p, int o, int s, int m)
    {  name    = n;
    image = i;
    picUsed = i;
    price = p;
    onHand = o;
    sold = s;
    maint = m;
    // Reset picture used when product is out of stock.
    public void setOutOfStock()
    {  picUsed  = "OutStock.gif";
    // Get product information
    public String getName()
    {  return name;
    public String getImage()
    {  return image;
    public String getPic()
    {  return picUsed;
    public double getPrice()
    {  return price;
    public int getOnHand()
    {  return onHand;
    public int getQtySold()
    {  return sold;
    public int getMaintDate()
    {  return maint;
    // Sell one of the product.
    public void sellProduct()
    {  onHand--;
    sold++;
    // Set the product values.
    public void setName(String n)
    {  name = n;
    public void setImage(String i)
    {  image   = i;
    picUsed = i;
    public void setPrice(double p)
    {  price = p;
    public void setOnHand(int o)
    {  onHand = o;
    public void setQtySold(int s)
    {  sold = s;
    public void setMaintDate(int m)
    {  maint = m; }
    this is the text file
    p,Fritos,Images/FritoLay.gif,
    m,$.50,
    p,Dr. Pepper,Images/Dr.Pepper.gif,
    m,$.60,
    p,Pepsi,Images/Pepsi.gif,
    m,$.60,
    p,Coke,Images/CocaCola.gif,
    m,$.60,
    p,Seven-Up,Images/7-Up.gif,
    m,$.60,
    p,Sprite,Images/Sprite.gif,
    m,$.60,
    c,10,20,40,
    i know that the filereader is supposed to read the fields...i guess i just have a weak start on understanding and implementing arrays.

    I write this sample some time ago, you can use it to start a new project
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CVM extends JFrame 
         JTextField mw = new JTextField("0");     
         JTextField hf = new JTextField("0");     
         JTextField ds = new JTextField("0");     
         JTextField lr = new JTextField("0");     
         JTextField py = new JTextField("0");     
         JTextField tp = new JTextField("0");     
         JTextField ch = new JTextField("0");     
    public CVM()
         super("Chocolate Vending Machine");
         setBounds(0,0,500,400);
         addWindowListener(new WindowAdapter()
         {      public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         JPanel pan = new JPanel();
    //     pan.setLayout(new GridLayout(0,2,4,4));
         JPanel lp = new JPanel();
         lp.setBackground(Color.pink);
         lp.setLayout(new GridLayout(16,2,4,4));
         addButton(lp,"Milky Way    20$",mw);
         addButton(lp,"Hot Fudge    40$",hf);
         addButton(lp,"Dandy Shandy 50$",ds);
         addButton(lp,"Lovers Rock  80$",lr);
         addClearButton(lp);
         lp.add(new JLabel(""));
         lp.add(new JLabel(""));
         addPayButtons(lp);
         addMoneyBack(lp);
         pan.add(lp);
         setContentPane(pan);
         setVisible(true);
    private void addPayButtons(JPanel pan)
         JPanel lp = new JPanel();
         lp.setOpaque(false);
         lp.setLayout(new GridLayout(0,2,4,4));
         JButton b1 = new JButton("Pay 5");
         addPay(b1,5);
         b1.setMargin(new Insets(0,0,0,0));
         JButton b2 = new JButton("Pay 10");
         addPay(b2,10);
         b2.setMargin(new Insets(0,0,0,0));
         lp.add(b1);
         lp.add(b2);
         pan.add(lp);
         lp = new JPanel();
         lp.setOpaque(false);
         lp.setBackground(Color.cyan);
         lp.setLayout(new GridLayout(0,2,4,4));
         JButton b3 = new JButton("Pay 20");
         addPay(b3,20);
         b3.setMargin(new Insets(0,0,0,0));
         JButton b4 = new JButton("Pay 50");
         addPay(b4,50);
         b4.setMargin(new Insets(0,0,0,0));
         lp.add(b3);
         lp.add(b4);
         pan.add(lp);
         pan.add(new JLabel("    Payd"));
         pan.add(py);
    private void addPay(JButton bt, final int i)
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   int n = Integer.parseInt(py.getText())+i;
                   py.setText(""+n);
                   calculate();
    private void addButton(JPanel pan, String s, final JTextField jt)
         JButton    bt = new JButton(s);
         bt.setHorizontalAlignment(SwingConstants.LEFT);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   int i = Integer.parseInt(jt.getText())+1;
                   jt.setText(""+i);
                   calculate();
         jt.setHorizontalAlignment(SwingConstants.CENTER );
         jt.setEditable(false);
         jt.setBackground(Color.white);
         pan.add(jt);
    private void calculate()
         int nwi = Integer.parseInt(mw.getText()) * 20;       
         int hfi = Integer.parseInt(hf.getText()) * 40;  
         int dsi = Integer.parseInt(ds.getText()) * 50;  
         int lri = Integer.parseInt(lr.getText()) * 80;  
         int t   = nwi+hfi+dsi+lri;
         if (t >= 100) t = t - (t/10);
         tp.setText(""+t);
         int n = Integer.parseInt(py.getText());
         int c = n-t;
         ch.setText(""+c);
    private void addClearButton(JPanel pan)
         pan.add(new JLabel("    To pay"));
         pan.add(tp);     
         JButton    bt = new JButton("Clear");
         bt.setHorizontalAlignment(SwingConstants.CENTER);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   mw.setText("0");       
                   hf.setText("0");  
                   ds.setText("0");  
                   lr.setText("0");  
                   tp.setText("0");  
         pan.add(new JLabel(""));
    private void addMoneyBack(JPanel pan)
         JButton    bt = new JButton("Money back");
         bt.setHorizontalAlignment(SwingConstants.CENTER);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   py.setText("0");
                   ch.setText("0");
         pan.add(new JLabel(""));
         pan.add(new JLabel("    Change"));
         pan.add(ch);     
    public static void main( String[] args)
         new CVM();
    }Noah

  • No network when instantiating a template created with OVAB in Oracle VM 2.2

    Hi,
    I've created an OVM template with OVAB (Oracle Virtual Assembly Builder) and the default OVAB image. When creating a new VM (vm2) with it, the VM starts but the VM cannot access the world outside the bridge (xenbr0). I can however ping another VM (vm1) in the same bridge, I can also ping the main OVM server interface (dom0 xenbr0), but I can't ping a machine on my real network.
    What is strange is that vm1 was installed with PXE and is well accessing outside world. In fact the DHCP server on my real network is working well and is well configured for vm1 and vm2 but only vm1 obtains its IP address. For vm2 no answer from the DHCP server, so I have to manually set the IP address of eth0 of vm2 before performing ping tests. This is another fact that goes in the same direction as "outside network unreachable from vm2 diagnostic".
    Now I understand (correct me if I am wrong) that the bridge is configured automatically by OVM, so why is it ok for vm1 and not for vm2 whereas they are in the same bridge xenbr0 ? Also a strange thing (may be ?) is that the bridges configuration shows a tap interface configured for vm1 but not for vm2:
    'brctl show' output:
    bridge name     bridge id          STP enabled     interfaces
    xenbr0          8000.001e6837f20e     no          vif36.0
                                  vif35.0
                                       tap35.0
                                       eth0
    xenbr1          8000.001e6837f20f     no          eth1
    xenbr2          8000.001e6837f210     no          eth2
    xenbr3          8000.001e6837f211     no          eth3
    vm1 is 35 and has vif35.0 and tap35.0 but vm2 is 36 and has only vif36.0 : could it be the problem ?
    Also vm1 is using ioemu networking driver whereas vm2 is using netfront (which I can't change as I suppose OVAB was using a PV image).
    Thanks for any help/idea.
    Edited by: user13344422 on 14 avr. 2011 01:32

    Hi,
    I think more this is a networking issue inside the VM.
    It may well be the default Gateway is not set correctly.
    Compare the output (of the working VM and the not working VM) of:
    route
    cat /etc/resolv.conf
    cat /etc/sysconfig/network
    And the network adapters:
    cat /etc/sysconfig/network-scripts/ifcfg-eth1
    Regards
    Sebastian

  • Cli templates prime 2.1

    HI
    I was wondering. Is it possible to run a CLI template that does the following.
    1. Running the CDP neighbor command to find out who the neighbors are.
    2. And automaticly entering a description command on the interface with the hostname and IP that it has found with the cdp neighbor command.
    Im having a big network where i have description on the trunk ports who they are linked to. With device name and IP.
    But im running through my network now trying to get the hostnames a bit better and more aligned.. But everytime i change a hostname i has to follow up on all the trunk ports to make sure the descriptions there are correct as well. Would be really cool if a cli template could do that job for me.
    Thanks :)
    / Carsten

    Not an answer per se but what you're describing reminded me of Prescriptive Topology Manager. It's built into Cumulus Networks' product and based on some open source work.
    Ethan Banks also has a nice article on it at his blog.
    (And - no, doing what you ask is not a feature that's available as of PI 2.1.)

  • Loosing xslt with variable when save in Jdev

    I am using JDeveloper 10.3.3.0.4157. BPEL is deployed on SOA 10.1.3.3.
    As part of a BPEL process I have an xslt transform to populate my outgoing message with a generated guid.
    <xsl:variable name="messageIDVariable" select="orcl:generate-guid()"/>
    <corecom:EBMID>
    <xsl:value-of select="$messageIDVariable"/>
    </corecom:EBMID>
    If I change any part of the transform (like adding new mappings etc), then I save it. I get this error:
    (1):xpath-expression: Error: Variable or parameter "messageIDVariable" is not available for use
    Subsequently the xsl file is saved with my code referring to the variable removed.
    I have deployed this bpel process (with my variable code in it) and it executes successfully filling my output message with the generated guid. So why is Jdev unhappy with it? Is my XSLT incorrect? (I'm new to this stuff so that is very possible). What does "not available for use" mean? It is declared the line above where it is used.
    Go easy on me...like I said I'm new to this stuff.
    Thanks for any insight.

    thanx this is the solution. With this construct
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xalan/java" exclude-result-prefixes="java">
         <xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
         <xsl:template match="/">
         <xsl:variable name="counter" select="java:java.util.Vector.new()"/>
         <xsl:variable name="temp1" select="java:add($counter,'1')"/>
         <xsl:variable name="temp2" select="java:add($counter,'2')"/>
         <xsl:variable name="temp3" select="java:add($counter,'3')"/>
         <xsl:variable name="temp4" select="$temp3"/>
         <xsl:value-of select="java:size($counter)"/>
         <xsl:value-of select="java:toString($counter)"/>
         </xsl:template>
    </xsl:stylesheet>
    at least the '3' is added to the vector.

  • Creating custom UI panels : where to start ?

    Hi,
    i've had a  hard time searching for clear information on how to create custom panels in InDesign.
    Maybe the wrong keywords, i dont know, but here i am
    I would like to create a panel displaying all the "text variables" and their actual values and be able to edit them right there.
    I have no idea where to start, any primers ? Cues ? Ressources ?
    Many thanks for the help !
    Ugo

    Well i was actually asking myself the very question : do i really need a panel ?
    So far i found a script thhat pretty much does what i need :
    run the script opens a window
    When all the fields are populated, hit continue and the custom text variables are updated with the freshly entered information
    Now i need to tweak this code to suit my variables and find a way to "get" the current values instead of the defaults ones populating the form.
    So i guess i can always execute the script to update, correct and update the variable and anytime, saving me the trouble of going about creating a plugin (this scared me more that anything )
    I'll make sure it runs and see whats up. Any chance i can ask you later for support if i hit a rock?
    Again thanks for the kind help, i now have ressources and some vocabulary to find stuff!
    Ugo

Maybe you are looking for

  • ITunes 12.1.1 does NOT work with Windows - Fix??

    Hi everyone, I had issue after issue with the latest iTunes update (12.1.1) not working on my windows 7. It simply would not lunch when clicking on the shortcut to open. After a fair bit of searching I found this alternative version which seemed to d

  • JBO-26080: Error while selecting entity / ORA-00936: missing expression

    Dear All i have the below master VO based on EO , while trying to update any record in it and while commit , i'm getting the below error (ORA-00936: missing expression) however i don't have any missing exp in my ClaimsSubmissionsEO) ! Note : JDevelop

  • MIRO document number created

    All, I have a PR that was created in USD and adopted to a PO in EUR.  When I attempt to voucher an invoice against the PO in MIRO when I hit save no document number is created.  In MIRO the system is attempting to pay in EUR and have a green light fo

  • Exit button on ESS iViews

    Hi, We have ESS deployed on EP7.0, so we are using the WebDynpro version of ESS. Now we want to redirect the navigation to our own customized iView when click "Exit" button on any of the ESS iView, for example , address iView. I guess this should be

  • Saving Sequence and Effects Presets that go with the project itself

    Hi, please be gentle as I'm a newbie to the site. I have been asked to create several master Premiere Pro projects in CC (templates if you like) that will be being sent to quite a few ops worldwide, many of whom are completely new to the Adobe Platfo