Variant (utilité)

Je reviens avec une question qui me hante depuis bien longtemps.
Quelle est l'utilité du Variant ?  (non, ce n'est pas un troll)
Je programme en LV depuis 3 ans ... et je n'ai jamais utilisé un variant.
cela n'explique rien ... mais cela accentue mon interrogation
réponse que je lis un peu partout  :
c'est un "conteneur" dans lequel tu places ce que tu veux, indépendamment du type ... donc très pratique !
ouadji:
ok ... je place ce que je veux dans un variant.
Mais ... pour pouvoir "en sortie" exploiter la donnée placée dans ce variant, je dois en connaître le type (fonction variant to data)
Dès lors ... pourquoi ne pas "passer" directement le type dont question.
Pourquoi transiter par "une boîte noire" ... avec laquelle je dois de toute façon en "décoder" la sortie (variant to data).
Dans mon code, je ne pourrai jamais placer dans un même variant (par exemple contenu dans un cluster) ... une fois un U32 et une fois un String 
et plus loin dans mon code ... utiliser la sortie de ce variant (variant to data) ... une fois en lui cablant un type U32, et une autre fois en lui cablant un type String.
Donc ... quel est l'utilité de passer par un variant ... alors que le ou les types de données que l'on peut en extraire ... sont formatés en amont du code.
Je me doute qu'il me manque un maillon ... et que je passe à côté de l'essentiel,
si un d'entre vous peut "me débloquer" à ce sujet, je suis preneur.
Peut-être ceci pourrait-il m'aider :
un exemple de code (minimum, le plus simple possible) .... ou l'utilisation d'un variant est obligatoire / indispensable.
Un code minimum impossible à réaliser sans l'utilisation d'un variant.
merci à tous.
Résolu !
Accéder à la solution.

Je respecte totalement ta réponse TiTou ... tu vois "cela" sous un angle différent, tout simplement.
Il est vrai que personnellement, je développe uniquement pour mon propre plaisir
je peux donc me permettre le "luxe" d'être puriste ... et de me poser parfois des questions du type "électron libre"  
Si les variants te permettent de développer "plus vite" ... c'est une excellente raison de les utiliser (je te comprends à 100%)
Pour "le reste" .. je lance une petite "provocation sympathique" à tous 
à celui qui me montrera un bout de code qu'il est impossible de réaliser autrement qu'en utilisant un variant.
Ce jour là ... je le jure ... je change d'avis à propos des variants   
merci à toi TiTou.

