dump

Android SQLite Dump Database From Code For Error Reporting

怎甘沉沦 提交于 2019-12-18 09:01:42
问题 I'm working on a diagnostic tool for one of my android programs. In essence, if a user is having issues, I'd like to do something like an SQLite dump (reference: http://www.sqlite.org/sqlite.html) into a string, which I can then email. Does anyone know if there an easy way to do this from within an android program, or am I going to have interact with the android OS and run the commands that way? 回答1: I solved my own problem, by doing a dump of the database to a file, then reading the file

What is minimum MINIDUMP_TYPE set to dump native C++ process that hosts .net component to be able to use !clrstack in windbg

烂漫一生 提交于 2019-12-17 19:26:24
问题 There is native C++ application that hosts several .net components. When some error occurs this application creates mini dump using MiniDumpWriteDump function. Question here what is minimum set of [Flags ]enum MINIDUMP_TYPE { MiniDumpNormal = 0x00000000, MiniDumpWithDataSegs = 0x00000001, MiniDumpWithFullMemory = 0x00000002, MiniDumpWithHandleData = 0x00000004, MiniDumpFilterMemory = 0x00000008, MiniDumpScanMemory = 0x00000010, MiniDumpWithUnloadedModules = 0x00000020,

How to convert a string to UTF8 in Ruby

穿精又带淫゛_ 提交于 2019-12-17 17:59:38
问题 I'm writing a crawler which uses Hpricot. It downloads a list of strings from some webpage, then I try to write it to the file. Something is wrong with the encoding: "\xC3" from ASCII-8BIT to UTF-8 I have items which are rendered on a webpage and printed this way: Développement the str.encoding returns UTF-8 , so force_encoding('UTF-8') doesn't help. How may I convert this to readable UTF-8? 回答1: Your string seems to have been encoded the wrong way round: "Développement".encode("iso-8859-1"

How to use the dumped data by mongodump?

我与影子孤独终老i 提交于 2019-12-17 15:34:28
问题 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 another mongodb? 回答1: You need to use mongorestore , not mongoimport ... which is used for things like importing json, or csv, etc. From the back-up-with-mongodump docs: mongodump reads data from a MongoDB database and creates high fidelity BSON files

7 个抓取 Java Thread Dumps 的方式

限于喜欢 提交于 2019-12-14 17:49:55
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Thread dumps (线程转储)能帮助我们判断 CPU 峰值、死锁、内存异常、应用反应迟钝、响应时间变长和其他系统问题。一些在线的分析工具比如 http://fastthread.io/ 也能帮助我们分析和定位问题,但是这些工具都要求有一个 dump 文件。因此在这篇文章当中,我总结了7中抓取 Java Thread Dumps 文件的方式。 1. jstack jstack 是一个抓取 thread dump 文件的有效的命令行工具,它位于 JDK 目录里的 bin 文件夹下(JDK_HOME\bin),以下是抓取 dump 文件的命令: jstack -l <pid> > <file-path> 说明: pid: Java 应用的进程 id ,也就是需要抓取 dump 文件的应用进程 id。 file-path: 保存 dump 文件的路径。 示例: jstack -l 37320 > /opt/tmp/threadDump.txt 上面的例子演示了用 jstack 生成 dump 文件到 /opt/tmp/threadDump.txt 目录下。 从 Java5 开始,jstack 被包含进了 jdk 当中,如果你使用老版本的 jdk,要考虑使用其他方式。 2. Kill -3 处于安全方面的考虑

Windbg scripting assigning the result of a command to a variable

北城余情 提交于 2019-12-14 03:26:26
问题 Regularly I need to investigate dumpfiles, always in the same way, and I'd like to automate this. I'm using Windbg as a tool, and I'm thinking of using Windbg scripting. I have done some first attempts with PYKD, but I don't like the overhead that much, so I've opted for the standard Windbg scripting, but this is getting into a nightmare, let me show you what I want to do: 0:001> kb # RetAddr : Args to Child : Call Site 00 00007ffc`26272685 : ffffffff`fffffffe 00007ff7`06e563f0 00007ff7

Extract Stream-Dump from PDF-Body with PDFBox

家住魔仙堡 提交于 2019-12-13 08:10:33
问题 i want to extract a Stream-Dump from a PDF with PDFBox. Is this possible with PDFBox? I want to get the original HEX-Code of the Content of a PDF, like this: BT /F19 8.9664 Tf 96.197 606.119 Td [(Kommunikation)]TJ ET q 1 0 0 1 85.238 594.35 cm []0 d 0 J 0.398 w 0 0 m 0 7.352 l S Q BT /F19 8.9664 Tf 133.856 595.758 Td [(Erster)-600(Testuebertrag)-600(auf)-600(die)-600(Neuentwicklung)-600(fuer)-600(die)-600(PSA)-600(Direktbank)-600(ma)]TJ ET q 1 0 0 1 85.238 583.989 cm []0 d 0 J 0.398 w 0 0 m 0

restore single table dump from a sql file

让人想犯罪 __ 提交于 2019-12-13 06:27:04
问题 I have full dump of sql file like dump_full.sql of size 1.3GB And it has some tables like dancing_core_spice dancing_sea_beast forde_clear_one forde_super_now Now what i want is need to restore/fetch/dump only data of these tables from dump_full.sql file psql -U postgres --table=dancing_core_spice dump_full.sql > dancing_core_spice.sql i tried the above command but it is not working So can anyone please let me know how to take the dump of only single table from the sql file(full dump) 回答1:

Amazon-RDS database to Dedicated server

自闭症网瘾萝莉.ら 提交于 2019-12-13 05:27:52
问题 I went through this answer here: Mysqldump of the AWS RDS But, apparently, it gave me no clue. What I intend to do? I have an RDS instance running on amazon and database is about 450+ tables, which is an insane amount of data for mysqldump. I wish to have it dumped so that I can migrate it from AwS to Dedicated. What is the problem? It freezes once I start taking the dump via adminer. Snapshot gives a format which can be used from one region to another but, I wish to have it in say.. SQL

Importing two dmp files into single schema

ε祈祈猫儿з 提交于 2019-12-13 04:12:48
问题 I have two dmp files to imported into the same schema in my DB. They are each 20GB (size was probably the reason why they were exported as two dump files). How can I do a successive import into the schema. Does impdp command have an option to allow me to import more than one file? 回答1: Can't you just run the import twice? I am assuming the files have disjoint sets of data. You may need a command line switch "ignore=y" to allow the import to continue if the objects it's trying to create