Skip to content

Instantly share code, notes, and snippets.

@pedrocr
pedrocr / gist:7bd6309831ab8ed1a8bc
Created August 26, 2015 11:16
Duplicate adobe_coeff cameras
["Canon EOS D2000C", "Kodak DCS520C"]
["Canon EOS D6000", "Kodak DCS560C"]
["Canon EOS 5DS R", "Canon EOS 5DS"]
["Canon EOS 6D", "Canon EOS 70D"]
["Canon EOS 10D", "Canon EOS 300D", "Canon EOS"]
["Canon EOS 100D", "Canon EOS 650D", "Canon EOS 700D", "Canon EOS M"]
["Canon EOS 600D", "Canon EOS 1200D"]
["Canon EOS 750D", "Canon EOS 760D", "Canon EOS M3"]
["Canon EOS 1100D", "Canon EOS REBEL T3"]
["Canon EOS-1D C", "Canon EOS-1D X"]
@pedrocr
pedrocr / gist:9650800
Created March 19, 2014 20:45
Initializer to change the database
BASESPEC = {adapter: "sqlite3",
database: "db/production.sqlite3",
pool: 5,
timeout: 5000}
if Camerasink::BASEDIR
$stderr.puts "Starting the app on #{Camerasink::BASEDIR}"
dbfile = File.expand_path(BASESPEC[:database], Camerasink::BASEDIR)
ActiveRecord::Base.establish_connection BASESPEC.merge(database: dbfile)
ActiveRecord::Migrator.migrate("db/migrate/")
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff49b97700 (LWP 15419)]
__memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:35
35 ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such file or directory.
(gdb) bt
#0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:35
#1 0x00007ffff79e0eb9 in _default_process_tiling_roi._omp_fn.1 ()
at /usr/include/x86_64-linux-gnu/bits/string3.h:51
#2 0x00007ffff2a2034a in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1
#3 0x00007ffff6d75182 in start_thread (arg=0x7fff49b97700) at pthread_create.c:312
/opt/darktable/bin/darktable-cli X100SFAR2I00200.RAF test.jpg --core -d perf
[export] creating pixelpipe took 0,179 secs (0,213 CPU)
[dev_pixelpipe] took 0,122 secs (0,015 CPU) initing base buffer [export]
[dev_pixelpipe] took 0,003 secs (0,010 CPU) processing `let's go float!' on CPU, blending on CPU [export]
[dev_pixelpipe] took 0,003 secs (0,010 CPU) processing `white balance' on CPU, blending on CPU [export]
[dev_pixelpipe] took 0,004 secs (0,012 CPU) processing `highlight reconstruction' on CPU, blending on CPU [export]
[dev_pixelpipe] took 0,007 secs (0,013 CPU) processing `demosaic' on CPU, blending on CPU [export]
[dev_pixelpipe] took 1,987 secs (4,624 CPU) processing `scale pixels' on CPU with tiling, blending on CPU [export]
Segmentation fault (core dumped)
$ /opt/darktable/bin/darktable-cli X100SFAR2I00200.RAF test.jpg --core -d dev -d perf
[export] creating pixelpipe took 0,181 secs (0,222 CPU)
pixelpipe cacheline 0 used 0 by 18446744073709551615
pixelpipe cacheline 1 used 0 by 18446744073709551615
cache hit rate so far: -nan
[dev_pixelpipe] took 0,184 secs (0,024 CPU) initing base buffer [export]
[dev_pixelpipe] took 0,004 secs (0,008 CPU) processing `let's go float!' on CPU, blending on CPU [export]
[dev_pixelpipe] took 0,004 secs (0,012 CPU) processing `white balance' on CPU, blending on CPU [export]
[dev_pixelpipe] took 0,004 secs (0,012 CPU) processing `highlight reconstruction' on CPU, blending on CPU [export]
[dev_pixelpipe] took 0,006 secs (0,014 CPU) processing `demosaic' on CPU, blending on CPU [export]
@pedrocr
pedrocr / gist:073a47d220875247a595
Last active August 29, 2015 14:07
Test run of dt with the 699 hanatos branch
$ rm -f *.xmp && ../rundt
[mipmap_cache] cache is empty, file `cache//mipmaps-d2a987c9a21006c6c529327a4b925b649166fcc3' doesn't exist
# Opened darkroom on a D1x NEF
3 Running reload_defaults for colorin
3 Running reload_defaults for colorin
3 Running gui_update for colorin
3 Running gui_update for colorin
# Pressed space and moved to a JPG
@pedrocr
pedrocr / gist:37790485eeb84fb000ec
Last active August 29, 2015 14:10
New cameras in rawspeed in darktable 1.6.0
Canon EOS 10D
Canon EOS 300D DIGITAL
Canon EOS 7D Mark II
Canon EOS D30
Canon EOS D60
Canon PowerShot A610
Canon PowerShot A620
Canon PowerShot A640
Canon PowerShot A650
Canon PowerShot A720 IS
@pedrocr
pedrocr / gist:c2f6c4364f08cdf6feae
Last active August 29, 2015 14:12
XMP diff in broken UTF8 file
--- RAW_PENTAX_K20D.PEF.1.4 2014-12-30 14:46:57.206753991 +0000
+++ RAW_PENTAX_K20D.PEF.1.6 2014-12-30 14:47:16.738804006 +0000
@@ -62,9 +62,7 @@
</darktable:multi_name>
<dc:subject>
<rdf:Seq>
- <rdf:li>4</rdf:li>
<rdf:li>Bayern</rdf:li>
- <rdf:li>DEU</rdf:li>
<rdf:li>Deutschland</rdf:li>
@pedrocr
pedrocr / gist:841d9d278aed4b1b9363
Created December 30, 2014 20:21
Remaining diff in cache2
diff --git a/src/bauhaus/bauhaus.c b/src/bauhaus/bauhaus.c
index 3642c0f..0d79347 100644
--- a/src/bauhaus/bauhaus.c
+++ b/src/bauhaus/bauhaus.c
@@ -647,7 +647,7 @@ static gboolean dt_bauhaus_combobox_button_press(GtkWidget *widget, GdkEventButt
static gboolean dt_bauhaus_combobox_scroll(GtkWidget *widget, GdkEventScroll *event, gpointer user_data);
// static gboolean
// dt_bauhaus_button_release(GtkWidget *widget, GdkEventButton *event, gpointer user_data);
-static gboolean dt_bauhaus_draw(GtkWidget *widget, cairo_t *crf, gpointer user_data);
+static gboolean dt_bauhaus_draw(GtkWidget *widget, cairo_t *cr, gpointer user_data);
@pedrocr
pedrocr / gist:3fe91d0a02b79abe0978
Created January 2, 2015 17:52
darktable crash
this is darktable 1.7.0+445~g5e38b6a reporting a segfault:
#0 0x00007f60ec55f800 in ?? () from /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
#1 0x00007f60ec598884 in ?? () from /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
#2 0x00007f60ec54d841 in pixman_image_composite32 () from /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
#3 0x00007f60f2917df4 in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
#4 0x00007f60f2943a9e in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
#5 0x00007f60f2944d64 in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
#6 0x00007f60f294bbce in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2
#7 0x00007f60f294c7d9 in ?? () from /usr/lib/x86_64-linux-gnu/libcairo.so.2