copy multiple files to colab using file browser from mounted G drive - memory-management

i cant find how to copy them in unison without having to do them all separate and moving them rather than copying them.. i looked for quite a while for a shortcut or "hold ctrl + click and drag" sort of thing but nothing is coming up
trying to copy multiple files from Gdrive to colab without moving them.

Related

Google Drive: Download of shared folders for signed out users

I want to share Google Drive folders by sharing their folder link to people. An example folder is https://drive.google.com/drive/folders/17Jh-Va8M1XQSJyrugV-iAtOTIwYePbvV
The folder contains original files as well as the new Google drive "shortcuts" (btw: I'm the owner of the original files where those shortcuts link to).
I want that also people which aren't signed in to a Google account are able to download the whole folder. I noticed 2 new problems which occured since Google introduced the new shortcut system this year:
signed out users aren't able to download all files of a folder with one click. There's no "Download All" button any more. It's just possible to download single files.
Signed out useres aren't able to download Shortcut-files. Just original files by clicking onto "Download"
Do you have an idea how to fix problems 1) and 2) for signed out users?
As a workaround for 1):
Create a folder inside of the main shared folder and mive all files to the nested folder.
When the user opens the main folder he can download with one click the nested folder and all contained files:
As for 2)
The shortcuts are no files but just links to files - if the original files are not shared with the permission Anyone on the internet with this link can view - then users who are not signed in cannot access those files.
You need to share the original files accordingly, in this case the user will be able to open the shortcut and then go on File->Download.
Arguably it makes more sense to directly move the original file into the shared folder instead of using shortcuts.

VSCode: moving files out of appdata directory

I'm on a company laptop and appdata has restricted storage space. An initial google showed there isn't really any settings to move directories. I was thinking of simply copying relevant directories i.e. \AppData\Roaming\Code to somewhere else, then creating a hard symbolic link (junction) with the same name and then point it to the same location
i.e. in command line:
mklink /J C:\Users\me\AppData\Roaming\Code C:\myFolder\Code
I played around with moving the whole appdata folder (right click on roaming/local/locallow then click on properties then location tab then change directory). I managed to only move half the files over. it seemed to work until i restarted and it caused chaos.
I don't want the same thing to happen again with vscode. (that said I haven't tried using a symbolic link for appdata
what is everyone's advice? can i create a symbolic link and have everything work fine? or will i cause more chaos again? if it works for vscode, i'd like to do the same for appdata too
Portable Mode in Visual Studio Code
You can use Portable Mode: After unzipping the VS Code download, simply create a data folder within Code's folder
After first launch 2 folders will be generated inside:
..data\extensions
..data\user-data
Then you can copy your company folders with files from
%APPDATA%\Code\User\
Then copy the extensions directory to data:
%USERPROFILE%\.vscode\extensions
Portable mode is not supported if you install VS Code. It is only supported if you get the ZIP download.
Symbolic links should work, but you can also tell VS Code to use a custom extension and user setting location with the --extensions-dir and --user-data-dir flags respectively
$ code --extensions-dir "/User/me/vscodeExtensions" --user-data-dir "/User/me/vscodeData"
There are some key limitations to this approach, such as extension updates not working. We are tracking support for a truly portable VS Code here: https://github.com/Microsoft/vscode/issues/329

Get file paste directory on Windows and Mac

I'm trying to spy on the target directory when a user pastes a file. Let's say I copy/cut a file from somewhere on my computer. Then I paste it into another place. I want to be able to know the paste target directory programmatically.
Some questions on Stackoverflow mentioned using a global hook on Windows to be notified when a paste operation happens. But it doesn't give you the paste directory.
On Mac, file drag and drop has a promised delay feature. I'm not sure about normal file copy and paste.
Kind of get stuck now. Any suggestion would be appreciated.

How do I use Mac OS aliases in Sublime Text 3?

I want to open the tree of folders which contains any code on my Mac in Sublime 3. Something like this:
But I don't have all of it in one folder, and it isn't convenient enough to open many folders in Sublime every time I close the app. So I have created 'aliases' (via Finder) to my folders and put them to one (folder), which i want to open with Sublime.
That didn't work out. Sublime opens these aliases as hex code. While ordinary folders open well.
So the main question: is there a way to make this work as I thought via preferences, or any plugin?
Use symbolic links instead by opening Terminal and using ln -s <SOURCE> <ALIAS>.
You can keep any number of folders you want collected in one place by using projects. Simply drag the folders you want, in the order you want, into the sidebar. Then, select Project -> Save Project As... and save the file anywhere you want with the .sublime-project extension. While you're at it, make sure you have
"hot_exit": true
in your user settings, as this enables you to close windows which have a project assigned to them, and all open files and unsaved changes are automatically preserved. When you next open the project, everything will be the same.

Take multiple .zip files and extract them to external location

This is something that I thought would be extremely simple to do. A math teacher handles her notes through Dropbox and gets .zip files emailed to her containing updates (by updates- they're the full folders so she can delete the old and extract the new ones in their places). She asked if it was possible to extract the zip files, then copy them to the dropbox. Coming from a Linux/Mac point of view I thought it would be easy- unzip command with -d... Little did I know Windows doesn't support unzip. I've tried googling ways to do this, and found that windows doesn't seem to have a default 'unzip' command of any kind? And when trying to copy the files, wildcards don't work either??? She gets 7+ .zip files at a time, all are named "Unit (number).zip" So I was using Unit*.zip. Any help/ideas would be appreciated- I already suggested she tries ubuntu because she constantly states how she likes the way my laptop looks.
WinZip can quickly unzip multiple files through its drag and drop interface. You can select multiple WinZip files, right click, and drag them to a folder to unzip them all with one operation.
From an open folder window, highlight the WinZip files you want to Extract
Right click in the highlighted area and drag to the destination folder
Release the right mouse button
Choose WinZip Extract to here
To unzip multiple Zip files without drag and drop:
From an open folder window, highlight the WinZip files you want to Extract
Right click in the highlighted area
Choose WinZip Extract to ...
Enter the destination folder
Source http://kb.winzip.com/kb/entry/77/
You can easily use the GUI for this:
Here is a trick I have found for extracting multiple zips at once without installing any extra programs:
Select the zip files that you want to extract
Right-drag them to an empty space (in the same folder is fine)
Select Extract and follow the prompts
Yes, it is not quite as nice as using the command prompt, but it does get the job done.
Also, wildcards do work with command prompt. Perhaps you weren't issuing the command correctly. This command works fine for me:
copy Unit*.zip D:\folder2\

Resources