How do I choose an image when creating or updating a Contact?

Hey All,
I just upgraded to Mountain Lion and I'm converting all of my contacts (from various accounts) to use the iCloud service, and all is going very well except for one small thing.  When I either update or create a new contact via the Contacts application, I cannot choose a custom image to associate with a contact.  The application only allows me to choose from a list of "Defaults", "Recently Used" or allows me to take a picture from my computer's camera.  It seems odd that I can't simply select any image from my hard drive (or from iPhoto), but maybe I haven't set something up correctly.
The web interface for iCloud allows me to select a custom image from my hard drive so I have a work around, but its a bit clunky to do a lot of them.
Anyone else having this problem?
Thanks!!!

When you're in the contact photo edit screen, in the bottom right there is another edit button, click that and drag and drop the desired image in there, scale it as desired, save.

Similar Messages

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • How to inactive checking available budget when creating reservation

    Dear SAP Guru,
    Need your advice in how to inactive checking available budget when creating reservation under Project system and Investment management module
    Many thanks in advance.
    Nies

    ok

  • How to install certifcate to tmg when create web listener

    how to install certifcate to tmg when create web listener

    Short comment that may help, if you've added the cert while the TMG MMC is open you need to refresh the MMC on the node second to the top (right-click on server/array name and select refresh) or simply restart the MMC.
    Then create the web listener as desired.
    As always you need a cert with the EKU of server authentication (regular web server cert will do) with the corresponding private key and the cert needs to be trusted on the computer where TMG is installed.
    Hth, Anders Janson Enfo Zipper

  • How can we choose to have different apps, different playlists, different contacts, etc., on each device., while using one itunes to sync more than 1 iphone

    How can we choose to have different apps, different playlists, different contacts, etc., on each device., while using one itunes to sync more than 1 iphone

    Use Multiple Devices with One Computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • How to correct Runtime error R6034 when attempting to update iTunes on PC?

    How to correct Runtime error R6034 when attempting to update iTunes on PC?

    Hey ievafromsa,
    Thanks for the question. I understand that you are experiencing issues installing iTunes for Windows. The following article outlines the error message you are receiving and a potential resolution:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Some Windows customers may experience installation issues while trying to install or open iTunes 11.1.4.
    Symptoms may include:
    "The program can't start because MSVCR80.dll is missing from your computer"
    "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows Error 126)”
    "Runtime Error: R6034 - An application has made an attempt to load the C runtime library incorrectly"
    "Entry point not found: videoTracks@QTMovie@@QBE?AV?$Vector@V?$RefPtr@VQTTrack@@@***@@$0A@VCrashOnOverf low@@***@@XZ could not be located in the dynamic link library C:\Program Files(x86)\Common Files\Apple\Apple Application Support\WebKit.dll”
    Resolution
    Follow these steps to resolve the issue:
    Check for .dll files
    1. Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    2. If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    3. Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    1. Uninstall iTunes and all of its related components.
    2. Reboot your computer. If you can't uninstall a piece of Apple software, try using theMicrosoft Program Install and Uninstall Utility.
    3. Re-download and reinstall iTunes 11.1.4.
    Thanks,
    Matt M.

  • Hey for the new iOS 5 how do you backup your information when you download updates without a computer?

    Hey for the new iOS 5 how do you backup your information when you download updates without a computer?

    Read here >  http://appadvice.com/appnn/2011/06/overtheair-wifi-syncing-backup-ios-5-tedious- routine

  • How to make metadata fields required when creating folders

    Hello all....
    Related issue with SR 3-6472229431 and SR 3-6471130611.
    We're using DIS 11.1.6 64-bits (2011_11_29 (rev 9756) 11.1.6.97) in a Windows 7 64-bits workstation (with UCM 11.1.1.5 in a Linux machine). The check-in of images to UCM goes fine.
    I'm trying to make some metadata fields required when creating a folder. These fields are required when making a check-in, but not when creating folders.
    Folders_g is enabled. DesktopTag too.
    EDIT: Patch: 14695303 - WCC 11.1.1.5.0 BUNDLE ( MLR 16 ) NOV 6 2012 applied.
    Is it possible?
    Thanks for all.
    Edited by: fgomes on 22/11/2012 03:24

    After reading your response and rereading the original question a bit closer, the metadata prompting feature does not apply to creating new folders, only content.
    Again, though, I think the focus here is in the wrong place. The metadata applied to a folder is intended to be ultimately applied to the content. You can build global rules that fire on submission of content to check if a field has a value, and throw an error if the value is empty.
    If you expect users to create folders (and actually apply any metadata to the actual folder itself), you will be disappointed. Experience shows that users are not interested in that level of detail when creating content, let alone folders. Letting typical users create folders is a bad idea anyway, as they tend to create the same inefficient folder structures they previously created in file shares within Content Server.
    If you need to tightly control folder attributes, you'll be better served by locking down the ability to create new folders. Otherwise you're looking at some type of customization. Keep in mind that you won't be able to customize the right click behavior of DIS. Any changes to DIS would have to be an enhancement request.

  • How to display all authentication providers when creating a new user?

    I have configured active Directory with weblogic 10.3.1. Users and groups display correctly under the users and groups tab. When creating a new user only the defaultauthenticator provider is displayed in the drop-down selection. How do I get my active directory authenticator to display here also for selection?

    I'm confident that the Active Directory provider is read-only. You could write your own Authentication Provider for AD that supports create/update/delete functionality, but it is not included in the out of the box AD Authentication Provider to my knowledge.
    I know both the Default Authenticator and the database authenticator are read/write.

  • How to provide RDP cert file when create virtual machine deployment?

    hi,
    the Azure REST API here http://msdn.microsoft.com/en-us/library/azure/jj157194.aspx#bk_certificates did not say how to provide a cert for the VM when create it.
    the StoredCertificateSettings let you install the uploaded cert onto the vm, but this does not allow you to replace
    the RDP cert which created by Azure when the VM is created.
    see below:
    the highlighted cert is automatically created by Azure for the virtual machine to secure the RDP connection.
    so when you try to remote to the VM, you will see this error, because the cert used for the RDP on the VM is not installed into the "Trused Root Certification Authorities" on local machine.
    i want to replace the cert that azure automatically created :
    var dpinput = string.Format(
                        System.Globalization.CultureInfo.CurrentCulture,
                        @"<?xml version='1.0' encoding='utf-8' ?>
                    <Deployment xmlns='http://schemas.microsoft.com/windowsazure' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'>
                      <Name>{0}</Name>
                      <DeploymentSlot>Production</DeploymentSlot>
                      <Label>{1}</Label>
                      <RoleList>
                        <Role>
                          <RoleName>{2}</RoleName>
                          <RoleType>PersistentVMRole</RoleType>
                          <ConfigurationSets>
                            <ConfigurationSet i:type='WindowsProvisioningConfigurationSet'>
                              <ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
                              <ComputerName>{3}</ComputerName>
                              <AdminPassword>{4}</AdminPassword>
              <StoredCertificateSettings>
                <CertificateSetting>
                  <StoreLocation>LocalMachine</StoreLocation>
                  <StoreName>Root</StoreName>
                  <Thumbprint>{5}</Thumbprint>
                </CertificateSetting>
              </StoredCertificateSettings>
                              <WinRM>
                                <Listeners>
                                  <Listener>
                                    <Protocol>Http</Protocol>
                                  </Listener>
                                  <Listener>
                                    <Protocol>Https</Protocol>
                                    <CertificateThumbprint>{6}</CertificateThumbprint>
                                  </Listener>
                                </Listeners>
                              </WinRM>
                            <AdminUsername>{7}</AdminUsername>
                            </ConfigurationSet>
                            <ConfigurationSet>
                              <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
                              <InputEndpoints>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>443</LocalPort>
                                  <Name>HTTPS</Name>
                                  <Port>443</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>5986</LocalPort>
                                  <Name>PowerShell</Name>
                                  <Port>5986</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>3389</LocalPort>
                                  <Name>Remote Desktop</Name>
                                  <Port>3389</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                              </InputEndpoints>
                              <SubnetNames/>
                            </ConfigurationSet>
                          </ConfigurationSets>
                          <DataVirtualHardDisks>
                            <DataVirtualHardDisk>
                              <HostCaching>ReadWrite</HostCaching>
                              <DiskLabel>data</DiskLabel>
                              <Lun>0</Lun>
                              <LogicalDiskSizeInGB>127</LogicalDiskSizeInGB>
                              <MediaLink>{8}</MediaLink>
                            </DataVirtualHardDisk>
                          </DataVirtualHardDisks>
                          <OSVirtualHardDisk>
                            <HostCaching>ReadWrite</HostCaching>
                            <MediaLink>{9}</MediaLink>
                            <SourceImageName>{10}</SourceImageName>
                          </OSVirtualHardDisk>
                          <RoleSize></RoleSize>
                          <ProvisionGuestAgent>false</ProvisionGuestAgent>
                          <ResourceExtensionReferences/>
                        </Role>
                      </RoleList>
                      <VirtualNetworkName/>
                      <Dns/>
                    </Deployment>",
                                  service,
                                  service,
                                  service,
                                  computer,
                                  password,
                                  thumbprint,
                                  thumbprint,
                                  user,
                                  datavhd,
                                  osvhd,
                                  osname);
    i want to use my own self-signed the cert as the RDP cert to be used by Azure when create the vm, but the above request does not replace the cert.
    how can i do that?
    Thanks
    the request i used as below:
    var dpinput = string.Format(
                        System.Globalization.CultureInfo.CurrentCulture,
                        @"<?xml version='1.0' encoding='utf-8' ?>
                    <Deployment xmlns='http://schemas.microsoft.com/windowsazure' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'>
                      <Name>{0}</Name>
                      <DeploymentSlot>Production</DeploymentSlot>
                      <Label>{1}</Label>
                      <RoleList>
                        <Role>
                          <RoleName>{2}</RoleName>
                          <RoleType>PersistentVMRole</RoleType>
                          <ConfigurationSets>
                            <ConfigurationSet i:type='WindowsProvisioningConfigurationSet'>
                              <ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
                              <ComputerName>{3}</ComputerName>
                              <AdminPassword>{4}</AdminPassword>
              <StoredCertificateSettings>
                <CertificateSetting>
                  <StoreLocation>LocalMachine</StoreLocation>
                  <StoreName>Root</StoreName>
                  <Thumbprint>{5}</Thumbprint>
                </CertificateSetting>
              </StoredCertificateSettings>
                              <WinRM>
                                <Listeners>
                                  <Listener>
                                    <Protocol>Http</Protocol>
                                  </Listener>
                                  <Listener>
                                    <Protocol>Https</Protocol>
                                    <CertificateThumbprint>{6}</CertificateThumbprint>
                                  </Listener>
                                </Listeners>
                              </WinRM>
                            <AdminUsername>{7}</AdminUsername>
                            </ConfigurationSet>
                            <ConfigurationSet>
                              <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
                              <InputEndpoints>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>443</LocalPort>
                                  <Name>HTTPS</Name>
                                  <Port>443</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>5986</LocalPort>
                                  <Name>PowerShell</Name>
                                  <Port>5986</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>3389</LocalPort>
                                  <Name>Remote Desktop</Name>
                                  <Port>3389</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                              </InputEndpoints>
                              <SubnetNames/>
                            </ConfigurationSet>
                          </ConfigurationSets>
                          <DataVirtualHardDisks>
                            <DataVirtualHardDisk>
                              <HostCaching>ReadWrite</HostCaching>
                              <DiskLabel>data</DiskLabel>
                              <Lun>0</Lun>
                              <LogicalDiskSizeInGB>127</LogicalDiskSizeInGB>
                              <MediaLink>{8}</MediaLink>
                            </DataVirtualHardDisk>
                          </DataVirtualHardDisks>
                          <OSVirtualHardDisk>
                            <HostCaching>ReadWrite</HostCaching>
                            <MediaLink>{9}</MediaLink>
                            <SourceImageName>{10}</SourceImageName>
                          </OSVirtualHardDisk>
                          <RoleSize></RoleSize>
                          <ProvisionGuestAgent>false</ProvisionGuestAgent>
                          <ResourceExtensionReferences/>
                        </Role>
                      </RoleList>
                      <VirtualNetworkName/>
                      <Dns/>
                    </Deployment>",
                                  service,
                                  service,
                                  service,
                                  computer,
                                  password,
                                  thumbprint,
                                  thumbprint,
                                  user,
                                  datavhd,
                                  osvhd,
                                  osname);
    the request i used as below:
    var dpinput = string.Format(
                        System.Globalization.CultureInfo.CurrentCulture,
                        @"<?xml version='1.0' encoding='utf-8' ?>
                    <Deployment xmlns='http://schemas.microsoft.com/windowsazure' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'>
                      <Name>{0}</Name>
                      <DeploymentSlot>Production</DeploymentSlot>
                      <Label>{1}</Label>
                      <RoleList>
                        <Role>
                          <RoleName>{2}</RoleName>
                          <RoleType>PersistentVMRole</RoleType>
                          <ConfigurationSets>
                            <ConfigurationSet i:type='WindowsProvisioningConfigurationSet'>
                              <ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
                              <ComputerName>{3}</ComputerName>
                              <AdminPassword>{4}</AdminPassword>
              <StoredCertificateSettings>
                <CertificateSetting>
                  <StoreLocation>LocalMachine</StoreLocation>
                  <StoreName>Root</StoreName>
                  <Thumbprint>{5}</Thumbprint>
                </CertificateSetting>
              </StoredCertificateSettings>
                              <WinRM>
                                <Listeners>
                                  <Listener>
                                    <Protocol>Http</Protocol>
                                  </Listener>
                                  <Listener>
                                    <Protocol>Https</Protocol>
                                    <CertificateThumbprint>{6}</CertificateThumbprint>
                                  </Listener>
                                </Listeners>
                              </WinRM>
                            <AdminUsername>{7}</AdminUsername>
                            </ConfigurationSet>
                            <ConfigurationSet>
                              <ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
                              <InputEndpoints>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>443</LocalPort>
                                  <Name>HTTPS</Name>
                                  <Port>443</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>5986</LocalPort>
                                  <Name>PowerShell</Name>
                                  <Port>5986</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                                <InputEndpoint>
                                  <LoadBalancedEndpointSetName></LoadBalancedEndpointSetName>
                                  <LocalPort>3389</LocalPort>
                                  <Name>Remote Desktop</Name>
                                  <Port>3389</Port>
                                  <Protocol>TCP</Protocol>
                                </InputEndpoint>
                              </InputEndpoints>
                              <SubnetNames/>
                            </ConfigurationSet>
                          </ConfigurationSets>
                          <DataVirtualHardDisks>
                            <DataVirtualHardDisk>
                              <HostCaching>ReadWrite</HostCaching>
                              <DiskLabel>data</DiskLabel>
                              <Lun>0</Lun>
                              <LogicalDiskSizeInGB>127</LogicalDiskSizeInGB>
                              <MediaLink>{8}</MediaLink>
                            </DataVirtualHardDisk>
                          </DataVirtualHardDisks>
                          <OSVirtualHardDisk>
                            <HostCaching>ReadWrite</HostCaching>
                            <MediaLink>{9}</MediaLink>
                            <SourceImageName>{10}</SourceImageName>
                          </OSVirtualHardDisk>
                          <RoleSize></RoleSize>
                          <ProvisionGuestAgent>false</ProvisionGuestAgent>
                          <ResourceExtensionReferences/>
                        </Role>
                      </RoleList>
                      <VirtualNetworkName/>
                      <Dns/>
                    </Deployment>",
                                  service,
                                  service,
                                  service,
                                  computer,
                                  password,
                                  thumbprint,
                                  thumbprint,
                                  user,
                                  datavhd,
                                  osvhd,
                                  osname);

    Hi,
    In Azure, this feature is called
    custom data. Currently, you can inject custom data into an Azure VM by using the
    Windows Azure command-line tools (--custom-data). 
    I assume that it is not supported in Python API. You can use “custom_data=xxx”
    within “create_virtual_machine_deployment” to check if it works.
    If it is not yet available, please submit your requirement in Azure feedback below:
    http://feedback.azure.com/forums/34192--general-feedback
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can i highlight an image when mouse over an image in c#?

    I want to highlight an image when mouse goes there on image. The backcolor of image should change. Give a solution.

    Its for button. I need to highlight image. I have attached screen shot. I want to create like that in windows form.
    Hello,
    Based on my understanding, it just changes the background for that image to highlight them.
    So we could change the background for the control hosts these images, and in addition, the size mode should not be autosize, because we should keep some area to display the background.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to conserve attributes of mask when creating it Ai CS4 mac?

    I have a rectangle with an outline x color x and when I create the mask disappear its attributes (attached image), there is some way of not having to return to apply to the outline and the color to the profile of the mask? , thanks.

    Hello Scott,
    Associate another way that I have discovered,
    1. When creating the mask disappears the outline and color
    2. We selected the resulting object and we assigned he himself thickness of outline that tapeworm
    3. Txan colored again
    And we can do it with several simultaneously

  • Unable to choose foreign key when creating reference partition

    Hello
    I have 2 foreign keys on a table. I am trying to choose the 2nd foreign key when creating a reference partition. I am unable to select the required foreign key.
    The model has Table A -> Table B -> Table C. Table A has a list partition. Table B is the child of Table A. I created a reference partition on Table B. Table C is child of Table B. There are 2 FKs on table C. I am unable to choose the required FK to create reference partition on table C.
    SQL Developer version - 3.0.0.665
    Any help would be appreciated.

    Hi,
    The FK that can be selected is normally the oldest FK that was created for the Table.
    So one option would be to delete and then recreate the FK that is selectable. This process may need to be repeated if there are several FKs that are "older" than the one you wish to use for Reference Partitioning.
    David

  • Known Issue: "DNS server could not be reached" when creating or updating a RemoteApp collection using template images for some locales

    When trying to create or update Azure RemoteApp collections that use a template image for some non-EN-US locales, it might fail with error "DNS server could not be reached". You might also see error code "DnsNotReachable". 

    Cause:  There was a issue in Azure in which decimal punctuation was not treated properly if the locale of the template image used a comma (,) instead of a period (.).
    Workaround:  Before a fix was applied, the workaround was to use template images based on a locale that uses a period to delimit decimals, such as EN-US.
    Resolution:  As of March 19, 2015, a fix for this issue has been applied to Azure. You should once again be able to create collections from template images that use non-EN-US locales. If you continue to have this problem, please
    try the workaround. If that works and the only difference in the template images is the locale, please email remoteappforum (at Microsoft). If the workaround does not work, the issue is likely caused by a DNS configuration issue such as:
    No valid forwarders to public DNS servers configured on your internal DNS server(s).
    A valid internal DNS server is not specified on your Azure RemoteApp VNet.
    A VNet or internal network configuration issue is preventing the internal DNS servers from be reached by the VMs in the RemoteApp collection.

  • How can I draw an image when the mouse is clicked

    I am trying to draw X's and O's for a tic-tac-toe board and I cannot conceptualize how to get the X or O to appear if the mouse is pressed on an individual [row][col].
    Im using the MouseListener with a mouseAdapter as an inner class of paintComponent. Using the mousePressed method I want to draw the X or O when one square detects a mousepress
    How can I get the image on the partiuclar square. Im stumped presently. Any help is appreciated
    Thanks.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TicTacToe extends JPanel
        Rectangle[] cells;
        int[] hits;
        final int
            GRID =  3,
            PAD  = 25;
        public TicTacToe()
            // jvm initializes all elements to zero by default
            hits = new int[GRID * GRID];
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int w = getWidth();
            int h = getHeight();
            int xInc = (w - 2*PAD)/GRID;
            int yInc = (h - 2*PAD)/GRID;
            if(cells == null)
                initCells(xInc, yInc);
            // vertical lines
            int x1 = PAD + xInc, y1 = PAD, x2 = w-PAD, y2 = h-PAD;
            for(int j = 0; j < GRID-1; j++)
                g2.drawLine(x1, y1, x1, y2);
                x1 += xInc;
            // horizontal lines
            x1 = PAD; y1 = PAD + yInc;
            for(int j = 0; j < GRID-1; j++)
                g2.drawLine(x1, y1, x2, y1);
                y1 += yInc;
            // draw hits
            g2.setPaint(Color.red);
            for(int j = 0, side = 30; j < hits.length; j++)
                if(hits[j] == 1)
                    int row = j / GRID;
                    int col = j % GRID;
                    int x = PAD + xInc/2 + col * xInc - side/2;
                    int y = PAD + yInc/2 + row * yInc - side/2;
                    g2.fillRect(x, y, side, side);
            //g2.setPaint(Color.blue);
            //for(int j = 0; j < cells.length; j++)
            //    g2.draw(cells[j]);
        public void addHit(int cellIndex)
            hits[cellIndex] = 1;
            repaint();
        private void initCells(int width, int height)
            cells = new Rectangle[GRID * GRID];
            for(int row = 0; row < GRID; row++)
                for(int col = 0; col < GRID; col++)
                    int index = col + row * GRID;
                    int x = PAD + col * width;
                    int y = PAD + row * height;
                    cells[index] = new Rectangle(x, y, width, height);
        public static void main(String[] args)
            TicTacToe ticTacToe = new TicTacToe();
            Selector selector = new Selector(ticTacToe);
            ticTacToe.addMouseListener(selector);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(ticTacToe);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class Selector extends MouseAdapter
        TicTacToe ticTacToe;
        public Selector(TicTacToe ttt)
            ticTacToe = ttt;
        public void mousePressed(MouseEvent e)
            Point p = e.getPoint();
            Rectangle[] r = ticTacToe.cells;
            for(int j = 0; j < r.length; j++)
                if(r[j].contains(p))
                    ticTacToe.addHit(j);
                    break;
    }

Maybe you are looking for