html - How to check file MIME type with javascript before ...

Installing CMake requires CMake?

Hello all,
I've been away from Gentoo for a year, but I'm coming back and trying to install it on a Lenovo Thinkpad X250. My goal is Gentoo without systemd, with Wayland and Sway, eventually migrating (once stable) to hardened+selinux. I used the current-stage3-amd64 build and followed Full Disk Encryption From Scratch Simplified. My systems boots perfectly to runlevel 3 and has no issues with LUKS or networking.
Since first boot, I have installed lm-sensors and laptop-mode-tools, following the wiki for appropriate kernel options to recompile with. Then I wanted to install Wayland + Sway, so I installed dev-libs/wayland, then tried installing gui-wm/sway, but the dependencies failed on graphite2.
I updated the system with emerge -avuDU --keep-going --with-bdeps=y @world, I think graphite2 finished at that point, but then another dependency failed to install. One of the lines was meson: command not found, so I installed meson. Repeat. "ninja: command not found". So I install ninja. Repeat. "cmake: command not found". So I try to install cmake. Except when I install cmake, I get "cmake: command not found".
Is something wrong with my installation? I don't remember these issues last year, and was able to get to a X11/KDE environment without issue.

Here is my build.log for cmake
 * Package: dev-util/cmake-3.14.6 * Repository: gentoo * Maintainer: [email protected] * USE: abi_x86_64 amd64 elibc_glibc kernel_linux ncurses userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking cmake-3.14.6.tar.gz to /vatmp/portage/dev-util/cmake-3.14.6/work >>> Source unpacked in /vatmp/portage/dev-util/cmake-3.14.6/work >>> Preparing source in /vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6 ... * Applying cmake-3.4.0_rc1-darwin-bundle.patch ... [ ok ] * Applying cmake-3.14.0_rc3-prefix-dirs.patch ... [ ok ] * Applying cmake-3.14.0_rc1-FindBLAS.patch ... [ ok ] * Applying cmake-3.14.0_rc1-FindLAPACK.patch ... [ ok ] * Applying cmake-3.5.2-FindQt4.patch ... [ ok ] * Applying cmake-2.8.10.2-FindPythonLibs.patch ... patching file Modules/FindPythonLibs.cmake Hunk #1 succeeded at 117 with fuzz 2 (offset 43 lines). [ ok ] * Applying cmake-3.9.0_rc2-FindPythonInterp.patch ... [ ok ] * Working in BUILD_DIR: "/vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build" * Hardcoded definition(s) removed in CMakeLists.txt: * set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/") * Hardcoded definition(s) removed in Tests/JavaJavah/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/QtAutogen/UicInterface/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE ON) * Hardcoded definition(s) removed in Tests/JavaNativeHeaders/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/Qt4Deploy/CMakeLists.txt: * set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/install) * Hardcoded definition(s) removed in Tests/CPackComponents/CMakeLists.txt: * set(CMAKE_INSTALL_PREFIX "/opt/mylib") * Hardcoded definition(s) removed in Tests/SetLang/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/CMakeOnly/SelectLibraryConfigurations/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Debug) * Hardcoded definition(s) removed in Tests/CMakeOnly/CheckCXXCompilerFlag/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/Java/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/AssembleCMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/FindPackageTest/CMakeLists.txt: * set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/NotDefaultPrefix") * Hardcoded definition(s) removed in Tests/OutDiCMakeLists.txt: * set(CMAKE_BUILD_TYPE) * set(CMAKE_BUILD_TYPE Debug) * Hardcoded definition(s) removed in Tests/RunCMake/CPack/CMakeLists.txt: * set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "") * Hardcoded definition(s) removed in Tests/JavaExportImport/BuildExport/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/JavaExportImport/InstallExport/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/JavaExportImport/Import/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/Fortran/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/SubDirSpaces/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE 1) * Hardcoded definition(s) removed in Tests/CMakeCommands/target_compile_features/CMakeLists.txt: * set(CMAKE_VERBOSE_MAKEFILE ON) >>> Source prepared. >>> Configuring source in /vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6 ... * Working in BUILD_DIR: "/vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build" cmake -C /vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=no -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_DOC_DIR=/share/doc/cmake-3.14.6 -DCMAKE_MAN_DIR=/share/man -DCMAKE_DATA_DIR=/share/cmake -DSPHINX_MAN=no -DSPHINX_HTML=no -DBUILD_CursesDialog=yes -DBUILD_TESTING=no -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build/gentoo_toolchain.cmake /vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6 /vatmp/portage/dev-util/cmake-3.14.6/temp/environment: line 920: cmake: command not found * ERROR: dev-util/cmake-3.14.6::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 2230: Called cmake_src_configure * environment, line 920: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; * * If you need support, post the output of `emerge --info '=dev-util/cmake-3.14.6::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/cmake-3.14.6::gentoo'`. * The complete build log is located at '/vatmp/portage/dev-util/cmake-3.14.6/temp/build.log'. * The ebuild environment file is located at '/vatmp/portage/dev-util/cmake-3.14.6/temp/environment'. * Working directory: '/vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6_build' * S: '/vatmp/portage/dev-util/cmake-3.14.6/work/cmake-3.14.6' 
And the output from emerge --info '=dev-util/cmake-3.14.6::gentoo'
Portage 2.3.84 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-9.2.0, glibc-2.29-r7, 4.19.97-gentoo-x86_64 x86_64) ================================================================= System Settings ================================================================= System uname: Lin[email protected]_2.30GHz-with-gentoo-2.6 KiB Mem: 16292612 total, 15779948 free KiB Swap: 4194300 total, 4194300 free Timestamp of repository gentoo: Mon, 03 Feb 2020 00:45:01 +0000 Head commit of repository gentoo: cf12d7fd5d98f5209513bcc9b93388e98d785fd5 sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 4.4_p23-r1::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo dev-util/cmake: 3.14.6::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.69-r4::gentoo sys-devel/automake: 1.16.1-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo sys-devel/gcc: 9.2.0-r2::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r7::gentoo Repositories: gentoo location: /vadb/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usshare/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/vacache/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/vacache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/vatmp" USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode wayland xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-util/cmake-3.14.6::gentoo was built with the following: USE="ncurses -doc -emacs -qt5 -system-jsoncpp -test" ABI_X86="(64)" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" 
Thank you for looking at this! Any guidance would be appreciated!
submitted by ragnarok189 to Gentoo [link] [comments]

An HTTP client in CIDLib

