Skip to content

Instantly share code, notes, and snippets.

@pedrocr
pedrocr / gist:7bd6309831ab8ed1a8bc
Created Aug 26, 2015
Duplicate adobe_coeff cameras
View gist:7bd6309831ab8ed1a8bc
["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 Mar 19, 2014
Initializer to change the database
View gist:9650800
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/")
View gist:25bbf96494a8540c171e
/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)
View gist:6adcc662c18af74343d2
$ /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]
View gist:fe76fef75ffd48d6b739
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
@pedrocr
pedrocr / gist:073a47d220875247a595
Last active Aug 29, 2015
Test run of dt with the 699 hanatos branch
View gist:073a47d220875247a595
$ 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 Aug 29, 2015
New cameras in rawspeed in darktable 1.6.0
View gist:37790485eeb84fb000ec
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 Aug 29, 2015
XMP diff in broken UTF8 file
View gist:c2f6c4364f08cdf6feae
--- 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 Dec 30, 2014
Remaining diff in cache2
View gist:841d9d278aed4b1b9363
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);
View gist:3fe91d0a02b79abe0978
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