Wrapping default windows thumbnail handler for photos - windows

I would like to write a new thumbnail handler for photos. I want my thumbnail handler to be activated only on some specific folders. If the file is not in on of these special folders, I simply would like to forward the call to windows default thumbnail handler. So I want my thumbnail handler to be a simple wrapper over the default one.
Is there a way to call the default handler from my handler code?
If it matters, this is relevant only for windows 10.
Thanks,

Related

iOS Share Extension Dynamic Javascript

I am developing a share extension for iOS 8 and it seem like i can run javascript code on page to grab some information like image urls, etc.
But on the apple document it says that javascript code must be inside a .js file but my javascript code is coming from server and it is dynamic.
Is it possible to run javascript i downloaded from server or can I change js file contents everytime I need to use it?
Thanks
Edit
It seems like it is impossible to change the file.
And if your javascript making asynchronous call the loadItemForTypeIdentifier: options: completionHandler: call is not grabing the end value of async call.

Disable Drag and Drop programatically - fine-uploader

Once a user has uploaded a file via any means (file selection, DnD or Cut and Paste), I would like to disable the Upload widget, to prevent users to upload again.
This disabling should be done for a specific upload widget since I may have many on the same page.
Is there a method I can call to do this?
Thanks.
Simply present an alert/message to the user in your UI once they are no longer able to upload additional files (which you should do no matter what) and then return false in your onValidateBatch handler for all subsequently dropped/selected files. This will prevent files submitted via the file chooser, file submitted via DnD, AND pasted images from being uploaded.

Image Hosting Website Script Deactivates FancyBox Capability

I'm running a Vanilla Forum with a FileUpload plugin, allowing users to upload images and insert the corresponding code directly into the body of their post. These images work with FancyBox when clicked, linking together nicely within the page. However, should a user use a third-party image hosting site (i.e. Imagevenue, Imageshack, Postimage.org) and copy and paste the resulting image code, it deactivates the FancyBox feature associated with all images previously on the page, so when you click on an image uploaded via FileUpload it opens in a new window now instead of in a FancyBox.
My question is one of two things:
a) Is it possible to fix this formatting issue so that if a user does choose to use a third-party image hosting service then it will not affect the fancybox of my previous images.
or
b) Is it possible to block this type of image code from being inputted in the body of a post to prevent this from ever happening.
Thank you and please reply if you would like more information!
Most likely the generated code from those third-party hosting sites has not an image extension (JPG, PNG, GIF) so fancybox doesn't know what type of content needs to handle.
If you are binding fancybox like
$(".fancybox").fancybox();
... you could force the type of content to image like
$(".fancybox").fancybox({
type : "image"
});
I don't really see how pasting the code of a new image will disable the code for existing ones if you want to elaborate.

local notification control to user specified page

I am developing an IOS application with phonegap and need to set local notification for it
Once user click on "view" button need to transfer the apps control to user specified page other than "index.html"
Since PhoneGap doesn't include currently this functionality, I'll assume your are using the LocalNotification plugin from Greg Allen & Drew Dahlman.
If you notice when you make the call to register the notification: plugins.localNotification.add() there are 2 parameters: "background" and "foreground" that contain javascript code to run when the app gets notified (in your case because it was in the background and you hit the "View" button).
Now, instead of using "app.background()" as in the example, you could pass there a Javascript code that navigates to the page you want to (or place your code in the background() function of the "app" object by editing the plugin file init.js.
For this to work make sure you have the implementation of the method didReceiveLocalNotification that comes with the plugin in the their modified AppDelegate.m class.

How to use an OCX from a web-browser context in VB6 instead?

I'm using an EDIMAX IP Cam (IC-1520DP) which has a browser based administration. When you first login, it requires installation of an OCX (IPCamPluginMJPEG.ocx). This OCX then operates within the browser effectively as part of the web page.
Now I want to use this OCX to display the camera images on a form in VB6. I can add a reference to the OCX but it is unclear how to initialize or use it. In the browser web page I can see that its asking for some parameters that are being passed to it by the PARAM HTML tag.
Obviously I can't use the PARAM tag in VB6, so is there any other way I can pass the parameters?
(Or do you have better ways to display the live camera feed on a form in VB6?
The camera also has this CGI command that returns One multipart JPEG video stream but I totally don't have any idea how to use it.)
It's simple: Take the name attribute of the param tag and set the same property of the ActiveX control with the value of the value attribute. Like this:
Sub Form_Load()
MyControl.Param = Value
...
End Sub

Resources