FAQ Database Discussion Community


Including logging.conf in setup.py?

python,python-2.7,setuptools,distutils,data-files
In my package_name subdirectory (one below "setup.py") I have a "logging.conf" file. How do I include it in my setup? Attempt from distutils.sysconfig import get_python_lib data_files=[(path.join(get_python_lib(), package_name), path.join(path.dirname(__file__), package_name, 'logging.conf')) Preferably it should be something simple like: data_files = [(package_name, path.join('.', package_name, 'logging.conf'))] Error error: can't copy 'c': doesn't exist...

make a data file of google drive account using google drive api

java,xml,json,google-drive-sdk,data-files
I'am want to get all of my data in google drive into file (xml or json it's not so matter). the regular way to do it is like this: Drive service = new Drive(somedata); String fileName = service.get(fileId).execute().getTitle(); to get the file id, it's needed to do this: Children.List request...

Oracle XE data limit reached - how to reduce tablespace size?

oracle,oracle11g,resize,tablespace,data-files
I have an Oracle XE database with several tablespaces. One of these is used to store image data, and this tablespace has grown to a huge size. We decided that we didn't need to the images any more so deleted them all. This has freed up a lot of space...

Is it safe to add a datafile to a tablespace which is being used by a index which is currently in the process of creation?

oracle,indexing,database-administration,tablespace,data-files
The situation is that I ran a create index query on a table (index type ctxsys.context) about 36 hours ago. The tablespace it refers to has 128gb allocated (4x32gb datafiles). As per latest situation the index is still in progress of being built however it has already taken up 100gb...

How to extract specific lines from a huge data file?

text-files,extract,large-files,data-files
I have a very large data file, about 32GB. The file is made up of about 130k lines, each of which mainly contains numbers, but also has few characters. The task I need to perform is very clear: I have to extract 20 lines and write them to a new...

2D Array in Java with Data Files

java,multidimensional-array,data-files
Could anyone help me rewrite this code using a 2D array to loop through and display the choices? The following is a quiz-type game. I have a text file with this data that is read by the program, So first the question, then the 4 answer choices, then the answer...

Working with multiple columns from a data file

python,arrays,scipy,multiple-columns,data-files
I have a file in which I need to use the first column. The remaining columns need to be integrated with respect to the first. Lets say my file looks like this: 100 1.0 1.1 1.2 1.3 0.9 110 1.8 1.9 2.0 2.1 2.2 120 1.8 1.9 2.0 2.1 2.2...

positioning the file pointer in a record

c++,data-files
So, this is the question given in my book . It is to read the following code and answere the question given below: #include<fstream.h> class Book { int Bno;char title[20]; public: void Enterval() { cin>>Bno; cin.getline(title,20); } void ShowVal() { cout<<Bno<<"#"<<title<<endl; } }; void Search(int Recno) { fstream file; Book...

D3 error with data file

javascript,d3.js,data-files
i'm on the project for finishing my degree on computation, and i have a problem with D3, basically it works if I pass the data directly to the code, but with the data on a file, it says "n does not exist". I don't know why is this happening, here's...

Eclipse wont recognize or read .dat file even though I can see it in package explorer

java,eclipse,data-files
I'm pretty sure there is a simple reason for this, but after combing through google hits I can't figure it out. Problem: I am trying to read from a .dat file I created and placed in the src folder of the java project, but eclipse doesn't recognize it. Things I...