CoCoThink / miscellaneous

A collection of personal learning materials and projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random Study Notes

This repository has a bunch of problems which I've been (weirdly) obsessed about. Upon digging into and solving (at least partially) them, I've also learned things (useful or not). Here it is, a collection of my study notes!

Contents

Toggle Format JSON: This is a chrome extension for getting JSON object of a ENCODE portal page.

  • This extension can be activated by clicking the icon in toolbar or by keyboard shortcut "Ctrl+Shift+Y".
  • This extension only works on ENCODE website (*.encodeproject.org or *.encodedcc.org).
  • If the page is a plain (rendered) page, this extension will try to open the corresponding JSON page by appending one parameter "format=json" to the url.
  • If the page is a JSON page, this extension will try to open the corresponding rendered page by removing "format=json" in the url.
  • The new page will be opened in the same tab.

关于破解《伊岚翠》的字体乱码加密: Solve the Mojibake problem in a chm file.

  • Unpack encrypted font file from chm;
  • Perl decompress eot file to ttf font;
  • Checkout cmap in ttf file (open source format);
  • 1 encrypted code -> 1 character in word with encrypted font (Alt+X) -> 1 character in pdf -> 1 OCR Unicode character -> 1 Unicode
  • VBA decrypt in MS Word

浅谈pdf乱码: Solve the Mojibake problem in a pdf file.

  • pdf digital structure
  • pdf logical structure (with pdftk)
  • pdf decode process, from CID to GID
  • ToUnicode map

swf-pdf-doc88

  • Handle binary file in python
  • zlib decompression in python
  • swf header structure

Windows-10-wifi-auto-logon

  • NCSI and its log in Windows Vista and above
  • Windows event filter in XML format
  • Task scheduler in Windows 10
  • NetworkProfile log
  • Connect wifi in Windows cmd

Human-Resource-Machine

  • Implementing basic algorithms with assembly language
  • Optimization of assembly language

Fix for using juicer HiCCUPS tool with glibc 2.12

  • Come to this problem when trying to use juicer HiCCUPS tool on school's cluster, which has GNU libc at version 2.12. The following error

    java.lang.UnsatisfiedLinkError: /tmp/libJCudaRuntime-0.8.0-linux-x86_64.so: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/libJCudaRuntime-0.8.0-linux-x86_64.so)
    

    pops up, similar to the this closed issue. The problem is solved with the following steps:

    1. Extract jcuda native libraries build with glib 2.12 from this zip file and put it under desired path (for example, /path/to/jcuda)
    2. Use the HiCCUPS with jcuda native libraries above specified by -D option. Pre-load module and library if needed. For example,
      ml cuda/8.0
      export LD_PRELOAD=/usr/lib64/nvidia/libcuda.so.1
      java -Djava.library.path=/path/to/jcuda/lib64/ -jar /path/to/juicer_tools.1.7.6_jcuda.0.8.jar hiccups local/folder/HIC006.hic local/folder/hiccups_results

tinc VPN

  • Setup on tinc VPN node on cloud (Ubuntu 18.04 as server) and another node locally (Ubuntu 18.04 as client)
  • Change firewall as needed with VPN start up and tear down
  • Redirect all network traffic on client to server

About

A collection of personal learning materials and projects

License:MIT License


Languages

Language:Jupyter Notebook 28.6%Language:JavaScript 25.5%Language:Cuda 22.0%Language:C 17.5%Language:HTML 4.1%Language:CSS 2.3%