How to disable autosave in Google Colab? - google-colaboratory

I have very slow upload speeds and upload also interferes with my download so I need to disable autosave in Colab.

Open the notebook in playground mode using Tools -> Command pallet menu.
Playground mode disables saves. In order to save manually, you'll need to create a copy of the notebook using the menu File -> Save a copy in Drive.

if you go to Runtime > Change runtime type there is an option called Omit code cell output when saving this notebook with this option enabled you have private outputs and your Outputs will not be saved.

Related

copy and paste from google colab terminal

It is passable to copy and paste from and to google colab terminal?
I tried to copy by 'ctrl +c' but it is not enable me to copy the text.
Alternatively i tried to copy by right click on the mouse , but the pop up menu it similar to pop up menu that opened at any point on the broswer.
namely the menu give me options like : save, print and so on.
for the paste operation we can use the shortkey below like unix terminal: Shift+Ctrl+V
but the copy operation can not be done by Shift+Ctrl+C

Upload File / Image using Dropzone.js with Selenium-Ide

Hi Everyone
I'm new to selenium, please bear with me, and guide me a little bit.
So I want to make an automation process with selenium-ide, with the hope that this automation will make testing in my project easier.
So using selenium-ide and trying to upload a file using dropzone.js, here is the normal flow.
Click the button 'Add Photo'
Windows explorer will pop up
After the file is selected, on the background, 'dropzone' will manipulate the file while opening a pop up "Image Editor"
After clicking "Confirm" the file will be uploaded to the server.
What I want to accomplish is "How can I manipulate click/select the file after file explorer opened, using selenium-ide? or is it possible?"
I have already spent hours trying to find the solution and have had no luck.
I try using the command "type" or "send key", and also on my discovery we could use javascript directly with the command "execute script", but I just don't know how to make it work
What I expect is, I could manipulate the manual proses of the selection file with automation from selenium-ide.
Thank You.
I got my own answer guys!
My goals above can be solved using selenium-ide command called "type",
Here is the explanation:
Command:
I use "type", according to selenium-ide it will store value to your element.
Target
Dropzone will create its own element 'input file' and it's hidden, of course, so this is one that we should get, instead of your own input file. You may find it with class dz-hidden-input, and since I have many file inputs I use an array at the end of XPath [{$check}]
Value This one is the exact path where you put your file locally.
**The Logic / How it works: **
with this solution, we don't need to trigger file explorer, because the above code will inject the image inside dropzone file input, and since dropzone listens to their file input which is dz-hidden-input, it will act the same way that we choose the file from file explorer.
I hope this answer will help someone whos bumped into the same problem.
Kudos XD

Can't find location of dsmodel.mof - Dymola

I cant find the location of the generated dsmodel.mof file from my Translated and Simulated model.
Where can i see the save location of the file without searching through every folder on my computer?
It should be in your working directory.
You can find (and change) the location of your working directory of it using either the GUI:
- File -> Working Directroy -> Browse
or by typing
cd into your command line in the Simulation view.
Adding a parameter to the cd command will change the location, like in cd("C:/Temp/DymolaWD") (the path has to exist before using cd)
Alternatively you can use the folder-like looking button in you command window in the simulation view to open it directly in the Windows Explorer, by clicking the small arrow next to it and selecting Open in File Browser.

PHPStorm: Disable Auto Opening of File transfer tool window

I'm using PHPStorm 10, every first save after the opening PHPStorm the File transfer tool windows show up, telling me that the file is being auto uploaded.
I've tried all type of settings, without good results: the file transfer window keep showing up at the first save. How can i disable this behavior?
This is the tool window:
File Transfer tool window
Open Tools > Deployment > Options and change Operations logging to "Errors only".
There is no such option in Settings/Preferences.
Just close the window (minimize it) and it will not show up again for this session (only notifications, which you can disable if so desired via Settings/Preferences | Appearance & Behavior | Notifications -- look for "Web deployment" entries).
If you change the View Mode to Undock and drag the inner edge of the File Transfer window outside the viewport, it will effectively be disabled. This is not very elegant and I hope JetBrains gives us a setting to disable this soon.
To see the File Transfer window again, right-click on File Transfer and select another view option such as Dock Pinned.
As of PHPStorm 2019.1.2. Thanks to Erenor's comment for the inspiration.
Edit: Ástþór's answer does work provided none of the transfers are throwing errors. Due to the way a server is set up on one of my projects, it always gives a benign error, which makes the File Transfer window pop up.

MATLAB hangs when saving workspace

I'm using MATLAB R2012a with a dual-screen setup, so I have the command window on one screen and the M-file editor on the other. Sometimes when I make changes to my source code, I'll accidentally press Ctrl+S while the command window is in focus (instead of the editor). This loads a file chooser dialog for saving a MAT file of the workspace. However, regardless of whether I press "Cancel" or "OK", MATLAB hangs indefinitely. Is there something I can do so that saving the workspace doesn't fail?
I don't really care about being able to save the workspace, I just need it to work so that MATLAB doesn't hang whenever I accidentally try to.
As a temporary fix, you can un-define the Ctrl+S shortcut to save the workspace from the settings.
Go to File > Preferences > Keyboard > shortcuts: