Skip to content

Instantly share code, notes, and snippets.

// eclipse generated methods way
public class Schedule implements Serializable {
...
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((bgImage == null) ? 0 : bgImage.hashCode());
@typekpb
typekpb / gist:3209788
Created July 30, 2012 20:12
files year mod date align
touch -d '+0 year' *
@typekpb
typekpb / gist:3209811
Created July 30, 2012 20:16
exiftool install
sudo apt-get install libimage-exiftool-perl
@typekpb
typekpb / gist:3209897
Created July 30, 2012 20:29
JPEG files year mod date align
exiftool "-AllDates+=1:0:0 0:0:0" *.JPG
@typekpb
typekpb / gist:3209935
Created July 30, 2012 20:32
list EXIF date information prio
exiftool -k IMGP0184.JPG | grep Date
File Modification Date/Time : 2012:07:30 22:27:57+02:00
Modify Date : 2011:07:22 12:48:12
Date/Time Original : 2011:07:22 12:48:12
Create Date : 2011:07:22 12:48:12
Date : 2011:07:22
Manufacture Date : 2011:10:07
-- press RETURN --
@typekpb
typekpb / gist:3209988
Created July 30, 2012 20:39
list EXIF date information post
exiftool -k IMGP0184.JPG | grep Date
File Modification Date/Time : 2012:07:30 22:28:16+02:00
Modify Date : 2012:07:22 12:48:12
Date/Time Original : 2012:07:22 12:48:12
Create Date : 2012:07:22 12:48:12
Date : 2011:07:22
Manufacture Date : 2011:10:07
-- press RETURN --
@typekpb
typekpb / gist:3210328
Created July 30, 2012 21:16
post exiftool cleanup
rm *.JPG_original
@typekpb
typekpb / ecilpse.ini
Created October 22, 2012 08:42
eclipse juno vm args
-vmargs
-Xms512m
-Xmx1024m
Unable to find 'rdebug-ide' binary script. May need to install 'ruby-debug-ide' gem, or may need to add your gem executable directory to your PATH (check location via 'gem environment').
gem install ruby-debug-ide
Fetching: rake-0.9.2.2.gem (100%)
Fetching: ruby-debug-ide-0.4.16.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
/usr/bin/ruby mkrf_conf.rb
Building native extensions. This could take a while...