I'm using an angular-file-upload directive. When I uploading file I getting file's name before upload on callback.
$$hashKey: "object:19"_file: FilelastModified: 1429780959000lastModifiedDate: Thu Apr 23 2015 12:22:39 GMT+0300 (MSK)name: "av_1.png"size: 1278type: "image/png"webkitRelativePath: "" trueisUploading: falsemethod: "POST"progress: 100removeAfterUpload: false
name: "av_1.png" - name before upload
But I need to get name of file after upload. Name turns in 16 bit encoding and looks like 68b714b12c6a4336500a4c5a4b53c60e.png for example.
How can I return file's name after upload?
Related
I am trying to use INCLUDETEXT to automate a Table of Contents with number of pages from various other .docm files in folders below main folder.
I have trouble using relative paths in MS Word per: relative path includetext in MS Word
Here is my effort which results in an
"Error! Not a valid filename":
{INCLUDETEXT "{FILENAME \P } \..\..\Div 22 Plumbing\SECTION 22 07 80.DOCM" Pages}
Div 22... folder is one level the FILENAME path. Pages is a bookmark in the .docm file.
I tried like this too with same negative result:
{INCLUDETEXT "{FILENAME \P } \\..\\Div 22 Plumbing\SECTION 22 07 80.DOCM" Pages}
I am able to get the contents of Pages into my TOC if I just use the INCLUDETEXT from an external file in the same folder, I just can't seem to get the contents from a file in a subfolder.
in your example, you put this:
{INCLUDETEXT "{FILENAME \P } \\..\\Div 22 Plumbing\SECTION 22 07 80.DOCM" Pages}
did you mean this:
{INCLUDETEXT "{FILENAME \P } \\..\\Div 22 Plumbing\\SECTION 22 07 80.DOCM" Pages}
When running Visual Studio Code for my Ruby on Rails development project, there is a 'ruby' process constantly running at almost 100% CPU making my fans spin like crazy. Looking at the Open Files and Ports of that process in the Activity Monitor, it looks like this is being caused by some process (node_modules.asar?) scanning through data directories (my_project/public/system/**):
cwd
/Users/pascal/projects/RoR/my_project
txt
/Users/pascal/.rbenv/versions/2.4.4/bin/ruby
txt
/usr/local/Cellar/gmp/6.1.2_2/lib/libgmp.10.dylib
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/enc/encdb.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/enc/trans/transdb.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/stringio.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/etc.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/digest/sha1.bundle
txt
/usr/local/Cellar/openssl/1.0.2o_2/lib/libcrypto.1.0.0.dylib
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/digest.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/openssl.bundle
txt
/usr/local/Cellar/openssl/1.0.2o_2/lib/libssl.1.0.0.dylib
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/io/nonblock.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/io/console.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/zlib.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/socket.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/io/wait.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/enc/windows_31j.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/json-2.1.0/lib/json/ext/parser.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/json-2.1.0/lib/json/ext/generator.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/ripper.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/cgi/escape.bundle
txt
/Library/Preferences/Logging/.plist-cache.KjBd2ZgB
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/readline.bundle
txt
/usr/local/Cellar/readline/7.0.3_1/lib/libreadline.7.0.dylib
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/date_core.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/psych.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/strscan.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/enc/utf_16le.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/enc/utf_16be.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/racc/cparse.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/2.4.0/x86_64-darwin17/enc/trans/single_byte.bundle
txt
/Users/pascal/.rbenv/versions/2.4.4/lib/ruby/gems/2.4.0/gems/nokogiri-1.8.5/lib/nokogiri/nokogiri.bundle
txt
/usr/local/Cellar/xz/5.2.4/lib/liblzma.5.dylib
txt
/usr/lib/dyld
0
->(none)
1
->(none)
2
->(none)
3
->0xebb30f785d0d6639
4
->0xebb30f785d0d4fb9
5
->0xebb30f785d0d70b9
6
->0xebb30f785d0d7b39
7
/dev/null
8
->0xebb30f785d0d7bf9
9
->0xebb30f785d0d6e79
10
localhost:59701
11
localhost:59701->localhost:59702
12
[ctl com.apple.netsrc id 9 unit 64]
13
->0xebb30f7867f30159
14
192.168.10.31:59810->151.101.0.70:https
15
/Users/pascal/projects/RoR/my_project
16
/Users/pascal/projects/RoR/my_project/public
17
/Users/pascal/projects/RoR/my_project/public/system
18
/Users/pascal/projects/RoR/my_project/public/system/dragonfly
19
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test
20
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images
21
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images/662
22
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images/662/2017
23
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images/662/2017/12
24
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images/662/2017/12/08
25
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images/662/2017/12/08/13
26
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images/662/2017/12/08/13/11
27
/Users/pascal/projects/RoR/my_project/public/system/dragonfly/test/images/662/2017/12/08/13/11/27
36
/dev/ptmx
38
/private/var/folders/fn/wjmjy_xj1vv2n8lhfcsjb3480000gn/T/com.microsoft.VSCode.ShipIt.3TPnSs1E/Visual Studio Code.app/Contents/Resources/app/node_modules.asar
I'm hoping that some exclude folders settings would fix this, but I cannot find any relevant setting. Or is there another solution for this?
This turned out to be caused by the Solargraph gem. According to this explanation of the author, the exclude settings of this gem in the .solargraph.yml file don't work very well. Instead one should use more specific include settings. In my case I was using - **/*.rb as a single include setting. I've now changed this to:
include:
- app/**/*.rb
- db/migrate/**/*.rb
- db/seeds/**/*.rb
- config/**/*.rb
- lib/**/*.rb
- spec/**/*.rb
Since then the ruby process seems to be tamed.
I am trying to copy all the metadata from on photo to another using exiftool.
The web documents state: exiftool.exe -TagsFromFile source destination
When checking the metadata using AnalogExif, i can see that :
flag "Focal length in 35 mm" is missing.
Of course the information is present in the source file.
An idea ?
I have problem when trying to upload a csv of excel files via protractor. File is valid. When I upload it manually everything is fine. But for some reason, upload with protractor says that size is 0, and type is not recognized.
Screenshot of file details after upload
Upload code:
var fileToUpload = './test.csv';
var absolutePath = path.resolve(__dirname, fileToUpload);
element(by.css("input[type=\"file\"]")).sendKeys(absolutePath);
Also I have tried with absolute path, without path.resolve, and also I have tried with xlsx file. Problem remains the same.
I believe I've found the cause. From my tests it seems like the File type is missing, see below:
For a .csv file:
File
lastModified: 1468589472000
lastModifiedDate: Fri Jul 15 2016 14:31:12 GMT+0100 (BST)
name: "valid-import.csv"
size: 198
type: ""
webkitRelativePath: ""
For a .svg file:
File
lastModified: 1468587182000
lastModifiedDate: Fri Jul 15 2016 13:53:02 GMT+0100 (BST)
name: "valid-import.svg"
size: 1030
type: "image/svg+xml"
webkitRelativePath: ""
Note the missing type attribute — I'm trying to dig further into this, if I find anything I'll update this answer.
Is it possible to suppress the MIDL compiler from appending a custom atrribute to the resulting interface definition in the resulting COM dll build?
I'm suspecting that the attribute appended by MIDL compiler renders our dll to fail and cause an error: "Automation server cannot create object", due to its insertion of string-valued attribute. These info are extracted by Oleview.exe's Itypelib viewer.
// Generated .IDL file (by the OLE/COM Object Viewer)
//
// typelib filename: <could not determine filename>
[
uuid(3F452555-ABB7-402C-BDBA-185B2F71C800),
version(1.0),
custom(DE77BA64-517C-11D1-A2DA-0000F8773CE9, 117441067), custom(DE77BA63-517C-11D1-A2DA-0000F8773CE9, 1433773761), custom(DE77BA65-517C-11D1-A2DA-0000F8773CE9, "Created by MIDL version 7.00.0555 at Mon Jun 08 22:29:18 2015
")
Here's the definition from the working version of our dll and is what i am intending to copy while using Visual Studio 2013 with MIDL version 8.
// Generated .IDL file (by the OLE/COM Object Viewer)
//
// typelib filename: <could not determine filename>
[
uuid(3F452555-ABB7-402C-BDBA-185B2F71C800),
version(1.0),
custom(DE77BA64-517C-11D1-A2DA-0000F8773CE9, 117441067),
custom(DE77BA63-517C-11D1-A2DA-0000F8773CE9, 1433773761)
]