Wikipedia API - Retrieve USA Power Plants by Date Built - wikipedia-api

I'm racking my brain how to use the Wikipedia API to get a list of the power plants in https://en.wikipedia.org/wiki/Category:Coal-fired_power_stations_in_the_United_States_by_state
Then include the data from the Commission Date field next to each plant. (Alternatively, cross-reference with the "energy infrastructure completed in 19XX" category)
Where do I start? EIA this information, but only for the actual generators that are still in use, not the date for the powerplants housing those generators. I also found some Data related to Co2 production, but those dates go back only to 1945.
Any help would be greatly appreciated!

Related

Sabre Instaflights Search API only pulling Basic Economy Fares

I am testing the Instaflights Search API to pull fare information for an airline. In this example, using Delta. When I pull the data, I only get the pricing for the Basic Economy and not for Main Cabin or First class. Is there a way to get access to these prices or we are limited to the lowest price? I compared the results with the Delta website and only the flights with Basic Economy seats matched between the API and the airline site.
InstaFligths, retrieves roundtrip or one-way flight itineraries with published fares and fare breakdowns for a given city pair and departure date. The API returns the 300 of the lowest-priced itineraries.
If looking to retrieve different Brands or Cabin Types, please look into Bargain Finder Max API.
https://developer.sabre.com/docs/read/rest_apis/air/search/bargain_finder_max

Amadeus Service 'No fare for booking code ' error in Fare_Informativebestpricing

I am working on to call the Amadeus Service and get the response for flight search and then book.
Amadeus service method _InformativeBestPricingWithoutPNR is giving following error
1) 'NO VALID FARE/RULE COMBINATIONS FOR PRICING'
2) 'NO FARE FOR BOOKING CODE-TRY OTHER PRICING OPTIONS'
3) 'No INTERLINE AGREEMENT - PRICE SEPARATELY'
Just to know that i am calling Fare_MasterPricerTravelBoard and then select one flight and call the Fare_InformativeBestpricingWithoutPNR , some of the flight is giving proper response in Fare_InformativeBestpricing but some of the are giving error,
Please help, i have read all the document provide by Amadeus extranet site and related document , there are no any solution provide for specific error.
If you haven't already read it, I'd definitely suggest you log in to webservices.amadeus.com and take a look at the Amadeus WBS Implementation Guide - Internet Booking Engine with Master Pricer.
Typically these errors occur because only a subset of the journey returned by Travel Board is being sent to Informative Bestpricing, and this subset is not valid for pricing on its own.
A typical case when this can occur is if you price each leg individually but the Fare Basis used may only apply for a round trip.
Could you please provide more information on the call you are making to Fare_InformativeBestpricingWithoutPNR?
The error says you are combining two different airlines that do not have interline agreements. So in this case you will have to price them separately. For example if you are flying american airlines for the outbound flight, then you cannot fly air france in the inbound flight and price them in one transaction. in this case, assuming American and Air France do not have interline agreements, you have to price them separately.

display always the right MDX (sub)total in the client-application (eg Excel)

I can't figure it out! (CustomRollUpColumn??, or some custom made MDX calculated thing)
My problem: I have a dimension TypeOfRow who's function it is to display the ... well yes ... type of row. I'm working in the financial sector and, always, need to provide the ultimate result ==>> The Total Contribution. I read, amongst others, the article of Martin Mason ( http://martinmason.wordpress.com/2012/02/26/the-ssas-financial-cubepart-1ragged-hierarchies/ ) and designed the dimension as a "Naturalized Parent-Child Hierarchy".
The dimension, 5 levels, I designed for this solution is (simplyfied):
•+/+ Revenue (several types of)
•-/- Cost (several types of)
•= Total Contribution
A user requirement is that the "Total Contribution" always display the "Total Contribution" even if any the Revenue- or Cost types are filtered out.
My question: is this possible showing the total of a dimension without showing all the members (in Excel but I hope to configure this in SSAS 2008R2)?
many thanks in advance, - Leon

My itunes sales report is not correct when it compare with Financial Reports

Every month i download sales report from itunes using their java library. And this data is saved in to my database.
Report contain number of fields and i used to save developer_proceeds field as my earnings. But when i look in to the Financial report there is a big difference in amount. For this reason i double check my report. First i look Sales report from march. after i check this from 'Payments and Financial Reports' Earnings tab. But this report contain some extra contents.
if anyone know about this please help me.
Thanks in advance.
Are you applying international exchange rates to your developer_proceed field? That could account for a big difference in amount.
If you're doing the exchange rate conversions, there would still be a small difference as the exchange rates change a lot, and will most likely have been different from when the Sales report was created and you converted it vs. when Apple converts the numbers to cut your check.

Field values that vary over time and querying them

Imagine you have a website which lists available hotel rooms and their prices.
The hotel owners set a price per day for each room - it only needs to be as complicated as "Jan 1st costs $100" not "Jan 1st 1999 costs $50, Jan 1st 2000 costs $100".
The granularity is limited to day-rate.
What would be the most efficient (in terms of load when querying for rooms) way to represent this in a database?
For each room, have a separate table holding a date field and a price field? ie 365 entries per room.
I see ways to solve this, but the problem becomes slightly more complicated when for example a user wishes to do a query such as "7 days in august with a budget of $500". This is a feature I would dearly like to implement.
The UI will allow owners to set room prices as blocks of time rather than individual day rates - eg if a room price was $50 for jan-jun and $100 for jul-dec then that is two price blocks. Obviously if needs be that could be translated into 365 date type fields, but a solution using two daterange type fields instead would be preferable.
Any pointers as to where I could learn techniques for this would be greatly appreciated. I have searched google and found information on Calendar Tables, but any additional tips or info would be appreciated.
Historically I have used MySQL, but anything would be considered.
In the terminology of Ralph Kimball, this is called a slowly changing dimension.
I would suggest that you look at one of this books. The latest edition of "The Data Warehouse Toolkit" should cover this topic quite well.