I've just been occasionally posting examples of how to do this or that within my CIDLib development system. In this case it demonstrates how you'd implement an HTTP client in a CIDLib based application. It's just a command line sample, which gets a URL from you, parses it, does a redirection enabled GET, and displays info about the results. If it's recognizable as text, it decodes it and displays the text content.
This guy uses the text encoding and networking libraries, and indirectly the things that they depend on, such as sockets, secure sockets, cryptography, and the core CIDLib library that provides all of the fundamental bits.)
#include "CIDEncode.hpp" #include "CIDNet.hpp" // ---------------------------------------------------------------------------- // Local data // ---------------------------------------------------------------------------- static TTextFileOutStream strmOut(tCIDLib::EStdFiles::StdOut); // ---------------------------------------------------------------------------- // For a basic sample, we just start up on a global function. // ---------------------------------------------------------------------------- tCIDLib::EExitCodes eMainThreadFunc(TThread&, tCIDLib::TVoid*); CIDLib_MainModule(TThread(L"HTTPClient1MainThread", eMainThreadFunc)) // ---------------------------------------------------------------------------- // Local functions // ---------------------------------------------------------------------------- static tCIDLib::TVoid ShowUsage(TTextOutStream& strmOut) { strmOut << L"Usage:\n" L" HTTPClient1 /URL=url [/Fmt=[MIMETYPE] /Close]\n\n" L" /Fmt= indicates an 'accept' MIME type, else it accepts text\n" L" /URL= indicates a fully qualified URL to GET\n" << kCIDLib::FlushIt; } // ---------------------------------------------------------------------------- // Program entry point // ---------------------------------------------------------------------------- tCIDLib::EExitCodes eMainThreadFunc(TThread& thrThis, tCIDLib::TVoid*) { // We have to let our calling thread go first thrThis.Sync(); // Output a little program blurb strmOut << L"\nHTTPClient1.Exe\n" << L"CIDLib HTTP Client Demo #1\n" << kCIDLib::EndLn; // Input values, which will be set/overridden by parms TString strRetFmt = L"text/*"; TString strURLText; // // Get the parameters and set up the URL. It should be a fully // qualified URL. These all fit the standard form for CIDLib params, // so we can call a little helper that will pre-parse them for us. It // uses the key/value/flag type, where the flag is false if was an // 'option' parameter i.e. just /XXX, and true if a value param, i.e. // /XXX=YYY // tCIDLib::TKVPFList colParms; const tCIDLib::TCard4 c4ParmCnt = TSysInfo::c4StdCmdLineParse(colParms); if ((c4ParmCnt < 1) || (c4ParmCnt > 2)) { ShowUsage(strmOut); return tCIDLib::EExitCodes::BadParameters; } // We have the right number, so iterate them and store the info away. const tCIDLib::TBoolean bBadParm = !colParms.bForEach ( [&](const TKeyValFPair& kvalfCur) { tCIDLib::TBoolean bGood = kCIDLib::False; if (kvalfCur.strKey().bCompareI(L"Fmt")) { if (kvalfCur.bFlag()) { strRetFmt = kvalfCur.strValue(); bGood = kCIDLib::True; } } else if (kvalfCur.strKey().bCompareI(L"URL")) { if (kvalfCur.bFlag()) { strURLText = kvalfCur.strValue(); bGood = kCIDLib::True; } } return bGood; } ); if (bBadParm || strURLText.bIsEmpty()) { ShowUsage(strmOut); return tCIDLib::EExitCodes::BadParameters; } // // Parse the URL, which must be fully qualified. To avoid an exception // we don't force the issue during parse but check it after. // TURL urlGet(strURLText, tCIDSock::EQualified::DontCare); if (!urlGet.bFullyQualified()) { strmOut << L"The URL must be fully qualified!" << kCIDLib::NewEndLn; return tCIDLib::EExitCodes::BadParameters; } // We only support HTTP and HTTPS if ((urlGet.eProto() != tCIDSock::EProtos::HTTP) && (urlGet.eProto() != tCIDSock::EProtos::HTTPS)) { strmOut << L"This program only supports HTTP/HTTPS access" << kCIDLib::NewEndLn; return tCIDLib::EExitCodes::BadParameters; } // Some stuff that will be given back to us from the query tCIDLib::TCard4 c4ContLen = 0; tCIDLib::TKVPList colInHdrs; tCIDLib::TKVPList colOutHdrs; tCIDNet::EHTTPCodes eCodeType; TString strContType; TString strRepLine; THeapBuf mbufCont(kCIDLib::c4Sz_32K); TString strUltimateURL; THTTPClient httpcGet; // // We have to create a data source in order to use the redirect aware // get, because it requires creating multiple connections potentially. // we create a regular socket based one or a secure one, depending on // the URL protocol. For simple socket sources there's a helper // to do this. // TCIDDataSrcJan janSrc ( facCIDNet().pcdsMakeSocketSrc(L"HTTP1 Client", urlGet) , tCIDLib::EAdoptOpts::Adopt , kCIDLib::True ); // Do the GET operation, handling redirection TString strFinalURL; tCIDLib::TCard4 c4Res = httpcGet.c4SendGetRedir ( janSrc , urlGet , TTime::enctNowPlusSecs(5) , L"CIDLib HTTP Client 1/1.0" , strRetFmt , eCodeType , strRepLine , colOutHdrs , strContType , mbufCont , c4ContLen , strFinalURL , colInHdrs ); // Dump the main results out strmOut << L" Reply Code: " << c4Res << kCIDLib::NewLn << L" Reply Text: " << strRepLine << kCIDLib::NewLn << L" Content Len: " << c4ContLen << kCIDLib::NewLn; if (strFinalURL != strURLText) strmOut << L" Final URL: " << strFinalURL << kCIDLib::NewLn; strmOut << kCIDLib::NewLn; // If we got header lines, dump those if (!colOutHdrs.bIsEmpty()) { strmOut << L"Header Lines:\n---------------------\n"; colOutHdrs.bForEach ( [](const TKeyValuePair& kvalCur) -> tCIDLib::TBoolean { strmOut << L" " << kvalCur.strKey() << L": " << kvalCur.strValue() << kCIDLib::NewLn; return kCIDLib::True; } ); strmOut << kCIDLib::NewLn; } // // If we have content, see if there is an explicit or discoverable text // encoding. If so, see if we support that encoding. If so, then let's // dump it out as text. // TString strEncoding; if (c4ContLen && TNetCoreParser::bFindTextEncoding(colOutHdrs, mbufCont, c4ContLen, strEncoding) && facCIDEncode().bSupportsEncoding(strEncoding)) { strmOut << L"\n\nBody Text\n-------------------------" << kCIDLib::NewEndLn; // // Create a text input stream over the buffer, giving it a text encoder // for the encoding we found. He adopts it. // TTextMBufInStream strmSrc ( tCIDLib::ForceMove(mbufCont) , c4ContLen , facCIDEncode().ptcvtMake(strEncoding, tCIDLib::ETCvtActs::StopThenThrow) ); // OK, just read and dump lines until we hit the end of the body content. TString strLine; while (!strmSrc.bEndOfStream()) { strmSrc >> strLine; strmOut << strLine << kCIDLib::NewLn; } strmOut << kCIDLib::EndLn; } else { strmOut << L"Body content is a binary or unknown text encoding" << kCIDLib::NewEndLn; } return tCIDLib::EExitCodes::Normal; } 
The output for Google's main page (truncating and ellipsing the longer bits) is:
 Reply Code: 200 Reply Text: OK Content Len: 11420 Header Lines: --------------------- Date: Sun, 28 Jul 2019 22:44:33 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=ISO-8859-1 P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info." Server: gws X-XSS-Protection: 0 X-Frame-Options: SAMEORIGIN Set-Cookie: 1P_JAR=2019-07-28-22; expires=Tue, 27-Aug-2019 .... Set-Cookie: NID=188=vSJdj7UQqxjh9JpJvaSkop9WPhYs-.... Alt-Svc: quic=":443"; ma=2592000; v="46,43,39" Accept-Ranges: none Vary: Accept-Encoding Transfer-Encoding: chunked Content-Length: 11420 Body Text -------------------------  Dean_Roddey    to    cpp  [link]   [comments]

Exported images lose a lot of EXIF metadata

