Create a PDF from images, auto rotating based on exif data, downsampling images, reducing quality, and stripping exif data.
convert -auto-orient -quality 85% -sampling-factor 4:2:0 -strip *.jpg my.pdf
Create a PDF from images, auto rotating based on exif data, downsampling images, reducing quality, and stripping exif data.
convert -auto-orient -quality 85% -sampling-factor 4:2:0 -strip *.jpg my.pdf
Change the modified date of a file to match its creation date in the exif data
brew install exiftool
exiftool '-filemodifydate<createdate' *.jpg
I hereby claim:
To claim this, I am signing this object:
test |
# extracts the first potential in a goodrom set | |
# | |
require 'tmpdir' | |
require 'fileutils' | |
def extract_zip(tmpdir, filename) | |
cmd = "unzip -d\"#{tmpdir}\" -q \"#{filename}\"" | |
STDERR.puts "Attempting command #{cmd}" | |
`#{cmd}` |
# extracts the first potential in a goodrom set | |
# | |
require 'tmpdir' | |
require 'fileutils' | |
def extract_7z(tmpdir, filename) | |
cmd = "7z e -yo\"#{tmpdir}\" \"#{filename}\"" | |
STDERR.puts "Attempting command #{cmd}" | |
`#{cmd}` | |
end |
title |
---|
Poker Match a Game Using Phaser |
It's been too long since I posted a new entry in this blog. Since I'm not working on anything in particular at the moment, at least in my personal time, I thought I'd comment on the game I wrote in January using the Phaser game framework.
def denoms() | |
[25, 10, 5, 1] | |
end | |
# we want to build a table which | |
# has the amount of cents, and an | |
# object containing two properties. | |
# { | |
# 31 => { | |
# :count => 3, |
Install OpenCV on OS X using Homebrew:
http://jjyap.wordpress.com/2014/05/24/installing-opencv-2-4-9-on-mac-osx-with-python-support/
Wherein I create a simple top-bottom split view, incorporating pull-to-reveal.
I needed a container view similar to a split view, but more like a pull-down to refresh. I looked at various options including MGSplitViewController.