I have multiple spinning balls that I want to animate altogether. Here's what I have so far but when I play the parallel (spinning.play()), nothing happens.
Where am I going wrong?
<fx:Declarations>
<fx:Vector id="kfP1" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="0" value="0x9F9B9B" />
<s:Keyframe time="250" value="0xFFFFFF" />
<s:Keyframe time="500" value="0x9F9B9B" />
</s:MotionPath>
</fx:Vector>
<fx:Vector id="kfP2" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="125" value="0x9F9B9B" />
<s:Keyframe time="375" value="0xFFFFFF" />
<s:Keyframe time="625" value="0x9F9B9B" />
</s:MotionPath>
</fx:Vector>
<fx:Vector id="kfP3" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="250" value="0x9F9B9B" />
<s:Keyframe time="500" value="0xFFFFFF" />
<s:Keyframe time="750" value="0x9F9B9B" />
</s:MotionPath>
</fx:Vector>
<fx:Vector id="kfP4" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="375" value="0x9F9B9B" />
<s:Keyframe time="625" value="0xFFFFFF" />
<s:Keyframe time="875" value="0x9F9B9B" />
</s:MotionPath>
</fx:Vector>
<fx:Vector id="kfP5" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="500" value="0x9F9B9B" />
<s:Keyframe time="750" value="0xFFFFFF" />
<s:Keyframe time="1000" value="0x9F9B9B" />
</s:MotionPath>
</fx:Vector>
<fx:Vector id="kfP6" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="625" value="0x9F9B9B" />
<s:Keyframe time="875" value="0xFFFFFF" />
<s:Keyframe time="1125" value="0x9F9B9B" />
</s:MotionPath>
</fx:Vector>
<fx:Vector id="kfP7" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="125" value="0x9E9A9A" />
<s:Keyframe time="750" value="0x9F9B9B" />
<s:Keyframe time="1000" value="0xFFFFFF" />
<s:Keyframe time="1125" value="0xCECCCC" />
</s:MotionPath>
</fx:Vector>
<fx:Vector id="kfP8" type="spark.effects.animation.MotionPath">
<s:MotionPath property="baseColor">
<s:interpolator>
<s:HSBInterpolator />
</s:interpolator>
<s:Keyframe time="0" value="0xFFFFFF" />
<s:Keyframe time="125" value="0x9E9A9A" />
<s:Keyframe time="875" value="0x9F9B9B" />
<s:Keyframe time="1125" value="0xFFFBFB" />
</s:MotionPath>
</fx:Vector>
<s:Parallel id="spinning" repeatCount="0" duration="1125" >
<s:Animate id="animateP1" motionPaths="{kfP1}" target="{p1}"/>
<s:Animate id="animateP2" motionPaths="{kfP2}" target="{p2}"/>
<s:Animate id="animateP3" motionPaths="{kfP3}" target="{p3}"/>
<s:Animate id="animateP4" motionPaths="{kfP4}" target="{p4}"/>
<s:Animate id="animateP5" motionPaths="{kfP5}" target="{p5}"/>
<s:Animate id="animateP6" motionPaths="{kfP6}" target="{p6}"/>
<s:Animate id="animateP7" motionPaths="{kfP7}" target="{p7}"/>
<s:Animate id="animateP8" motionPaths="{kfP8}" target="{p8}"/>
</s:Parallel>
</fx:Declarations>
Looking at the format for Parallel that Catalyst produces (which works) it looks like you need to do something like this (unchecked)
<s:Parallel>
<s:Parallel target = "{p1}">
<s:Animate id="animateP1" motionPaths="{kfP1}"/>
</s:Parallel>
<s:Parallel target = "{p2}">
<s:Animate id="animateP2" motionPaths="{kfP2}"/>
</s:Parallel>
</s:Parallel>
It looks weird to me, but that's what the tooling produces!
Related
I have xml output below. I am trying to remove parents using XML or xml2 library from R. I found a similar post here but those functions somehow gave me an error. I am trying to remove those parents until analysisdata parent. That is what I am going to parse.
<assessment>
<itembank />
<instrument id="797393 ">
<form id="Math G3">
<formitem id="8243" position="0" />
</form>
</instrument>
<admin id="797393 " instrument="797393 ">
<genatt name="adminperiod" value="SP19" />
<responseanalyses>
<responsebankref id="3M" />
<analysisdefs>
<analysisoption name="mark" value="no" />
<analysisoption name="notreached" value="ASNOTPRESENTED" />
<statentity type="item" id="8243" varname="I_8243">
<genatt name="type" value="CR" />
<genatt name="codestart" value="0" />
<genatt name="validcodes" value="2" />
<genatt name="omitcode" value="9" />
<genatt name="notpresentedcode" value="8" />
<statentity code="0.000000" id="0.000000" type="itemscorept" />
<statentity code="1.000000" id="1.000000" type="itemscorept" />
<statentity code="9" id="omit" type="itemscorept" />
</statentity>
<genatt name="type" value="CR" />
<genatt name="codestart" value="0" />
<genatt name="validcodes" value="2" />
<genatt name="omitcode" value="9" />
<genatt name="notpresentedcode" value="8" />
<statentity code="0.000000" id="0.000000" type="itemscorept" />
<statentity code="1.000000" id="1.000000" type="itemscorept" />
<statentity code="9" id="omit" type="itemscorept" />
</statentity>
<statentity id="DIFGROUP_TTS" varname="DIFGROUP_TTS" type="popgroup" description="DIFGROUP_TTS">
<statentity code="0.000000" id="0.000000" description="0.000000" samplesize="40501" type="popsubgroup" />
<statentity code="1.000000" id="1.000000" description="1.000000" samplesize="5532" type="popsubgroup" />
</statentity>
</analysisdefs>
<genatt name="xmloutputfile" value="J:\out.xml" />
<analysis creator="ST" description="" level="form" type="classical">
<analysisdata formid="Math G3">
<statentityref id="8243" type="item">
<statval type="OmitCount" value="0.000000" />
<statval type="NotReachedCount" value="43.000000" />
<statval type="PolyserialCorrelation" value="0.644181" />
<statval type="AdjustedPolyserial" value="0.644181" />
<statval type="AverageScore" value="0.223074" se="0.011957" />
<statval type="NCount" value="2609.000000" />
<statval type="StdevItemScore" value="0.416308" />
</statentityref>
</statentityref>
</statentityref>
</analysisdata>
</analysis>
</responseanalyses>
<responsebank findin="J:\outAM.am" sourcetype="AM" id="3M" />
</admin>
</assessment>
I tried
library(xml2)
library(XML)
newdoc <- xpathApply(doc, "/assessment/admin/responseanalyses") I get this error after running this: Error in UseMethod("xpathApply") :
no applicable method for 'xpathApply' applied to an object of class "c('xml_document', 'xml_node')". THis solution was suggested here.
After removing those parent nodes, I would like to have analysisdata node only after removing the assessment/admin/responseanalyses parent node. Desired out is like this below:
<analysisdata formid="Math G3">
<statentityref id="8243" type="item">
<statval type="OmitCount" value="0.000000" />
<statval type="NotReachedCount" value="43.000000" />
<statval type="PolyserialCorrelation" value="0.644181" />
<statval type="AdjustedPolyserial" value="0.644181" />
<statval type="AverageScore" value="0.223074" se="0.011957" />
<statval type="NCount" value="2609.000000" />
<statval type="StdevItemScore" value="0.416308" />
</statentityref>
</statentityref>
</statentityref>
</analysisdata>
Any thoughts?
Thanks!
You could use html_node from rvest library
rvest::html_node(doc, 'analysisdata')
Can anyone help me in this regard, checking with Sabre Soap API's for booking flow. I am getting the failure in EnhancedAirBookRQ response.
I am getting the below response :
<ApplicationResults status="NotProcessed" xmlns="http://services.sabre.com/STL_Payload/v02_01">
<Error type="BusinessLogic" timeStamp="2018-10-01T05:38:45.063-05:00">
<SystemSpecificResults>
<Message code="ERR.SWS.HOST.ERROR_IN_RESPONSE">*NO FARES/RBD/CARRIER</Message>
<Message code="146">*NO FARES/RBD/CARRIER</Message>
</SystemSpecificResults>
</Error>
</ApplicationResults>
Request:
<v3:EnhancedAirBookRQ version="3.2.0" HaltOnError="true" IgnoreOnError="true">
<v3:OTA_AirBookRQ>
<v3:OriginDestinationInformation>
<v3:FlightSegment ArrivalDateTime="2018-11-11T07:38:00" DepartureDateTime="2018-11-11T06:31:00" FlightNumber="6384" NumberInParty="1" ResBookDesigCode="K" Status="NN">
<v3:DestinationLocation LocationCode="BOS" />
<v3:Equipment AirEquipType="E90" />
<v3:MarketingAirline Code="TP" FlightNumber="6384" />
<v3:MarriageGrp Ind="false" />
<v3:OperatingAirline Code="B6" />
<v3:OriginLocation LocationCode="JFK" />
</v3:FlightSegment>
<v3:FlightSegment ArrivalDateTime="2018-11-12T06:00:00" DepartureDateTime="2018-11-11T18:40:00" FlightNumber="218" NumberInParty="1" ResBookDesigCode="K" Status="NN">
<v3:DestinationLocation LocationCode="LIS" />
<v3:Equipment AirEquipType="332" />
<v3:MarketingAirline Code="TP" FlightNumber="218" />
<v3:MarriageGrp Ind="true" />
<v3:OperatingAirline Code="TP" />
<v3:OriginLocation LocationCode="BOS" />
</v3:FlightSegment>
<v3:FlightSegment ArrivalDateTime="2018-11-12T12:20:00" DepartureDateTime="2018-11-12T08:40:00" FlightNumber="6791" NumberInParty="1" ResBookDesigCode="K" Status="NN">
<v3:DestinationLocation LocationCode="LUX" />
<v3:Equipment AirEquipType="73H" />
<v3:MarketingAirline Code="TP" FlightNumber="6791" />
<v3:MarriageGrp Ind="true" />
<v3:OperatingAirline Code="LG" />
<v3:OriginLocation LocationCode="LIS" />
</v3:FlightSegment>
<v3:FlightSegment ArrivalDateTime="2018-11-15T12:25:00" DepartureDateTime="2018-11-15T10:55:00" FlightNumber="3761" NumberInParty="1" ResBookDesigCode="X" Status="NN">
<v3:DestinationLocation LocationCode="OPO" />
<v3:Equipment AirEquipType="73W" />
<v3:MarketingAirline Code="LG" FlightNumber="3761" />
<v3:MarriageGrp Ind="false" />
<v3:OperatingAirline Code="LG" />
<v3:OriginLocation LocationCode="LUX" />
</v3:FlightSegment>
<v3:FlightSegment ArrivalDateTime="2018-11-15T15:30:00" DepartureDateTime="2018-11-15T14:30:00" FlightNumber="1947" NumberInParty="1" ResBookDesigCode="W" Status="NN">
<v3:DestinationLocation LocationCode="LIS" />
<v3:Equipment AirEquipType="AT7" />
<v3:MarketingAirline Code="TP" FlightNumber="1947" />
<v3:MarriageGrp Ind="false" />
<v3:OperatingAirline Code="WI" />
<v3:OriginLocation LocationCode="OPO" />
</v3:FlightSegment>
<v3:FlightSegment ArrivalDateTime="2018-11-15T20:00:00" DepartureDateTime="2018-11-15T17:00:00" FlightNumber="209" NumberInParty="1" ResBookDesigCode="W" Status="NN">
<v3:DestinationLocation LocationCode="JFK" />
<v3:Equipment AirEquipType="332" />
<v3:MarketingAirline Code="TP" FlightNumber="209" />
<v3:MarriageGrp Ind="true" />
<v3:OperatingAirline Code="TP" />
<v3:OriginLocation LocationCode="LIS" />
</v3:FlightSegment>
</v3:OriginDestinationInformation>
</v3:OTA_AirBookRQ>
<v3:OTA_AirPriceRQ>
<!--v3:PriceComparison /-->
<v3:PriceRequestInformation Retain="true">
<v3:OptionalQualifiers>
<v3:PricingQualifiers>
<v3:PassengerType Code="ADT" Quantity="1" />
</v3:PricingQualifiers>
</v3:OptionalQualifiers>
</v3:PriceRequestInformation>
</v3:OTA_AirPriceRQ>
<v3:PostProcessing IgnoreAfter="false" />
<v3:PreProcessing IgnoreBefore="false" />
</v3:EnhancedAirBookRQ>
Checking this test step in soap ui project given by Sabre on their developer portal. Before this, checked for test-steps for create session and low fare search for flights.
Can anyone tell any way to resolve on this. Thanks for any help.
EnhancedAirBookRQ flight details are not correct. Please verify or use search API again to fetch correct details
I am trying to get results from BargainFinderMaxRQ for Alternate Days, like in plus 3 days or minus 3 days. It always shows No Availability error in response. By the way, the simple request works perfectly. Please, can anyone help?
API Request:
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
</SOAP-ENV:Header><SOAP-ENV:Body><OTA_AirLowFareSearchRQ xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Target="Production" Version="4.2.0" ResponseType="OTA" ResponseVersion="4.2.0">
<POS>
<Source PseudoCityCode="8YXD">
<RequestorID ID="1" Type="1">
<CompanyName Code="TN" />
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation RPH="1">
<DepartureDateTime>2018-08-23T00:00:00</DepartureDateTime>
<OriginLocation LocationCode="DXB" />
<DestinationLocation LocationCode="KHI" />
<TPA_Extensions>
<DateFlexibility NbrOfDays="2"/>
<SegmentType Code="O" />
</TPA_Extensions>
</OriginDestinationInformation>
<OriginDestinationInformation RPH="2">
<DepartureDateTime>2018-08-30T00:00:00</DepartureDateTime>
<OriginLocation LocationCode="KHI" />
<DestinationLocation LocationCode="DXB" />
<TPA_Extensions>
<DateFlexibility NbrOfDays="2"/>
<SegmentType Code="O" />
</TPA_Extensions>
</OriginDestinationInformation>
<TravelPreferences ValidInterlineTicket="true" MaxStopsQuantity="0">
<CabinPref PreferLevel="Preferred" Cabin="Y" />
<TPA_Extensions>
<TripType Value="Return" />
<LongConnectTime Min="780" Max="1200" Enable="true"/>
<ExcludeCallDirectCarriers Enabled="true"/>
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary>
<SeatsRequested>1</SeatsRequested>
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1" />
</AirTravelerAvail>
<PriceRequestInformation CurrencyCode="PKR" >
<TPA_Extensions>
</TPA_Extensions>
</PriceRequestInformation>
</TravelerInfoSummary>
<TPA_Extensions>
<IntelliSellTransaction Debug="0">
<RequestType Name="ALTDATES"/>
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ></SOAP-ENV:Body></SOAP-ENV:Envelope>
This needs to be activated by the account manager as Thomas mentioned.
PLEASE MAKE THREE CHANGES AND IT WILL WORK PERFECTLY
1) SET ACTION NAME AS BargainFinderMax_ADRQ
<eb:Service eb:type="OTA">BargainFinderMax_ADRQ</eb:Service>
<eb:Action>BargainFinderMax_ADRQ</eb:Action>
2) SET NUMBER OF DAYS FOR FLEXIBILITY
<DateFlexibility NbrOfDays="1"/> OR
<DateFlexibility NbrOfDays="3"/> OR
<DateFlexibility NbrOfDays="7"/>
3) SET REQUEST TYPE NAME
<RequestType Name="AD1"/> OR
<RequestType Name="AD3"/> OR
<RequestType Name="AD7"/>
I have a asp.net web api application (full .net, not core) that has a simple datastore that is currently using a SQL compact edition, which I access via EF 6.1.
I want to swap to SQLite, and at the same time I thought I might go over to EFCore.
I thought I would have a look in a sample app. When I source for Microsoft.EntityFrameworkCore.Sqlite I actually find 2 packages Microsoft.EntityFrameworkCore.Sqlite and Microsoft.EntityFrameworkCore.Sqlite.Core, but I think they are the same (as I installed one and now the other is also highlighted as installed in nuget package manager.
My real question here is about some missing references...
My test app is just a WPF targeting .net 4.7, and I get the following missing references...
The app, however, still seems to build. I have not tried actually using it yet.
Has anyone else had these missing references, and if so, do we just remove them?
Thanks in advance for any info
[EDIT1]
Here are the package.config contents as asked in the comments
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.CSharp" version="4.4.0" targetFramework="net47" />
<package id="Microsoft.Data.Sqlite.Core" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.EntityFrameworkCore" version="2.0.1" targetFramework="net47" />
<package id="Microsoft.EntityFrameworkCore.Relational" version="2.0.1" targetFramework="net47" />
<package id="Microsoft.EntityFrameworkCore.Sqlite" version="2.0.1" targetFramework="net47" />
<package id="Microsoft.EntityFrameworkCore.Sqlite.Core" version="2.0.1" targetFramework="net47" />
<package id="Microsoft.Extensions.Caching.Abstractions" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.Caching.Memory" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.Configuration.Abstractions" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.DependencyInjection" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.Logging" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.Logging.Abstractions" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.Options" version="2.0.0" targetFramework="net47" />
<package id="Microsoft.Extensions.Primitives" version="2.0.0" targetFramework="net47" />
<package id="Remotion.Linq" version="2.1.1" targetFramework="net47" />
<package id="SQLitePCLRaw.bundle_green" version="1.1.7" targetFramework="net47" />
<package id="SQLitePCLRaw.core" version="1.1.7" targetFramework="net47" />
<package id="SQLitePCLRaw.lib.e_sqlite3.linux" version="1.1.7" targetFramework="net47" />
<package id="SQLitePCLRaw.lib.e_sqlite3.osx" version="1.1.7" targetFramework="net47" />
<package id="SQLitePCLRaw.lib.e_sqlite3.v110_xp" version="1.1.7" targetFramework="net47" />
<package id="SQLitePCLRaw.provider.e_sqlite3.net45" version="1.1.7" targetFramework="net47" />
<package id="System.Collections" version="4.0.11" targetFramework="net47" />
<package id="System.Collections.Immutable" version="1.4.0" targetFramework="net47" />
<package id="System.ComponentModel.Annotations" version="4.4.0" targetFramework="net47" />
<package id="System.Diagnostics.Debug" version="4.0.11" targetFramework="net47" />
<package id="System.Diagnostics.DiagnosticSource" version="4.4.1" targetFramework="net47" />
<package id="System.Interactive.Async" version="3.1.1" targetFramework="net47" />
<package id="System.Linq" version="4.1.0" targetFramework="net47" />
<package id="System.Linq.Expressions" version="4.1.0" targetFramework="net47" />
<package id="System.Linq.Queryable" version="4.0.1" targetFramework="net47" />
<package id="System.ObjectModel" version="4.0.12" targetFramework="net47" />
<package id="System.Reflection" version="4.1.0" targetFramework="net47" />
<package id="System.Reflection.Extensions" version="4.0.1" targetFramework="net47" />
<package id="System.Runtime" version="4.1.0" targetFramework="net47" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.4.0" targetFramework="net47" />
<package id="System.Runtime.Extensions" version="4.1.0" targetFramework="net47" />
<package id="System.Threading" version="4.0.11" targetFramework="net47" />
</packages>
I'm getting this output from ap, in my rspec test
"line1"<br />
"line2"<br />
"city"<br />
"state"<br />
"zip"<br />
"country"<br />
It is not because of the :html option, because when that's on it looks like:
<pre><kbd style="color:brown">"line1"</kbd></pre><br />
<pre><kbd style="color:brown">"line2"</kbd></pre><br />
<pre><kbd style="color:brown">"city"</kbd></pre><br />
<pre><kbd style="color:brown">"state"</kbd></pre><br />
<pre><kbd style="color:brown">"zip"</kbd></pre><br />
<pre><kbd style="color:brown">"country"</kbd></pre><br />