Is there any way to run Apps Script web app with triggers - web-services

I have a Apps Script web App which performs all the work by its own only it's need to be opened manually.Now I just want to use triggers to open that web app at a particular time.
Here is the link of my code https://www.w3schools.com/code/tryit.asp?filename=GQTU37F2FMIP
In this link only the recording part is there.After this the video file gets uploaded to my Dropbox which is not included as I lost that code but if this code could execute with triggers then I will work on it and Provide the code here.
Thanks in advance and sorry for my bad English.

You could probably set up a trigger to execute a script the performs the get with UrlFetchApp.fetch();

Will canvas element execute on window.onload(I have provided the code)

Related

Lost ability to edit code in AWS Lambda console

I have several Lambdas deployed to AWS, all created as single file function in the console. All was working fine until I flushed my caches and cookies in chrome. Then the function codes will no longer show up in the browser, any browser, I tried 3. Also all the Lambda functions think they are all zip file based so I cannot reenter the code from my git repo. The functions still operate properly, I just cannot edit them.
All new functions I create are also not in console editing mode. Something general / global has changed, not specific to any one function.
What can cause this? And across all browsers?
Most importantly how can I fix this?
You can download your code as a zip file if you click right on Actions > Export Function and then Download deployment package. Maybe re-uploading the packages will fix your issue.

Error when adding web service in Script Task in SSIS?

i have this task to send a RS report (event driven) in SSIS. I have this script task that extracts the report and another script task to send the email.
In my script task I'm able to add the web reference, reference it in the code, build successfully and save it.
http://{YourReportServerURL}/reportserver/reportexecution2005.asmx
BUT when I exit the script task editor I get a script error saying "Script contained in the package have compilation errors. Do you want to save changes?"
A red cross appears on it and it says "The binary code for the script is not found.". I set the DelayValidation to true to remove this red cross.
When i execute the package, it fails because of the The binary code for the script is not found error
By the way these are my references:
http://www.travisgan.com/2013/09/ssrs-data-drive-subscriptions-part-3.html
http://www.macaalay.com/2014/04/02/how-to-create-data-driven-report-subscriptions-in-sql-server-standard-version/
Im using VS 2010. how can I solve this problem? I need your help!
Thanks in advance.
Please take a look at SSIS Package failing because “script task is failing because the script is not precompiled”. Your problem looks similar to the described in that issue.
Basically, you need to make sure that VSTA project code is set to MSIL, build the project and save it. After that - close VSTA editor, and click Ok on the Script task.

Testing a app script

I have created a script via Drive|New|App Script
Now I want to test it. This must be so fundamental that it must be obvious, but it is not to me.
My script is for a Document. I used the code example from this "Translate" example, https://developers.google.com/apps-script/quickstart/docs
I have tried creating a new document and then from the menu Tools|Script-editor I have gone looking for my saved project, but the "Open recent projects" is empty.
How do you test/run a saved app script project for a Apps Document?
Thank you in advance.
If created Via Google Drive you can type the following in the search whilst in Drive (Drive.google.com)
Type:Script
This should return all the scripts created manually which are not attached to specific Sheets/Docs/Forms (i.e you have used the Drive tool to create a script or used the URL Script.google.com)
If you have created it this way and want to run a function to interact with a Google Sheet/Doc see the following example.
SpreadsheetApp.getActiveSpreadsheet()
CHANGE TO;
SpreadsheetApp.openById('SHEETS ID GOES INBETWEEN THESE BRACKETS').getSheetByName('Sheet1')
https://docs.google.com/spreadsheets/d/UNIQUE-ID-IS-HERE
OR YOU COULD CREATE A NEW APPSCRIPT USING THE TOOLS>SCRIPT EDITOR
All tests on appscript are run using the '>' play icon or 'RUN' then select your function.
Don't create your script in "Drive|New|App Script". Open a new Google Doc, open "Tools|Script editor..." and write your code in this new app script project.
Normally this must work!
Short answer
Follow the referred tutorial instructions.
Explanation
The path that you followed to create the script project, creates a stand-alone script project, but the referred tutorial is about a Google Document bounded-script. The code include triggers and methods that only work on this kind of script project.

Asynchronous processing of file upload in Django

When you upload file with Django, the response won't be returned until the file upload has completed. If the uploaded file is large, it will take a long time, during which the user can't do anything but wait. Is there any way to implement asynchronous processing of file uploading? So, when a file is uploading backend, the user can do some other operation on the current page without interrupting the upload?
I am aware that it has been more that 5 years since this question was asked but I have similar problem and there are no "simple answers" on SO.
For your problem I may suggest using a progress bar (if using Django forms). Uploading a file asynchronously might not be possible in Django.
In my case the browser element is not crucial and I am considering moving the file upload from browser upload to some sort of FTP / AWS S3 file storage and working on this.
Seems like https://github.com/jeanphix/django-resumable is designed for that (never tried it though). There is also a version for admin site - https://github.com/jonatron/django-admin-resumable-js
UPD: django-resumable is now abandoned, so I ended up creating my own fork with support for S3 and Inline Admin Views. You can try it here, feedback very much is welcome – https://github.com/DataGreed/django-admin-async-upload
You need task management. Celery is what you at after.

Business Process "Observer" application

My client is requesting to be notified any time one of their business processes fails for any reason. I had the idea of writing a seperate application that will run as an "observer" and check for various parts of the process.
An example would be that a daily file was generated and uploaded to an FTP location. The "Observer" might have the following "tests" :
Connect to the FTP
Go to folder where file should exist
Find file with naming convention
Verify create date of file
Failure of any step will send an alert email and also log to a report (both in case database is down OR email is down).
My question is.... Are there any products out there that do something close to this? I'd rather buy if there is something robust out there. If not, this almost seems like a unit test platform... Anything out there for testing I could potentially repurpose?
As an FYI, we are a Microsoft/Windows based shop.
Thx in advance!
You could even use a Continuous Integration framework for this. They normally monitor source code repositories and build&test things, but could be used for this as well.
For instance, Hudson, Jenkins and CrouseControl.NET are a few open source ones that are good and can easily be set up for something like this. Only change the monitoring of a repository to either filesystem over FTP and write a small script which checks what you need. Everything else comes for free by the framework, i.e. email, web interface for monitoring and running things.
Just an idea.