import requests
from threadpool import ThreadPool
def task(url):
response = requests.get(url)| // This is main process of Electron, started as first thing when your | |
| // app starts. It runs through entire life of your application. | |
| // It doesn't have any windows which you can see on screen, but we can open | |
| // window from here. | |
| import path from "path"; | |
| import url from "url"; | |
| import { app, Menu, protocol } from "electron"; | |
| import { devMenuTemplate } from "./menu/dev_menu_template"; | |
| import { editMenuTemplate } from "./menu/edit_menu_template"; |
This is my personal documentation for dealing with Disks on a Linux Systems. This assumes that we're on CentOS (6.8).
NOTE: This tutorial does not talk about how to attach a disk to your Linux Box, or removing a disk. This is because in a physical machine, you will literally put the disk in or pull it out. On a VM, you will
NOTE: All the commands you run are to be run as root, and so, it will require superuser permissions when running sudo ....
I swap between databases all the time for various projects, and end up Googling and how to do the initial setup all the time, so the purpose of this document is to list a set of commands that anyone would end up using in getting started.
The simplest way to do this, without calling the psql utility and calling the CREATE ROLE and
a bunch of other SQL Statements is to use the createuser utility.
I swap between databases all the time for various projects, and end up Googling on how to do the inital setup all the time, so the purpose of this document is to list a set of commands that anyone would end up using in getting started.
Login to the MySQL console as the root user, with your password for the root user.
| // IMPORTANT: I'll need to fix this when we go past iOS 13. | |
| // Assume the following logic is inside a State<StatefulWidget> | |
| supportsAppleSignIn = false; | |
| @override | |
| void initState() { | |
| super.initState(); | |
| // initialize the AuthAgent | |
| this.authAgent = AuthAgent(); |
| func startCapturingStdout() { | |
| // capture things from stdout | |
| suite.Old = os.Stdout // keep backup of the real stdout | |
| r, w, _ := os.Pipe() | |
| suite.R = r | |
| suite.W = w | |
| os.Stdout = suite.W |