The initial root password on install can be found by running
grep 'temporary password' /var/log/mysqld.log
- Stop mysql:
systemctl stop mysqld
- Set the mySQL environment option
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
This is definitely not the first time I've written about this topic, but I haven't written formally about it in quite awhile. So I want to revisit why I think technical-position interviewing is so poorly designed, and lay out what I think would be a better process.
I'm just one guy, with a bunch of strong opinions and a bunch of flaws. So take these suggestions with a grain of salt. I'm sure there's a lot of talented, passionate folks with other thoughts, and some are probably a lot more interesting and useful than my own.
But at the same time, I hope you'll set aside the assumptions and status quo of how interviewing is always done. Just because you were hired a certain way, and even if you liked it, doesn't mean that it's a good interview process to repeat.
If you're happy with the way technical interviewing currently works at your company, fine. Just stop, don't read any further. I'm not going to spend any effort trying to convince you otherwise.
| // VPC | |
| const vpc = new ec2.Vpc(this, 'VPC'); | |
| // Security group | |
| const webSg = new ec2.SecurityGroup(this, 'WebSG',{ | |
| vpc: vpc, | |
| allowAllOutbound: true, | |
| description: "Web Server Security Group" | |
| }); | |
| webSg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8080), 'Web from anywhere') |
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./permission"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
| async function orderItems() { | |
| const items = await getCartItems() // async call | |
| const noOfItems = items.length | |
| const promises = [] | |
| for(var i = 0; i < noOfItems; i++) { | |
| const orderPromise = sendRequest(items[i]) // async call | |
| promises.push(orderPromise) // sync call | |
| } | |
| await Promise.all(promises) // async call | |
| } |
| async function selectPizza() { | |
| const pizzaData = await getPizzaData() // async call | |
| const chosenPizza = choosePizza() // sync call | |
| await addPizzaToCart(chosenPizza) // async call | |
| } | |
| async function selectDrink() { | |
| const drinkData = await getDrinkData() // async call | |
| const chosenDrink = chooseDrink() // sync call | |
| await addDrinkToCart(chosenDrink) // async call |