protecting the URL where flash/flex app can be executed - apache-flex

Is there an easy copyprotection, so that I can define in code the URL where flash/flex app can be executed

Here is a detailed tutorial on how to achieve that:
http://active.tutsplus.com/tutorials/actionscript/quick-tip-lock-your-swf-to-a-specific-domain-name/

Related

RealTime with pusher-js & nextjs?

I found Pusher-js docs is not very usefull to get start with, Is there any tutorial I can follow to learn exactly how the flow will look like?
The front end javascript will be the same: https://pusher.com/docs/channels/getting_started/javascript/ . If you're using Vercel, you can use their serverless functions for backend message triggering. I got it working with Python. Follow their instructions on how to add the Pusher server library https://vercel.com/docs/concepts/functions/supported-languages

Generating Swagger Docs in Firebase Cloud Functions project

Is it possible to generate Swagger Spec file from function comments in firebase cloud functions? If so, how can we do it?
I see the cloud functions code to be more like serverless, so wondering if this is possible.
I haven't found an automatic way, but there are plenty of libraries to choose from.
I'm using express and nodejs in my Firebase Function implementations, and for me,
Swagger doc generation can be implemented via the following libraries:
https://github.com/scottie1984/swagger-ui-express
https://github.com/Surnet/swagger-jsdoc
You can find other libraries at:
https://swagger.io/tools/open-source/open-source-integrations/
This will create a new HTTP endpoint, which will serve an HTML page of a swagger doc.
There is not an automatic way to do this at this time. I think you could build your own but seems like it would be a lot of work.

Saucelab - webdriverio : sessionID for sauce dashboard

I am trying out wdio and saucelabs. I see way to https://wiki.saucelabs.com/display/DOCS/Setting+Up+Reporting+between+Sauce+Labs+and+Jenkins configure report by outputting the sessionID
I am not able to figure out how I can do using webdriverio javascript method.
can you point to some example if this is possible with javascript ?
WebdriverIO comes with a Sauce service that automatically integrates this for you: http://webdriver.io/guide/services/sauce.html
If you're interested in more details, I wrote a blog post about a similar method I used for integrating Jenkins and Browserstack.

Open popup window on calling action

I just started working on alfresco v 3.4. I have created document library action from the tutorials provided on alfresco site. Anybody tell me how to open a popup box on hitting action with some data inside it. Please guys, I am in big trouble !!!
Thanks in advance.
For Alfresco Share you have to use client side javascript. You can use Alfresco's built in functions (Alfresco.module.SimpleDialog) or just include your javascript library of choice and implement it using that.
If you'll use Alfresco's implementation (YUI) thenLook at this file:
YOUR_INTALLATION/tomcat/webapps/share/components/documentlibrary/action.js
And search for:
Alfresco.module.SimpleDialog
And don't forget to include/import your own client side files in your webscript. For this look at:
http://wiki.alfresco.com/wiki/3.0_Component_Standards

Auto-generate ReST web services documentation/WADL

We are creating ReST Web Services using ASP.NET and OpenRasta.
Is there any tool that can could help us:
create WADL file
or/and create human readable API documentation similar which decribed resources/HTTP
methods supported for each resource, etc ?
Looks like REST Describe & Compile should do the trick.
On the WADL developer site Marc Hadley
maintains a command line tool named
WADL2Java. The ambitious goal of REST
Describe & Compile is to provide sort
of WADL2Anything. So what REST
Describe & Compile does is that it:
Generates new WADL files in a completely interactive way.
Lets you upload and edit existing WADL files.
Allows you to compile WADL files to source code in various programming
languages.
For OpenRasta, it'd be possible to use a UriDecorator to have help-like URIs defined for your resources (such as /myResource$help). You can then rewrite the URI before parsing to something yo can document easily, parse teh uri, find the resource type, and rewrite to /help/{resourcetype}
From there you register a resource for your help system:
ResourceSpace.Has.ResourcesOfType()
.AtUri("/help/{resourceType}")
.HandledBy()
.RenderedByXxx()
Then you can create your handler to return the documentation about a resource. You could for example use the IOperationCreator service to know which http methodds are available and with what input arguments, use the ICodecRepository to see what media types may be accepted as input, and potentially what a media type serialization would look like by calling the codec and generating an html friendly view of it.
That's definitly an area we're going to work on for the next version.

Resources