In Ethereum I opened the javascript console with "geth console" but I can not close it anymore.
I have tried ctrl-c, but it does not work.
Just type exiton the geth console
Ctrl + c is the shortcut to clear the input prompt.Ctrl + d will exit the console when the input line is clear.
Alternatively, you can type the command exit
Related
I have been trying to compile my raylib game to web (following this tutorial https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5) ) and i got stuck on this part:
Before compiling raylib, make sure all paths to emscripten (EMSDK_PATH) and tools are correctly configured on
C:/raylib/raylib/src/Makefile, you must verify these lines.
To compile raylib source code, just execute Notepad++ script: raylib_makefile and SET PLATFORM=PLATFORM_WEB.
To do this, start up Notepad++ for raylib, open the raylib.h file, press F6, choose raylib_makefile, verify that
in the script SET PLATFORM=PLATFORM_WEB, then click OK to run the script. That script just calls the following make
line (in case you're are working on a custom environment):
make PLATFORM=PLATFORM_WEB -B
When i open C:\raylib\raylib\src\raylib.h in notepad++ and press F6 nothing happens and when i try to call make PLATFORM=PLATFORM_WEB -B in the powershell it says
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ make PLATFORM=PLATFORM_WEB -B
+ ~~~~
+ CategoryInfo : ObjectNotFound: (make:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
please help
Suddenly, gdrive command line tool stops working, and always gives the following error message:
Failed to get about: Get https://www.googleapis.com/drive/v3/about?alt=json&fields=maxImportSizes%2CmaxUploadSize%2CstorageQuota%2Cuser: oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
This is because your authorization token has expired.
Currently there is an open Issue to improve this error message here.
You should delete your token with rm ~/.gdrive/token_v*.json
then run the gdrive about command to reauthorize
The steps I fixed it:
rm ~/.gdrive/token_v2.json as other answer suggested.
But I get danger error if I open the link get from gdrive about to re-authorize:
So I create a drive project by go to https://developers.google.com/drive/api/v3/quickstart/js and click "Enable the Drive API":
Click the "API Console" link on that dialog:
To make default redirect url (i.e. urn:ietf:wg:oauth:2.0:oob) works, we need Installed type app and can't use "Web application type app"(which only allow http/https scheme). So click "Create credentials" and choose "Oauth client ID" item:
Ensure select "Other" type:
Copy "Client ID" and "Client secret" from created item. cd to ~/.go/src/github.com/prasmussen/gdrive/, then replace both at this two variables in handlers_drive.go file, save it, e.g.:
const ClientId = "xxx.apps.googleusercontent.com"
const ClientSecret = "xxx"
Then run go install at that directory. Now run gdrive about and open that link in web browser. I get This app isn't verified error page. You are the author who created that app on above steps and suppose safe. Nevertheless simply click "Advanced" link and click Go to Quickstart (unsafe) link:
Click "Allow" it, copy/paste the code back to gdrive about and done:
Managed to resolve this by retriggering gcloud authorization with:
gcloud auth application-default login
I hope you're doing well.
Last week (friday) phpmyadmin was working just fine, but when I tried to work with it today it shows me some errors and doesn't show databases etc.
I'm workin with xampp on windows 7 (it's not my pc ...)
Here is the error:
Fatal error: Uncaught TypeError: Argument 2 passed to
PhpMyAdmin\Core::arrayWrite() must be of the type array, null given,
called in C:\xampp\phpMyAdmin\libraries\classes\Config.php on line
1049 and defined in C:\xampp\phpMyAdmin\libraries\classes\Core.php:677
Stack trace: #0
C:\xampp\phpMyAdmin\libraries\classes\Config.php(1049):
PhpMyAdmin\Core::arrayWrite('lang', NULL, 'fr') #1
C:\xampp\phpMyAdmin\libraries\classes\Config.php(996):
PhpMyAdmin\Config->setUserValue(NULL, 'lang', 'fr', 'en') #2
C:\xampp\phpMyAdmin\libraries\common.inc.php(453):
PhpMyAdmin\Config->loadUserPreferences() #3
C:\xampp\phpMyAdmin\index.php(27):
require_once('C:\xampp\phpMyA...') #4 {main} thrown in
C:\xampp\phpMyAdmin\libraries\classes\Core.php on line 677
Thank you for your interest.
Have a good day.
Please try clearing your browser cache and remove phpMyAdmin cookies, which start with "pma".
follow these steps
Open up your phpMyAdmin in browser
Press F12 to open Developer tools
go to Application > Clear storage
Clear all Cookies and Cache
Try refreshing the page.
Open up your phpMyAdmin url and press F12 for Developer mode .. go to Application Tab and Clear all Cookies .. refresh your phpMyAdmin page .. should be good to go .. enjoy
follow these steps...
Open up your phpMyAdmin URL
Press F12 for Developer mode
go to Application Tab and
Clear all Cookies
refresh your phpMyAdmin page (if not working once restart the server and try again)
.... .. .. hurray!!! it's done .. ... .....
Restore your database 'phpmyadmin' from your latest backup.
Before you stop MariaDb and then as usual, restore and start your DBMS again. It'll work.
I did not find a "Application tab" in the Developers menu like mentioned by Eliki Bula and Norbert
But followed the steps to clear a single site from the cache in Firefox and "forgot" the url of mypage/phpmadmin and it worked, the error was gone.
So its fact.
The reason for this problem is somewhere in the Cookies from phpmyadmin, to you yust have to clear the cookies for this page on any way.
In PowerShell console window the initial prompt is
C:\users\username
I could customize the prompt with the below:
function Prompt { "PS: "}
The prompt now becomes
PS:
Without making change to the C:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 I intend to revert to the original prompt.
How to go about it?
From the about_Prompt help file:
In Windows PowerShell 3.0, the built-in prompt function is:
function prompt
{
"PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
}
If I'm in the Terminal and I want to exit or cancel a command how would I do so? Escape does nothing and hitting the up arrow copies the command.
Ctrl + C is used to kill a process with the signal SIGINT, and can be intercepted by a program so it can clean its self up before exiting, or not exit at all.
Ctrl + Z is used for suspending a process by sending it the signal SIGSTOP, which cannot be intercepted by the program.
Random fact:
If you were writing a long command such as $ cd /User/myname/Desktop -r grep | .*.* and want to delete it press Ctrl + U.
Type \c and hit return. That will clear the current input statement.