I discovered that when I export an image from Affinity Photo, a lot of the EXIF metadata that was in the original image is lost in the exported version, even if I have the "Embed metadata" option in "More" panel checked. For example, I've included a diff of the metadata present in a RAW file compared to a JPEG exported from it. Lines beginning with < are unique to the original, while lines beginning with > are unique to the export. In some cases, such as file access times, the values differ in a way that is expected, but there are many fields that are removed completely, such as "Lens ID" and all the autofocus information. Is there something I can do to make Affinity Photo preserve all EXIF metadata in exported images? Or is this a problem I should report to Serif? I've tried on both the desktop (macOS) and iPad versions and the problem is present in both places.
1,17d0 < AEB Bracket Value : 0 < AF Area Heights : 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 0 0 0 0 < AF Area Mode : Auto < AF Area Select Method : AF area selection button < AF Area Widths : 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 0 0 0 0 < AF Area X Positions : 1438 1089 497 0 -497 -1089 -1438 -1788 1089 497 0 -497 -1089 -1438 -1788 1788 497 0 -497 -1089 -1438 -1788 1788 1438 0 -497 -1089 -1438 -1788 1788 1438 1089 -497 -1089 -1438 -1788 1788 1438 1089 497 1788 1438 1089 497 0 0 0 0 0 < AF Area Y Positions : 699 699 860 860 860 699 699 699 349 430 430 430 349 349 349 699 0 0 0 0 0 0 349 349 -430 -430 -349 -349 -349 0 0 0 -860 -699 -699 -699 -349 -349 -349 -430 -699 -699 -699 -860 -860 0 0 0 0 < AF Assist Beam : Emits < AF Image Height : 4000 < AF Image Width : 6000 < AF Micro Adj Mode : Unknown (3) < AF Micro Adj Value : undef < AF On AE Lock Button Switch : Disable < AF Point Display During Focus : Selected (constant) < AF Points In Focus : 10,17,18 < AF Points Selected : 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44 < Ambience Selection : Standard 19a3 > Application Record Version : 4 21,39c5,9 < Aspect Ratio : 3:2 < Auto AF Point Color Tracking : On-Shot AF only < Auto Exposure Bracketing : Off < Auto ISO : 100 < Auto Lighting Optimizer : Off < Average Black Level : 511 511 511 511 < Base ISO : 100 < Battery Type : LP-E17 < Bits Per Sample : 8 8 8 < Black Mask Bottom Border : 0 < Black Mask Left Border : 0 < Black Mask Right Border : 0 < Black Mask Top Border : 0 < Blue Balance : 1.865234 < Bracket Mode : Off < Bracket Shot Number : 0 < Bracket Value : 0 < Bulb Duration : 0 < CR2 CFA Pattern : [Red,Green][Green,Blue] --- > Bits Per Sample : 8 > Blue Matrix Column : 0.14305 0.06061 0.71391 > Blue Tone Reproduction Curve : (Binary data 32 bytes, use -b option to extract) > By-line : REDACTED > CMM Flags : Not Embedded, Independent 41,51c11,16 < Camera Temperature : 23 C < Camera Type : EOS High-end < Canon Exposure Mode : Aperture-priority AE < Canon Firmware Version : Firmware Version 1.0.1 < Canon Flash Mode : Off < Canon Image Height : 4000 < Canon Image Size : Large < Canon Image Type : Canon EOS Rebel T7i < Canon Image Width : 6000 < Canon Model ID : EOS Rebel T7i / 800D / Kiss X9i < Chromatic Aberration Setting : On --- > Chromatic Adaptation : 1.04788 0.02292 -0.05022 0.02959 0.99048 -0.01707 -0.00925 0.01508 0.75168 > Chromaticity Channel 1 : 0.64 0.33 > Chromaticity Channel 2 : 0.3 0.60001 > Chromaticity Channel 3 : 0.14999 0.06 > Chromaticity Channels : 3 > Chromaticity Colorant : Unknown (0) 53c18,19 < Color Data Version : 15 (6DmkII/77D/200D/800D) --- > Coded Character Set : UTF8 > Color Components : 3 55,64c21 < Color Temp As Shot : 4428 < Color Temp Auto : 4428 < Color Temp Cloudy : 6000 < Color Temp Daylight : 5200 < Color Temp Flash : 6272 < Color Temp Fluorescent : 3688 < Color Temp Kelvin : 5200 < Color Temp Measured : 4428 < Color Temp Shade : 7000 < Color Temp Tungsten : 3200 --- > Color Space Data : RGB 66d22 < Color Tone : Normal 68,69c24 < Compression : JPEG (old-style) < Continuous Drive : Single --- > Connection Space Illuminant : 0.9642 1 0.82491 71d25 < Control Mode : Camera Local Control 72a27 > Copyright Notice : REDACTED 74,84c29,30 < Create Date : 2018:09:06 16:52:58.46 < Crop Bottom Margin : 0 < Crop Left Margin : 0 < Crop Right Margin : 0 < Crop Top Margin : 0 < Cropped Image Height : 4000 < Cropped Image Left : 0 < Cropped Image Top : 0 < Cropped Image Width : 6000 < Custom Picture Style File Name : < Custom Rendered : Normal --- > Creator : REDACTED > Current IPTC Digest : ecefffb351e3d6cf038c92bd05d463f2 86,95c32,37 < Date/Time Original : 2018:09:06 16:52:58.46 < Daylight Savings : On < Depth Of Field : 0.94 m (2.35 - 3.29 m) < Digital Gain : 0 < Digital Zoom : None < Directory : /Volumes/RAW Photos/09-06-18 < Drive Mode : Self-timer Operation < Dust Removal Data : (Binary data 1024 bytes, use -b option to extract) < Easy Mode : Manual < Exif Byte Order : Little-endian (Intel, II) --- > Device Attributes : Reflective, Glossy, Positive, Color > Device Manufacturer : > Device Model : > Directory : . > Encoding Process : Baseline DCT, Huffman coding > Exif Byte Order : Big-endian (Motorola, MM) 101d42 < Exposure Level Increments : 1/3 Stop 107,115c48,55 < File Access Date/Time : 2018:09:06 17:35:35-07:00 < File Inode Change Date/Time : 2018:09:06 17:35:35-07:00 < File Modification Date/Time : 2018:09:06 17:35:35-07:00 < File Name : IMG_1167.CR2 < File Permissions : rwxrwxrwx < File Size : 25 MB < File Type : CR2 < File Type Extension : cr2 < Fisheye Filter : Off --- > File Access Date/Time : 2018:09:06 18:13:39-07:00 > File Inode Change Date/Time : 2018:09:06 18:12:38-07:00 > File Modification Date/Time : 2018:09:06 18:11:10-07:00 > File Name : IMG_1167_PROCESSED.JPG > File Permissions : rw-r--r-- > File Size : 2.8 MB > File Type : JPEG > File Type Extension : jpg 117,122d56 < Flash Activity : 0 < Flash Bits : (none) < Flash Exposure Compensation : 0 < Flash Exposure Lock : Off < Flash Guide Number : 0 < Flashpix Version : 0100 127,132c61 < Focal Plane Y Resolution : 6734.006734 < Focal Units : 1/mm < Focus Distance Lower : 1.99 m < Focus Distance Upper : 3.5 m < Focus Mode : AI Servo AF < Focus Range : Not Known --- > Focal Plane Y Resolution : 6734.006711 144,148c73,74 < Grainy B/W Filter : Off < HDR : Off < HDR Effect : Natural < High ISO Noise Reduction : Off < Highlight Tone Priority : Off --- > Green Matrix Column : 0.38512 0.7169 0.09706 > Green Tone Reproduction Curve : (Binary data 32 bytes, use -b option to extract) 149a76 > IPTC Digest : ecefffb351e3d6cf038c92bd05d463f2 151,158c78,81 < ISO Expansion : Off < Image Height : 4000 < Image Size : 6000x4000 < Image Width : 6000 < Internal Serial Number : AG0649670 < Interoperability Index : R98 - DCF basic file (sRGB) < Interoperability Version : 0100 < LCD Display At Power On : Display --- > Image Height : 4020 > Image Size : 6022x4020 > Image Width : 6022 > JFIF Version : 1.01 160,161d82 < Lens : 50.0 mm (35 mm equivalent: 77.7 mm) < Lens ID : Canon EF 50mm f/1.8 STM 165d85 < Lens Type : Canon EF 50mm f/1.8 STM 167,171c87 < Linearity Upper Margin : 10000 < Live View Shooting : Off < Long Exposure Noise Reduction : Off < MIME Type : image/x-canon-cr2 < Macro Mode : Normal --- > MIME Type : image/jpeg 173,187c89,91 < Manual Flash Output : n/a < Max Aperture : 1.8 < Max Focal Length : 50 mm < Measured EV : 9.50 < Measured EV 2 : 8.5 < Measured RGGB : 620 1024 1024 528 < Megapixels : 24.0 < Metering Mode : Evaluative < Min Aperture : 23 < Min Focal Length : 50 mm < Miniature Filter : Off < Miniature Filter Orientation : Horizontal < Miniature Filter Parameter : 0 < Miniature Filter Position : 0 < Mirror Lockup : Disable --- > Media White Point : 0.9642 1 0.82491 > Megapixels : 24.2 > Metering Mode : Multi-segment 189,193d92 < Modify Date : 2018:09:06 16:52:58.46 < ND Filter : n/a < Normal White Level : 11435 < Num AF Points : 49 < Optical Zoom Code : n/a 196,208c95,105 < Painting Filter : Off < Per Channel Black Level : 511 511 511 511 < Peripheral Illumination Corr : Off < Peripheral Lighting Setting : On < Photometric Interpretation : RGB < Picture Style : Auto < Picture Style PC : None; None; None < Picture Style User Def : Auto; Auto; Auto < Planar Configuration : Chunky < Preview Image : (Binary data 880693 bytes, use -b option to extract) < Preview Image Length : 880693 < Preview Image Start : 25226676 < Quality : RAW --- > Primary Platform : Apple Computer Inc. > Profile CMM Type : Little CMS > Profile Class : Display Device Profile > Profile Connection Space : XYZ > Profile Copyright : No copyright, use freely > Profile Creator : Little CMS > Profile Date Time : 2018:09:07 01:00:19 > Profile Description : sRGB IEC61966-2.1 > Profile File Signature : acsp > Profile ID : 0 > Profile Version : 4.3.0 210,211d106 < Raw Image Segmentation : 0 6288 6288 < Raw Jpg Size : Large 213,214c108,110 < Record Mode : CR2+JPEG < Red Balance : 1.707031 --- > Red Matrix Column : 0.43604 0.22249 0.01392 > Red Tone Reproduction Curve : (Binary data 32 bytes, use -b option to extract) > Rendering Intent : Perceptual 216,220c112 < Retract Lens On Power Off : Enable < Rows Per Strip : 400 < SRAW Quality : n/a < SRaw Type : 1 < Samples Per Pixel : 3 --- > Rights : REDACTED 224d115 < Self Timer : 2 s 226,233c117 < Sensor Blue Level : 0 < Sensor Bottom Border : 4047 < Sensor Height : 4056 < Sensor Left Border : 276 < Sensor Red Level : 0 < Sensor Right Border : 6275 < Sensor Top Border : 48 < Sensor Width : 6288 --- > Sequence Number : 0 235,239c119 < Set Button When Shooting : Normal (disabled) < Sharpness : 3 < Sharpness Frequency : n/a < Shooting Mode : Aperture-priority AE < Shot Number In Continuous Burst : 0 --- > Sharpness : Hard 242,257d121 < Slow Shutter : None < Soft Focus Filter : Off < Specular White Level : 11892 < Strip Byte Counts : 23727565 < Strip Offsets : 59110 < Sub Sec Time : 46 < Sub Sec Time Digitized : 46 < Sub Sec Time Original : 46 < Target Aperture : 8 < Target Exposure Time : 1/13 < Thumbnail Image : (Binary data 7047 bytes, use -b option to extract) < Thumbnail Image Valid Area : 0 159 7 112 < Thumbnail Length : 7047 < Thumbnail Offset : 52062 < Time Zone : -07:00 < Time Zone City : Los Angeles 259d122 < Toy Camera Filter : Off 261,282d123 < VF Display Illumination : Auto < VRD Offset : 0 < Valid AF Points : 45 < Viewfinder Warnings : Monochrome, WB corrected, [6], [7] < Vignetting Corr Version : 16 < WB Bracket Mode : Off < WB Bracket Value AB : 0 < WB Bracket Value GM : 0 < WB RGGB Levels : 1748 1024 1024 1910 < WB RGGB Levels As Shot : 1748 1024 1024 1910 < WB RGGB Levels Auto : 1748 1024 1024 1910 < WB RGGB Levels Cloudy : 2024 1024 1024 1565 < WB RGGB Levels Daylight : 1889 1024 1024 1675 < WB RGGB Levels Flash : 2081 1024 1024 1544 < WB RGGB Levels Fluorescent : 1570 1024 1024 2241 < WB RGGB Levels Kelvin : 1889 1024 1024 1675 < WB RGGB Levels Measured : 1748 1024 1024 1910 < WB RGGB Levels Shade : 2180 1024 1024 1458 < WB RGGB Levels Tungsten : 1334 1024 1024 2389 < WB Shift AB : 0 < WB Shift GM : 0 < Watercolor Filter : Off 284,285d124 < White Balance Blue : 0 < White Balance Red : 0 286a126,127 > XMP Toolkit : XMP Core 5.5.0 > Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1) 288,289d128 < Zoom Source Width : 0 < Zoom Target Width : 0 
submitted by Perceptes to AffinityPhoto [link] [comments]

