How to find this path ~/.jupyter/jupyter_notebook_config.py - macos

Because I can't open my Jupyter
it show
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8890/?token=006f1d3a1045d356d73a63650f0ca05aa4fe786a24a52e72
0:97: execution error: "http://localhost:8890/tree?token=b322d4e463b5458e6545c58e49120e1a7081d36e01c6f531" doesn’t understand the “open location” message. (-1708)
so I google this solution is I need to go to
~/.jupyter/jupyter_notebook_config.py
on my mac and edit the file
but I don't know how to go the ~/.jupyter/jupyter_notebook_config.py ...

You'll probably need to show hidden files on your Mac. .jupyter is a hidden folder in your Home directory.

Related

How to fix the error message "the system cannot find the path specified"?

I am trying to run a file in the Outputs_2019 but the command prompt is not recognizing the folder. When I tried to open the folder in the command prompt I get the error message:"the system cannot find the path specified"
I ran the folder path"file:///C:/Users/jfoum/Documents/Outputs/Ouputs_2019" in the google chrome browser and it works.
My end result would be to open a file in that Outputs_2019 folder. I took a screenshot of the issue. Thanks for the help! Please see picture here

Invalid UNC path into shortcut - Windows

I have to create a shortcut for someone to point and launch an application remotely from a server.
The original shortcut has a UNC path in the target and start in boxes, I need to change the UNC path but it keeps saying the path is invalid and it won't allow me to save it.
I do not have permissions to open the application myself so I cannot right click the target file location and create shortcut.
example of the path I need to change to:
Target:
"\\server.au\application\version\Software\Deployment\CT.EI.Start.application"
Start in:
"\\server.au\application\version\Software\Deployment"
I can manually go as far \\server.com.au\application but not any further due to permission restrictions
Do I need to get permissions to this server and file or is there another way I can put the path in the shortcut? even if its through powershell or command prompt?
I was able to fix it
I did actually require permissions to the file and server to be able to update the shortcut

How to open path directory in Mac

I'm a newbie to OSX.
I have installed android studio and created an test project.
I would like to open up the test project directory as what I can do in Windows.
Here is the path to the test project directory:
/Users/wenhao/AndroidStudioProjects
But I have no idea where to navigate the /Users directory.
Appreciate if someone can help me out.
--- EDIT ---
I recalled that I have accidentally deleted something from the finder.
So, in order for those section to show: please follow this post - http://www.mac-forums.com/forums/os-x-operating-system/193314-accidentally-removed-device-finder-sidebar.html
In Finder, you should have on the left side "Devices" section, and under that, "Macintosh HD". From there, you should be able to find the path you are looking for.
Alternately, you could open Terminal app (in the Utilities folder of your Applications); that should put you in the /Users/wenhao directory, where you can just issue the command open AndroidStudioProjects to show it in Finder.

appcfg.py is not running with cmd prompt (Windows 7)

I am having strange problem. I used to run appcfg.py to update my app to appengine but now its not working anymore. When I run this command
C:\Program Files <x86>\Google\google_appengine>appcfg.py update E:\path\myApp\
Its not giving me anything, no error no feedback. Its just back to this line
C:\Program Files <x86>\Google\google_appengine>
Any idea about this issue!
P.S. I'm using Python 2.7. My code is updating through google app launcher but I need to run it from cmd prompt as I will be downloading/uploading appengine stuff which launcher doesn't allow me to do!
Thanks
I still had a little trouble with the instructions. Here's the steps I used to create a batch file to use the Google App Engine download_app with Windows 7.
In my example,
I'll use drive, C:
Default python path will be, C:\Python27\python.exe
GAE path (include "), "C:\Program Files (x86)\Google\google_appengine\appcfg.py"
App ID {your_app_id} will be just your app-id name
{your_app_version} is the "Version:" number in your GAE app.yaml file
I'll create a folder on my Windows 7 desktop and call it GAE_App
The desktop folder path will be C:\Users\{username}\Desktop\GAE_App
{your email} will be the Gmail account connected to your GAE
Right-click on the desktop and select New->Text Document. Open the newly created text document and add the following line of code modified for your setup to the blank text document,
C:\Python27\python.exe "C:\Program Files (x86)\Google\google_appengine\appcfg.py" download_app -A {your_app_id} -V {your_app_version} --email={your email} C:\Users\{username}\Desktop\GAE_App
Save the text document and change the file name to GAE_Download.bat
It's important that the extension now says ".bat" instead of ".txt"
Once finished, click on the batch to execute it. You'll be asked for a password and then the files should download into the GAE_App folder on your desktop. Now, whenever you need to download your files, just click on the batch file.
Not sure why Google didn't simply include this feature with their GAE for Windows software.
I faced the same issue. Here is a simple solution.
Just do this following Steps:
Go to program file where google app engine is installed. Generally It is named as Google.
click on appcfg.py and select open with.. Select "Choose Default Programs".
Select Python from programs and select "Always Use the selected program to open this kind of file" .
Now run the command you should get the results on command line.
For reference click here
Fixed by accessing python lib like that
C:\Python27>python appcfg.py update E:\path\myApp\
Here's a solution that worked for me:
"google_appengine/appcfg.py" update "C:\PATH TO APP
The appcfg.bat that should be used is located **C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\appengine-java-sdk\bin** and not the empty appcfg.bat that for some unknown reason also was here C:\Program Files\Google\Cloud SDK\
Good practice is to add this path to the system variable PATH
This worked for me
Basis
<PATH_TO_PYTHON>python <PATH_TO_APPCFG.PY>appcfg.py -A <PROJECT_INSTANCE_NAME> update app.yaml
Example
X:\Software\Python2.7\python Q:\SOFTWARE\GoogleAppEngineSDK\appcfg.py -A great-1337 update app.yaml

error when i want to save java file in jdk/bin

when i save java file error is you dont have permission to save in this location contact the administrator to obtain permission on window7
Don't store application data in the "Program Files" directory.
It is very bad design and regular users don't have write access to that directory (for a very good reason).
So even if you changed your settings locally to open up the door for viruses your application won't run on other computers.
Besides: storing a Java file in the JDK directory serves no purpose at all.
Btw: your uppercase letters are broken, as well as the dot or the comma...
That's normal - jdk/bin is the installation directory of the JDK, regular users cannot (and should not) write files there. You'll have the same problem on Linux/Unix and on Mac OS X, where installation directories are off-limits to regular users.
Write your files to the users home directory (System property "user.home", works across platforms), or let the user choose where you save stuff.
Bin directory do not allow directly to save program in it.
it is so simple, just save your .java file on desktop and then copy paste it in Bin. done ;)
If the file can't save directly to c:\program files\java\jdk1.8.0\bin\
Solution:-
Click start Menu type Notepad command in run run as administrator
Right click the Notepad run as Administrator, then type the program file can save directly to c:\program files\java\jdk1.8.0\bin\
Just try it......

Resources