I'm doing a school project where i need hard data on twitch viewership. I found a great site, stats.twitchapps.com that has all of these data in charts.
However, I need the data in excel format to do statistical analysis on it for my class.
I have some background in C# programmin. I've been trying to scrape the data using C# and Json.Net), but i'm not having much luck....
Here is the php file that contains the chart: view-source:http://stats.twitchapps.com/categories.php
Can anyone point me in the right direction on how i might go about this?
The graph source data can be found here. It's an array of arrays with [JStimestamp, viewers]. I'm sure you'll find a way to get this into excel (e.g. convert the array to lines and then to a CSV format which can be imported into excel), although I'm not really sure why anyone would want to work with this amount of data in excel... Good luck with your project.
At the beginning I recommend you to visit this website. In the excel you can export data to csv, which can be loaded by $.get() method in jquery. Next step is parse your data to correct format (data array in series object) and return a chart.
Related
I have an excel sheet with a complex formula applied in it. I want to use this formula from my C# code for some calculations. My scenario is like this User fill a form (web) and submit, our program will fetch these values and applied in the hosted excel sheet and get the result.
is this possible?
Help is highly appreciable.
Thanks,
This really should go in the comments section, as I have a few questions to clarify your request. However, as I do not yet have the reputation, my questions must go here.
Is it a formula residing in your existing Excel document that you want to utilize that formula/document without re-writing the code?
Or are you asking if it is possible to write the same formula that you have working on the Excel sheet in c#?
If the former, it is conceivable to pass data into the Excel sheet from the code. After all we can use code to append to other document types, why not an Excel document? And if we can fetch specific lines from other document types, why not from an Excel document (especially since the grid/cell layout provides easier addressable points). However, while it is conceivable, doesn't mean it's easy. It's an interesting proposition, and I'd like to do some experiments on that.
If it is the latter, then depending on the formula's requirements, you may just need to use the appropriate math libraries and write out the formula directly in the c# code. You may not be able to visually see how everything ties together as nicely in the Excel document (with the referenced cells highlighted), but you could modularize components of the formula more easily as sub-functions and re-use values easily enough with variables.
I downloaded a .osm.pbf file at http://download.geofabrik.de/europe.html.
I need to convert the data (streets etc) to Graphs so I can calculate routes. I believe these files already work with Nodes but I have trouble reading the data.
I tried using http://www.osmsharp.com/ but I don't really understand the software.
Can someone give me links to a proper library or give me a few tips in how to access the data from the OSM. Some pseudo / example code is fine aswell.
I'm new to openstreetmaps and this kind of parsing, so I'm sorry if this is a rookie question.
If you have questions please do tell!
Thanks!
I suggest to play around with OSM XML first to get an idea about how OSM data works. It is also very helpful to launch an OSM editor (e.g. the browser editor iD or the standalone editor JOSM) to take a look at real OSM data.
Later you can read about the PBF format (it is mainly smaller and faster than OSM XML) and about PBF software support. Use one of the existing libraries, don't try to reinvent the wheel.
Also read about how to calculate a routing graph from OSM data. Also look at routing in the OSM wiki. There is some general information available as well as a list of online and offline routers. If you are stuck you can take a look at their implementations.
One of the educational data was stored in adobe page maker file (.PMD) file. Which consist of scientific formulas like mathematical equations, chemistry formulas, I would like to store those data on a MSSQL database then represent in browser. I tried to read PMD file data using C#.NET unfortunately I didn’t get the results which I required.
Can anybody help me regarding this?
Is there any possible ways to read page maker data instead of C#.NET?
Is there any chance of getting the result if we convert the PMD file to another extension?
Sorry, I am not familiar with PageMaker, so just speculating.
You can try to convert to Indesign file:
https://helpx.adobe.com/creative-suite/kb/open-pagemaker-files-indesign.html
Indesign has XML export and script support.
I want to search the google Api freebase. I want to get general amount of data. For example all Ids of songs, or films. I downloaded the data dumps gz file. I wonder what will be the best solution of parsing the file and getting the data I need. I am using .net c#.
There are a couple .NET libraries that can read the RDF format of the dumps:
SemWeb.NET
dotNetRdf
The data dumps are also formatted as tab separated values so you should be able to use any CSV parser to parse each line as a triple.
Make sure that you read through the developer docs on how the data dumps are formatted. Basically, each line forms a triple that has a subject, predicate and object. To get all the data about films you'll be looking for triples that have a predicate that starts with /film/.
I have strings (4 columns and 20 rows) in an excel sheet and I need to call there position in an app, such as column 2 row 159.
I was wondering what someone thought about my options and how I would move this data. I have looked into:
plain 2 dimensional array
sqlite
linq
dictionary hash table
It felt like they all required almost all manual data entry which I am trying to avoid. Does anyone have any ideas?
If you just need to take the data in your Excel spreadsheet and make it available to your WP7 application, this should be a straightforward process.
Firstly, I would save it in CSV format, this is the most accessible format for applications to read the data. Add it to your project as a resource and load it within your application, then use a CSV parser to load it into memory. You can then access it directly based on user input.