data-files

PostgreSQL - Recovery of Functions' code following accidental deletion of data files

北城以北 提交于 2020-01-17 07:23:41
问题 So, I am (well... I was) running PostgreSQL within a container (Ubuntu 14.04LTS with all the recent updates, back-end storage is "dir" because of convince). To cut the long story short, the container folder got deleted. Following the use of extundelete and ext4magic, I have managed to extract some of the database physical files (it appears as if most of the files are there... but not 100% sure if and what is missing). I have two copies of the database files. One from 9.5.3 (which appears to

Selecting a single row from a data file in gnuplot

[亡魂溺海] 提交于 2020-01-06 05:06:07
问题 I have a data file with 100 columns and thousands of rows, but I want to be able to select one single row, and in that row, use the even columns as the inputs for the X-axis and the odd columns as inputs for the Y-axis for a plot. Is there any way I can do that in gnuplot? 回答1: So here the script I've done to plot a given line from a given data file with odd column as x-axis and even column as y-axis. #!/usr/bin/gnuplot set term pdf set output "plot.pdf" line_number=1 data_file="data.dat" set

SQL Server - Is it possible to find the size actually used in an MDF or LDF file

痴心易碎 提交于 2020-01-01 14:33:07
问题 When adding a .MDF ( .NDF ) or .LDF file to a SQL Server, we have the option to set its initial size, auto-growth, and incremental (percent or absolute). After the database is in operation for a while, is it possible find how much of the actual size is used by the data? For example, if the actual size of the file is 5M, but only 2M is used to store the data, the file can still take 3M of data before it needs to grow. I need a way to find out the "2M" (used size) in the total current size (5M)

SQL Server - Is it possible to find the size actually used in an MDF or LDF file

会有一股神秘感。 提交于 2020-01-01 14:31:32
问题 When adding a .MDF ( .NDF ) or .LDF file to a SQL Server, we have the option to set its initial size, auto-growth, and incremental (percent or absolute). After the database is in operation for a while, is it possible find how much of the actual size is used by the data? For example, if the actual size of the file is 5M, but only 2M is used to store the data, the file can still take 3M of data before it needs to grow. I need a way to find out the "2M" (used size) in the total current size (5M)

SQL Server - Is it possible to find the size actually used in an MDF or LDF file

北慕城南 提交于 2020-01-01 14:31:21
问题 When adding a .MDF ( .NDF ) or .LDF file to a SQL Server, we have the option to set its initial size, auto-growth, and incremental (percent or absolute). After the database is in operation for a while, is it possible find how much of the actual size is used by the data? For example, if the actual size of the file is 5M, but only 2M is used to store the data, the file can still take 3M of data before it needs to grow. I need a way to find out the "2M" (used size) in the total current size (5M)

C and C++ : data file with error “Expected unqualified-id” [closed]

孤街浪徒 提交于 2019-12-25 19:42:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like to run C code in C++, using Xcode 8.33 on MacOS Sierra 10.12. I am new to C/C++, compilers, etc so please bear with me. The C code, when compiled and ran with make via Terminal, works. But when I throw all the same files into a XCode C++ project, there is an error with the data file. Note: I did

C and C++ : data file with error “Expected unqualified-id” [closed]

我是研究僧i 提交于 2019-12-25 19:40:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like to run C code in C++, using Xcode 8.33 on MacOS Sierra 10.12. I am new to C/C++, compilers, etc so please bear with me. The C code, when compiled and ran with make via Terminal, works. But when I throw all the same files into a XCode C++ project, there is an error with the data file. Note: I did

Reading next line from data file VB Script

ぐ巨炮叔叔 提交于 2019-12-22 18:50:15
问题 I am trying to get the next line of data tag file, however because there are multiple lines with the same tag it is going through and taking the last one but I need the first one. Example tag file below. Summary SA2100|7775555 Summary SUM100|9674555 Summary SUM100|8544555 Summary SUM100|8555554 From this it is taking 8555554 and not 7775555. I was trying to put the first line in the if condition and set the string to be the next line is this possible ? if Left(strLine, 14) = "Summary SA2100"

gnuplot: load datafile 1:1 into datablock

好久不见. 提交于 2019-12-17 20:27:43
问题 How can I read a datafile as-is (or 1:1) into a datablock? And how could I do this platform independently? My attempt so far: ### load datafile "as is" into datablock for different platforms FILE = 'Test.dat' if (GPVAL_SYSNAME[:7] eq "Windows") { # "Windows_NT-6.1" is shown on a Win7 system load "< echo $Data ^<^<EOD & type ".FILE } if (GPVAL_SYSNAME eq "Linux") { # that's shown on a Raspberry load '< echo "\$Data << EOD" & cat '.FILE } if (GPVAL_SYSNAME eq "Darwin") { # this was shown on a

Scientific `d` notation not read in C++ [closed]

纵饮孤独 提交于 2019-12-16 18:08:15
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I need to read a data file in which numbers are written in a format like this: 1.0d-05 C++ doesn't seem to recognize this type of scientific notation! Any ideas on how I could read/convert those types of numbers? I need numbers (i.e. double / float ) not strings. Maybe there is already a class /