How to solve running scripts is disabled on this system [duplicate] - firebase

This question already has answers here:
ps1 cannot be loaded because running scripts is disabled on this system
(18 answers)
"Firebase cannot be loading because running scripts is disabled on this system", VSCode on Windows
(12 answers)
Closed 10 months ago.
This error showing on vs code
I try to deploy my project on firebase but when i run command - firebase init or firebase deploy I get an error
This is the error I'am getting
firebase : File C:\Users\DELL\AppData\Roaming\npm\firebase.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

Related

Firebase push notification - React Native: GULApplication.h file not found [duplicate]

This question already has answers here:
GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' file > not found
(6 answers)
Closed 2 years ago.
I am running a project with React Native where I have used React Native Firebase Push Notification (react-native-firebase/messaging: "^7.1.8") and it was working till today.
But when I tried to install pod to create build today it started showing me this error when I try to run the project in xCode or via yarn.
/ios/Pods/Headers/Private/GoogleUtilities/GULAppDelegateSwizzler.h:19:9: 'GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' file not found
How come this has happened, I am using
"#react-native-firebase/app": "^7.3.1",
"#react-native-firebase/messaging": "^7.1.8"
Any help is appreciated. Thank you.
Thank you for all answers,
It was an upstream error which made the latest version corrupted GoogleUtilities 6.7.0.
Updating pod after 19 hours of the post, It solved the problem.
Now the GoogleUtilities is 6.7.1.
Ref: https://github.com/invertase/react-native-firebase/issues/3938

Execute R script within R project from MAC terminal [duplicate]

This question already has answers here:
What's the best way to use R scripts on the command line (terminal)?
(11 answers)
Running R from Mac OSX terminal
(6 answers)
Scheduling R Script
(7 answers)
Closed 4 years ago.
I have a set of projects in R studio which I open and run a script within them on a daily basis. I want to automate this procedure to save time, by creating a bash script that will open the projects, run the script within them and then close them. I am to the point that I can open a project by running open project.Rproj but I have not found how to execute a script once I open the project in some automated manner (using a bash command).
Any ideas? Thank you.

Firebase Hosting use latest deployment [duplicate]

This question already has an answer here:
Travis with Firebase deploy TypeError: this.stream.clearLine is not a function
(1 answer)
Closed 5 years ago.
I am using Github, Travis CI and Firebase hosting to test some CI features and get into that topic. Everything works so far, bust firebase never takes the latest deploy as hosting base.
http://imgur.com/pTOWdoa
Is there any way to tell firebase to always use the latest deploy? Right now I have to reroll that latest the get the second latest active.
It seems like travis-ci has an issue with the firebase deployment when it's not set to non-interactive.
Solution here

mdg:camera fail to play video on Android + chrome because video.play() is not binded on user event [duplicate]

This question already has answers here:
getUserMedia frozen at first frame on Android Chrome
(2 answers)
Closed 7 years ago.
My MeteorJS application just needs to start the smartphone camera to allow the user to take photos.
It used to work, but when i used it recently it refused to start the video stream and display in the console :
Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.
The application use mdg:camera package throught this fork that fix a stream error since Chrome 45 (https://github.com/perak/meteor-camera/)
The video.play() methods is called on Template rendering which can explain the recent error. So i'm looking for a solution to resolve this.
To reproduce this:
meteor create reproduce-camera-bug
cd reproduce-camera-bug && mkdir packages
clone the https://github.com/perak/meteor-camera/
edit reproduce-camera-bug.html and add {{> camera}}
Configure your nginx as a proxy (config here https://gist.github.com/Rebolon/dd3d72eacf2bd1d6d3ae)
Start nginx and start meteor
Open Chrome on your android device and go to the url where your app is running : https://myComputerIP
Test the app and see that the video is not running, but instead you have a photo...
Is there a way to fix this?
Following this thread " getUserMedia frozen at first frame on Android Chrome " it seems that adding attributes autoplay to the video node is the right thing to do.

Running sbt offline right after installing the launcher only? [duplicate]

This question already has answers here:
How to use sbt from behind proxy?
(16 answers)
Closed 8 years ago.
I am trying to run sbt behind a firewall, and there is no way I can disable it. But somehow I can get the required jars and store them on the system. Is there a way I can run sbt without internet connection on that system.
I am using Windows (Win7) as the development environment.
SBT has an offline mode, from a command line you can use:
sbt "set offline := true" run (replacing run with whatever command you need)
or if you ran sbt and are in a sbt console you can simply do set offline := true
I finally found the answer to the question after struggling for two days. The problem was not with the firewall but with the proxy set up. What I had to do was pass the proxy, username and password via command prompt so that it could get the necessary jars.
java -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 -Dhttp.proxyUser=proxyUsername -Dhttp.proxyPassword=proxyPassword -cp "/sbt-launch.jar" xsbt.boot.Boot
I ran this piece of code and it solved my problem.
The jars that are downloaded are stored in the .ivy/cache/ path.
Thank you #Exupery for your help.

Resources