Is it at all possible to make HTTP requests with the Adobe Photoshop JS SDK? - api

I've been looking at the Adobe Photoshop JavaScript Scripting documentation, and have only seen the use of WebSockets for remote communications. I need to implement a plugin that communicates with a backend PHP API written in Laravel.
Does the Photoshop JavaScript SDK allow HTTP requests at all?

I use a modified version of the extendables library to allow Indesign to access data from our local webserver. I don't see any reason why it wouldn't work with photoshop. See extendables.org for the library.
ETA: That link doesn't seem to go anywhere at the moment. The library itself is available here: https://github.com/stdbrouw/Extendables

Related

Can we build a full stack webapp with kotlin?

Kotlin official documentation tells that it supports web development. And its replacement for java. I am trying to build a web application using Kotlin. So far I read so many blogs, courses and videos in YouTube but I did not succeed coming up with a flow. I came across this link https://medium.com/bcgdv-engineering/building-a-full-stack-web-app-in-kotlin-af8e8fe1f5dc and I could not proceed with this alone. I only need a front end and connect to my server with normal http request. Is there any right way of doing a web app in kotlin. Please help me with this. Thanks in advance!
What I use for developing web apps in Ktor:
Front-End:
FreeMaker - for templating (mustache and velocity are other options)
Bootstrap - for HTML - CSS - Javascript part
There is also Kotlinx.html and KotlinJS if you need to write them Kotlin Style and they are official toolset from JetBrains.
Kotlinx.HTML Github
KotlinJS
You can add functionality to Ktor itself (they are called features):
Features:
GSON - for content negotiation (converting Kotlin to JSON and visa versa)
Locations - for type-safe routing
Exposed (Interface for easily working with PostgreSQL, MySQL and SQLite that works based on JDBC drivers)
Authentication (for user auth)
Ktor website has detail documentation for all of these features and adding them in your project is so easy.
Add the dependency
install(FEATURE) in Application.
For the IDE side:
IntelliJ Ultimate (Ultimate supports .ftl for FreeMarker)
Ktor plugin which is a must-have when you install IntelliJ
For webserver engine:
Netty (I use this one)
Tomcat
Jetty
You can easily develop API and Wen Apps using Ktor amazing DSL (Domain Specific Language)
The only problem that I have is with Kotlin Coroutines which I hate, and prefer RxKotlin for developing asynchronous apps, it seems that's possible but there are not enough tutorials and samples out there to get started with it.
+ If you stuck on something new and challenging, you are on your own, as there are not enough samples and guides on the internet.
But at the end of the day, I only recommend Ktor to those android developers who don't want to learn web development language e.g. PHP, Phyton, Javascript, like myself.

Netflix Client on VB.NET, How to make it run Silverlight and needed extensions?

I'm developing a netflix client on vb.net, and i need it to run silverlight and needed extensions that netflix requires to display the video stream.
how can i change webbrowser from default to another one that works with my needs, and what browser is that?
If you're looking for a different web rendering engine you should try the Gecko web engine. From my experience it is much faster than the traditional IE engine and more compatible with plugins and web content. The engine integrates well into VB.NET applications so using it in your program should work. The engine itself does stream videos from netflix if that's the intent. you can download this rendering engine just from searching it but for convinience I'll put a link to a site where you can find it here.

Social Business Toolkit: Sametime chat only with local installed Sametime Client possible?

I'm using SBT SDK on a XPage.
After mastering a few traps at the beginning it works fine.
Livenames are properly displayed.
But now a got another problem.
If you click on a available person, a context menu is displayed, where you can choose 'CHAT' or 'VCARD'.
If I click on CHAT a URL like this ist called:
http://localhost:59449/stwebapi/loggedin?jsonp=stproxy.connect.callback.setAvailable&wait=true&time=1407834968761&fqdn=sametime.lotus.com
I found out that you have to install Sametime Connect Client locally at every computer, because it is providing a small webserver at port 59449.
That's impossible because I want to use Sametime on a public website.
I'm pretty sure that there is another way.
Somebody an idea?
thanks
Marcus
#user2776693 - There are two ways:
1 - using the Sametime Local Web API
The local web api uses a configurable port (the default is mentioned above), to communicate back and forth from a web site which embeds or calls the configurable port using jsonp, meaning the javascript of the site wraps the sametime calls.
2 - using the Sametime Web Chat/Web Proxy
It means that the Sametime Web Chat is embedded as JavaScript on the page, and loaded using the appropriate JS libraries, and can have some pretty advanced features. There is a demo site off of greenhouse.lotus.com, and you can sign up for an account on that site.
you can download the sdk, and find many examples of using the local web api and web chat.
http://www14.software.ibm.com/webapp/download/nochargesearch.jsp?q0=&k=ALL&S_TACT=104CBW71&status=Active&b=Lotus&sr=1&q=sametime+sdk&ibm-search=Search
Download Version 9.0 IFR1
Extract with Zip
Go to Examples and samples

Is it possible to upload files to Rackspace Files Cloud from browser?

Is it possible to upload files to Rackspace Files Cloud from browser like in Amazon S3?
If you are speaking about uploading via the browser then you can use https://manage.rackspacecloud.com/ which has a nice web interface to upload your files.
If you want to have an API call from the browser since the API is all in REST it should not be too hard to implement it in JavaScript, I haven't seen any library/binding in JavaScript but this should be pretty straightforward to do straight with jQuery or such, see this SO article for some examples :
JavaScript REST client Library
and this is a link for the REST documentation of Rackspace CloudFiles :
http://docs.rackspacecloud.com/files/api/cf-devguide-latest.pdf

Simple Opera plugin

How to write a simple Opera plugin?
I'd like to develop a plugin that would change the Referer header of a request based on request's url data.
Opera's website says plugins should be developed using Netscape4 Plug-in API. However there's not so much information about it available. I looked up in my c:/program files/opera/program/plugins and it seems like Opera's plugins are .dlls. What programming language should be used for Opera Plugin Development and do you know of any walk-through about it?
If you only want to modify HTTP requests, it may be easiest to write a proxy server that does that (e.g. hack Squid and configure Opera to use it).
Opera's plugins are only for handling specific media types, e.g. Flash or Quick Time videos and are invoked only via <object>, <embed> or opening of specific file. They're not general-purpose plugins.
Opera has another extension mechanism - UserJS - which is JavaScript ran on every page (similar to Greasemonkey in Firefox). You could use it to modify document.referrer in JavaScript, but not in HTTP headers.