Similar Messages

  • Utilizing item category ALEN - Creation of PO is not auto generated

    All,
    I am utilizing item category ALEN during my sales order creation process.  ALEN is set up with "create purchase order automatically" flag.  I am utilzing schedule line CB and I have maintained the order type NB, item category is 0 and acct. assign category is M.  When I save the sales order, the purchase requisition is being created, but no purchase order.  In fact, it doesn't seem to be even pulling against the data maintained in OVX5 (See below).  I have read OSS note 332475 and I have followed those instructions, but my PO is not being generated.
    One other question - when the ALE data is input for the sales organization (t-code OVX5), what have others input when the vendor, purchasing org and plant can vary (meaning, at times we transfer from plant A to plant B; then for the same sales organization, we transfer from plant B to plant A.  Maintaining just one vendor against the same sales organization does not make sense to me as it will change depending upon the sourcing and receiving plants for the same sales org.
    I have performed a search in OSS on Third Party Order Processing when it relates to individual purchase orders and how to properly configure when using ALEN and TAB - very little information to be found.  I can find a great deal of information on third party processing when it relates to the utilization of TAS and ALES item category.
    Any insights or areas to check would be very greatful. 
    Regards,
    Sandy

    All,
    This issue has been resolved internally.  I had to set the CB schedule line to using "7" stock transfer item category .. then apply a note to address an error message (note 883133).
    Regards,
    Sandy

  • I recently (Jan 2012) acquired a MacBook Pro (MBP) running 10.7.4 and an AirPort Express.  I also have an old PPC G4 tower (Digital Audio model) running 10.4.11.  The OS software on both machines is totally up to date.  AirPort Utility on the G4 is 5.4.2

    I recently (Jan 2012) acquired a MacBook Pro (MBP) running 10.7.4 and an AirPort Express.  I also have an old PPC G4 tower (Digital Audio model) running 10.4.11.  The OS software on both machines is totally up to date.  AirPort Utility on the G4 is 5.4.2 and on 6.0 on the MBP.  I bought a used AirPort card for the G4, I believe it is 802.11b compatible, and the wireless data rate is specified at 11 Mbps.  Being a newbie to wireless, it took me many days to get these two machines to link up.  This network is not connected to the internet, and there no other networks in the vicinity.
    My last problem to solve is the very slow file transfer speeds between the two machines. The transfer time seems to vary depending on which machine I use to initiate the transfer, and which direction the transfer is going.  For example: If I initiate the transfer from the G4 and send a 5.4MB file to the MBP it takes 1:32 (min:sec), while the same file going from the MBP to the G4 takes 27 seconds.  On the other hand if the transfer is initiated on the MBP, going from the MBP to the G4 takes 2:56, while going from the G4 to the MBP takes 1:59.  I realize that these times are not actual wireless transfer times but includes the entire transfer process.
    Both machines and the AirPort Express are within a 4-foot radius.  Both machines are set to radio channel 2.  The AirPort Express is set for 802.11n(802.11b/g compatible) with WPA/WPA2 Personal wireless security.
    Any help would be appreciated.
    CEU2

    BDAqua,
    Thanks for the response.
    Apple has used the term "Digital Audio" to identify this machine.  System Profiler has the following information:
    Machine Name:          Power Mac G4
      Machine Model:          PowerMac3,5
      CPU Type:          PowerPC G4  (2.1)
      Number Of CPUs:          1
      CPU Speed:          800 MHz
      L2 Cache (per CPU):          256 KB
      Memory:          768 MB
      Bus Speed:          133 MHz
      Boot ROM Version:          4.3.3f2
      Serial Number:          XBxxxxxMK9
      Sales Order Number:
    Yes, I could connect them by ethernet if all I wanted to do was transfer files, but I would like to network them so I could use wireless internet.  The machines are not always so close together, I did that to simplify the testing.  With the very slow transfer speeds I am reluctant to move ahead with the internet step. 
    <Edited By Host>

  • HP Photosmart 5510- Unable to Communicate with Printer Utility Check not working!!!!! HELP

    I work with Windows 7 the error message I am getting is Unable to Communicate with Printer. I have never had a problem with a printer. First night worked amazing, All software is downloaded on the computer but then  went to go print to day it didnt work. REBOOTED EVERYTHING, wireless router, computer and printer. Then ReConnected the printer to the router through what the Manuel says. FINALLY starts printing, waited about 30-45mins went to go print again and of course it didnt work.
    I have attempted to do the Utility Check- States I am connected online both computer and printer to the router. From what I gather there is an issue with the printer- computer connection. I bought this specific Printer because it was wireless and highly recommended because HP brand, now I am wondering if this was a big mistake.
    This question was solved.
    View Solution.

    Hi again;
    Wish you are doing well despite this issue 
    Ok here is a page in the Cisco website with documentation in regards your Router check in here how to verify what is the current version of router's firmware. if needed you can find the latest version of here as well.
    In how to get to the routers EWS to do this follow this steps;
    To reveal Relevant TCP/IP settings include in windows this settings
    •IP address
    •subnet (subnet-mask)
    •gateway address (also the router's or AP's IP address, which is useful for opening the router's web page
    or Embedded Web Server (EWS) page.
    Important communication test! Once you have obtained the gateway address, type this address into your Web browsers URL field to open your router's EWS,  e.g., 192.168.0.1*. * This value will vary by router manufacturer.
    Checking TCP/IP settings in most Microsoft operating systems
    Step Action
      1 Click on Start (Window button on your keyboard).
      2 Type CMD (do not hit enter select from the menu with right click and select from the sub menu select run as  
         Administrator).  
      3 At the prompt, type ipconfig or "ipconfig" or "ipconfig /all" with out the quotes. 
      4 Press ENTER on the keyboard, and note the values of the settings mentioned above.
    Hope it helps and best of luck;
    RobertoR 
    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • I have run disk utility- the drive is corrupted- I get the error message restart your computer holing down the Cmd

    I have now tried every variant of key compbinations but I still get the grey lock icon with a box which won't accept my password.
    When re-running disc utility all I get is the same error message

    I ran the Disk Utility and got a message that it can't repair the disk. This happened after I did a restart Command and R. After trying the repair cycle I got a message "Disk Utility can't repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed - up files" I found myself stuck because I couldn't shut down the Disk Utility. Out of frustration and patience I turned the I-Mac off by pressing the start key, thinking it would restart my computer. I feel like a fool now! I started the computer up and all I got was a grey screen with a flashing file with a question mark inside the file icon which is blinking off and on. I tried attaching my Seagate hard drive with no luck. What can I do? Thank You!

  • IMac internal optical drive reads and plays cd's but DVD's spin for a few moments then eject. Then any drive utility access results in the spinning wheel of doom. Then the optical drive doesn't show up anywhere until a restart. OSX 10.6.8 - Intel Core 2

    iMac internal drive locks up after trying to play a DVD. CD's work properly. All preference settings are correct. I have tried several different DVD's that work in other drives. Drive is : HL-DT-ST DVDRW GA11N. After spinning wheel of doom goes away, so does the optical drive in Disk Utility and System Profiler and no disks work because the drive isn't there until a restsrt. Any ideas? Thanks.

    The battery alone is a $5 to $15 part.  Hard drives vary in cost, and depending on the iMac, they may or may not be able to install a third party hard drive, or one resold through Apple.    The resold through Apple drives tend to cost more.  This article discusses the varying successes of third party drives on iMacs:
    http://blog.macsales.com/10146-apple-further-restricts-upgrade-options-on-new-im acs 
    The labor costs depend on the store as well as the time to get the parts in stock.    Call around.

  • Can't restore from Disk Utility while booted from OS installation DVD

    I'm absolutely astounded by this.
    I have a new MacBook Pro 17". I restored my files to it and in short order, had it too full/fragmented to re-partition it for Boot Camp.
    So I decided to image the disk and store that image file on a FireWire drive, wipe the system disk and restore it cleanly from the image file backup, hoping that would result in contiguous blocks used so that I could then re-partition for Boot Camp.
    When booted off the OS X for Intel DVD-ROM disc (10.4.6 - the one that came with my MacBook Pro), if I get out of Installer and into Disk Utility, if I select the internal hard drive and click the Restore tab, I can easily select the hard drive backup image with the button. But the "Destination Disk:" box is only accessible via dragging the disk to the box.
    There's one little problem - there is no Desktop, so the disk(s) do not appear on the Desktop. There is no way to drag the target disk to be restored to into the Destination Disk: box. You cannot drag a disk out from the little sidebar inside the Disk Utility window over to the Destination box. I tried. You can't drag any disk anywhere from that sidebar. It's clear that the only way to drag a disk anywhere is if it's shown on the Desktop in Finder (which isn't running when the installation DVD-ROM is booted from). There is simply no way that I can find to restore a disk drive from a saved backup disk image when booted from the installation DVD-ROM.
    Please tell me I'm ******** and missing something, or if there's a Better Way to do this. (I can't seem to run Retrospect while booted off the DVD-ROM, so I can't restore from my Retrospect full backup of the disk, either. Joy!)
    (I'm really curious if there's a Better Way - especially because it appears I can't boot from an external FireWire or USB 2.0 drive, so I need something that will work in this extremely limited installation DVD-ROM booted environment, I think.)
    MacBook Pro 17" dual 2.16 GHz ;   Mac OS X (10.4.6)   Booted from Mac OS X for Intel 10.4.6 installation DVD-ROM

    You can use an external bootable drive with a MacBook Pro -- check your manual or the built in help. Your problem is that for some reason, you can't install a bootable system on one. There are several reasons why Installer won't enable you to do so: insufficient space, incompatible partition scheme (should be GUID) or file system (should be HFS+ or similar), or wrong installation option selected.
    It is possible this is related to why you can't drag the startup volume to the destination box in Disk Utility. It must be an HFS+ variant file system.
    I think you should check carefully with D.U. the partition scheme of all your drives & the file system format of all the volumes involved. Also run repair disk, as someone has already pointed out.
    The behavior with the Restore function is not normal -- you should be able to drag a volume to the destination box from the list.

  • I have a Power PC G4 which is running on OSX 10.5.8, it has the AirPort utility but cannot connect to the internet as my iMac can, I think I might need an AirPort Card? Is that the case or do I need something different to connect to a wireless modem?

    I have a Power PC G4 which is running on OSX 10.5.8, it has the AirPort utility but cannot connect to the internet as my iMac can, I think I might need an AirPort Card? Is that the case or do I need something different to connect to a wireless modem?

    Welcome!
    Only one variant of the PowerMac G4 could use the faster Airport Extreme Card. The rest used the original Airport card that is pretty slow.
    To get fast wireless without buying more than one thing, consider this:
    http://eshop.macsales.com/item/Edimax/EW7722IN/
    It goes in an available PCI slot
    There are USB solutions also. However, all PowerMac G4 towers had only slower USB 1.1 ports, so any USB wireless adaptor can only run at about wireless 'B" speeds (slow) unless you also install a PCI USB 2.0 adaptor card. Doing that would allow a USB wireless adaptor to run at its maximum rated speed. These items working together would accomplish that:
    USB wireless "dongle:"
    Newer Technology MAXPower 802.11n/g/b USB Adapter + Plug and play direct or with extension cradle
    USB PCI adaptor:
    http://eshop.macsales.com/Search/Search.cfm?Ntk=Primary&Ns=P_Popularity%7c1&Ne=5 000&N=7069&Ntt=USB+PCI
    Each approach has its advantages. The PCI wireless card is a one-piece solution that takes up no desk space. The USB2 card+USB2 Dongle gives you more fast ports for transferring date from other external USB devices (primarily cameras and external hard drives) at hugely faster rates than can the original ports. I have a USB 2 PCI card in my G4 tower strictly for transferring images from my digital SLR camera in a timely manner.

  • Disk Utility won't allow me to restore from image

    I've been keeping pretty good backups for a while now and I have started using SuperDuper to keep whole DMGs as well as using Time Machine. Today I planned on restoring from an image I had made. However, when I go to use the Restore function in Disk Utility, it lets me choose the disk image but will not let me drag the volume on the destination field.
    I've been having startup problems all day and I eventually got a 9972 error in Disk Utility.
    I'm having trouble finding my install disks and this is my only real option for today. I can't find much about this on Google either.

    There's no point in using a disc image for a backup. Better to simply clone to a backup drive then maintain the clone with incremental updates. Use a normal backup utility such as Carbon Copy Cloner or Super Duper.
    As for the 9972 error you will find it's a really difficult error to correct. See the following:
    How to Deal with a -9972 Error
    Contributed by Fumiaki Kawashima
    The error message, "Error: The underlying task reported failure on exit (-9972)" is a serious filesystem error in the Mac OS X Core Foundation. The problem can also lead to other critical errors such as "Keys Out of Order," "Invalid node structure" and/or "Invalid sibling link." The causes and scenarios vary. Troubleshooting a solution may depend upon computer configuration and whether the -9972 error is accompanied by other critical errors. This issue can also lead up to a kernel panic. If the error occurs when an external FireWire device is connected, disconnect it until you verify the device's compatibility.
    Symptoms:
    In most cases, you are unable to restart from Mac OS X.
    * A volume is grayed out or not mounted with or without a kernel panic.
    * A folder with a flashing question mark may appear.
    * A bad partition map may be reported.
    * A target disk mode solution may not work.
    * Most likely, Disk Utility, Norton Utilities, TechTool and DiskWarrior cannot fix the issues.
    * The high level disk format (Standard format) may unable to perform.
    * You may unable to re-initialize the hard drive.
    * A disk physically malfunctions in the worst case.
    Example of an accompanied error message:
    DiskWarrior normally fixes 1 to 6, but cannot fix errors 7 to 10 if the symptoms are very bad. There is no definite case.
    01. Volume check failed
    02. Invalid B-tree Header
    03. Invalid map node
    04. Invalid extents entry
    05. Invalid clump size
    06. Incorrect block count file
    07. Invalid node structure
    08. Overlapped extent allocation
    09. Keys Out of Order
    10. Invalid sibling link
    Related documents:
    What to Do When It Finds an Error
    Technical overview of disk volume structures
    Possible causes:
    * Third-party FireWire device or enclosure, or other peripheral devices.
    * Third-party mass storage drives or PCI card issues.
    * Incompatible third-party kernel extensions.
    * Mac OS X installer disc is improperly treated.
    Solutions:
    If possible and needed, back up data before troubleshooting. Methods (4) and (5) are for Power Mac desktop computers other than G5 models. The best bet is method (4) if you encounter multiple bad errors.
    1. Unplug the power cord. Disconnect all third-party hardware except Apple keyboard and mouse before you start.
    2. Do NOT re-install any third-party software/hardware until you completely solve the issue(s) and carefully investigate the compatibility with Mac OS X 10.3.x you install.
    3. If another critical error "Invalid sibling link" is detected at any phases, disconnect and reconnect all internal power cords and data cables for hard drives and any ATAPI device. To do so, you may need to read the computer's CIP Instructions in advance. Normally, you do not need to remove third-party RAMs.
    Method 1:
    (1) Start up from Mac OS X 10.3.x Panther Full Install CD or DVD.
    (2) Re-initialize and re-partition the hard drive. RECOMMENDATION: Select "Zero all data" option if "Invalid node structure" or "Keys Out of Order" error is detected.
    If this method is of avail, go to Method 2 or greater.
    Method 2:
    (1) Start up in Mac OS 9.2.2 and shut down the computer.
    (2) Start up from a copy of a Disk Warrior bootable CD for Mac OS 9.2.2.
    (3) Run DW to fix the damage(s).
    Method 3:
    (1) Unplug the computer.
    (2) Find a second ATA drive and jumper it as MASTER. Jumper the hard drive in question as SLAVE. Verify the jumper pin settings.
    (3) Install Mac OS 9.2.x system on the MASTER drive, and update it to Mac OS 9.2.2.
    (4) Start up from Mac OS 9.2.2. Re-initialize and re-partition the damaged hard drive with Drive Setup using the "Zero all data" option. Unplug the computer and reconfigure the jumper pin setting on the repaired drive for MASTER and the second drive for SLAVE.
    (5) Restart from Mac OS X 10.3 Panther full install CD. Re-initialize and re-partition the repaired drive to install Mac OS X 10.3. Update to Mac OS X 10.3.7 via Software Update. Repair the disk permissions after each Mac OS X 10.3 installation and Mac OS X 10.3.7 update.
    You may want to try starting up from Mac OS 9.2.x Full Install CD instead of from (2) to (4).
    Method 4:
    (1) Find a desktop computer that has an ATA controller PCI card (SCSI environment) and has two hard drive bays. This will make your damaged drive appear as a quasi-SCSI hard drive. Mac OS 9.2.2 must be pre-installed on the computer. I recommend a host computer that installs an Ultra DMA/xxx or xxx (ATA-x) interface equal to or better than the damaged drive with backwards compatible.
    (2) Set the host computer's primary drive as MASTER and your damaged hard drive as SLAVE and install the damaged drive in the second drive bay of the host computer. Verify properly configured jumper pin settings in advance.
    (3) Start up the host computer from Mac OS 9.2.2. Launch the "Drive Setup" utility. Re-initialize the damaged disk on the second drive using the "Low level format" option. It may take hours but less than "Zero all data" option. Note: Normally, a low level format with a quasi-SCSI drive takes much less (30 - 40%) time than an ATA configuration drive. Note that "Low level format" fixes all difficult logical damage.
    (4) Put the fixed disk back in your computer's drive bay. Re-configure the jumper pin setting to MASTER before you place it into the drive bay of your computer.
    (5) Restart from Mac OS X 10.3 Panther full install CD. Re-initialize and re-partition it to install Mac OS X 10.3. Update to Mac OS X 10.3.7 via Software Update. Repair the disk permissions after each Mac OS X 10.3 installation and Mac OS X 10.3.7 update.
    Note that Panther's Disk Utility does not implement a "Low level format" option.
    Method 5:
    If Method 4 does not work or fix the damaged drive, let me know. You may need an advanced technique to fix it if the drive is physically not a problem.
    OPTION:
    Purchase a known good hard drive that conforms to your computer's ATA specification. Fix the damaged hard drive some other time. Nowadays, prices of hard drives are inexpensive.
    Mac Pro 2.66 Ghz; MacBook Pro C2D 2.33 Ghz; MacBook Pro 2.16 Ghz   Mac OS X (10.4.8)   Intel iMac C2D 17 "; iBook G3 800 Mhz; 30 GB iPod Video (Black); iPod Nano 2 GB

  • Use of Different Fiscal Year Variant-Statistical Depreciation Area Postings

    An existing Company Code in SAP is going to have Fixed Assets implemented.  This Company Code is setup just like the others in our SAP instance: Same Chart of Accounts, Same Fiscal Year Variant, Fixed Asset procedures, etc.  For purposes of this question our company's Fiscal Year is from August 1st to July 31st.  In addition, this Company Code will post Fixed Assets just like the other SAP enabled Company Codes into Book Depreciation Area 01.  The company I work with is on ECC 6 but we use the Classic Ledger for Financials, and the Special Ledger is posted to but not really utilized.
    For the Country Specific/Tax Reporting purposes within Fixed Asset Accounting we have created a Statistical Depreciation Area 03 (I will call it Tax) with its own Life and Depreciation Key assignments with a setting of 0 in OADB-No Posting in GL for this Fixed Asset go-live, so I think we are set there.  The tricky part comes in the reporting.  The country in question requires information to be generated on a Calendar Year basis, which is obviously different than the Fiscal Year outlined above.  To my knowledge we would have to assign Tax Depreciation Area 03 to the Calendar Fiscal Year Variant: Financial Accounting>>Asset Accounting>>Valuation>>Fiscal Year>>Fiscal Year Variants>>Specify Other Versions on Depreciation Area Level. 
    The other piece of this is to get the Fixed Asset Reporting for Tax Depreciation Area 03 to work on a Calendar Year basis for the Company Code in question.  When I did some research I stumbled upon the link below.  In summary it says that you have to manipulate the standard Fixed Assets reports in Excel for Asset Acquisitions and Depreciation, and setup a new Retirement routine/transaction for posting into the Special Depreciation Area.
    http://help.sap.com/saphelp_46c/helpdata/en/05/bc0bf3d8f811d1953e0000e82debf7/content.htm
    My questions are:
    1) Besides assigning a different Fiscal Year Variant for Tax Depreciation Area 03, is there anything else I need to worry about on the setup end?
    2) Is the article I posted accurate when it comes to how the reporting works and the need for setting up a Calendar Year specific Asset Retirement Routine?  If so, what are the configuration steps for setting up a Calendar Year specific Asset Retirement Routine?
    3) Is there anything else that I need to consider for enabling Fixed Assets at an existing Company Code with different Reporting requirements for Book/Tax purposes?
    Thanks in advance for all responses.  I am willing to answer any other questions on this subject if needed.
    Roman

    Hello Rio.  In our scenario, we still had to load assets in the legal entity with this issue.  When we loaded the fixed asset data into SAP we did with data accurate as of December 31, 2011; which for book purposes is 5 months into our company's fiscal year, and for tax purposes is the end of the 2011 calendar year.  The calendarized reporting for the tax depreciation will need to be pieced together manually using the SAP recommended methodology of combining report values, which I have pasted below.
    Since this is the only SAP-enabled entity that has this scenario right now we are in wait and see mode to see if this sufficient.  In the end the SAP path for Dual Calendar was too much of a risk.
    I hope this helps.
    Roman
    Asset Acquisitions 
    Run the acquisitions list. Report date: 7/31/2012. Posting Date: 1/1/2012 to 7/31/2012. Export the report to MS Excel.
    Run the acquisitions list. Report date: 7/31/2013. Posting Date: 8/1/2012 to 12/31/2012. Export the report to MS Excel.
    Add the values of both reports together, using MS Excel.
    Asset Retirements
    Run the retirements list. Report date: 7/31/2012. Posting Date: 1/1/2012 to 7/31/2012. Export the report to MS Excel.
    Run the retirements list. Report date: 7/31/2013. Posting Date: 8/1/2012 to 12/31/2012. Export the report to MS Excel.
    Add the values of both reports together, using MS Excel.
    Depreciation
    Run the depreciation list. Report date: 7/31/2012. Export the report to MS Excel.
    Run the depreciation list. Report date: 12/31/2011. Export the report to MS Excel.
    Run the depreciation list. Report date: 12/31/2012. Export the report to MS Excel.
    Using MS Excel functions, subtract the second report from the first, and then add the third report (I - II + III).

  • No history in Disk Utility

    Hello. 
    My disk utility is not showing any history or notes of any kind when I try and repair or verify permissions.  This is a new devlopment, I used to get a lot of notes about issues being fixed or being unfixable.  My computer is also running slowly - particularly firefox and mail.  No other issues to note.  I have a MacBook Pro running on 10.5.8
    I am wondering what course of action is best to take next.  I could buy a copy of disk warrior.
    I could also upgrade to Snow Leopard. 
    Do you think the latter would help or compound the problem?
    Thank you
    Michael

    DiskWarrior won't help too much.
    You haven't upgraded your operating system to 10.6, so that suggests your just a regular computer user like most people and expect your machine to just work.
    Well hate to shock you but Apple has left you out in the cold since July 2011 for any security and stability updates, and with the flashback malware floating around and a older 10.5 era machine, your problems could varied.
    Apple only supports the last two OS versions in circulation.
    Flashback checker and removal tool, that may work good enough.
    https://www.securelist.com/en/blog/208193454/Flashfake_Removal_Tool_and_online_c hecking_site
    Harden your Mac
    https://discussions.apple.com/docs/DOC-3291
    You can follow along some of the Mac fix it techniques in this area, but it's for 10.6+
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents
    Far as upgrading your machine
    In your case a backup of user files off the machine, a Zero erase of the entire drive from the 10.5 disk, a fresh install of eveything (first 10.5, then 10.6) with a drive check is in order to see if it's failing, then upgrade to 10.6.8 is likely the best you can do. This could run about $29 (for the 10.6.3 retail disk online at Apple) if you do the work yourself, or have someone do it that labor charge.
    More money
    If the Mac is very well taken care of, the drive is replaced, insides cleaned out of dust, 4GB of RAM, new battery/magsafe, then perhaps it can be upgraded to 10.7 (if it qualifies) if one is willing to buy all newer versions of compatible software and perhaps even third party hardware. This could cost you hundreds of dollars, I would only do this if the machine was barely used at all and off nearly most of the time you owned it.
    Perhaps a new machine
    You may decide it's not worth it and wait to invest in a new 10.8 machine to be issued this summer which Apple will take care of you for free for 3 months, 3 years with AppleCare.
    Keep in mind, 10.8 is going to be released apx 1 year after 10.7, 10.6 issued machines were released as late as Early July 2011.
    Once 10.8 is rolled out this summer, 10.6 users may be left in the cold and only 10.7 and 10.8 users supported.
    If Apple releases another OS X version next summer, that means only 10.9 and 10.8 users will be supported.
    When a new OS X version is released, it almost always breaks a good portion of one's third party software and hardware drivers for external devices.

  • Is this a new variant of the 'grey screen, won't boot' problem?

    Hello all.  My second hand Powerbook G4 starts, the bitten apple comes up, then there is no further boot up action.  The situation leading to this was as follows;
    - firstly, starting but going to a blank/grey screen and staying there.  The new variant alluded to, which I have not been able to find referred to, was that at this stage, one could for a while, actually type letters (coming out in white).  After a while this stops.
    - researching this problem here I followed the advice in the Grey Screen article - http://support.apple.com/kb/TS2570
    one on resetting the PMU - http://support.apple.com/kb/HT1431#faq11
    and on using Target Disk Mode - http://support.apple.com/kb/HT1661
    None of this helped in the slightest with these symptons. 
    Because I was away on holiday at the time I did not have access to system disks, or actually using Target Disk Mode.  On returning I used TDM to successfully connect to the PB, and it became evident that there is a drive problem.  I had taken quite a few edited videos with me and it was possible to copy some off, but not others.  Data that refused to copy always led to having to restart the machine because the 'copy' mode would refuse to cancel.  I also reinstalled the OS, and using another PB used TDM to allow Diskwarrior and Disk Utility to work on the poorly machine.  Both were able to do some work, but not complete all their tasks.  The SMART, so called, diagnostics always came up fine.
    Now if I turn it on the grey screen stage is not reached, the apple symbol comes up and stays there, with no spinning wheels.
    So, is there anything else I can do?
    Is the grey screen with some typing possible relevant or interesting in any way?
    Thanks!
    Stephen

    Hello,
    It's possible to have two Mac OS X's installed on one drive.
    Have you tried this:
    Restart whilst holding down Command-S
    The screen should turn black and load some text
    At the prompt type
    fsck -fy and press Return
    Hopefully some repairs will be performed.
    At the prompt type
    reboot and press Return
    If that doesn't provide any help then try starting in safe  mode.
    http://support.apple.com/kb/HT1455
    Once in safe mode, you can set the startup disk and reboot.
    If that don't help, then all I can suggest is a clean install of the OS.
    Using a Mac OS X install disk either retail or for a PowerBook G4, boot and upon selecting the destination drive, select option, then erase and reinstall.
    A fresh install should resolve this problem as a last resort.
    Best of luck, let us know how you get on.

  • Java.util.Locale not thread-safe !

    In multithreading programming, we know that double-checking idiom is broken. But lots of code, even in sun java core libraries, are written using this idiom, like the class "java.util.Locale".
    I have submitted this bug report just now,
    but I wanted to have your opinion about this.
    Don't you think a complete review of the source code of the core libraries is necessary ?
    java.util.Locale seems not to be thread safe, as I look at the source code.
    The static method getDefault() is not synchronized.
    The code is as follows:
    public static Locale getDefault() {
    // do not synchronize this method - see 4071298
    // it's OK if more than one default locale happens to be created
    if (defaultLocale == null) {
    // ... do something ...
    defaultLocale = new Locale(language, country, variant);
    return defaultLocale;
    This method seems to have been synchronized in the past, but the bug report 4071298 removed the "synchronized" modifier.
    The problem is that for multiprocessor machines, each processor having its own cache, the data in these caches are never synchronized with the main memory.
    The lack of a memory barrier, that is provided normally by the "synchronized" modifier, can make a thread read an incompletely initialized Locale instance referenced by the static private variable "defaultlocale".
    This problem is well explained in http://www.javaworld.com/javaworld/jw-02-2001/jw-0209-double.html and other documents about multithreading.
    I think this method must just be synchronized again.

    Shankar, I understand that this is something books and articles about multithreading don't talk much about, because for marketing reasons, multithreading is supposed to be very simple.
    It absolutely not the case.
    Multithreading IS a most difficult topic.
    First, you must be aware that each processor has its own high-speed cache memory, much faster than the main memory.
    This cache is made of a mixture of registers and L1/L2/L3 caches.
    Suppose we have a program with a shared variable "public static int a = 0;".
    On a multiprocessor system, suppose that a thread TA running on processor P1 assign a value to this variable "a=33;".
    The write is done to the cache of P1, but not in the main memory.
    Now, a second thread TB running on processor P2 reads this variable with "System.out.prinln(a);".
    The value of "a" is retrieved from main memory, and is 0 !
    The value 33 is in the cache of P1, not in main memory where its value is still 0, because the cache of P1 has not been flushed.
    When you are using BufferedOutputStream, you use the "flush()" method to flush the buffer, and the "synch()" method to commit data to disk.
    With memory, it is the same thing.
    The java "synchronized" keyword is not only a streetlight to regulate traffic, it is also a "memory barrier".
    The opening brace "{" of a synchronized block writes the data of the processor cache into the main memory.
    Then, the cache is emptied, so that stale values of other data don't remain here.
    Inside the "synchronized" block, the thread must thus retrieve fresh values from main memory.
    At the closing brace "}", data in the processor cache is written to main memory.
    The word "synchronized" has the same meaning as the "sync()" method of FileDescriptor class, which writes data physically to disk.
    You see, it is really a cache communication problem, and the synchronized blocks allows us to devise a kind of data transfer protocol between main memory and the multiple processor local caches.
    The hardware does not do this memory reconciliation for you. You must do it yourself using "synchronized" block.
    Besides, inside a synchronized block, the processor ( or compiler ) feels free to write data in any order it feels most appropriate.
    It can thus reorder assignments and instruction.
    It is like the elevator algorithm used when you store data into a hard disk.
    Writes are reordered so that they can be retrieved more efficiently by one sweep or the magnetic head.
    This reordering, as well as the arbitrary moment the processor decides to reconciliate parts of its cache to main memory ( if you don't use synchronized ) are the source of the problem.
    A thread TB on processor P2 can retrieve a non-null pointer, and retrieve this object from main memory, where it is not yet initialized.
    It has been initialized in the cache of P1 by TA, though, but TB doen't see it.
    To summarize, use "synchronized" every time you access to shared variables.
    There is no other way to be safe.
    You get the problem, now ?
    ( Note that this problem has strictly nothing to do with the atomicity issue, but most people tend to mix the two topics...
    Besides, as each access to a shared variable must be done inside a synchronized block, the issue of atomicity is not important at all.
    Why would you care about atomicity if you can get a stale value ?
    The only case where atomicity is important is when multiple threads access a single shared variable not in synchronized block. In this case, the variable must be declared volatile, which in theory synchronizes main and cache memory, and make even long and double atomic, but as it is broken in lots of implementation, ... )

  • Table for Variants

    Hi,
    In our project, SAP User ids are being revamped and the user ids after the revamp will have a different nomenclature.
    Say for eg, today a user id is TKUABC, after the revamp it will be something else. Because of this there is an impact on batch jobs, reports, etc, where the user ids are hard coded in reports or variants. For eg we have reports with variants which give all sales orders created by certain user ids. For these reports we have the user ids maintained in the variant. Such jobs and reports will get impacted  if the user ids follow a new nomenclature and the variants in these programs will not fetch the correct data.
    My question is, is there any way (a table or view or a FM) to see all the variants in the system with the values in those variants and where they are used, so that we know that these variants will have to be modified.
    Thanks in advance.
    Mick

    Mick,
    You may need to some small utility for doing this.
    I find simple coding for mass change of variants
    Mass Change

  • Variant of expect command having similar functionality in Solaris OS??

    Hi All,
    I am using one shell script in Linux with “expect 5.38” command utility, this script contain ssh and sftp. Now same shell script I need to use in Solaris (SunOS eupr0016 5.9 Generic_118558-05 sun4u sparc SUNW,Sun-Fire-V440) but issue is that the Solaris OS doesn’t have expect utility.
    Please let me know, is there any other variant of expect command/utility having similar functionality to use on Solaris OS.
    Thanks
    Jiten Mistry

    JitenMistry wrote:
    But we have Solaris 5.9 OS installed5.9 and 9 are the same version of solaris (actually I think it is SunOS 5.9 and Solaris 9, but whatever). So my advice is to install the package SFWexpct that should be on the companion CD.

Maybe you are looking for

  • Image Processor from Bridge CS5

    Lately, I have been getting this error message when trying to access the Image Processor (PS CS5)from Bridge CS5: "Sorry something major happened and I can't continue". I called Adobe support and was told that it might be related to third party plugi

  • Problem using WEBUTIL_FILE_TRANSFER

    I am using WEBUTIL_FILE_TRANSFER to load documents into a table and then open them for editing. I have followed the general form of the demos in WEBUTIL_DOC.fmb. I can transfer a document to the database and save it. I transfer the document back to t

  • Burns sound from other users project

    I made an iDVD ad burned several copies fine My wife made a slideshow and burned and iDVD under her user name I went back later to make more copies of my iDVD on my user login, when I preview they look and sound find When I burn the DVD created has t

  • How can I get Firefox to open htm files?

    I have Firefox 3.6.13, and Windows XP. I can't open htm files. I went online, and followed all the directions for Changing the Default Program for a Specific File Extension in Windows XP, and see that Firefox is listed as the program that should open

  • Mapping from GL to AP in 11.0.3

    Is there any way to map GL to AP other than through AP_AE_LINES_ALL? Information on this will be helpful. Thanks in advance.