Heroku memory leak debugging

Edit: Big thanks to everyone, especially schneems and xangadix. This has been extremely helpful.
http://imgur.com/a/MU8Hb
Hi guys,
I’m deploying my Rails app to Heroku and it looks like the Delayed Jobs worker Dyno is OUT OF CONTROL. I’m trying to debug it now, but I don’t know anything about memory or anything… Why is the garbage collection not working? How can I diagnose this?
Here’s the results of a derailed operation. 1.8 million strings sounds like a lot, right?
bundle exec derailed bundle:objects
allocated memory by class ----------------------------------- 18727850 String 17575680 RubyVM::InstructionSequence 6773296 File 3952672 Array 2720440 Hash 2130928 MatchData 1267736 Class 664972 Regexp 660896 RubyVM::Env 653328 Proc 573256 Module 219976 MIME::Type::Columnar 204520 Set 156368 MIME::Types::Container 51520 Thread::Backtrace 13984 Struct::HTMLElementDescription 11328 Thread::Backtrace::Location 5120 Mutex 4560 Range 3800 Symbol 2712 ActiveRecord::AttributeMethods::GeneratedAttributeMethods 2240 Sass::Script::Functions::Signature 1800 Bignum 1664 Mime::Type 1320 Object 1280 ActiveSupport::Callbacks::CallbackChain 960 ActiveSupport::Notifications::Fanout::Subscribers::Evented 792 Rails::Initializable::Initializer 776 <> 720 ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher 696 ActiveSupport::OrderedOptions 696 PG::BinaryDecoder::Integer 528 Mime::Mimes 480 ExecJS::ExternalRuntime 464 ActiveSupport::HashWithIndifferentAccess 464 PG::BinaryDecoder::Float 456 LoadError 384 ActiveSupport::Callbacks::Callback 360 Enumerator 360 Fixnum 360 ThreadSafe::Cache 320 Rails::Initializable::Collection 288 Rails::Configuration::Generators 280 ActionController::ParamsWrapper::Options 264 UnboundMethod 232 PG::BinaryDecoder::Boolean 232 PG::BinaryDecoder::Bytea 232 PG::BinaryDecoder::String 232 PG::BinaryEncoder::Boolean 232 PG::BinaryEncoder::Bytea 

