Not Able to Generate Key For Phonegap getting keytool error - javascript

Hello Friends I am Trying To generating Keys to use on buil.phonegap.com
I am using command
keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000
And I got error after completing the whole procedure
Image Link https://i.stack.imgur.com/rm9bf.jpg
So please help me . Or If there any another option to generate key then please tell me

You have to rund the cli as administrator by right clicking on it.
then your file will probably be stored in the location that would look like something similar to this:
C:\Program Files\Java\jdk1.8.0_73\bin

Related

Can't open VSCode with other user

Well basically i created another user, and i'm tring to open a node project, but i can't use "code ." (i think it's because vscode is installed in the other user, but idk) without having the following error:
~/amq-javascript-2.5.0/node_modules/rhea$ code .
2020/02/12 10:02:20.859002 cmd_run.go:884: WARNING: cannot create user data directory: cannot create "/home/amq-broker/snap/code/24": mkdir /home/amq-broker/snap: permission denied
cannot create user data directory: /home/amq-broker/snap/code/24: Permission denied
I already tryed with sudo, and got this:
~/amq-javascript-2.5.0/node_modules/rhea$ sudo code .
You are trying to start vscode as a super user which is not recommended. If you really want to, you must specify an alternate user data directory using the --user-data-dir argument.
I'm kinda lost here...
I had the same issue. I was able to finally get it to work by running ...
sudo code . --user-data-dir='.'
OR
sudo code --user-data-dir /home/fregie/.config/Code/ doesn't work because it needs to be a new user data directory, one whose permissions are not as restrictive as ~/.config.
This should work for example:
sudo code --user-data-dir /home/fregie/.code-root-user-data
Note that once we reshuffle the configuration directories this will no longer be necessary to explicitly indicate the root user data dir

(PERCY) Warning: skipping visual tests. PERCY_TOKEN was not provided

I'm getting this error below everytime I try to run 'npx percy exec -- node snapshots.js'.
PowerShell Terminal
Problem Image ->
https://i.stack.imgur.com/XCSj6.png
I have followed this Tutorial -> https://docs.percy.io/docs/percyscript-tutorial
Anyone know how to solve this? I looked everywhere and found nothing.
Thank you in advance!
PowerShell has a different syntax for working with Environment Variables.
Try this:
$env:PERCY_TOKEN = "token"
Powershell Help - About Environment Variables
To set up PERCY_TOKEN on windows we have to use powershell.
1.Open powershell on windows
2. Go to project library through commands cd, cd..
3.Set the PERCY_TOKEN $env:PERCY_TOKEN='your token'
4. Then run your project using powershell through your command npm run test:percy

How can I use ffplay from Electron.js app?

I've installed ffplay in my working folder (in bin subfolder) using ffbinaries (ffbinaries downloader). My current platform is linux-64.
I've use:
var spawn = require('child_process').spawn,
player = spawn('./bin/ffplay', ['http://path_to_video_file']);
but got an error in terminal stderr:
./bin/ffplay: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory child process exited with code : 127
How can I get access from my javascript code to this binary for playing videos or how can I get ready-to-use binary which is a built-in for my Electron app?
...Or how can I get all of ffplay possibilities for playing videos inside Electron app?
Thanks in advance!
The error you get means that ffplay cannot find libSDL.
First, make sure the library is installed by opening a terminal window and typing:
sudo apt install libsdl2-dev
If it wasn't installed, try to run your program again after it was installed.
If you still have the problem, type the following in your terminal window:
export LD_LIBRARY_PATH="/usr/local/lib"
Try again to run your program. If the problem is now solved, edit the file etc/environment and add the setting there to make it permanent:
sudo nano /etc/environment
Add this LD_LIBRARY_PATH="/usr/local/lib" at the end, exit and save.
Hope it helps.

phonegap Facebook login button hash key issue

I'm using facebook connect plugin for using facebook api to login into my app so I used a sample project and created a simple facebook app to get the app ID and the API was Ok till I came with a message in facebook dialog saying the key "AWiYld2HXlJFTSeTlXo9NY-CTAU" doesnt match any hashed keys into your app.
So I went to facebook app and added that for android hash key that still didnt worked so what can I do to make this working, so could you help me I'm really locked up.
Thank you for helping me in advance.
I fixed this by uninstalling my test app, and then reinstalling it.
I'm pretty sure "AWiYld2HXlJFTSeTlXo9NY-CTAU" means that you don't have a key assigned.. because that was mine too, when I originally built the app without an android key.. I kept trying to add a key, and rebuild it.. with hydration on.. and kept getting this error saying my key "AWiYld2HXlJFTSeTlXo9NY-CTAU" wasn't found in my FB app settings.
Here is the solution: - create your own keystore
you need the keytool of java (jre)
open the terminal and type:
keytool -genkey -v -keystore example.keystore -alias example -keyalg RSA -keysize 2048 -validity 10000
follow the steps (passwords, name, location)
then type:
keytool -exportcert -alias example -keystore C:\example.keystore | openssl sha1 -binary | openssl base64
then in phonegap build add your new autosigned key
https://build.phonegap.com/people/edit#new-android-key
thats all
reference:
http://circlecube.com/2013/02/keystore-for-android-app-development/

advice with installing phantomjs

I'm trying to use phantomjs for the first time although I'm strugglin
to get it installed on Windows 7. Im using the Installation Guide at http://phantomjs.org/build.html
In my DOS command prompt I've navigated to my
D:\openssl\openssl-1.0.0-beta1 folder and typed the following
command:
perl Configure VC-WIN32 no-asm --prefix=C:\openssl
but it does not work.
Any ideas?
If you only want to "install" (use) it, then just grab the exe (inside the zip) from http://phantomjs.org/download.html

Categories