Questions tagged [dump]

Recording the contents of memory after application or operating system failure, or by operator request, in a core dump for use in subsequent problem analysis. Also, recording a file or medium as a backup.

1607 questions
442
votes
25 answers

Convert a string representation of a hex dump to a byte array using Java?

I am looking for a way to convert a long string (from a dump), that represents hex values into a byte array. I couldn't have phrased it better than the person that posted the same question here. But to keep it original, I'll phrase it my own way:…
rafraf
  • 4,806
  • 3
  • 19
  • 20
321
votes
9 answers

What is the JavaScript equivalent of var_dump or print_r in PHP?

I would like to see the structure of object in JavaScript (for debugging). Is there anything similar to var_dump in PHP?
Adriana
  • 8,464
  • 13
  • 36
  • 37
221
votes
18 answers

psql invalid command \N while restore sql

I'm trying to restore my dump file, but it caused an error: psql:psit.sql:27485: invalid command \N Is there a solution? I searched, but I didn't get a clear answer.
Vivek Vikranth
  • 3,265
  • 2
  • 21
  • 34
205
votes
12 answers

List of tables, db schema, dump etc using the Python sqlite3 API

For some reason I can't find a way to get the equivalents of sqlite's interactive shell commands: .tables .dump using the Python sqlite3 API. Is there anything like that?
noamtm
  • 12,435
  • 15
  • 71
  • 107
189
votes
12 answers

Save Screen (program) output to a file

I need to save the whole output of Screen to a file to check later all the content. The reason is that I'm dumping a flash memory through a serial port, using Screen to interface with it. I would like to save it to a file to check memory…
Edoardoo
  • 2,739
  • 4
  • 18
  • 27
157
votes
5 answers

Dump Mongo Collection into JSON format

Is there any way to dump mongo collection into json format? Either on the shell or using java driver.I am looking for the one with best performance.
Parvin Gasimzade
  • 25,180
  • 8
  • 56
  • 83
140
votes
5 answers

Dumping whole array: console.log and console.dir output "... NUM more items]"

I am trying to log a long array so I can copy it quickly in my terminal. However, if I try and log the array it looks like: ['item', 'item', >>more items<<< ... 399 more items ] How can I log the entire array so I can copy it really quickly?
Anthony
  • 13,434
  • 14
  • 60
  • 80
125
votes
3 answers

error opening HPROF file: IOException: Unknown HPROF Version

I am getting the following exception when trying to open HPROF file (created by Debug.dumpHprofData) with Memory Analyzer: java.io.IOException: Unknown HPROF Version (JAVA PROFILE 1.0.3) at…
Asahi
  • 13,378
  • 12
  • 67
  • 87
103
votes
1 answer

dump conf from running nginx process

Is it possible to get which conf the nginx is using only from a running nginx process? To get the conf file path. sometimes ps aux reveal it, sometimes it doesn't. It might be just something like nginx: master process /usr/sbin/nginx (same as…
est
  • 11,429
  • 14
  • 70
  • 118
87
votes
4 answers

How can I convert an MDB (Access) file to MySQL (or plain SQL file)?

Is it possible to create a Dump of SQL commands from a Microsoft Access database? I hope to convert this MDB file into a MySQL database for importing so I don't have to go through the CSV step. I would expect even an MSSQL dump file to still contain…
700 Software
  • 85,281
  • 83
  • 234
  • 341
83
votes
2 answers

Python JSON dump / append to .txt with each variable on new line

My code creates a dictionary, which is then stored in a variable. I want to write each dictionary to a JSON file, but I want each dictionary to be on a new line. My dictionary: hostDict = {"key1": "val1", "key2": "val2", "key3": {"sub_key1":…
Victor S
  • 839
  • 1
  • 6
  • 3
74
votes
3 answers

How in H2DB get sql dump like in MySql?

I have H2DB database which stores data in files. I have 3 files: test.18.log.db, test.data.db, and test.index.db. I want get SQL dump file like when I use mysqldump. Is it possible?
palych063
  • 1,059
  • 2
  • 9
  • 7
70
votes
10 answers

Dumping a java object's properties

Is there a library that will recursively dump/print an objects properties? I'm looking for something similar to the console.dir() function in Firebug. I'm aware of the commons-lang ReflectionToStringBuilder but it does not recurse into an object.…
Kevin
  • 30,111
  • 9
  • 76
  • 83
70
votes
6 answers

How to use the dumped data by mongodump?

I have used mongodump to dump my database of mongodb, it created some bson files under dump/mydb But I don't know how to use them. I tried mongoimport, but seems it can't import bson data. Then how to use these bson files? How to import them to…
Freewind
  • 193,756
  • 157
  • 432
  • 708
65
votes
1 answer

Why I can not find "Debug Managed Memory" on Actions menu?

Why I can not find "Debug Managed Memory" on Action menu as described at this MSDN article: Analyze .NET Framework memory issues? My Visual Studio: How it is supposed to look:
Vinicius Rocha
  • 4,023
  • 4
  • 29
  • 38
1
2 3
99 100