As I keep forgetting, this post is to remind me that Java Java doesn’t have a pretty toString() for arrays objects, and it does for…
# open/split windows in the same dir bind ‘”‘ split-window -c “#{pane_current_path}” bind % split-window -h -c “#{pane_current_path}” bind c new-window -c “#{pane_current_path}” In your…
Two basic articles on visual cryptography: Kumar, P., Agarwal, S., & Shivani, S. Halftone Visual Cryptography with Pixel Expansion through Error Diffusion. International Journal of…
Step 1) Download the video from Youtube using JDownloader. The best one was the original Japanese upload, The Game Awards 2014 å‡ºå±•æ˜ åƒ ã‚¼ãƒ«ãƒ€ã®ä¼èª¬ 最新作, which…
[bash] #!/bin/sh file="/tmp/myfile" while read line; do echo $line done < "$file" [/bash]
Problem: Given a sequence of numbers, show all possible letter combinations in a telephone keypad. Recursive solution in Python: [python] keyboard = { ‘1’: [],…
In case you can’t use Python’s itertools or in case you want a simple, recursive python implementation for a permutation of a list: [python] def…
tail -n 50 -f your.log –folow or -f FILE to output appended data as the file grows –lines or -n K output the last K…
Stereo photo taken using a Nintendo 3DS XL. As browsers don’t support MPO files yet, I had to split the file into two JPGEs, then…