When running a Rails project locally that needs SSL support you might get the following type of error:
... Puma compiled without SSL support (RuntimeError)
Here's how to fix it:
When running a Rails project locally that needs SSL support you might get the following type of error:
... Puma compiled without SSL support (RuntimeError)
Here's how to fix it:
NOTE: JSON files don't normally allow comments, but VSCode allows them in
.vscode/launch.json
.
TODO:
Other resources:
Table of Contents:
Click on the Deploy & run transactions on the left navigation
Choose the MultiSigWallet
contract in the CONTRACT dropdown
Paste the following in the Deploy input, then click Deploy:
["0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2", "0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db"], 2
– Anyone should be able to deposit ether into the smart contract
– The contract creator should be able to input the following (in the constructor) :
For example, input 3 addresses and set the approval limit to 2.
// See feedback: https://gist.github.com/skplunkerin/61fe0562a72016162aece7b22609fb62 | |
pragma solidity 0.8.7; | |
contract MemoryAndStorage { | |
struct User{ | |
uint id; | |
uint balance; | |
} |
pragma solidity 0.8.7; | |
contract HelloWorld { | |
// called state variables: | |
// string message; | |
// CONSTRUCTORS | |
// https://academy.moralis.io/lessons/constructors-2 | |
// runs only 1x during compile. | |
// constructor(string memory _msg){ |
More on it here https://dave.cheney.net/2014/03/25/the-empty-struct.
It can be used with channels as well if you just want to notify whatever is listening on a channel that something happened and not to transfer data between goroutines.
// DO NOT DO THIS: (it uses more memory)
func removeDuplicateUsers(users []User) []User {
u := map[string]bool{}
Only 555-0100
through 555-0199
are now specifically reserved for fictional use; the other numbers have been reserved for actual assignment.
NOTE: /.../
is the full path to my project.
Error message:
could not launch process: open /.../cmd/server/debug.test: no such file or directory
could not remove /.../cmd/server/debug.test: remove /.../cmd/server/debug.test: no such file or directory
Process exiting with code: 1