i take list of files php glob(."*.pdf") . files have cyrillic names. example: ООО «Рога и копыта» then load company names database , try find them in file names: preg_match("/$firm_name/ui", $file_name, $match); i have problem: firms if $firm_name visually similar $file_name , preg_match says there no match. mb_detect_encoding both variables return utf-8. there problem in file name, or maybe there encoding or something, can not understand, ask help. upd: $file_name='ООО «Рога и копыта»'; preg_match("/... .Рога и копыта./ui", $file_name, $match); as result, ОО «Рога и копыта» , 1 О missing
i have program pulls data database, caches file , exports data multiple formats (excel, excel 2003, csv). i'm using openxml sdk 2.0 excel work. these export processes run in parallel (using parallel.foreach ), , amount of data can pretty large - e.g. csvs 800mb. during these larger exports, i've noticed writing of xml documents hang. instance, if have 8 exporting in parallel, @ point "pause". hang around same point: //this.writer openxmlwriter created worksheetpart. this.writer.writeelement(new cell() { cellvalue = new cellvalue(value), datatype = cellvalues.string }); when happens, pause debugger (vs2013 in case) , notice threads blocking around same portion of code - bit deeper in openxml sdk - stem call openxmlwriter.writeelement . i dug through source using justdecompile didn't find answers. appears there intermediary stream in use writing isolated storage , is, reason, blocking. underlying stream each of these filestream . here screenshot ...
first of all: yes, i've checked this thread inside out - situation different. we have 3 modules here: an application a its base library b (a submodule of a ) a component c (a submodule of b ) when trying git clone --recursive https://url_of_a/ , error when git attempts fetch c : cloning 'path/of/c'... [...] checking connectivity... done fatal: reference not tree: 92405dd9027a2d55d9dd6f5b26494eee0009e297 unable checkout '92405dd9027a2d55d9dd6f5b26494eee0009e297' in submodule path 'path/to/c' but guess what, there's no error when git clone --recursive https://url_of_b/ - though the revision check out same : cloning 'path/of/c'... checking connectivity... done submodule path 'path/to/c': checked out '92405dd9027a2d55d9dd6f5b26494eee0009e297' ... though remote pathes c same! what's more puzzling: behavior observed @ windows 7/8 machines (so far, @ least). windows vista/xp machines somehow deep clon...
Comments
Post a Comment