Is there a way to keep my Google Colab running forever even when I'm not on the TAB? - google-colaboratory

I'm using Google Colab to run a server with ngrok and it's amazing, but every time I leave it disconnects and my server stops forever. It makes sense for that to happen but is there a way or a loophole? Is there a device I can keep this running on? I've used the while True:pass method and it works but requires me too keep the tab open, and I leave my computer closed a lot. Is there a web hosting service that can keep a webpage running on a server forever?

I suggest to look at this topic.
Also notice that with the free version of Colab, your maximum connection time is 12 hours, no matter what. If you pass to the PRO version, that should be extended to a maximum of 24 hours. Look here for more details

Related

Jetbrains Gateway settings for frequent disconnects

I’m using Jetbrains Gateway to use IntelliJ to work on the code in a remote Linux machine.
I connect via SSH. I connect and work fine initially, the latency is around 150 ms but it keeps disconnecting. I realized it disconnects when I stop coding and spend some time on other things (browser etc.). When I want to re-connect it asks for SSH key passphrase, I need to enter it multiple times and the 'Save Permanently' option won't work.
Is there a setting I can do to keep it connected?
Could this be related to my company's network, in which case again can I increase timeout or retry on fail by some settings?
This is Max from the remote development team at JetBrains.
I'm sorry to hear you are having trouble with Gateway. Please create a ticket here https://youtrack.jetbrains.com/newIssue?project=GTW describing your issue and attaching your logs. This will help us understand whats going on and resolve your issue.
Thanks!
I started using Remote Development feature of IntelliJ connecting to the same remote machine as described here https://www.jetbrains.com/help/idea/remote-development-starting-page.html
It does not disconnect, I can work whole day (tested 12+ hours) without any connection issues.

How does selenium behave without an "active session"

I've been working with Selenium for a few years already.
I started with some little stuff in Java and in my previous job I did a project using C# bindings with SpecFlow framework, page objects model, I dealt with complex locators, some JavascriptExecutor even some browsermobproxy work, bottom line I have some experience with Selenium.
Still there is something that is not clear to me.
Is Selenium expected to work properly when there is no "interactive session" into the machine that is running the code ?
Let's say that I connect into remote desktop to a machine in the cloud (Let's say Amazon or Azure), I develop a script and schedule a windows job to run it on the next 10 minutes, then I disconnect from the remote desktop session, the machine is on but no user is connected to it in remote desktop.
Will the script work ? Or depends what does it do ? Might some of the actions not work (Script might include changing the window size, sending keystrokes both through selenium sendkeys and by OS level actions) ? Can we ensure that any script that we developed and works OK while we are connected to the machine will also work when I'm not ?
I hope the question is clear, if not I can maybe explain further
Thanks !!!
Yes, Selenium can run on the cloud machine even though you are not connected to it. It should work without any issue.
As per my knowledge cloud machines are protected by firewall which blocks almost all the ports. You may need to get permission to use the default selenium ports like 4444 or 5555.
Also, may need to increase wait time because the cloud machines are slow in performance compared to normal physical desktop.
Usually cloud machines are linux based, you need to consider the environment as well.

jupyter kernel disconnects when away from seat

So I am using GPU server with remote connection through SSH, 'screen' command to keep the jupyter running even when the SSH console window is closed.
By right it should keep running even when I'm away. Nonetheless I'm failing to keep the script running on jupyter when I leave my seat. Some of these scripts require hours and hours to produce end results but I can't have them finished.
Apparently the GPU server has NOT turned off. So I can't think memory is the issue.
Has anyone got a better understanding of this matter and a way to fix it?
Kindly respond. Thank you.

Selenium scripts are running very slow when connected to VPN

I have written selenium scripts for my project and when started running them they run very slowly. It is so long time to perform each action. Have given my scripts to one of my colleague who is working from onshore where they do not need a VPN.
Can anyone please tell me what to do or if I can get some work around that would be greatly appreciated.
I'm currently in the same position.
started running they run very slowly
The actual problem comes from the client's (browser) send and received data across your test environment. The simplest solution would be - if you have any devops admin that can whitelist your PC, so you could get a free access. Never the less this could be a security issue.

Call to WebRequest.GetSystemWebProxy taking too long

This is quite odd.
I have a windows service that works OK, but when the computer is restarted the service get stuck on a call to WebRequest.GetSystemWebProxy for 11 minutes. About 11 minutes, on XP and on Vista, where it was tested so far, all the time. If the computer is connected to the company's domain, it works. But when it's not, I'm facing this issue.
Some other weird things happens on Vista as well. For instance, it doesn't have an active network connection (disconnected) during this time and some other Windows system warnings appears just after these 11 minutes. Before 11 minutes the system seems more or less hanged, waiting for something.
It's not about my machine, because I've tested it on XP, and Vista, and also on some VMs of them.
I'm pretty sure that the call to WebRequest.GetSystemWebProxy in your case actually tries to connect to some system on your company network to
Actually find out if the Proxy server is found
Get the script that automatically configures these settings on your system
Please try to use a tool like Fiddler or WireShark to see which outgoing connections are attempted. The url will point out the location it tries to connect to and the reason for the call.