Understanding Comics

[openbook booknumber=”9780060976255″]

Never ever had I thought about comics this way. To me comics reflect a period of time where I was young and had not been overwhelmed and influenced by TV or internet. But it seems there is much more to it. One could even argue that comics hold the key to vastly growing information stream we have to face every day.

p.s. where is the nearest comics book store???

3 easy steps to reverse engineer apk

3 easy steps android apk Reverse Engineer to get java source-code

Android applications are packed inside a APK file, which is just a ZIP file containing among other things a compact Dalvik Executable (.dex) file.

First step is to extract the “classes.dex” file from the APK:

$ unzip program.apk classes.dex
Archive: program.apk
inflating: classes.dex

Now, we use the tool dex2jar to convert the classes.dex file to Java .class files:

$ bash dex2jar/dex2jar.sh ./classes.dex
version:0.0.7.8-SNAPSHOT
2 [main] INFO pxb.android.dex2jar.v3.Main - dex2jar ./classes.dex -> ./classes.dex.dex2jar.jar
Done.

here bash is to execute bash script dex2jar.sh and ./classes.dex is one of your extracted apk files
here output will be dex2jar.jar

From here we obtain the file “classes.dex.dex2jar.jar”, now we can use the java decompiler JD-GUI to extract the source code:

$ ./jd-gui classes.dex.dex2jar.jar

Now just go to “File -> Save all sources” and it will generate the zip file “classes.dex.dex2jar.src.zip” containing all the decompiled Java source code

Thanks to Ajit

NLP voor dummies

[openbook booknumber=”9789043022804″]

Not to impressed with this book. A lot of the material is repetitive and short on focus. Therefor reading this book was mostly a waste of time, effort and money.

A Whole New Mind

[openbook booknumber=”9781905736546″]

Again a job well done by Daniel Pink. Excellent reading material for anyone with a focus on the near by future of business.
The structure of the book is very clear, although I would have liked it even better if the sections on exercises and suggested practices were bundled in the back of the book.

Mysql query logging

You can log every mysql-query to a log file easily:


mysql> SHOW VARIABLES LIKE "general_log%";


+------------------+----------------------------+
| Variable_name | Value |
+------------------+----------------------------+
| general_log | OFF |
| general_log_file | /var/run/mysqld/mysqld.log |
+------------------+----------------------------+


mysql> SET GLOBAL general_log = 'ON';

Do your queries (on any db). Grep or otherwise examine /var/run/mysqld/mysqld.log
Then don’t forget to


mysql> SET GLOBAL general_log = 'OFF';

or the performance will plummet and your disk will fill!