allocated objects by gem

159529 activesupport-4.1.14.2 85210 mime-types-3.1 35115 sass-3.2.19 27328 activerecord-4.1.14.2 26189 actionpack-4.1.14.2 17319 ruby-2.2.5/lib 14726 addressable-2.5.0 7426 bundler-1.14.6 6293 rails-footnotes-4.1.8 5660 mail-2.6.4 4691 devise-4.2.0 4492 pg-0.20.0 3423 nokogiri-1.7.0.1 3273 jbuilder-2.6.1 2823 execjs-2.7.0 1481 actionview-4.1.14.2 1398 aws-sdk-core-2.7.15 1372 activemodel-4.1.14.2 1236 sass-rails-4.0.5 1094 gastly-1.0.1 931 clockwork-2.0.1 905 rest-client-2.0.1 738 hirb-0.7.3 551 multi_json-1.12.1 516 railties-4.1.14.2 427 delayed_job_active_record-4.1.1 379 jquery-rails-2.3.0 357 jmespath-1.3.1 320 coffee-rails-4.0.1 320 turbolinks-5.0.1 279 mini_magick-4.6.1 268 coffee-script-2.4.1 234 warden-1.2.7 199 sprockets-2.12.4 187 anemone-0.7.2 168 erubis-2.7.0 162 uglifier-3.0.4 144 colorize-0.5.8 143 delayed_job-4.1.2 88 delayed_job_heartbeat_plugin-0.2.0 83 unf-0.1.4 74 turbolinks-source-5.0.0 70 http-cookie-1.0.3 53 will_paginate-3.1.5 46 public_suffix-2.0.5 39 responders-1.1.2 37 pundit-1.1.0 35 aws-sdk-resources-2.7.15 33 domain_name-0.5.20161129 27 bootstrap-sass-3.3.5 
submitted by entwederoder to rails [link] [comments]

EXIF date/time created info is missing from normal photos but not from HDR photos

I just started uploading photos from my Nexus 6 to Smugmug and noticed that ordering the photos by date on Smugmug worked for some photos and not others. Some of the photos were stuck at the end of the gallery, out of date order, and checking the info in Smugmug showed that there was no date info for these photos.
I did some testing with my phone, checking EXIF data, and found that the issue seems to occur because the "DateTimeOriginal" (i.e. "date taken") field is not present when the the image was captured non-HDR (with the in-camera HDR setting off). But when I take a picture with the HDR setting on, it has different EXIF data that includes the "DateTimeOriginal" EXIF field. The HDR photos are the ones that appear in the correct order and have info for "date taken".
I can't be the only person that's found this, but searching the internet for Nexus 6 EXIF bugs hasn't gotten me anywhere. Any ideas?
For what it's worth, here is the EXIF info on two pictures. Notice that the HDR one has a "Date/Time Original" entry but the other one doesn't.
HDR photo:
ExifTool Version Number : 10.07 File Name : IMG_20151211_181618.jpg Directory : . File Size : 6.0 MB File Modification Date/Time : 2015:12:11 21:10:41-06:00 File Access Date/Time : 2015:12:12 00:16:18-06:00 File Creation Date/Time : 2015:12:12 00:16:18-06:00 File Permissions : rw-rw-rw- File Type : JPEG File Type Extension : jpg MIME Type : image/jpeg JFIF Version : 1.01 Exif Byte Order : Little-endian (Intel, II) Make : motorola Camera Model Name : Nexus 6 Orientation : Horizontal (normal) X Resolution : 72 Y Resolution : 72 Resolution Unit : inches Software : HDR+ 1.0.106412213r Modify Date : 2015:12:11 18:16:19 Y Cb Cr Positioning : Centered Exposure Time : 1/125 F Number : 2.0 Exposure Program : Program AE ISO : 105 Exif Version : 0210 Date/Time Original : 2015:12:11 18:16:19 Create Date : 2015:12:11 18:16:19 Components Configuration : Y, Cb, Cr, - Shutter Speed Value : 1/125 Aperture Value : 2.0 Max Aperture Value : 2.0 Subject Distance : 0 m Metering Mode : Center-weighted average Flash : Off, Did not fire Focal Length : 3.8 mm Flashpix Version : 0100 Color Space : sRGB Exif Image Width : 3088 Exif Image Height : 4160 Sensing Method : One-chip color area Scene Type : Directly photographed Custom Rendered : Custom Exposure Mode : Auto Digital Zoom Ratio : 1 Scene Capture Type : Standard Contrast : Normal Saturation : Normal Sharpness : Normal Subject Distance Range : Unknown Image Unique ID : 90c05ab3128da6aa0000000000000000 GPS Version ID : 2.2.0.0 GPS Latitude Ref : North GPS Longitude Ref : West GPS Altitude Ref : Above Sea Level GPS Time Stamp : 00:16:18 GPS Img Direction Ref : Magnetic North GPS Img Direction : 271 GPS Date Stamp : 2015:12:12 Compression : JPEG (old-style) Thumbnail Offset : 1110 Thumbnail Length : 5015 XMP Toolkit : XMP Core 5.5.0 Profile CMM Type : Profile Version : 2.0.0 Profile Class : Display Device Profile Color Space Data : RGB Profile Connection Space : XYZ Profile Date Time : 2009:03:27 21:36:31 Profile File Signature : acsp Primary Platform : Unknown () CMM Flags : Not Embedded, Independent Device Manufacturer : Device Model : Device Attributes : Reflective, Glossy, Positive, Color Rendering Intent : Perceptual Connection Space Illuminant : 0.9642 1 0.82491 Profile Creator : Profile ID : 29f83ddeaff255ae7842fae4ca83390d Profile Description : sRGB IEC61966-2-1 black scaled Blue Matrix Column : 0.14307 0.06061 0.7141 Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract) Device Model Desc : IEC 61966-2-1 Default RGB Colour Space - sRGB Green Matrix Column : 0.38515 0.71687 0.09708 Green Tone Reproduction Curve : (Binary data 2060 byte
Non HDR photo:
ExifTool Version Number : 10.07 File Name : IMG_20151211_210344.jpg Directory : . File Size : 7.2 MB File Modification Date/Time : 2015:12:11 21:10:42-06:00 File Access Date/Time : 2015:12:12 03:03:44-06:00 File Creation Date/Time : 2015:12:12 03:03:44-06:00 File Permissions : rw-rw-rw- File Type : JPEG File Type Extension : jpg MIME Type : image/jpeg JFIF Version : 1.01 Exif Byte Order : Big-endian (Motorola, MM) Make : motorola Camera Model Name : Nexus 6 Orientation : Horizontal (normal) Software : Picasa Exposure Time : 1/60 F Number : 2.0 ISO : 80 Exif Version : 0220 Shutter Speed Value : 59.7 Aperture Value : 2.0 Focal Length : 3.8 mm Exif Image Width : 4160 Exif Image Height : 3120 Image Unique ID : 97c21b9f641fa8ed0000000000000000 GPS Version ID : 2.2.0.0 GPS Latitude Ref : North GPS Longitude Ref : West GPS Altitude Ref : Above Sea Level GPS Time Stamp : 03:03:44 GPS Date Stamp : 2015:12:12 Compression : JPEG (old-style) X Resolution : 72 Y Resolution : 72 Resolution Unit : inches Thumbnail Offset : 664 Thumbnail Length : 3325 XMP Toolkit : XMP Core 5.5.0 Profile CMM Type : Profile Version : 2.0.0 Profile Class : Display Device Profile Color Space Data : RGB Profile Connection Space : XYZ Profile Date Time : 2009:03:27 21:36:31 Profile File Signature : acsp Primary Platform : Unknown () CMM Flags : Not Embedded, Independent Device Manufacturer : Device Model : Device Attributes : Reflective, Glossy, Positive, Color Rendering Intent : Perceptual Connection Space Illuminant : 0.9642 1 0.82491 Profile Creator : Profile ID : 29f83ddeaff255ae7842fae4ca83390d Profile Description : sRGB IEC61966-2-1 black scaled Blue Matrix Column : 0.14307 0.06061 0.7141 Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract) Device Model Desc : IEC 61966-2-1 Default RGB Colour Space - sRGB Green Matrix Column : 0.38515 0.71687 0.09708 Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract) Luminance : 0 80 0 Measurement Observer : CIE 1931 Measurement Backing : 0 0 0 Measurement Geometry : Unknown Measurement Flare : 0% Measurement Illuminant : D65 Media Black Point : 0.01205 0.0125 0.01031 Red Matrix Column : 0.43607 0.22249 0.01392 Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract) Technology : Cathode Ray Tube Display Viewing Cond Desc : Reference Viewing Condition in IEC 61966-2-1 Media White Point : 0.9642 1 0.82491 Profile Copyright : Copyright International Color Consortium, 2009 Chromatic Adaptation : 1.04791 0.02293 -0.0502 0.0296 0.99046 -0.01707 -0.00925 0.01506 0.75179 Image Width : 4160 Image Height : 3120 Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 3 Y Cb Cr Sub Sampling : YCbCr4:2:
submitted by Milkshakes4Breakfast to nexus6 [link] [comments]

