Download code uploaded to projectName.meteor.com - meteor

Is there a way to download the code for the projectName app that I uploaded to projectName.meteor.com?
Is there a meteor command line interface that will accomplish this?

At the moment this is not possible through any meteor tools.
You can get the client side code by reading out the javascript files over from projectName.meteor.com. The files will be concatenated and minified so they will be far from the original albeit a bit helpful if you can rebeautify them.
For the server side code you'll have to contact the guys who run meteor.com and hopefully they can help you out with that. Keep in mind most of your code will be minified and may not be like the original.

Related

Rstudio cloud. Download a project

Since Rstudio cloud is no longer free, I'd like to download my projects from it. I found a lot of information how to download files from the projects, but I need to download the projects themselves, because I'd like to keep on working on them and be able to use my previous code. Is there any option to reach this, except copying code from every single project as a text?
Thanks in advance for any help

My shinydashboard app works on my machine but not on shinyapps.io

and thanks for any help!
I keep getting the same error message when trying to publish the app on shinyapps.io:
The application failed to start (exited with code 1).
I have already commented the setwd() and library(shiny) as I have learned from other posts, but so far no luck. This is the screenshot of the error.
I am new to this, so any support is greatly appreciated.
It looks to me like you are using an absolute file path in your script. shinyapps.io won't understand a file path specific to your machine.
Instead, try putting the files you need to read in a folder (e.g. 'InputFiles') and put that folder in the same place as your scripts. Change your scripts to refer to files using relative file paths like: 'InputFiles/file1.csv'.
When you run the code locally make sure to set the working directory to the same directory your scripts are in. When you publish to shinyapps.io make sure to include your scripts and the 'InputFiles' directory.
Here's a great explanation of how these work: https://docs.rstudio.com/shinyapps.io/Storage.html#Storage
The solution came to me after reading Thomas's post. I had an R script (which did all the statistics and plots for my dashboard) stored in the same folder where the shiny UI and server were stored. After moving this script file to a different folder, the problem was solved. I do not quite understand why this fixed the issue, but I hope this article helps people facing similar issues.

Is there a way to look at previous versions of code in an R Statistics file?

Is there a way to look back at previous code in a file? For instance maybe be able to revert to an earlier saved version or somehow see changes the file code went through?
Short answer: no.
Unless your changes are tracked in some sort of source control (like git) or you keep backups of your files, there is no way to see previous version of a script file. A .R script is just plain text files. They do not store their own history just like other documents or images on your computer don't either. Sorry.
If that's something you want to do in the future, Rstduio makes it easy to integrate with git. Check out this guide to Connect RStudio to Git and GitHub

Taking over a project

I recently was handed a project that went bad. I only have access to the code live on the server.
Is there a way to grab all of the files from the server and have a working version on my local machine.
The .aspx files on the server do not seem to contain the .aspx.cs files that i am looking for.
If you have access to the files on the server, you can copy all files (and other related things such as databases) and it should run as-is.
If you have none of the code however you won't be able to change much. .aspx files are compiled at runtime so you can change whatever is in them, but logic will not be as easy.
.NET code decompiles reasonably nicely if it hasn't been obfuscated so you might try that as a last resort. But seriously, just find whoever originally wrote it and extort them until they divulge the source code.

From ASP.NET, How to Download Two Excel Files and Invoke Batch Command on Them?

I need to download two Excel files onto the client, and then run a (diff) executable against them. I know how to download a single Excel file, from
here. But how to download a second one automatically in succession? And then how to run a batch command on them? Is this even realistic? Any guidance or pointers would be greatly appreciated.
Thanks,
Mike
To download multiple files at once you have two main options:
1) Just open multiple windows to your page generation script to download multiple files as per http://www.webdeveloper.com/forum/showpost.php?s=b4f6b25edeb6b7ea55434c4685a675fe&p=950225&postcount=6
2) Archive the files into a package (zip/arj/7z etc..) and send the archive to the client.
eg. http://www.motobit.com/tips/detpg_multiple-files-one-request/
As for doing the diff client-side that is a lot more tricky as Shhnap has already mentioned. If you are doing this for a controlled client base you may be able to get them to allow permissions for an ActiveX script that runs something client side. (Or fire off a console application) - but if you don't have fine control over the client environment then i can't think of a way to do it.
As Shhnap suggested can you not just do the comparison server-side (and then send this to the client as a third file?)
Well, just some pointers because I'm not sure I completely understand the problem. You a user to be given two downloads at the same time and then run a diff command against those two files? On the server or the client i'm not sure? You'll have alot of problems automating the client side version because forcing people to run client side code is usually frowned upon by virus protection software.
The server side diff sounds exactly like a CGI moment to me: http://www.cs.tut.fi/~jkorpela/perl/cgi.html. That will allow you to generate a web-page that shows the diff between the two. CGI allows you to run programs on your server and display their output in a webpage; that's the simple explanation.
If that was not quite what you wanted then feel free to give me a comment and i'll try and edit to answer correctly.

Resources