ArangoDB Example graph data is missing flights.csv - csv

Following the ArangoDB "Graph Course for Freshers: The Shortest_Path to first graph skills" requires flights.csv data to go along with airports.csv. Airports.csv is found at GitHub - arangodb/example-datasets: Demo Data for ArangoDB. However, I do not find flights.csv there (or anywhere else that turned up in a search).
Does anyone have a copy of it to share?

The airports.csv file in the example-dataset repository (https://github.com/arangodb/example-datasets/blob/master/Airports/airports.csv) is a different file than is intended to be used for the Graph Course.
The right Graph Course files airports.csv and flights.csv can be downloaded via the link you find on page 15 of the PDF, with the headline Download and Import the Dataset:
The download link for the 2019 Edition graph course dataset is:
https://www.arangodb.com/graphcourse_demodata_arangodb-2/

Related

How can I get a list of help context IDs used in a CHM help file?

I have a C++ program that calls AfxMessageBox, passing in a help file context ID. When I click Help on the resulting message box, I get a litte error box that says "Failed to launch help." I need to verify that I'm using a valid help ID. Is there a way to examine a CHM file to find out what context IDs are valid for it? Either a commercial tool or a way to write a C# or C++ or even Python program to do it.
Edit: This is an old CHM file, and I do not have the files that were used to create it. I used 7-zip to extract its contents into a folder, but I see nothing there that tells me what context IDs the file has. When the error occurs, the C++ code assigns a value of 135 to the error, and then it adds 0x30000 (196,608) to that for no reason I know. Then, when the message box gets generated, 0x30000 is subtracted and the result, 135, is passed in to AfxMessageBox() as the help ID. I've tried both 135 and 196743 (0x30000 + 135) in the AfxMessageBox() call but neither has worked. The files extracted from the help file by 7-Zip include a set of .htm file with numbers for names, but the numbers have no relation to the context IDs that I can find.
There is another execution path in my code that uses the same help file. As near as I can tell, it uses low-level functions to create a dialog box that resembles the output of AfxMessageBox(). When I force that code path use context ID 196743, I get the expected help page. Unfortunately, it's not easy to get from the code that doesn't work to the code that does.
Edit:
Your additional Edit in the question take me back many years. Not related to your original question but some links to read:
Starting with HTML Help
Adding HTML Help to Existing Dialog-Based Application
Extracting help contextID by code you must have deep knowledge of the CHM internals.
For a single value e.g. 10000 you may want to test the contextID using PowerShell or a DOS prompt. This opens the requested .chm in the Help viewer, and uses a context ID to request a URL to display.
hh.exe -mapid 10000 ms-its:CHM-example.chm
Sometimes you only have the CHM output file and nobody can locate the source files. It’s not always possible to recover all files and data you need.
Decompiling loses the alias.h and map.h files and their information for F1-Help (context sensitive help).
You may know a CHM is something like a zipped web (HTML archive) with some additional system files of metadata. Context ID's are mostly integrated by compiling a alias.h and map.h file. The purpose of the two files is to ease the coordination between developer and help author. The mapping file links an ID to the map number - typically this can be easily created by the developer and passed to the help author. Then the help author creates an alias file linking the IDs to the topic names (See: Creating Context-Sensitive Help for Applications.
I'm using FAR HTML as a toolbox full of various authoring, file and HTML utilities (Disclaimer: It is freeware now!).
Please note there is a download link (for required Microsoft HTMLHelp Workshop) because the Microsoft download links are broken.
The CHM can be opened using FAR HTML and by copy and paste you have all ID and topic information (ALIAS section). In Help File Explorer you need to open Internal Files > #IVB.

snmp_exporter fail to generate snmp.yml

I have been trying to configure Prometheus to collect SNMP information and then send that data to Grafana. my problematic configuration to generate the generator.yml file for snmp.yml fails.
I I guess my main problem is that when I reference Huawei MIBs in the generator.yml file, I can only reference part of the MIBs,the rest cannot be referenced, so the OID cannot be searched, resulting in the inability to generate the configuration file.
Does anyone know how I should go about doing this? Or have any experience with generator files or Huawei MIBs?
Here is a screenshot of the software error report.
enter image description here

onenote 2007 notebooks batch convert to onenote 2010/2013/2016

My customers have roughly 600gb (all together) worth of Onenote 2007 notebooks.
Onenote 2016 doesn't allow editting of onenote2007 format notebooks. It requires conversion.
MS doesn't provide a batch conversion utility.
MS does provide a notebook-by-notebook conversion via their UI which is clunky.
Does anyone know if I could use their Publish API to convert one notebook at a time?
https://msdn.microsoft.com/en-us/library/office/jj680120.aspx#ON14DevRef_Application_Functional (see Publish Method)
I gave it a go.
You can!
One can use the Publish API method from the Application2 onenote API COM object by opening a 2007 notebook and specifying the export format as PublishFormat.pfOneNote (to export as 2010+ format).
There are some limitations:
You can only convert a section. So your code will have to open the 2007 notebooks, find the sections, and convert one at a time.
Sections that have no pages will result in an error code being thrown. So do check that there are pages in the section before attempting conversion.
So, given the limitations, my conversion app will have to:
Loop through the notebooks in a big folder.
Open each notebook, iterate through each section, and convert each non-empty section into a new notebook folder.
Open the new notebook folder and create into it any missing sections.
Order the sections in the new notebook.
Save and close both notebooks.
Repeat.
Here's a partial implementation:
https://github.com/PetePeter/onenoteconverter

Import MS Access to CSV on Mac programmatically

The Official Cohort Default Rates for Schools site has a link on the left to “Download Entire List.” That downloads an Access database file (.accdb). I'd like to have it in CSV (.csv) format.
This answer provides a Windows solution to import Access to MySQL, but ideally, I'd like to have a Unix command-line program, e.g., accdb2csv input.accdb output.csv. Is there anything like that? If not, how do I code that?
Here are some other links I've found:
http://jackcess.sourceforge.net/
https://github.com/akaihola/mdb2django
https://github.com/karlbennett/export-accessdb/blob/5b492778439c85f15d5c859a27094514f7aba8ee/src/main/java/org/youthnet/export/Smasher.java
https://github.com/Tomvb62/DBConvert/blob/dc67a3d835a9708320d29b8040ddc5cde7e7fa39/src/dbengine/export/MSAccess.java
I just released an access2csv program based on Jackess. Code is at https://github.com/AccelerationNet/access2csv, a binary is available at https://github.com/AccelerationNet/access2csv/releases.
so right click rename the file from Aaron.accdb to Aaron.zip and then right click unzip it. Office 2007 / 2010 formats are effectively zipped XML files.
This will give you a bunch of XML that you can easily parse using Excel, or XSL, etc.

How might I write a program to extract my data from Google Code?

I'm about to start writing a program which will attempt to extract data from a Google Code site so that it may be imported in to another project management site. Specifically, I need to extract the full issue detail from the site (description, comments, and so on).
Unfortunately Google don't provide an API for this, nor do they have an export feature, so to me the only option looks to be extracting the data from the actual HTML (yuck). Does any one have any suggestions on "best practice" from attempting to parse data out of HTML? I'm aware that this is less than ideal, but I don't think I have much choice. Can anyone else think of a better way, or maybe someone else has already done this?
Also, I'm aware of the CSV export feature on the issue page, however this does not give complete data about issues (but could be a useful starting point).
I just finished a program called google-code-export (hosted on Github). This allows you to export your Google Code project to an XML file, for example:
>main.py -p synergy-plus -s 1 -c 1
parse: http://code.google.com/p/synergy-plus/issues/detail?id=1
wrote: synergy-plus_google-code-export.xml
... will create a file named synergy-plus_google-code-export.xml.