Heroku memory leak debugging

http://imgur.com/a/MU8Hb Hi guys, I’m deploying my Rails app to Heroku and it looks like the Delayed Jobs worker Dyno is OUT OF CONTROL. I’m trying to debug it now, but I don’t know anything about memory or anything… Why is the garbage collection not working? How can I diagnose this? Here’s the results of a derailed operation. 1.8 million strings sounds like a lot, right?
bundle exec derailed bundle:objects
allocated memory by class ----------------------------------- 18727850 String 17575680 RubyVM::InstructionSequence 6773296 File 3952672 Array 2720440 Hash 2130928 MatchData 1267736 Class 664972 Regexp 660896 RubyVM::Env 653328 Proc 573256 Module 219976 MIME::Type::Columnar 204520 Set 156368 MIME::Types::Container 51520 Thread::Backtrace 13984 Struct::HTMLElementDescription 11328 Thread::Backtrace::Location 5120 Mutex 4560 Range 3800 Symbol 2712 ActiveRecord::AttributeMethods::GeneratedAttributeMethods 2240 Sass::Script::Functions::Signature 1800 Bignum 1664 Mime::Type 1320 Object 1280 ActiveSupport::Callbacks::CallbackChain 960 ActiveSupport::Notifications::Fanout::Subscribers::Evented 792 Rails::Initializable::Initializer 776 <> 720 ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher 696 ActiveSupport::OrderedOptions 696 PG::BinaryDecoder::Integer 528 Mime::Mimes 480 ExecJS::ExternalRuntime 464 ActiveSupport::HashWithIndifferentAccess 464 PG::BinaryDecoder::Float 456 LoadError 384 ActiveSupport::Callbacks::Callback 360 Enumerator 360 Fixnum 360 ThreadSafe::Cache 320 Rails::Initializable::Collection 288 Rails::Configuration::Generators 280 ActionController::ParamsWrapper::Options 264 UnboundMethod 232 PG::BinaryDecoder::Boolean 232 PG::BinaryDecoder::Bytea 232 PG::BinaryDecoder::String 232 PG::BinaryEncoder::Boolean 232 PG::BinaryEncoder::Bytea 

allocated objects by gem

159529 activesupport-4.1.14.2 85210 mime-types-3.1 35115 sass-3.2.19 27328 activerecord-4.1.14.2 26189 actionpack-4.1.14.2 17319 ruby-2.2.5/lib 14726 addressable-2.5.0 7426 bundler-1.14.6 6293 rails-footnotes-4.1.8 5660 mail-2.6.4 4691 devise-4.2.0 4492 pg-0.20.0 3423 nokogiri-1.7.0.1 3273 jbuilder-2.6.1 2823 execjs-2.7.0 1481 actionview-4.1.14.2 1398 aws-sdk-core-2.7.15 1372 activemodel-4.1.14.2 1236 sass-rails-4.0.5 1094 gastly-1.0.1 931 clockwork-2.0.1 905 rest-client-2.0.1 738 hirb-0.7.3 551 multi_json-1.12.1 516 railties-4.1.14.2 427 delayed_job_active_record-4.1.1 379 jquery-rails-2.3.0 357 jmespath-1.3.1 320 coffee-rails-4.0.1 320 turbolinks-5.0.1 279 mini_magick-4.6.1 268 coffee-script-2.4.1 234 warden-1.2.7 199 sprockets-2.12.4 187 anemone-0.7.2 168 erubis-2.7.0 162 uglifier-3.0.4 144 colorize-0.5.8 143 delayed_job-4.1.2 88 delayed_job_heartbeat_plugin-0.2.0 83 unf-0.1.4 74 turbolinks-source-5.0.0 70 http-cookie-1.0.3 53 will_paginate-3.1.5 46 public_suffix-2.0.5 39 responders-1.1.2 37 pundit-1.1.0 35 aws-sdk-resources-2.7.15 33 domain_name-0.5.20161129 27 bootstrap-sass-3.3.5 
submitted by entwederoder to Heroku [link] [comments]

Lightroom Metadata pollution cleanup question

