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.
Related
Let's say I have 2 folders - apple & orange
Now I opened apple in VSCode using code apple.
In the embedded terminal in VSCode, how do I open orange folder in the same instance as apple by overriding it without starting a new instance?
Support for multi-root workspaces is there.vscode-insiders which support multiple projects at same time.Please refer to our documentation for a full explanation of all the features that come with it. Extension authors should refer to our wiki that explains the new extension APIs to make your extension ready for multi-root workspaces.
You can do it like this:
I just tried in my system it working perfectly fine to open a another folder in same instance
code -r path
Like: code -r C:\Users\admin\xxxx\xxxx\apple(orange already opened in the same instance)
If you want to open a existing folder in new window from terminal:
code -n Path
Like: code -n C:\Users\admin\xxxx\xxxx\apple(apple will opens in another window and orange also there.)
If you want to open a new tab in same instance by terminal:
code filename.extension (Hit enter then just press ctrl+S and then it saved the file in the same directory).
Thanks for the question.Hope this will match your curiosity B|
#rioV8 suggested this solution: File > Add Folder to Workspace ==> Multi Root Workspace
I am stuck with this issue, I can't find a working solution on the web.
I just created a simple Automator application that delete files from my 'Download' folder.
At the last step I got an error:
You do not have permission to move the file “Downloads” to the Trash. To view or change permissions, select the item in the Finder and choose File > Get Info
So I went to File > Get Info and I saw that my user has read & write permission and (just to try) I gave the same permissions to everyone but still
You do not have permission to move the file “Downloads” to the Trash. To view or change permissions, select the item in the Finder and choose File > Get Info
Anyone has an idea how to fix this one?
MacOs Mojave 10.14 is my current OS.
thank you so much.
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.
My app got rejected from Apple and I have got crash reports in .txt format instead of .crash format.
How can I symbolicate or read the crash report ?
When you get your crash report as a .txt file just follow these
steps :
Change the file extension .txt to .crash (eg mycrash.txt to mycrash.crash).
Create a new folder in desktop and copy the mycrash.crash file to the
newly created folder.
Copy the .dSYM file:
update: download all DSYMs from appstoreconnect activity- they are properly named with their UUIDs
Unzip DSYMs, then copy the App and Sybolicate script as defined below:
https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app/[appID]/activity/ios/builds/[version]/[build]/details
Open the Archives window in Xcode by navigating the menus: xcode -> window -> orgnizer or xcode -> product -> Archive:
Select any Archives of your app Right click on it, then select Show in Finder
Right-click on appname.xcarchive and select Show Package Contents.
Open the dSYMs folder and get the .dSYM file, and paste it too in the newly created folder.
Copy the .app file from the same xcarchive to the new folder.
Go to path /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/
Finder hotkey (⇧ + ⌘ + G) and just paste in the path.
Copy the symbolicatecrash file to the newly created folder.
The folder should now have:
mycrash.crash
myapp.app
myapp.app.dSYM
symbolicatecrash
Open terminal, navigate to your folder path and then run:
$ export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
Then run the symbolicate command on your crash like so:
$ ./symbolicatecrash mycrash.crash > symbolicated.crash
Change the file extension .txt to .crash
Make sure your device is plugged in.
Go to xcode -> window -> devices and simulators -> view device logs.
Drag the file that of the crash log and drag it to the left side of that windows.
Now you can see the log and what happen there.
Can't add a comment to Shakti's answer, but I had trouble with steps 5 and 6 as it was complaining about DEVELOPER_DIR not being specified.
Some googling later I found out that the part 5 should have been:
5 now open terminal cd your folder path and then type this
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
So, the "export" is also a keyword and a part of the command, just in case anyone else gets the same problem.
It worked for me ,might help some one else also
Apple gives you crash log in .txt format , which is unsymbolicated
**
With the device connected
**
Download ".txt" file , change extension to ".crash"
Open devices and simulators from window tab in Xcode
select device and select device logs
drag and drop .crash file to the device log window
We will be able to see symbolicated crash logs over there
Please see the link for more details on Symbolicating Crash logs
By dragging the .crash file in organiser was not completely symbolicating my crash. So i tried another way of doing it.
If archived builds is already on your computer. Then you don't need to give .app and dsym file. Just run below commands in terminal.
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
Hit enter
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash /Your/Crash/File/Path/c.crash > /Your/Symbolicated/Crash/File/Path/c.crash
Hit enter and check the path you have given.
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