MIME TYPE for any file (samsung galaxy) - mime-types

I looked this Unknown file type MIME? but it doesn't help.
I tried to use application/octet-stream as mime type but it throws exception
android.content.ActivityNotFoundException: No Activity found to handle Intent {
act=android.intent.action.VIEW
if I do change the mimetype like image/jpg it work just fine.
I know that it is strange but is some Samsung Galaxy issue. On HTC Desire it works perfectly.
Do you have any idea how can I pass mime type to Intent of 'any' type ?

With mime types it was very confusing on my galaxy, but I done two things I do not know what fix my problem.
first I make factory data reset on the phone
second I used "/" for mime type
I do not know what fix my problem but after the reset the exception it is not thrown any more, I guess that was the fix :-)

Related

Strange path results in "Type 'React.ReactNode' is not assignable to type 'import("C:/Projekty/node_modules/#types/react/index").ReactNode" eror

Something strange happened to existing React App.I started to receive errors like this during compilation:
XXX can not be used as a JSX component.
Its instance type 'XXX' is not a valid JSX element.
...
Type 'React.ReactNode' is not assignable to type 'import("C:/Projekty/node_modules/#types/react/index").ReactNode'.
... stands for typical TS iterations of type error.
The last line is strange because it points to a non-existing location. In directory "Projekty" there are no node modules but project folders.
In this case, correct path would be rather something like:
import("C:/Projekty/Chat/node_modules/#types/react/index").ReactNode'.
,with string "Chat".
Where can I find a faulty path or whatever is faulty?
Another strange behaviour: when I run this project in VSCode, it throws errors like above, and the same errors appear in the browser (I use VSCode LiveServer). However, when I close VSCode, the App is still in browser and works normally.

Using a remote console in a Typescript app with for an Office Add-In

I'm creating an add-in for Excel. I'm using the Typescript/React framework.
I want to be able to jsut use console.log however this has proven to be difficult, and so I'm resorting to using console.re.
This ultimately comes down to doing the following:
Include <script src="//console.re/connector.js" data-channel="YOUR-CHANNEL-NAME" id="consolerescript"></script> in your head tag
run console.re.log("My Message")
and then it should appear in the browser under your channel name (I used the correct channel name, that wasn't the issue).
However, no matter what I try I can't get it to stop complaining about TS2339: Property 're' does not exist on type 'Console'.
I'm not sure if I need to extend the type definition or what, and if so, how can this be done properly?
This can be solved quite easily by adding the following snippet to global.d.ts
interface Console {
re: any;
}
Then, in your application you can use something like:
var con = console.re;
con.log("This should work!")

ReSharper TypeScript not recognizing implementation

I've declared my interface and implemented it but ReSharper keeps saying that it was not implemented. Am I doing anything wrong I can't see or is this a ReSharper bug?
See image with the warning:
It's a known issue with DNX projects and ReSharper. Please declare an empty module named 'ng' in one of your files, and everything should work fine afterwards. Will be fixed in the next version of ReSharper.
https://youtrack.jetbrains.com/issue/RSRP-451565
It look like the last line has the relevant statement:
Return types are incompatible.
ILoginService.authentificate(...) should return a "ng.IPromise" type.

toDerInputStream rejects tag type 123

I am trying to run the Get started with Datastore example at https://developers.google.com/datastore/docs/getstarted/start_java/ trying it both from the command line and from Eclipse.
In both environments, it is not able to connect to datastore and gives an I/O error message 'toDerInputStream rejects tag type 123'.
Looking around, this may be because the private key file is in json format and perhaps it should the p12 - other than that the error message draws a blank.
Could anyone point to something that would help me past this?
You need to use PKCS#12 format, as you said, p12. There's a few other people with similar errors (although they're trying to accomplish different things). I hope this helps, let us know if it resolves the issue.
Push Notification in Java expect p12 file
toDerInputSteam rejects tag 66

What MIME type should I use for an MPP file?

I have seen an example of what i intend to do from this question uploading documents to sql server i have this working fine, but how would you upload an .mpp file? What would be the type be for it I have been searching for a while but can't seem to find anything.
As detailed here, you can see a few different MIME types that could be used. The following is that list:
application/vnd.ms-project, application/msproj, application/msproject,
application/x-msproject, application/x-ms-project,
application/x-dos_ms_project, application/mpp,
zz-application/zz-winassoc-mpp
NOTE: "MIME type for [File Extension]" is a good phrase to use when searching for these things

Resources