Unique content tag expected?

Hey everybody,

In my - app.xml file Flash Builder tells me "expects a single happy tag" but he can't point to a location. What? Does anyone know what this means?

Thank you!

There is a lack of tag in the tag. It should look like this:


    
        
        
        [This value will be replaced by Flash Builder in the output app.xml]

or if you do it on the command line, there's real value in there (that Flash Builder is usually for you):


    
        
        
        MyApp.swf

Tags: BlackBerry Developers

Similar Questions

  • MuCow < bool > content tags

    The MuCow Documentation under < bool > (Documentation MuCow) says: "NOTE: < trueVal > tags can contain content tags that will modify the output.»

    Does this mean that I can toggle CDATA tags? If so, how can I accomplish this?

    You can use a bool value to control what HTML using your MUCOW. Here's a sample:

    Home

  • Owners of content tags are rendered in SEO areas?

    Hello world!

    Tags of content holders are made in fields on page SEO?

    Thanks in advance,

    Diego

    Content holders funny onesies (complicated), but while I do not use the ice I saw people have niggles with them like ICE IF you change regions with html tags as your customers through the editor of ice content, I saw solutions to have html code in support of content have tags of ice for various parts rather than on the module itself.

  • Title to the content tag

    OK, so when I publish e-learning content (SCORM 1.2), the < title > tags are written automatically.  I guess it is from preferences > project > Info and the name of the project on the ground (even if I'm wrong).  However, when later, I need to change the title, the original one as I walked still remains in the < title > tags in the HTML file.

    This means that when the user opens the e-learning in IE (or any web browser) the old title remains.  I can (and do) manually fix, but it's tedious.  Is there a way to get around this?  I edited about everything I can find, but still the title tags are not changed when I republish e-learning.

    I am using Captivate 4, but would like to know if it is the case in Captivate 5 as well.

    Thanks for any help.

    You have installed the patch for Cp4? Do not pick up theproperly, the tag is a patch to fix a bug.<p class="reply"> <p class="reply"><a href="http://blogs.adobe.com/captivate/2009/05/captvate_4_patch_update.html" rel="external nofollow noreferrer">http://blogs.Adobe.com/Captivate/2009/05/captvate_4_patch_update.html</a></p> <p class="reply"><a href="http://www.adobe.com/support/captivate/captivate_4_downloads.html" rel="external nofollow noreferrer">http://www.Adobe.com/support/Captivate/captivate_4_downloads.html</a></p>

  • Remove a conditional tag my content

    Using robohelp 10 on win 7

    I have 5 conditional tags in my HR project. In some cases, the text can be tagged with multiple conditional tags.

    I want to delete a batch tag content so that all content no longer uses this tag.

    Simply remove the tag from the pod of conditional compilation?

    If this is not the case, how can I do?

    Simply press the DELETE key and HR will tell you that it will remove the content tag. From my experience, it does. Test it in a fictional project in case of doubt.

    Also something like this, if not sure, back first.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Troubleshooting external video and thread unique docking station

    Try to group all threads dock into one video.  This will help me to collect information on what is and is not working there, and get it to engineering to solve.    I will edit this first post to maintain the all updated in one place.  This should make it easier to find information in the future.

    Steps to follow before reporting a problem:

    (1) check the revision on your dock.   If you look at the bottom of the docking station, you will see a variety of labels.   The PPID label is on the right side of the group labels and will include a number of review at the end.   Make sure you have a revision A01.   If you A00, and if the video does not work after trying the remaining steps in this guide, please contact support and have your A00 with A01 replaced.

    (2) be sure to update your device to the latest version of the BIOS (currently the A11 for the 713 x) and A07 for the 5130.  For the 713 x, select the version appropriate for your product.

    (3) upgrade to the latest version of the video driver.   It is currently for the 713 x 3496 and 3366 for the 5130 (note that this driver 5130 is packaged in A06 chipset driver).

    (4) connect your monitor (s) to the docking station.   The preferred method is to use directly DP to DP or HDMI to HDMI cables.   Dongles will work, but note that the DP dongles must be 'active '.   DP ++ (non-active) dongles will not work with this docking station.   Passive HDMI dongles are OK.   Use dongles and cables of good quality.   Monitors must be HDCP.

    (5) turn on monitors and set up an external video via the options of the Intel graphics driver or the WIndows Devices/project option.   The 5130 will support the LCD + external display a screen (two screens can reflect the content if you wish).  713 x will support the LCD + two external displays (each unique content display).  713 x will support daily chained DP 1.2 monitors.  Two external monitors can operate at FHD (1920) and one external monitor through DP can support 2560.

    (6) at this point, your external monitor should work.   If this is not a couple of additional troubleshooting follow the steps.

    6.1) remove and reinsert the cable from the monitor at dock.

    6.2) to ensure that the current dock is good (the LED on the front of the docking station must always be on when power is present)

    6.3) make this monitor has good source of selected entry and that the wiring is routed to the appropriate ports.

    6.4) compressed Undock and redock to see if a change occurs.

    6.5) 6.5) for tablets of 713 x, try to roll back the driver A00 video 3316 to see if that makes a difference.

    (7) if the video still does not work as you expect, please post in this topic with the following information.

    (7.1) the confirmation that you have tried the steps above and that you have indeed an A01 docking station.

    7.2) of the make and model of your monitor (s).

    7.3) information (e.g. How is everything connected) configuration

    7.4) If you use several dongles, brand and model of the dongle if known

    7.5) problem specific (s) you encounter.

    Pay attention to the updates to this thread that develops information.   I'll update below tables quite frequently - I need to dig up the test reports and add all this information here soon.

    List monitors confirmed the function:

    1907WPc (DVI)
    2007WFPb (DVI)
    2407WFP (DVI)
    E248WFPb (DVI).
    P2213 (DP, DVI)
    SP2208WFPt (DP/DVI)
    U2410 (DVI/HDMI/DP)
    U2413 (DP)
    U2711 (DVI/HDMI/DP)
    U3011

    List of monitors who may have questions:

    U2312 (DP to DP) - no video sync with 3412, seems to work with 3316.
    U2412M same as U2312
    ST2220L (HDMI to HDMI) - not detected after dock power removed/reinserted.   Workaround is to remove HDMI and power of dock, plug in power first and then HDMI.
    ST2340t (HDMI to HDMI with USB 3.0 touch) - Tablet believes monitor USB after the suspension/recovery

    Acer G246HL - DP flickers / picture does not fill the screen (with active ingredient DP dongle cable), another where monitor does not work.

    Dell E198FPf - DP flickers / picture does not fill the screen (with active ingredient DP dongle cable).

    NEC LCD17V-BK - DP flickers / picture does not fill the screen (with active ingredient DP dongle cable).

    ViewSonic VA702b - DP flickers / picture does not fill the screen (with active ingredient DP dongle cable).

    Acer AL1716 - DP flickers / picture does not fill the screen (with active ingredient DP dongle cable).

    E2209Wc - work via HDMI, but not through DP

    AOC E2450SWH - HDMI works fine, DP to HDMI (Astrotek AT-DPHDMI-MF Active) flashes.  DP to VGA (Comsol DP-VG-AD) flashes.   Persistence concerns.

    Dell P2314H - DP to DP - delay important, does not at all or its blinking.

    Dell P2314H - DP to DP - long delay for monitor DP to come after that HDMI works.   OK with monitor power off.

    E2209Wc - DP/DVI displayport topology looks but monitor will not work.

    Dell P2414H - DP only works 10% of the time

    Dell P2210 reference - DP only works 10% of the time

    Dell P2210f, 2210-t, 2210Hc - do not work DP to DP

    Dell E220Wf - won't work not DP/DVI

    Dell 2009Wt - won't work not DP/DVI

    Reference Dell 2213 - some work, some don't?

    Dell U2413 - no video via active DP HDMI adapter, works very well with the right RFP

    Dell 2414Hb & failure 2009Wt - DP to DP - Dell to detect again after cycle dock, only mirrors, extend.

    HP LA1951g - flicker when using VGA, OK with HDMI/DVI

    P2210f - OK with DP DP, problematic in the case.

    Dell U2412m - does not work with DP

    Dell S2240M - does not work with DP to DVI active

    P2314H - DP to DP fails to reconnect after sleep cycle

    List of dongles confirmed the function:

    Questions cable gold plated active DisplayPort to HDMI male/female adapter (tested on 7130)

    Questions cable gold plated active DisplayPort to DVI male/female adapter (tested on 7130)

    Bizlink Dual Link DP to DVI (out of stock at the moment)

    List of dongles confirmed having problems:

    Any DP ++ (passive) dongle - dock can't DP ++ (passive) DP dongles.

    Thank you!

    What do guys for the monitors to u2312 and u2412?

  • RoboHelp 2015 (12.0.2.384): The search returns topics do not are included in the table of contents

    ENVIRONMENT: Windows 7 Enterprise SP1, 8.00 GB of RAM, 64 - bit OS, Office 2010, Adobe Acrobat X Pro, Acrobat Reader DC 2015.017.20050

    DESCRIPTION OF THE PROJECT:

    • A single RoboHelp HTML project with three exits. One of the outputs is a 'validation' reference that has its own Table of contents.
    • Validation reference Table of contents contains a subset of the subjects in the main help system. For example, the help system main table of contents contains a folder named 'Administration '. This folder is not in the table of contents of reference for Validation.
    • The reference of Validation is displayed on a public web site. Therefore, we applied the tag "Non_public_info" contained in the topics shared that we do not want to appear on the public website.
    • WebHelp parameters are:
      • Validation reference TOC
      • No map file, no sequence to browse
      • Conditional compilation expression: NOT_Non_public_info_AND_NOT_StyleGuidelines_AND_NOT_TRP (we keep our Style rules in the project to facilitate access during development. TRP content must be rejected because it was not released.)
      • Exclude non referenced topics of output is selected.
      • Search options. Only 'Show Total number of search results' and 'View AND search Option in outputs' are selected.
    • After generating the WebHelp, we remove the files that we don't want (RoboHelp generates empty folders, even if the files are not in the table of contents.)

    PROBLEM: A search in the help of Validation reference reveals the topics that we think should not be included because the subjects themselves are not in the table of contents of Validation reference. For example, the section "Data quality analysis" is in the main table of contents help, but not in the table of contents of reference for Validation. Therefore, we do not expect the topic appears in the search results pane at all. But he does. When the user clicks on the subject, the "Resource not found" message appears.

    Nothing shows the topic Style_Guidelines because the StyleGuidelines label conditional construction applies to the entire folder and the "Style guidelines" book in the main table of contents. (Same thing for the TRP folder).

    QUESTION: Why are topics which are not in the table of contents and whose records are not in the project at all appearing in the WebHelp during a search? We need to rewrite the expression of conditional compilation or establish conditions differently. We assume not have topics in the table of contents, not including the topics not referenced in the output, and remove empty folders would be the way to go. Any help is welcome!

    Thank you very much.

    Carol Levie

    The table of contents does not control what ends up in the output for output online. All content tagged and tagged content which is not excluded by the expression of construction will be included. The parameter 'Exclude topics not referenced output' more exclude all subjects which are not in the table of contents AND are not related to any topic which is included in the output.

    On the other hand, for the print output the table of contents control which is found in the output. I think that it will fire a lot of people.

    If you generate the help and that you do not remove the unwanted files, do you still have the error? If this isn't the case, you know that the topic is referenced somewhere in the content of the reference of the Validation.

    Here is the help of RH11. I can't imagine it would have changed, but you could do a search to verify a second time for RH2015.

    Exclude output not referenced topics

    Select this option to exclude any topic that exists in the project, but is not the default theme in page layout or is not referenced table of selected contents, index or sequence to browse, or any referenced subject.

    Note: RoboHelp shows the topics not referenced that are excluded from the output in the output view module.

  • Adding multiple word tags

    I worked on a script to automate the arduous task of marking of our 1500 + VMs.

    I ran into a bit of a problem with the addition of tags in the virtual machines that consist of several words.

    what I've done is created a table which lists all the unique tags and then crosses and compared to existing tags on the machine, and if they do not match, it will update the tag.

    The audit, etc works fine, the problem I have is that if I have a tag that contains several words it contains, IE) 'Heart of flint', the script will fail with the error:

    New-TagAssignment of the specified parameter 'Tag' expects a single value, but your name criteria "Flint Core" corresponds to multiple values.

    Online: 36 tank: 6

    {+ New-TagAssignment-$VMName.Name entity-Tag "$TagName"}

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: InvalidResult: ([System.Collecti, dObjectInterop]:'1 List) [new TagAssignment], VimException

    + FullyQualifiedErrorId: Core_ObnSelector_SelectObjectByNameCore_MoreResultsThanExpected, VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.NewTagAssignment

    so for me, it seems that it tries to assign the Flint and Core as individual tags, and it does not reach the category of the label is set to a single cardinality.

    The $Tagname object only keeps the "Flint Core" value

    If I try to add manually by substituting $Tagname for the name of actual tag (with or without single or double quotes), it always returns the same result.

    The name is a valid label, I can see it, assign, and read vcenter as a word several Tag

    can someone tell me how to get Powercli to allow me to add these multiple word tags?

    Thank you

    I understand what I did, and it was rather ridiculous. The problem came down to that we did have tags with the same value but different categories of Tag, whereas she had nothing to do with the name itself.

    It is a we had a customer named "Flint Core" and also a place of "Core of Flint" and PowerCLI couldn't determine which was necessary. Rename a tag in the spreadsheet solved the problem.

  • Is there a guide "Dummies" for the implementation of the content categories?

    Use: RoboHelp 11 on a Windows 7 system.

    I looked in the help, and I looked at the example project EmployeeCare2 (which has only one category of content, WE (by default) and therefore does not display the advantage of having several categories). I'm still not the best approach for setting this up. For example, do you need to create a table of unique contents for each content category and then include only the relevant topics in the table of contents?

    We have several types of users for our application of Touchstone

    • Underwriters
    • Agents of reinsurance
    • Insurance agents
    • The Business management unit
    • System administrators

    Should I create a table of contents for each type of user, including in this only topics of interest for each user?

    I then create browse sequences applicable to typical workflows of each user?

    Has anyone seen a good documentation about this feature?

    Note: In our current help system, which uses WebHelp Pro, I had to, for reasons of different license, create a table of contents for each type of product analysis (e.g., loss, danger, geospatial data quality). Each TOC included subjects and topics related only to the type of joint analysis. In addition, each TOC contained conditional compilation expressions. When a user launches the Help menu, the user sees only the modules of assistance for their licensed products. While this works fine for our needs, we met some odd behavior with browse sequences.  It seems that the approach I took is similar to the way that authors need to develop categories of content.

    It is said in the subject of the employee in charge 2 SSL "If you want to learn more about Dynamic User-Centric categories (categories of content) or AIR support, refer to the example of Salesbuilder 2 project."

    The table of contents can be separated or customized through the use of tags. What is the best will be dictated by how you wrote your subjects, even for sequences of browse.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • How to make a picture as the content of the body of my mail using Oracle 10 g

    Hi all

    I already did the fixing of the image using SMTP concept. Now, I want to show my picture as my mail body content.

    is it possible to do it in oracle 10g?


    Can anyone help me do this?


    See you soon,.
    San

    San wrote:
    But I want to send the image in the main line, the file that is stored in the server database (Oracle Directory).

    OK, so the situation is that you have an image in a BLOB, and you want to send this inline.
    Then you can do a combination of both procedures and the MIME technique described by Billy Verreynne in his post above (thanks, Billy: D)

    Sort of, something like this (restored your examples and Billys:)

      UTL_SMTP.open_data(l_mail_conn);
    
      UTL_SMTP.write_data(l_mail_conn, 'Date: ' || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'To: ' || p_to || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'From: ' || p_from || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'Subject: ' || p_subject || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'Reply-To: ' || p_from || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'MIME-Version: 1.0' || UTL_TCP.crlf);
      UTL_SMTP.write_data(l_mail_conn, 'Content-Type: multipart/alternative; boundary="' || l_boundary || '"' || UTL_TCP.crlf || UTL_TCP.crlf);
    
      IF p_text_msg IS NOT NULL THEN
        UTL_SMTP.write_data(l_mail_conn, '--' || l_boundary || UTL_TCP.crlf);
        UTL_SMTP.write_data(l_mail_conn, 'Content-Type: text/plain' || UTL_TCP.crlf || UTL_TCP.crlf);
    
        UTL_SMTP.write_data(l_mail_conn, p_text_msg);
        UTL_SMTP.write_data(l_mail_conn, UTL_TCP.crlf || UTL_TCP.crlf);
      END IF;
    
      IF p_html_msg IS NOT NULL THEN
        UTL_SMTP.write_data(l_mail_conn, '--' || l_boundary || UTL_TCP.crlf);
        UTL_SMTP.write_data(l_mail_conn, 'Content-Type: text/html' || UTL_TCP.crlf || UTL_TCP.crlf);
    
        UTL_SMTP.write_data(l_mail_conn, p_html_msg);
        UTL_SMTP.write_data(l_mail_conn, UTL_TCP.crlf || UTL_TCP.crlf);
      END IF;
    
      IF p_image_blob IS NOT NULL THEN
        UTL_SMTP.write_data(l_mail_conn, '--' || l_boundary || UTL_TCP.crlf);
    
        /* These values taken from Billys example - replace by your own image name and type >>> */
        UTL_SMTP.write_data(l_mail_conn, 'Content-Type: image/png; name="image1.png"' || UTL_TCP.crlf);
        UTL_SMTP.write_data(l_mail_conn, 'Content-Transfer-Encoding: base64' || UTL_TCP.crlf);
        /* Use something unique here - the value of Content-ID is to be used in your HTML IMG tag */
        UTL_SMTP.write_data(l_mail_conn, 'Content-ID: ' || UTL_TCP.crlf);
        UTL_SMTP.write_data(l_mail_conn, 'Content-Description: image1.png' || UTL_TCP.crlf);
        UTL_SMTP.write_data(l_mail_conn, 'Content-Location: image1.png' || UTL_TCP.crlf || UTL_TCP.crlf);
    
        /* <<< */
    
        /* >>> This is your own example of writing the image blob into the mail as base64 encoded >>> */
    
        /* Writing the BLOL in chunks */
        WHILE l_pos < l_blob_len LOOP
          DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
          UTL_SMTP.write_raw_data(l_mail_conn,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
          UTL_SMTP.WRITE_DATA(l_mail_conn, UTL_TCP.CRLF);
          l_buffer := NULL;
          l_pos    := l_pos + l_amount;
        END LOOP;
    
        /* <<< */
    
        UTL_SMTP.write_data(l_mail_conn, UTL_TCP.crlf || UTL_TCP.crlf);
      END IF;
    
      UTL_SMTP.write_data(l_mail_conn, '--' || l_boundary || '--' || UTL_TCP.crlf);
      UTL_SMTP.close_data(l_mail_conn);
    
      UTL_SMTP.QUIT(L_MAIL_CONN);
    

    And then your body HTML should be something like this:

      l_html := '
        
          Test HTML message
        
        
         

    This is a HTML version of the test message.

    ';

    The trick is that img src can point to an image in line with the cid: syntax, where you use the value of the Content-ID header.
    If you have multiple images, you just repeat add blobs as above with each their own unique Content-ID you can then use as img src tags in your HTML code.

    All this is not tested and I leave you to encapsulate in a procedure and to BLOB handling etc.
    But you get the idea, I am sure - just mix your solutions with Billys ;-)

  • Multifaceted content in the portal?

    Hi all

    I have a requirement where the model divided the area of content in 2 columns - Center and right (similar to of many wordpress templates). All three must be editable by the administrator to add content.

    I tried this by creating two facetRefs content and content2. Then, in my page, I added two pageEditorPanel in every facet (see below). However, this will raise an error - java.lang.IllegalStateException: duplicate the id of the component: "pePanel", first used in the tag: "oracle.adfinternal.view.faces.taglib.region.RegionTag."

    < f: facet 'content' = name >
    < pe: pageCustomizable id = "hm_pgc1" >
    < cust:panelCustomizable id = "hm_pnc1" layout = "scroll" / >
    < f: facet name = "Publisher" >
    < pe: pageEditorPanel id = "pep1" / >
    < / f: facet >
    < / pe: pageCustomizable >
    < / f: facet >
    < f: facet name = 'content2' >
    < pe: pageCustomizable id = "hm_pgc2" >
    < cust:panelCustomizable id = "hm_pnc2" layout = "scroll" / >
    < f: facet name = "Publisher" >
    < pe: pageEditorPanel id = "pep2" / >
    < / f: facet >
    < / pe: pageCustomizable >
    < / f: facet >

    Now, I know I can probably use presentation elements on a page (not the template) to achieve, but it will not be applied to a page created during automatic execution (for example)

    Any ideas out there?

    WebCenter has models and styles of page
    Models to define the overall appearance of your portal. You define a header, footer, menu bar and book a space for content.
    The page style defines how divide you the content space. So in your model, you put just a facet of unique content. The page style defines the regions that will be used inside the content facet.

    So in your case, you must create the model with a single facet of content, create a page style that defines two regions and then uses this style on this model.
    Here is a documentation on the page style: http://download.oracle.com/docs/cd/E21764_01/webcenter.1111/e10148/jpsdg_id_resources.htm#BABEEHBI

  • TDMS files viewer and view the contents of the DDHN does not give the same answers.

    I am hoping that there is a simple explanation for this problem.  If I use the PDM File Viewer, it can successfully open my data files large experiment.  The contents are listed without any problem.  Now, if I use the VI of PDM list content, I expect to see the names of groups and channels without data in an indicator.  Instead, I get only 1 group and its associated channels.  Why this discrepancy? Thank you.

    *.Tdms_index always write protected files? Could you try to delete the index files and open the files without them tdms (LabVIEW will generate new files to index if you do that)?

    Herbert

  • ImageView expected to auto-sense orientation

    A few comments to the people of the API:

    Shouldn't the ImageView read the EXIF of a JPEG image and automatic image rotation? And so by default, shouldn't there not a property such as 'autoOrient' or 'function' that this happens?

    Seen developers manually read the EXIF data, manually turn the images, etc., seems to be a waste of developer time.

    Follow-up question: if I do it manually and you end up with a QImage, how to recognize an ImageView to use a QImage? Is this possible?

    And one last question followed: what type is the property of 'image' of the ImageView?  He says it's a QVariant, but is not very useful.  Can we set this property, or is read-only?  Overall, I think that the "image" property documentation could use some improvements.

    Thank you

    Daniel

    Understood that through:

    http://supportforums.BlackBerry.com/T5/Cascades-development/rotation-and-translation-cuts-the-image/...

    ... my container was not big enough. I have change the container that has the ImageView to fill the page, and which prevented the cropping. I'm glad it was something simple.

    Here is a very rough code incase it is useful to someone else:

    #include 
    #include 
    #include 
    #include 
    
    ...
    
    // Gets called when the root container is resized, so that we can track
    // how large it is.
    void PhotosModel::updateContainerSize(qreal width, qreal height)
    {
        // Is this the initial call to updateContainerSize, or did
        // the size of the container change because of an orientation
        // change?
        bool initOrReInit = (containerWidth != (int)width);
    
        containerWidth = width;
        containerHeight = height;
    
        if (initOrReInit && imageLoadedFlag)
        {
            // When we tried to load this, we didn't yet know the width of the
            // screen. Now that we do, display the image.
            qDebug() << "Delayed image load";
            loadImage(photos.at(curPhoto).absoluteFilePath());
        }
    }
    
    void PhotosModel::loadImage(QString file)
    {
        imageLoadedFlag = true;
    
        // If the screen hasn't loaded yet and we don't know how wide
        // the container is, then hold off until we do.
        if (containerWidth == 0)
        {
            qDebug() << "Can't display image yet";
            return;
        }
    
        int width = -1;
        int height = -1;
        bool xyFlip = false;
    
        ExifLoader* loader = exif_loader_new();
        exif_loader_write_file(loader, file.toStdString().c_str());
        ExifData* data = exif_loader_get_data(loader);
    
        imageView->setRotationZ(0);
    
        int desiredRotation = 0;
    
        if (data != NULL)
        {
            //exif_data_dump(data);
    
            // Treating this as int* seems to result in corruption / bad behavior.
            // I think orientation is supposed to be a 'short int', which I would have
            // thought would be 2 bytes, but short int * doesn't seem to be consistent
            // either. So far char* seems to work.
            char* orientationPtr = (char *) GetExifValue(data, EXIF_TAG_ORIENTATION);
    
            if (orientationPtr != NULL)
            {
                //int orientation = *orientationPtr;
    
                int orientation = orientationPtr[0];
    
                // 1 -> OK
                // 3 -> Rotate 180
                // 6 -> CC 90
                // 8 -> C 90
    
                qDebug() << "Orientation: " << orientation;
    
                if (orientation == 3)
                {
                    desiredRotation = -180;
                }
                // NOTE: Also doing this for orientation == 0, because I have
                //       a photo with orientation 0 that seems to need this.
                //       Confused. Picasa seems to know that the image needs
                //       this rotation.
                else if (orientation == 6 || orientation == 0)
                {
                    desiredRotation = 90;
                    xyFlip = true;
                }
                else if (orientation == 8)
                {
                    desiredRotation = -90;
                    xyFlip = true;
                }
                else
                {
                    desiredRotation = 0;
                }
    
                //qDebug() << "Width: " << width << ", Height: " << height;
            }
    
            long* widthPtr = (long *) GetExifValue(data, EXIF_TAG_PIXEL_X_DIMENSION);
            if (widthPtr != NULL)
            {
                width = (int)*widthPtr;
            }
    
            long* heightPtr = (long *) GetExifValue(data, EXIF_TAG_PIXEL_Y_DIMENSION);
            if (heightPtr != NULL)
            {
                height = (int)*heightPtr;
            }
        }
    
        if (width == -1 || height == -1)
        {
            // Trouble. We don't know how large the photo is.
            // For now we'll just show nothing. Will this ever happen? How can we
            // fail more gracefully?
            imageView->setVisible(false);
            ErrorHelpers::showDialog("Missing EXIF Data", "The EXIF data for this image doesn't indicate its width/height, and so it cannot be displayed.");
        }
        else
        {
            imageView->setVisible(true);
        }
    
        int virtualContainerWidth;
        int virtualContainerHeight;
    
        if (xyFlip)
        {
            qDebug() << "xyFlip";
            virtualContainerWidth = containerHeight;
            virtualContainerHeight = containerWidth;
        }
        else
        {
            virtualContainerWidth = containerWidth;
            virtualContainerHeight = containerHeight;
        }
    
        qDebug() << "virtualContainerWidth: " << virtualContainerWidth;
        qDebug() << "virtualContainerHeight: " << virtualContainerHeight;
    
        float imageAspect = (float)width / (float)height;
    
        qDebug() << "imageAspect: " << imageAspect;
    
        float screenAspect = (float)virtualContainerWidth / (float)virtualContainerHeight;
    
        qDebug() << "screenAspect: " << screenAspect;
    
        int imageScreenWidth;
        int imageScreenHeight;
    
        if (imageAspect > screenAspect)
        {
            // Image is wider than screen aspect wise, so X will be limiting dimension.
            if (width > virtualContainerWidth)
            {
                imageScreenWidth = virtualContainerWidth;
            }
            else
            {
                imageScreenWidth = width;
            }
            // Better to round here?
            imageScreenHeight = (int)((float)imageScreenWidth / imageAspect);
    
            qDebug() << "Limited by X";
            qDebug() << "imageScreenWidth: " << imageScreenWidth;
            qDebug() << "imageScreenHeight: " << imageScreenHeight;
        }
        else
        {
            // Image is taller than screen aspect wise, to Y will be limiting dimension.
            if (height > virtualContainerHeight)
            {
                imageScreenHeight = virtualContainerHeight;
            }
            else
            {
                imageScreenHeight = height;
            }
            // Better to round here?
            imageScreenWidth = (int)((float)imageScreenHeight * imageAspect);
    
            qDebug() << "Limited by Y";
            qDebug() << "imageScreenWidth: " << imageScreenWidth;
            qDebug() << "imageScreenHeight: " << imageScreenHeight;
        }
    
        int imageX;
        int imageY;
        imageX = (int)((float)containerWidth / 2.0f - (float)imageScreenWidth / 2.0f);
        imageY = (int)((float)containerHeight / 2.0f - (float)imageScreenHeight / 2.0f);
    
        qDebug() << "imageX: " << imageX;
        qDebug() << "imageY: " << imageY;
    
        imageView->setPreferredWidth(imageScreenWidth);
        imageView->setPreferredHeight(imageScreenHeight);
    
        AbsoluteLayoutProperties* layoutProperties = new AbsoluteLayoutProperties();
    
        layoutProperties->setPositionX(imageX);
        layoutProperties->setPositionY(imageY);
    
        imageView->setLayoutProperties(layoutProperties);
    
        qDebug() << "desiredRotation: " << desiredRotation;
    
        imageView->setRotationZ(desiredRotation);
    
        imageView->setImage(QUrl("file://" + file));
    }
    
    void* PhotosModel::GetExifValue(ExifData* data, ExifTag tag)
    {
        for (int i = 0; i < EXIF_IFD_COUNT; i++)
        {
            ExifContent* content = data->ifd[i];
            ExifEntry* entry = exif_content_get_entry(content, tag);
            if (entry != NULL)
            {
                return entry->data;
            }
        }
    
        return NULL;
    }
    

    ... and some related QML...

    Page {
        Container {
            id: rootContainer
            objectName: "rootContainer"
            background: Color.Black;
            layout: DockLayout {
            }
            horizontalAlignment: HorizontalAlignment.Fill
            verticalAlignment: VerticalAlignment.Fill
    
            attachedObjects: [
                // This handler is tracking the layout frame of the button.
                LayoutUpdateHandler {
                    id: handler
                    onLayoutFrameChanged: {
                        photosModel.updateContainerSize(layoutFrame.width, layoutFrame.height);
                    }
                }
            ]
    
            Container {
                layout: AbsoluteLayout {}
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill
    
                ImageView {
                    id: imageView
                    objectName: "imageView"
    
                    scalingMethod: ScalingMethod.Fill
    
                    //scalingMethod: ScalingMethod.AspectFit
    
                    preferredWidth: 1
                    preferredHeight: 1
    
                    layoutProperties: AbsoluteLayoutProperties {
                        positionX: 1
                        positionY: 1
                    }
    
                    // Tried this, but the image is still animating into place.
                    loadEffect: ImageViewLoadEffect.None
    
                    attachedObjects: [
                        ImplicitAnimationController {
                            enabled: false
                        }
                    ]
                }
            }
    

    It is an amount disappointing nonsense to be caused by the ImageView doesn't Autodetect not the EXIF orientation flag. Please improve this BlackBerry.

  • How to use the cfhtmlhead tag?

    I found this documentation, Adobe ColdFusion 9 * cfhtmlhead , but how do I use it in my page? Where do the < cfhtmlhead text = "#sHeader #" > tag to go on the page?

    Well, then that's what I have.

    <cfsavecontent variable="sHeader">
      <cfoutput>
      <title>#title# | My Company Site Claire</title>
      <meta name="keywords" content="#tags#"  />
      <meta property="og:locale" content="en_US"/>
      <meta property="og:type" content="website"/>
      <meta property="og:title" content="#cfData.data[i].name#"/>
      <meta property="og:url" content="#canonical#" />
      <meta property="og:site_name" content="My Company website"/>
      <meta name="twitter:site" content="@MySite">
      <meta name="twitter:title" content="#cfData.data[i].name#">
      <meta name="twitter:creator" content="@MySite">
      <link rel="canonical" href="#canonical#" />
      </cfoutput>
    </cfsavecontent>
    <cfhtmlhead text="#sHeader#">
    

    Okay, so now that I have the 'text' in the cfhtmlhead tag, should I do something else for him show the inside of the header section of the page?

    I thought about it. CFSaveContent cannot be within the cfoutput tag. If I move the line 8 to 20 out of the cfoutput, it works.

  • Tags and Notes in a single CSV file export

    I'm trying to export tags and notes in to a CSV simple change of batch and importation in vCenter.  I have a script to export tags and I can export notes, but I want to make in a single operation and to a simple CSV file.  Here's the current code, I use and please forgive me for not crediting the original creator, I built this script I don't remember!  I have a Notes column in the CSV file resulting, but he is empty...  Thanks in advance.

    Don

    Current script:

    If (-not of $DefaultVIServer.IsConnected) {}

    SE connect-VIServer "vcenter.server" - Credential (Get-Credential $_.) User name)

    }

    $tagCat = @)

    $tagTab = @ {}

    foreach ($tag in (Get-TagAssignment)) {}

    $tagCat += $tag. Tag.Category.Name

    $key = $tag. @entity.name

    {if ($tagTab.ContainsKey ($Key))}

    "$val = $tagTab.Item ($key)"

    }

    else {}

    $val = @ {}

    }

    $val. Add ($tag. Tag.Category.Name, $tag. Tag.Name)

    $tagTab [$key] = $val

    }

    $tagCat = $tagCat | Sort-Object-Unique

    $tags = foreach ($row in ($tagTab.GetEnumerator () |)) Sort - Object - property key)) {}

    $VMName = $row. Key

    $VMNotes = get - VM $VMName | Select-Object - ExpandProperty Notes

    $obj = new-Object-property PSObject @ {}

    Name = $row. Key

    }

    $tagCat | %{

    $obj | Add-Member-Name $_-value $row. Value [$_]-MemberType NoteProperty

    }

    $VMNotes | %{

    $obj | Add-Member-name 'Notes' - value $row. $VMNotes - MemberType NoteProperty

    }

    $obj

    }

    $tags | Export Csv tags.csv - NoTypeInformation - UseCulture

    Try like this

    If (-not of $DefaultVIServer.IsConnected) {}

    SE connect-VIServer "vcenter.server" - Credential (Get-Credential $_.) User name)

    }

    $tagCat = @)

    $tagTab = @ {}

    foreach ($tag in (Get-TagAssignment)) {}

    $tagCat += $tag. Tag.Category.Name

    $key = $tag. @entity.name

    {if ($tagTab.ContainsKey ($Key))}

    $val = $tagTab.Item ($key)

    }

    else {}

    $val = @ {}

    }

    $val. Add ($tag. Tag.Category.Name, $tag. Tag.Name)

    $tagTab [$key] = $val

    }

    $tagCat = $tagCat | Sort-Object-Unique

    $tags = foreach ($row in ($tagTab.GetEnumerator () |)) Sort - Object - property key)) {}

    $VMName = $row. Key

    $VMNotes = get - VM $VMName | Select-Object - ExpandProperty Notes

    $obj = new-Object-property PSObject @ {}

    Name = $row. Key

    }

    $tagCat | %{

    $obj | Add-Member-Name $_-value $row. Value [$_]-MemberType NoteProperty

    }

    $obj | Add-Member-name 'Notes' - $VMNotes - MemberType NoteProperty value

    $obj

    }

    $tags | Export Csv tags.csv - NoTypeInformation - UseCulture

Maybe you are looking for

  • Drag / move

    Hello I have a main.vi where I created Boolean controls for chart and indicators. If I press the graph button it will start to pop - up graph.vit (model) and it shows in main.vi. as even if I press the indicator button it will start to pop up and run

  • xBox gamepad for Windows

    I can't run the gamepad xBox on Windows 7.It seems that the driver is not compatible (Windows XP and Vista 32-bit)What could I do about it?

  • Change of location on the weather Gadget?

    The weather Gadget on my computor will not change the location of the location of what it was on... to the location of my hometown, no matter how many times I try. What should I do to get my hometown on the weather gadget location?

  • Is the only soultion of DCOM nt server failure, to reinstall the OS?

    Ive had the same problem as everyone else, started 2 days ago, and our COMPUTER technician at work is at a loss.

  • Engine analysis works do not often 5.0 (5) GIS 218

    Hello We have 27 4215 performer 5.0 (5) GIS 218 and found by "health and wellness messages" the analytical engine does not work on some of our sensors. I can't set a model and it is random. Whenever we see it we're going to restart the daemon CIDS. I