I have a very large catalog of photos which have been through LR3, LR4, and now LR6. Using EXIFTool I noticed there is a large amount of LR history stored in the metadata; obsolete data from previous versions of LR. How can I easily remove this obsolete history data?
I always thought LR was non-destructive and my import operations were MOVE; so ALL of my originals are polluted; ORF, ARW, NEF, RW2, DNGs, TIFFs, JPGs. Addition of this history metadata has caused problems with locating duplicates based on Size/CRC32. This obsolete data may be the cause of these performance problems.
Does anyone know how to make Lightroom 6 clean this up?
Here is what it has done to an Olympus .jpg, there seems to be even more pollution in Sony jpgs.
ExifTool Version Number : 10.29 File Name : _C160001-2.jpg File Size : 2.4 MB File Modification Date/Time : 2015:09:30 14:25:52+07:00 File Access Date/Time : 2016:09:15 15:46:07+07:00 File Creation Date/Time : 2016:09:15 15:46:07+07:00 File Permissions : rw-rw-rw- File Type : JPEG File Type Extension : jpg MIME Type : image/jpeg Exif Byte Order : Little-endian (Intel, II) Image Description : OLYMPUS DIGITAL CAMERA Make : OLYMPUS IMAGING CORP. Camera Model Name : E-M5 X Resolution : 240 Y Resolution : 240 Resolution Unit : inches Software : Adobe Photoshop Lightroom 4.4 (Windows) Modify Date : 2015:09:30 14:25:49 Exposure Time : 1/25 F Number : 4.0 Exposure Program : Shutter speed priority AE ISO : 200 Sensitivity Type : Standard Output Sensitivity Exif Version : 0230 Date/Time Original : 2012:12:16 09:41:13 Create Date : 2012:12:16 09:41:13 Shutter Speed Value : 1/25 Aperture Value : 4.0 Exposure Compensation : +1.3 Max Aperture Value : 3.5 Metering Mode : Multi-segment Light Source : Unknown Flash : On, Did not fire Focal Length : 12.0 mm Focal Plane X Resolution : 266.1021423 Focal Plane Y Resolution : 266.1021423 Focal Plane Resolution Unit : mm File Source : Digital Camera CFA Pattern : [Red,Green][Green,Blue] Custom Rendered : Normal Exposure Mode : Manual White Balance : Auto Digital Zoom Ratio : 1 Focal Length In 35mm Format : 24 mm Scene Capture Type : Standard Gain Control : None Contrast : Normal Saturation : Normal Sharpness : Normal Lens Info : 12-50mm f/3.5-6.3 Lens Model : OLYMPUS M.12-50mm F3.5-6.3 Compression : JPEG (old-style) Thumbnail Offset : 1030 Thumbnail Length : 12044 Displayed Units X : inches Displayed Units Y : inches Current IPTC Digest : bdbca7c1e32bceeaf7aa8d5c52e2af43 Coded Character Set : UTF8 Application Record Version : 4 Time Created : 09:41:13 Digital Creation Date : 2012:12:16 Digital Creation Time : 09:41:13 Photoshop Thumbnail : (Binary data 12044 bytes, use -b option to extract) IPTC Digest : bdbca7c1e32bceeaf7aa8d5c52e2af43 Profile CMM Type : Lino Profile Version : 2.1.0 Profile Class : Display Device Profile Color Space Data : RGB Profile Connection Space : XYZ Profile Date Time : 1998:02:09 06:49:00 Profile File Signature : acsp Primary Platform : Microsoft Corporation CMM Flags : Not Embedded, Independent Device Manufacturer : IEC Device Model : sRGB Device Attributes : Reflective, Glossy, Positive, Color Rendering Intent : Perceptual Connection Space Illuminant : 0.9642 1 0.82491 Profile Creator : HP Profile ID : 0 Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company Profile Description : sRGB IEC61966-2.1 Media White Point : 0.95045 1 1.08905 Media Black Point : 0 0 0 Red Matrix Column : 0.43607 0.22249 0.01392 Green Matrix Column : 0.38515 0.71687 0.09708 Blue Matrix Column : 0.14307 0.06061 0.7141 Device Mfg Desc : IEC http://www.iec.ch Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1 Viewing Cond Illuminant : 19.6445 20.3718 16.8089 Viewing Cond Surround : 3.92889 4.07439 3.36179 Viewing Cond Illuminant Type : D50 Luminance : 76.03647 80 87.12462 Measurement Observer : CIE 1931 Measurement Backing : 0 0 0 Measurement Geometry : Unknown Measurement Flare : 0.999% Measurement Illuminant : D65 Technology : Cathode Ray Tube Display Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract) Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract) Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract) XMP Toolkit : Adobe XMP Core 5.5-c002 1.148022, 2012/07/15-18:06:45 Format : image/jpeg Creator Tool : Adobe Photoshop Lightroom 4.4 (Windows) Metadata Date : 2015:09:30 14:25:49+07:00 Lens : OLYMPUS M.12-50mm F3.5-6.3 Approximate Focus Distance : 37.6 Flash Compensation : 0 Date Created : 2012:12:16 09:41:13 Document ID : xmp.did:6e78dad1-85f2-1b49-b600-d128dd4cc116 Original Document ID : 2300CC53754B139DA39913D3ACE84D79 Instance ID : xmp.iid:6e78dad1-85f2-1b49-b600-d128dd4cc116 Version : 7.4 Process Version : 6.7 Color Temperature : 4600 Tint : +32 Luminance Smoothing : 0 Color Noise Reduction : 25 Vignette Amount : 0 Shadow Tint : 0 Red Hue : 0 Red Saturation : 0 Green Hue : 0 Green Saturation : 0 Blue Hue : 0 Blue Saturation : 0 Vibrance : 0 Hue Adjustment Red : 0 Hue Adjustment Orange : 0 Hue Adjustment Yellow : 0 Hue Adjustment Green : 0 Hue Adjustment Aqua : 0 Hue Adjustment Blue : 0 Hue Adjustment Purple : 0 Hue Adjustment Magenta : 0 Saturation Adjustment Red : 0 Saturation Adjustment Orange : 0 Saturation Adjustment Yellow : 0 Saturation Adjustment Green : 0 Saturation Adjustment Aqua : 0 Saturation Adjustment Blue : 0 Saturation Adjustment Purple : 0 Saturation Adjustment Magenta : 0 Luminance Adjustment Red : 0 Luminance Adjustment Orange : 0 Luminance Adjustment Yellow : 0 Luminance Adjustment Green : 0 Luminance Adjustment Aqua : 0 Luminance Adjustment Blue : 0 Luminance Adjustment Purple : 0 Luminance Adjustment Magenta : 0 Split Toning Shadow Hue : 0 Split Toning Shadow Saturation : 0 Split Toning Highlight Hue : 0 Split Toning Highlight Saturation: 0 Split Toning Balance : 0 Parametric Shadows : 0 Parametric Darks : 0 Parametric Lights : 0 Parametric Highlights : 0 Parametric Shadow Split : 25 Parametric Midtone Split : 50 Parametric Highlight Split : 75 Sharpen Radius : +1.0 Sharpen Detail : 25 Sharpen Edge Masking : 0 Post Crop Vignette Amount : 0 Grain Amount : 0 Color Noise Reduction Detail : 50 Lens Profile Enable : 0 Lens Manual Distortion Amount : 0 Perspective Vertical : 0 Perspective Horizontal : 0 Perspective Rotate : 0.0 Perspective Scale : 100 Auto Lateral CA : 0 Exposure 2012 : 0.00 Contrast 2012 : 0 Highlights 2012 : 0 Shadows 2012 : 0 Whites 2012 : 0 Blacks 2012 : 0 Clarity 2012 : 0 Defringe Purple Amount : 0 Defringe Purple Hue Lo : 30 Defringe Purple Hue Hi : 70 Defringe Green Amount : 0 Defringe Green Hue Lo : 40 Defringe Green Hue Hi : 60 Convert To Grayscale : False Tone Curve Name 2012 : Linear Camera Profile : Adobe Standard Lens Profile Setup : LensDefaults Has Settings : True Has Crop : False Already Applied : True History Action : derived, saved History Parameters : converted from image/x-olympus-raw to image/jpeg, saved to new location History Instance ID : xmp.iid:6e78dad1-85f2-1b49-b600-d128dd4cc116 History When : 2015:09:30 14:25:49+07:00 History Software Agent : Adobe Photoshop Lightroom 4.4 (Windows) History Changed : / Derived From Document ID : 2300CC53754B139DA39913D3ACE84D79 Derived From Original Document ID: 2300CC53754B139DA39913D3ACE84D79 Tone Curve PV2012 : 0, 0, 255, 255 Tone Curve PV2012 Red : 0, 0, 255, 255 Tone Curve PV2012 Green : 0, 0, 255, 255 Tone Curve PV2012 Blue : 0, 0, 255, 255 DCT Encode Version : 100 APP14 Flags 0 : [14] APP14 Flags 1 : (none) Color Transform : YCbCr Image Width : 4608 Image Height : 3456 Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 3 Y Cb Cr Sub Sampling : YCbCr4:4:4 (1 1) Aperture : 4.0 Date/Time Created : 2012:12:16 09:41:13 Digital Creation Date/Time : 2012:12:16 09:41:13 Image Size : 4608x3456 Megapixels : 15.9 Scale Factor To 35 mm Equivalent: 2.0 Shutter Speed : 1/25 Thumbnail Image : (Binary data 12044 bytes, use -b option to extract) Circle Of Confusion : 0.015 mm Field Of View : 73.7 deg Focal Length : 12.0 mm (35 mm equivalent: 24.0 mm) Hyperfocal Distance : 2.40 m Light Value : 7.6 -- press RETURN --
submitted by BangkokPhoto to Lightroom [link] [comments]

Imgur removes Exif data

