file-extension

Finding the preferred application for a given file extension via unix shell commands

强颜欢笑 提交于 2019-12-19 10:11:37
问题 this may not be strictly about programming, but if I find no ready-made solution it may become a programming task: On UNIX, what is a command-line method for determining the user-preferred application for a given filetype? My ideal solution here would be a command that stopped me having to do the following: okular foo.pdf And allowed me to do something like this, working with my set preferred applications: launch foo.pdf I found no answer by searching, and a DIY approach wouldn't work as,

What does .do webpage stands for

允我心安 提交于 2019-12-18 18:47:50
问题 I would like to know what does .do webpages stand for ( as .php stands for PHP pages with PHP Scripting) and what is the scripting language behind it. 回答1: http://www.fileinfo.com/extension/do According to WikiPedia, .do is: a pseudo file extension representing an Apache Struts action. It does not map to an actual file extension, although it appears that way. However, you can't really say anything about the technology behind based solely on the "extension", i.e., the server can be configured

Delete NoUIEntryPoints-DesignMode packages

允我心安 提交于 2019-12-18 10:19:32
问题 When uninstalling programs I see hundreds of packages with the name "NoUIEntryPoints-DesignMode". As a result of my research I have recognized if you debug an UWP-App which registers a file extension it will create this package and the system is not able to delete it. How can I delete them all? At the moment the "Apps & Features"-Page looks like this: 回答1: You can use the following PowerShell command: Get-AppxPackage -Publisher "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S

Get the extension from a MimeType

淺唱寂寞╮ 提交于 2019-12-18 05:07:22
问题 I want to get the extension from a MimeType . For example: video/mp4 ----> mp4 application/x-rar-compressed ----> rar text/plain ----> txt application/pdf ----> pdf To save my file on Windows or Linux, I have this method that let me to download a file from an URL. So, I'm able only to save it without extension (I don't want that). This method lets me only to get the MimeType not the extension . public void DownloadImage() { String TheFolderPath = "/home/MyPC/Downloaded"; String File_NAME =

Get the extension from a MimeType

旧城冷巷雨未停 提交于 2019-12-18 05:07:06
问题 I want to get the extension from a MimeType . For example: video/mp4 ----> mp4 application/x-rar-compressed ----> rar text/plain ----> txt application/pdf ----> pdf To save my file on Windows or Linux, I have this method that let me to download a file from an URL. So, I'm able only to save it without extension (I don't want that). This method lets me only to get the MimeType not the extension . public void DownloadImage() { String TheFolderPath = "/home/MyPC/Downloaded"; String File_NAME =

Indicate programming language in a file without extension

放肆的年华 提交于 2019-12-18 03:34:09
问题 When writing executable scripts, and declarative configuration files that use a common language (eg. Python), I often find it undesirable to add an extension to the file name. Many syntax-highlighting text editor (eg. Geany) are subsequently unable to automatically determine the filetype. Is there any standard method for indicating to editors the type of source in the file? 回答1: Typically the shebang line is used as a fall-back. For example, a Ruby script without an extension would begin with

Extract file extension from file path

左心房为你撑大大i 提交于 2019-12-18 03:01:36
问题 How can I extract the extension of a file given a file path as a character? I know I can do this via regular expression regexpr("\\.([[:alnum:]]+)$", x) , but wondering if there's a built-in function to deal with this? 回答1: This is the sort of thing that easily found with R basic tools. E.g.: ??path. Anyway, load the tools package and read ?file_ext . 回答2: Let me extend a little bit great answer from https://stackoverflow.com/users/680068/zx8754 Here is the simple code snippet # 1. Load

Extract file extension from file path

早过忘川 提交于 2019-12-18 03:01:09
问题 How can I extract the extension of a file given a file path as a character? I know I can do this via regular expression regexpr("\\.([[:alnum:]]+)$", x) , but wondering if there's a built-in function to deal with this? 回答1: This is the sort of thing that easily found with R basic tools. E.g.: ??path. Anyway, load the tools package and read ?file_ext . 回答2: Let me extend a little bit great answer from https://stackoverflow.com/users/680068/zx8754 Here is the simple code snippet # 1. Load

Creating my own file extension based on plist

北战南征 提交于 2019-12-17 22:53:17
问题 My application handles with files of type *.mndl which is not more than a customized *.plist . Up until now I've been using *.plist files but now I want to associate the extension and be able to open *.mndl files from any other app I have realized that renaming file.plist to file.mndl does not work. (Hence, I don't even know if I did correctly the extension association and exportation thing) I sent to myself a file file.mndl from the computer and when received in mail.app I got file.mndl

Associating certain file extension to my android application

守給你的承諾、 提交于 2019-12-17 19:28:50
问题 I'm having trouble associating my custom file extension to my android application that I am developing. In my android manifest file I have the following: <data android:scheme="file" android:mimeType="*/*" android:pathPattern="*.*\\.myFileExt" /> <data android:scheme="content" android:mimeType="*/*" android:pathPattern="*.*\\.myFileExt" /> It kinda works. Let me explain. I have a file in my gmail( sent a file to my self ), which has the proper extension, so when I download it from my phone's