how to parse a cscope's database - cscope

Is there any way I can parse the cscope's database? I'm using windows, and I can't find any article about the data format of cscope's database, every article is about VIM or EMacs.

You can find it here. I don't know why this info is not available on the latest manpage.
The info you want is under "SYMBOL DATABASE FORMAT".
ftp://ftp.eeng.dcu.ie/pub/ee454/cygwin/usr/share/doc/mlcscope-14.1.8/html/cscope.html

Related

Dump Arangodb database with Go

I would like to know if I can dump an ArangoDB with Go.
I know how to use ArangoDB Go driver but there is no example which show how to dump the db.
I also aware about how to download the database on the command line.
The best way is to use the arangodump and arangorestore tools provided by ArangoDB to dump and restore a database.
If needed, call those executables from Go.
ArangoDump: https://www.arangodb.com/docs/stable/programs-arangodump.html
ArangoRestore: https://www.arangodb.com/docs/stable/programs-arangorestore.html

Reading a SAS dataset with Ruby?

I'd like to be able to read a SAS dataset with Ruby. Does anyone know of a way to do this?
If you have access to a local instance of SAS or to a SAS/SHARE server, you can use the SAS ODBC driver to connect to and read from SAS data libraries. I run a SAS/SHARE server myself and access it from Excel all the time.
See the SAS ODBC Driver User Manual for the version of SAS you are using for more info.
SAS dataset files are coded in a proprietary format. If you have access to SAS, you can export the dataset as a delimited text file, and then read that with Ruby. If you don't have access to SAS, you could look into getting StatTransfer, but it's not cheap.
It is possible to do what you want.
You could use the ruby gem Pandas.rb to
# Untested
require 'pandas'
df = Pandas.read_sas("./path/to/dataset.sas7bdat")
Alternatively, with some development effort you could implement the logic in Pandas sas7bdat.py and xport.py

accessing a database from ruby using an odbc driver (Remedy)

I have the Remedy odbc driver installed on my machine. I am able to pull down data from Remedy via excel just fine specifying this driver in my connection.
Is there any way I could use this driver from within Ruby / Ruby on rails to connect to and read from the DB?
Many thanks!
I have not found a way to use the Remedy ODBC driver from Ruby. Also, I am suspecting that using the driver which seems to be quite antiquated and is already throwing some arcane errors when used from Excel might not be simple to use.
I was able to connect through R via RODBC and thus an R script that would pull the data for you and write to CSV might be a solution.
What I am actually using - which to my mind is the simplest way of achieving this - is talking directly to the Remedy SQL backend. All that you will have to do is parse the data upon pulling it from DB which is very easy to set up (priorities, service types, statuses are stored as integers and not actual names and timestamps are in epoch format).

Is there a way for the Oracle Data Integrator to extract data from MongoDB

I'm trying to move snapshots of data from our MongoDB into our Oracle BI data store.
From the BI team I've been asked to make the data available for ODI, but I haven't been able to find an example of that being done.
Is it possible and what do I need to implement it?
If there is a more generic way of getting MongoDB data into Oracle then I'm happy to propose that as well.
Versions
MongoDB: 2.0.1
ODI: 11.1.1.5
Oracle: 11.2g
Edit:
This is something that will be queried once a day, maybe twice but at this stage the BI report granularity is daily
In ODI, under the Topology tab and Physical Architecture sub-tab, you can see all technologies that are supported out of the box. MongoDB is not one of them. There are also no Knowledge Modules available for importing/exporting from/to MongoDB.
ODI supports implementing your own technologies and your own Knowledge Modules.
This manual will get you started with developing your won Knowledge module, and in one of the other manuals i'm sure you can find an explanation on how to implement your own technologies. (Ctrl-F for "Data integrator")
If you're lucky, you might find someone else who has already implemented it. Your best places to look would be The Oracle Technology Network Forum, or a forum related to MongoDB.
Instead of creating a direct link, you could also take an easier workaround. Export the data from the MongoDB to a format that ODI supports, and MongoDB can extract to. CSV or XML maybe? Then load the data trough ODI into the oracle database. I think... that will be the best option, unless you have to do this frequently...
Look at the blog post below for an option;
https://blogs.oracle.com/dataintegration/entry/odi_mongodb_and_a_java
Cheers
David

Saving a report to a file on a client PC?

I would be grateful for a quick sanity check!
When calling Oracle Reports 10g from Oracle Forms 10g, is it possible to run an Oracle Report and save it on the users PC to a specified directory? (I know that if an Oracle Report is run in such a format as PDF the user can save the report to x location). To call the Oracle report I am using the Oracle Forms built-in "Run_Report_Object".
I don't think it is (but would be happy to revise my opinion!) and to obtain such functionality I would have to implement something similar to what is discussed in this thread
I have amended my question to include the fact that I am using the Oracle Forms built-in "Run Report Object" to call Oracle Reports.
There is a Oracle Report parameter: DESTYPE which can accept a value called LOCALFILE which saves the output to the client machine using the file name specified by DESNAME, however as I'm using "Run_Report_Object" it is not possible to use the value LOCALFILE.
One solution is to follow the steps given here.
Sources: Oracle Reports 10g Help (look for DESTYPE),
OTN thread

Resources