Category: Programming

  • Performance Tests

    Install Apache2 Utils (more infos) Run tests using apache benchmark tool ab

  • Python snippet collection

    Timestamp with milliseconds import datetime print “Timestamp %s” % datetime.datetime.utcnow().strftime(‘%Y-%m-%d %H:%M:%S.%f’)[:-3] # Output: Timestamp 2017-05-07 21:32:42.379  

  • Custom Icon font in Ionic 2

    Create/Get icons in SVG format (e.g. FlatIcon) Create and download icons-font using IcoMoon App Extract only the font folder from the downloaded icomoon.zip  archive to assets  folder. Create a new file in theme  folder called _icomoon.scss  with following content (thanks to Stackoverflow user): // icomoon @font-face { font-family: ‘icomoon’; src: url(‘../assets/fonts/icomoon.eot?ls340j’); src: url(‘../assets/fonts/icomoon.eot?ls340j#iefix’) format(’embedded-opentype’), url(‘../assets/fonts/icomoon.ttf?ls340j’) format(‘truetype’),…

  • MP4 cutting without re-enconding

    My wish was to cut MP4 files without re-enconding them. So that should be fast and lossless. For this part I found a nice software that does it for me: Smart Cutter But one problem of this software is the usability. So i downloaded a trial version of Adobe Premiere Pro CC and tried following. I…

  • Android modify APK files (decompile classes.dex)

    Decompress APK file Use 7zip to decompress the APK file (this is a ZIP compressed container) Decompile classes.dex Method 1: dex -> jar -> java classes The file “classes.dex” can be converted to a JAR file with the following tool: dex2jar dex2jar.bat classes.dex Decompress the JAR file using 7zip again. Now you will get Java class…