dump

mysql export sql dump alphabatically,which cause foreign key constraints error during import

非 Y 不嫁゛ 提交于 2019-12-05 20:13:17
问题 I have 10 tables in my database(MySQL). two of them is given below tbl_state state_id |int(10) |UNSIGNED ZEROFILL auto_increment state_name |varchar(40) tbl_city city_id |int(10) |UNSIGNED ZEROFILL auto_increment city_name |varchar(40) | state_code |int(10) | UNSIGNED ZEROFILL (FK reference with tbl_state.state_id) Foreign Key Constraint : tbl_city.state_code is references to tbl_state.state_id . now my problem is when I export all tables and import again then it gives foreign key constraint

application exits (no Exception) when referencing 64bit dll from C#

余生长醉 提交于 2019-12-05 19:56:50
问题 I've compiled lzo2.dll 64 bit and now looking to use it in a C# program: I'm using the following class to test (similar code works for 32bit lzo.dll): [DllImport("lzo2.dll")] private static extern string lzo_version_string(); static void Main(string[] args) { try { if (Environment.Is64BitProcess) { Console.WriteLine(lzo_version_string());//application exits here, no exceptions caught } } catch (Exception e) { Console.WriteLine(e); } Console.ReadLine(); } At the point indicated the application

Heap dump on JRE 6 (Windows) without JDK

ぐ巨炮叔叔 提交于 2019-12-05 18:37:20
Is there a way to create a heap dump on a remote machine without JDK installed? I can't change the installation / settings and it's running on Windows. So I have pnly access to commandline tools. Problem is that a Java app on a remote machine freezes (no out of memory exception so -XX:-HeapDumpOnOutOfMemoryError is useless) and we need to create a dump. -XX:+HeapDumpOnCtrlBreak is no option too, because it's not supported anymore on JDK6+. JMX is not allowed due to security reasons. Any Ideas? Thank you for your help! Edit: Windows No JDK No JMX I think I solved the problem. You have to "patch

Saving lisp state

与世无争的帅哥 提交于 2019-12-05 11:48:31
I am a beginner in lisp and have a question. When I writing some code directly in REPL (without any .lisp file!), how can I save my work/state of the interpreter to restore it next time and continue working? (I am using ECL) Thanx! And sorry for my broken english ;) From the ECL manual : Tratidionally, Common Lisp implemenations have provided a function to save the dump all data from a running Lisp process into a file. The result was called the Lisp image and could be shipped to other version compatible implementations.Nowadays, having less control of the systems it runs in, a Lisp

Running Salome script without graphics

馋奶兔 提交于 2019-12-05 10:03:12
I exported a script from Salome (dump), and I want to run it in python (I'm doing some geometric operation and I don't need any graphics). So I removed all the graphic command, but when I try to launch my python file, python cannot found the salome libraries. I tried to export the salome path ('install_path'/appli_V6_5_0p1/bin/salome/) in PYTHONPATH and LD_LIBRARY_PATH but it still doesn't work. I also would like to know if it's possible to use only the geompy library without salome, and if it's possible, how can I install only the geompy library? ( I need to launch some geompy script on a UAV

How do I dump an arbitrary struct in C?

蓝咒 提交于 2019-12-05 08:11:58
I don't know which direction to go,perhaps something like reflection will help? The answer of @Kerrek SB works realy well, I just post how to use it in a function using a void pointer. int dump(void *myStruct, long size) { unsigned int i; const unsigned char * const px = (unsigned char*)myStruct; for (i = 0; i < size; ++i) { if( i % (sizeof(int) * 8) == 0){ printf("\n%08X ", i); } else if( i % 4 == 0){ printf(" "); } printf("%02X", px[i]); } printf("\n\n"); return 0; } int main(int argc, char const *argv[]) { OneStruct data1, data2; dump(&data1, sizeof(OneStruct)); dump(&data2, sizeof

Java threads waiting to lock object that isn't (visibly) locked

怎甘沉沦 提交于 2019-12-05 07:51:40
Normally when I ask for a thread dump, the symptoms of a poorly performing system are easily explained; i.e. normally I would be able to see that a number of threads are clearly waiting on a monitor which has been acquired but not released by another. In this case, I have a lot of threads waiting for a monitor (0x965ad100), but none appears to have that monitor in the first place. The threads in question can be identified with this signature: waiting to lock <0x965ad100> (a uk.gov.dti.og.fox.ConAgent) I've tried Googling this, and all I seem to find are posts that discuss monitors that are

Finding constants from a decrypted iOS app executable

烈酒焚心 提交于 2019-12-05 03:01:34
问题 I'm trying to find a constant (something like a secret token) from inside of an iOS app in order to build an app using an undocumented web API (by the way, I'm not into something illegal). So far, I have the decrypted app executable on my Mac (jailbreak + SSH + dumping decrypted executable as file). I can use the strings command to get a readable list of strings, and I can use the class-dump tool (http://stevenygard.com/projects/class-dump/) to get a list of interface definitions (headers) of

Xdebug hiding dump information?

扶醉桌前 提交于 2019-12-05 02:00:38
I am using xdebug with my php methods such as var_dump() are beautiful but not showing full information instead the dump ends with three dots ... which might be the sign of continuation followed by (length=87749) How should I tell xdebug to show full dump ?? Thanks Xdebug truncates the output of (at least) strings and arrays, to avoid it getting to big. The amout of data that's printed can be configured using these directives : xdebug.var_display_max_children xdebug.var_display_max_data and xdebug.var_display_max_depth For more informations and example, see Variable Display Features You'll

Perl hash Data::Dumper

北慕城南 提交于 2019-12-05 01:56:14
In Perl I need to analyze a huge hash, so I print it into a file using Data::Dumper module. Because it is a huge file, it is very hard to read. Is it possible somehow to print Dumper output nicely, so when I will find a string that I am looking for, I will be able to see immediately key structure where the string I am looking for is stored? Currently I am using just a simple code: use Data::Dumper; ... print Dumper $var; What is the best syntax or alternative to get nice output? I almost always set $Data::Dumper::Indent = 1; $Data::Dumper::Sortkeys = 1; with Data::Dumper . The first statement