dump interview questions
Top dump frequently asked interview questions
I would like to see the structure of object in JavaScript (for debugging). Is there anything similar to var_dump in PHP?
Source: (StackOverflow)
I am using kill -3
command to see the JVM's thread dump in unix. But where can I find the output of this kill
command? I am lost!!
Source: (StackOverflow)
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?
Source: (StackOverflow)
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.
Source: (StackOverflow)
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:
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_21062554.html
But to keep it original, I'll phrase it my own way: suppose I have a string "00A0BF" that I would like interpreted as the byte[] {0x00,0xA0,0xBf} what should I do?
I am a Java novice and ended up using BigInteger and watching out for leading hex zeros. But I think it is ugly and I am sure I am missing something simple...
Source: (StackOverflow)
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 org.eclipse.mat.hprof.AbstractParser.readVersion(AbstractParser.java:124)
at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:69)
at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:65)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:203)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:114)
at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:143)
at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:123)
at org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDumpJob.java:56)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
How do I resolve this?
Thanks
Source: (StackOverflow)
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. I.e., if I run the following:
public class ToString {
public static void main(String [] args) {
System.out.println(ReflectionToStringBuilder.toString(new Outer(), ToStringStyle.MULTI_LINE_STYLE));
}
private static class Outer {
private int intValue = 5;
private Inner innerValue = new Inner();
}
private static class Inner {
private String stringValue = "foo";
}
}
I receive:
ToString$Outer@1b67f74[
intValue=5
innerValue=ToString$Inner@530daa
]
I realize that in my example, I could have overriden the toString() method for Inner but in the real world, I'm dealing with external objects that I can't modify.
Source: (StackOverflow)
Can someone tell me the exact difference between javacore, thread dump and heap dump? Under which situation each of these are used??
Source: (StackOverflow)
How can I make a backup of my meteor mongo database?
If I run:
meteor mongo
the mongodump command does not work inside the meteor mongoshell
Source: (StackOverflow)
Forgive me for a potentially silly question here, but in other programming languages (scripting ones like PHP or Perl) it is often easy to dump everything contained within a variable.
For instance, in PHP there are the var_dump()
or print_r()
functions. Perl has the Data::Dumper
CPAN class, etc etc.
Is there something like this for Objective-C? It would be very convenient in a few cases to be able to dump everything like that, instead of using gdb to inspect each variable.
Source: (StackOverflow)
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 workable SQL commands, but I know nothing of MSSQL, please let me know.
Source: (StackOverflow)
I have a mysql database filled up and running on a windows computer, is there any tool to transfer the database to another computer (running ubuntu)?
Else I'll just write a script to take all the data base into SQL and insert it on the other computer. Just trying to save some time :)
Thank you all.
Source: (StackOverflow)
I would like to open a webpage from groovy, dump the specified webpage and eventually dump the webpage behind an anchor tag.
Does anybody has some sample code for this?
Source: (StackOverflow)
Are there any in-built or 3rd party libraries that allow you to simply dump all variables in memory during run time? What I would like is to be able to view variables & current values similarly to viewing them by hitting a break point and hovering over variables, but without actually having to halt the program execution (i.e. just get a snapshot). Would be good if it could dump them to a file which can then be opened later in a program to get a nice GUI interface to view them, but simple text file dump would be good enough.
Source: (StackOverflow)
I have some questions about H2DB. I have H2DB database which stores data in files, I have 3 files test.18.log.db, test.data.db, test.index.db. I want get sql dump file like when I use mysqldump. It's possible?
Thanx all!
Source: (StackOverflow)