Seems Imgur is good at keeping anyone from collecting identifying exif data from images you upload to the site. before uploading a raw jpg, png, or tiff image file, the exiftool reports:
ExifTool Version Number : 8.97 File Name : SDC13048.jpg Directory : . File Size : 856 kB File Modification Date/Time : 2012:06:26 05:34:04-04:00 File Permissions : rw-r--r-- File Type : JPEG MIME Type : image/jpeg Exif Byte Order : Little-endian (Intel, II) Image Description : SAMSUNG DIGITAL CAMERA Make : SAMSUNG Camera Model Name : SAMSUNG WB500, WB510 / VLUU WB500 / SAMSUNG HZ10W Orientation : Horizontal (normal) X Resolution : 96 Y Resolution : 96 Resolution Unit : inches Software : 904161 Modify Date : 2012:06:26 05:34:04 Y Cb Cr Positioning : Co-sited Copyright : COPYRIGHT, 2007 Exposure Time : 1/30 F Number : 3.3 Exposure Program : Program AE ISO : 200 Exif Version : 0220 Date/Time Original : 2012:06:26 05:34:04 Create Date : 2012:06:26 05:34:04 Components Configuration : Y, Cb, Cr, - Compressed Bits Per Pixel : 1.766723633 Shutter Speed Value : 1/32 Aperture Value : 3.3 Exposure Compensation : 0 Max Aperture Value : 3.3 Metering Mode : Multi-segment Light Source : Unknown Flash : Auto, Fired Focal Length : 4.2 mm Maker Note Version : STMN100 Preview Image Start : 825776 Preview Image Length : 50872 Flashpix Version : 0100 Color Space : sRGB Exif Image Width : 2048 Exif Image Height : 1536 Related Sound File : RelatedSound Interoperability Index : R98 - DCF basic file (sRGB) Interoperability Version : 0100 Exposure Index : 1 Sensing Method : One-chip color area File Source : Digital Camera Scene Type : Directly photographed Exposure Mode : Auto White Balance : Auto Digital Zoom Ratio : 0 Focal Length In 35mm Format : 24 mm Scene Capture Type : Standard Contrast : Normal Saturation : Normal Sharpness : Normal Compression : JPEG (old-style) Thumbnail Offset : 23066 Thumbnail Length : 3476 Image Width : 2048 Image Height : 1536 Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 3 Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1) Aperture : 3.3 Image Size : 2048x1536 Preview Image : (Binary data 50872 bytes, use -b option to extract) Scale Factor To 35 mm Equivalent: 5.7 Shutter Speed : 1/30 Thumbnail Image : (Binary data 3476 bytes, use -b option to extract) Circle Of Confusion : 0.005 mm Field Of View : 73.7 deg Focal Length : 4.2 mm (35 mm equivalent: 24.0 mm) Hyperfocal Distance : 1.02 m Light Value : 7.4 
After uploading it to imgur and downloading it again the exiftool reports:
ExifTool Version Number : 8.97 File Name : SDC13048.jpg Directory : . File Size : 856 kB File Modification Date/Time : 2012:08:03 22:39:10-04:00 File Permissions : rw-r--r-- File Type : JPEG MIME Type : image/jpeg JFIF Version : 1.01 Resolution Unit : None X Resolution : 1 Y Resolution : 1 Image Width : 2048 Image Height : 1536 Encoding Process : Baseline DCT, Huffman coding Bits Per Sample : 8 Color Components : 3 Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2) Image Size : 2048x1536 
I'm wondering if this is just what happens after an image is saved somewhere else. Any thoughts?
submitted by i_meant_lulz to privacy [link] [comments]

YouTube RedBot - YouTube Jay Sean - With You ft. Gucci Mane, Asian Doll - YouTube Mi Redmi storage problem Binary Option Trend Graphic Stock Analysis Software

What's the point of checking the MIME type on the client side if you're then just doing it on the server side. Surely that's an "unnecessary wastage of client resource"? – Ian Clark Aug 18 '13 at 14:09. 7. Providing better file type checking/feedback to users client-side is a good idea. However, as you have stated, browsers simply rely on the file extensions when determining the value of the ... A MIME attachment with the content type "application/octet-stream" is a binary file. Typically, it will be an application or a document that must be opened ... If you're using the Static File Provider in ASP.NET Core you might need to add some additional extensions that are not handled by default. For example, if you host a Blazor site in your own application an additional mime mapping for `.dll` is required. Here how you can map extra extensions to the Static File middleware. That way, if mozilla incorrectly identifies a binary file as text, or the server erroneously sends a text mime type for a binary file (like with those RAR archives), the user has some control over how the data is saved -- if they know the file is binary, they have a means of safely saving it as binary data that doesn't involve pasting the address into IE. The same could be added in reverse: on ... An unknown file type should use this type. Browsers pay a particular care when manipulating these files, attempting to safeguard the user to prevent dangerous behaviors. IANA is the official registry of MIME media types and maintains a list of all the official MIME types. This table lists some important MIME types for the Web: Drop some unknown files onto the window or click the Add button to browse. Then press the Start button and the results are near instantaneous. The Format column will tell you what the file is and the PUID column provides a link to the National Archives with a more detailed information page about the file type. Every MIME type, listed in one convenient table. Suffixes applicable Media type and subtype(s).3dm: x-world/x-3dmf.3dmf: x-world/x-3dmf MIME type simply refers to a specific kind of MIME that supports a unique file type or application like images, video or binary executables. While there are many kinds of MIME type errors, and all with different causes, often, most of these errors are related to how your PC was registered to handle different MIME types and how these MIME types are being managed. mimetype headers are recognised by the browser for the purpose of a (fast) possible identifying a handler to use the downloaded file as target, for example, PDF would be downloaded and your Adobe Reader program would be executed with the path of the PDF file as an argument, Each browser performs MIME sniffing differently and under different circumstances. (For example, Safari will look at the file extension in the URL if the sent MIME type is unsuitable.) There are security concerns as some MIME types represent executable content. Servers can prevent MIME sniffing by sending the X-Content-Type-Options header.

[index] [25276] [2235] [26083] [21114] [11538] [19462] [5237] [10017] [5302] [15361]

YouTube

Une idée simple : réunir dans un seul endroit tout ce dont a besoin un gars (ou une fille) qui part à l’aventure. Avec ou sans arme, du froid au chaud, en fo... Official music video by Jay Sean ft. Gucci Mane, Asian Doll performing “With You” Listen to ‘With You” here: https://JaySean.lnk.to/WithYouYD Follow Jay Se... Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. This video explains how to open Control Panel tools by command in Windows 8 system. Tools such as Folder Options, Firewall, User Accounts, Add/ Remove Programs, Keyboard & Mouse, Net connections, W... Stock Market Order Types (Market Order, Limit Order, Stop Loss, Stop Limit) - Duration: 9:05. ... Best Binary Options Strategy 2020 - 2 Minute Strategy LIVE TRAINING! - Duration: 43:42. BLW Online ... Welcome to the official Sidemen channel. The home of #SidemenSundays - We post new Sidemen videos every single Sunday! Is iq option strategy a regulated broker or perhaps a computer software for binary options trading. if its a computer software, since i set up it on my iq option tutorial system, which broker ... ABS is the most powerful binary trading tool on the market I designed and developed it using all of my binary trading expertise To exploit previously unknown loopholes. o level python class 13 number data types live class ... o level notes what is isdn network irc chat and mime in hindi class #7 - duration: 12 minutes, 59 seconds. techvideo guru. 582 views; 10 ... Turn an XPage into a servlet and set the HTTP header for mime type and use a Writer to produce the output for Excel. Much like what's been done with LotusScript agents in the past. A future video ...

https://binary-optiontrade.okemloomolgicons.tk