How to generate the source codes from an .fba file - javascript

This question might sound crazy, but the truth is I recently developed an app for Fitbit watches and uploaded the fba file on Fitbit gallery. Then, my laptop was stolen, and because I didn't make a backup of the app, now I only have the final product without having the source codes which are .js files. I wonder if there is a way of converting that fba to the source code or any approach for recovering the source codes.
Thanks in advance!

Related

Audio Editor in a Django App?

I'm in a little over my head with a project for a client, they want to build an audio editor that will allow the user to trim their uploaded audio files and save them. I've built the file uploader, and the detail view for the individual audio files, my question is how would this best be implemented? I've been looking at
Peaks.js
and I want to make sure thats the right way to go before diving in. Never used npm in a django project before, is it like using any other js library?
I've also been told about sox, which is great for manipulating the sound files, but what about displaying the sound to the user/editing in the browser?
Any help or general direction-pointing would be greatly appreciated and could save me a bunch of time potentially.

Choosing destination folder for FTP download. (HTML, jQuery or PHP)

I have written a script in PHP that connects to my FTP server and downloads the latest backup of all the websites I have created.
I have written this script in PHP (using ftp_get and all those lovely functions!), but I have also created a nice looking dashboard in HTML, which uses AJAX to not only execute the PHP code but to output all the "echo"'s into a textarea so I know which ones were successfully downloaded and which ones failed.
My problem is that I am not the only employee, there are quite a few of us who could execute this script, so on the dashboard I want there to be a way of choosing where these backsup are saved without having to edit a hardcoded destination in the PHP. At the moment, it's hardcoded to save to my desktop, but if someone else were to use it on their computer, it won't work.
I have tried searching for this, but no one has asked exactly the question I needed answering.
If the answers could be using HTML, JavaScript/jQuery or PHP, that would be handy.
Thank you in advance.
------------EDIT------------
Not sure people are understanding my problem, so I will try and explain it differently :)
I have a backup tool that will connect to an FTP server, go through each project folder and download the latest backup of that site. In total, there are at least 20 files to be downloaded.
Multiple people will be using this tool, depending who is around to backup the files.
Bob might want to save it directly to his desktop: C:/Users/Bob/Desktop.
Barbara might want to save it in C:/Users/Barbara/Backup Folder/2017/
Jimmy wants to save it in C:/Users/Jimmy/Projects/Project_name/Backup-01-01-2017
And I might want to save it onto an external HDD.
I want the tool to have a function that will allow the user to specify a location on their HDD where these files will all be saved.
I hope this is clearer.
Many thanks.

How do I store assets for javascript on the web?

Recently I have been trying to create a chat project which makes a ringing noise once you receive a message. My problem is that I cannot find a ringing noise that will be available for the project anywhere. Google drive does not work, the javascript can't process it. For some reason if I link sound from wikipedia it does work. Is there a way to upload a ringing sound which will be available to link to through javascript?
Thanks!
P.S. I'm sorry about how long this question is, congratulations if you read it & managed to understand what I'm saying :)
It creates a bit of overhead but you can use something like this to have an easy access to your audio:
http://www.createjs.com/soundjs
In a theoretical sense you would have your assets (be it soundfiles or images or what ever) loaded to the webserver you serve your page from. Normaly you will have an assets folder on there. You can then access these files by using the path to that folder on your server in your code.
HTML5 should provide functions for sound playback and such as well. Might as well start there

Best approach to generate a third-app party file preview in Google Drive?

Google Drive team has recently announced that third-party Drive app can provide their own thumbnail as a file preview (http://googleappsdeveloper.blogspot.com/2012/10/thumbnails-for-your-custom-file-types.html).
What is for you the simplest way to achieve that?
Our app is using AngularJS on front-end and Python webapp2 on the backend-side.
The fact that the file URL is not public and since we won't make our users' files public, it sounds harder to make it on the server-side so I started my research by looking front-end solution.
I found html2canvas (http://html2canvas.hertzen.com) which sounds great but which does not generate a correct render of our app (missing part).
I was also thinking about something with PhantomJS to generate this preview but it sounds a little bit overkill.
Thanks for your help.
Edit
It actually works, but Google Drive renders it in small (like 300x200px) whereas the original canvas is 630x456px. Any thoughts on this issue?
Please find the original thumbnail and its render in Google Drive attached.
I would have suggested html2canvas, but as you found out it has some limitations which may make it a non-starter. Depending on what you'd like as the preview, a full screenshot might not be necessary. If, for example, you're referring to http://www.videonot.es/, a still/thumbnail image from the video might be a sufficient preview image.

Aloha editor - connecting a directory in the repository browser

I am experimenting with the Aloha inline HTML5 editor (www.aloha-editor.com).
I am creating a CMS system that will allow the administrator to upload files for download.
These will go into an upload directory (public_html/upload).
When a user wants to put in a link they can click the repository browser and be presented with a list of files in this upload folder.
Does anyone know how I can do this? I don't understand the documentation at all, and even copying the javascript source from their examples isn't helping at all.
Thanks
You'll have to implement an Aloha repository.
you should get enough information on this discussion : http://getsatisfaction.com/aloha_editor/topics/how_to_add_a_directory_to_the_repository_window
Please feel free to ask more, i've done the stuff, so i could help.
Best regards

Categories