Google Drive Sync conflicts with RStudio - rstudio

Can anyone make rstudio play nice with google drive sync. Eventually my .R file is locked and I have to reboot when I have the sync on and I'm using rstudio.

Related

Testing Xcode projects saved using Google FileStream

I am a high school CS teacher teaching C++ with Xcode. In the past, I have used Google Backup and Sync such that my kids shared a Google Drive folder with me, saved all their work locally in their Google Drive folder, and synced this folder with Google Drive's cloud. Worked like a charm. Now, our school has transitioned to Google FileStream, which works differently. Google Drive is now treated as a mounted volume and by default does not copy synced folders, but provides links to them on the cloud, so they appear to be local, but are in fact not. I am able to have my kids set their class folder in "offline mode" so that they can use it as before, maintaining local file copies as well as syncing with Google Drive's cloud. However, I just discovered that this results in a "permission denied" error when trying to execute their code. Projects build, but do not run.
I had them move their project folders to their desktop, and they build and run just fine. When saved on the FileStream mount, even attempting to run a successfully built project through terminal results in the same "permission denied" response. So I am 100% sure the issue here is trying to run executable code from the FileStream mounted folder.
Any thoughts here? Is there a Mac security setting somewhere that I cannot find that will allow this? Or is this a Google Drive thing? I can always have them work locally, then copy the project over, but that is a real pain for them and me with grading from home.

How to Move from Google Play Music to Plex Music

This is for anyone else who, like me, is mourning the sad, soon-coming death of Google Play (Music) and annoyed w/the forced moved to YouTube Music. The question/goal I had was simply "how do I move from Google Play (Music) to Plex Music?" so I figured I'd share my notes/steps here in case anyone else finds it helpful. Reminder: Once Google Play is turned off officially (date unknown, end of 2020?) you won't be able to perform some or all of these steps anymore.
1) Download Your Music from Google
Use Google's "Music Manager" app to download your entire library to your hard drive somewhere.
While you can download your music from Google Play using the Chrome "Google Play" extension I don't recommend if you can avoid it because it's buggy and it doesn't make Artist and Album folders for you like the "Music Manager" app does which, IMHO, is helpful vs a folder w/thousands of unorganized MP3 files.
(1B) Some people may need to refer to the pycryptodomex docs if they encounter compiler issues with gmusicapi and plexapi. Thanks to Paul for the heads up.
2) Setup Plex Music Library
Assuming you have a Plex server setup and running, create a "Plex Music" library item and pick the folder(s) it should use. Once this is done, copy all your music from step #1 above to it, tell Plex to scan the folders and wait for it to finish scanning everything. Confirm all your albums/artists show up, in general, as they did in Google Play (Music).
3) Pull Google Play (Music) Playlists into Plex Music
Reference: https://www.reddit.com/r/PleX/comments/hfgnvk/import_google_play_music_playlists/
Install python for Windows (if not installed already)
Run this in a command prompt to install the python script dependencies:
python -m pip install --upgrade pip gmusicapi plexapi requests
Download copy of this python script here
Get these 3 things from your Plex server:
Plex URL (e.g. http://10.10.1.10:32400)
Active Plex Token via these instructions
Name of the Plex Music library you're importing your Google playlists to
Add the 3 Plex items from #4 above to the top of your copy of the python script and save the file.
Run your copy of the python script in a command prompt: python gmusic_playlists_to_plex.py
Follow prompt instructions to authenticate on Google and watch the magic happen
(You may have to run it a second time after authenticating if it throws an error on first try)
Note: A few of my playlists were mangled a bit (maybe due to deleted songs or metadata oddities but fortunately most of my most-recent/most-used playlists copied over fine.
4) Enjoy Plex Music!
While I know maintaining a music locally (via Plex) will require hard drive/backup maintenance work over time, I have to say I am loving Plex Music so far. There seems to be a bug w/the offline sync (w/the iOS app) but I'm sure they'll fix and aside from that the entire library/playlist/queue experience in Plex Music is actually faster and better than Google Play (IMHO) - loving it so far. I also just discovered today that they have a cool new iOS app dedicated entirely to the music stuff that seems even better than the Google Play iOS app: Plexamp.
Thanks again to the Reddit guys for elements in #3. LMK if I left anything important out or should add a step.

How to backup files on mac when OS installation failed to finish?

I run installation of OS on old Mac book Pro and the installation was not able to complete.
Is there a way to save my files, before reformatting the Mac?
I thought I lost my files, but found out that after getting to disk utility, you can go to:
File > New Image > Image from Folder
And this way save your file to an external Hard Drive, then open them in another Mac and backup. This really saved me, hope it would help you two because it took me forever to find this solution

Windows 8.1 File Backup Before Factory Reset

It would appear some major changes have occurred in Windows 8.1, specifically how files can be backed up for a factory reset. Normally I would make a backup of all personal files with "Windows Easy Transfer" then format the OS to a base Windows install. At which point I could run "Windows Easy Transfer" and restore all my files to my freshly formatted PC without issue.
Now in Windows 8.1 it would appear you can no longer make a backup of your current PC and Microsoft has stated that they are no longer supporting easy transfer. So what is the best way to make a backup of your personal files before doing a reset in Windows 8.1. The current OS has some nasty viruses and a refresh doesn't seem appropriate do to the current state of the OS. So I would like to perform a reset (factory reset) and restore the files onto my fresh install.
I have been looking at "File History" which appears to be Microsoft's new way of backing up files but I can't find any information about how or if you can recover all your files from "File History" on a new OS. All the information I see points to recovering a file on the current OS if the file is deleted or damaged.
I like many others really liked the safety and catch all of using easy transfer. I have made backups of files only to find I missed a folder here or there and can never get said files back. That issue was eliminated with "Windows Easy Transfer" and now with that being gone my goal is to find the safest/best solutions.
As of Windows 8.1 "Windows Easy Transfer" only transfers one way and can no longer be used to backup your data to move to a new system or restoring your data after a factory reset.
As of Windows 7 and up you can setup "File History" to an external drive or network drive. This can be used to backup your files and restore them to your new system. After making a backup of your files, which could take a while, you can verify the content of your backup folder
(Drive Letter):\(User)\(PC Name)\Data\C\Users
After you have verified the contents you can safely format your system. After your system is back up simply go to your "File History" settings and select the drive you stored your backup on. The system will see that a previous backup was made and ask you if you want to restore the files before making a backup.

Mac OSX mounted network drive name changes

I'm working on a cocoa app that copies files to a user defined folder, and I'm currently testing it with a network drive. When I get the location of the network drive from the standard cocoa file browser, it looks like "/Volumes/Media". This works fine usually. There seems to be an issue though that I can't quite seem to work out where when I disconnect from my WIFI network, the Media drive remains mounted (I see it in /Volumes) but it is not accessible. Then when I reconnect the network, the drive is mounted to /Volumes/Media-1. I still see the original unusable /Volumes/Media drive until I restart my computer.
My question is a two parter. First, does anyone have any ideas why my drive may be staying "mounted" in my /Volumes folder even though I'm disconnected from the network. And secondly, I noticed that iTunes doesn't seem to be phased by this change of Volume name (from Media to Media-1). It is able to notice that the content it was originally accessing on /Volumes/Media, is now on /Volumes/Media-1 and continues functioning without a hitch. How might I go about detecting that name change and updating the path that I have stored in my app?
I'm trying this on OSX Lion by the way.
I asked the same question on Ask Different :
How to prevent the “-1” suffix in network drive paths?

Resources