Skip to content

Instantly share code, notes, and snippets.

@cyrusadkisson
cyrusadkisson / gist:bc0cd82aa436154c11bdbccd3d18b076
Created January 16, 2019 15:47
android-based webcam error
[ 71.237677] usb 2-1: USB disconnect, device number 12
[ 71.525712] usb 2-1: new high-speed USB device number 13 using xhci_hcd
[ 71.652141] usb 2-1: New USB device found, idVendor=1f3a, idProduct=100e
[ 71.652148] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 71.652152] usb 2-1: Product: Android
[ 71.652155] usb 2-1: Manufacturer: USB Developer
[ 71.652159] usb 2-1: SerialNumber: 20080411
[ 71.653255] uvcvideo: Found UVC 1.00 device Android (1f3a:100e)
[ 71.654327] uvcvideo 2-1:1.0: Entity type for entity Processing 2 was not initialized!
[ 71.654336] uvcvideo 2-1:1.0: Entity type for entity Camera 1 was not initialized!
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"open","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"proposalHash","type":"bytes32"},{"name":"proposalDeposit","type":"uint256"},{"name":"newCurator","type":"bool"},{"name":"yea","type":"uint256"},{"name":"nay","type":"uint256"},{"name":"creator","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"minTokensToCreate","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"rewardAccount","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"daoCreator","outputs":
I1023 23:08:21.237133 1536 chain_manager.go:722] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 5.070051ms. #430464 [2b438448 / 2b438448]
I1023 23:08:27.066141 1536 chain_manager.go:722] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 10.06279ms. #430465 [ad8a40c1 / ad8a40c1]
I1023 23:08:38.076870 1536 chain_manager.go:722] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 4.644614ms. #430466 [c3f50fb2 / c3f50fb2]
I1023 23:09:18.521798 1536 chain_manager.go:722] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 6.065432ms. #430467 [3b07e9ab / 3b07e9ab]
I1023 23:09:37.905587 1536 chain_manager.go:722] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 11.420498ms. #430468 [81219e42 / 81219e42]
I1023 23:09:40.299118 1536 chain_manager.go:722] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 10.128934ms. #430468 [92fe97e4 / 92fe97e4]
I1023 23:09:43.027210 1536 chain_manager.go:722] imported 1 block(s) (0 queued 0 ignored) inclu
goroutine 71936 [chan receive]:
github.com/ethereum/go-ethereum/eth.(*GasPriceOracle).listenLoop(0xc832e6f360)
/build/ethereum-_grtGr/ethereum-1.2.3+61trusty/obj-x86_64-linux-gnu/src/github.com/ethereum/go-ethereum/eth/gasprice.go:88 +0x89
created by github.com/ethereum/go-ethereum/eth.NewGasPriceOracle
/build/ethereum-_grtGr/ethereum-1.2.3+61trusty/obj-x86_64-linux-gnu/src/github.com/ethereum/go-ethereum/eth/gasprice.go:62 +0x38c
goroutine 71937 [chan receive]:
github.com/ethereum/go-ethereum/eth.(*GasPriceOracle).listenLoop(0xc844b32190)
/build/ethereum-_grtGr/ethereum-1.2.3+61trusty/obj-x86_64-linux-gnu/src/github.com/ethereum/go-ethereum/eth/gasprice.go:88 +0x89
created by github.com/ethereum/go-ethereum/eth.NewGasPriceOracle
@cyrusadkisson
cyrusadkisson / gist:a4e19431c1e257ae4382
Created October 17, 2015 15:35
Gathering 2D array into a contract from an already-deployed contract
// NOTE this is already deployed at address 0xed9c3aead241f6fd8e6b6951e29c3dcb5b3662c1 I want to interact with.
//contract BlockDefStorage
//{
// bool[32] occupiesInitialized;
// bool[32] attachestoInitialized;
// bool allOccupiesInitialized;
// bool allAttachestoInitialized;
//
// Block[32] blocks;
// struct Block
@cyrusadkisson
cyrusadkisson / gist:572825bbafcd6d875610
Created October 17, 2015 06:45
2d array passing between solidity contracts
import 'mortal'; // TODO
contract BlockDefRetriever is mortal // TODO
{
function getOccupies(uint8 which) returns (int8[3][8])
{}
function getAttachesto(uint8 which) returns (int8[3][8])
{}
}
// ___ _ _ _____ ___ _______ __
// | __| \| |_ _|_ _|_ _\ \ / /
// | _|| .` | | | | | | | \ V /
// |___|_|\_| |_| |___| |_| |_|
//
@Entity
public class Invoice implements Serializable
{
import "mortal";
contract Etheria is mortal {
address creator;
uint8 mapsize = 33;
Tile[33][33] tiles;
bool ownersinitialized = false;
bool pricesinitialized = false;
bool elevationsinitialized = false;
import "mortal";
// contract Descriptor {
// function getDescription() constant returns (uint16[3]){
// uint16[3] somevar;
// return somevar;
// }
// }
/***
* _ _ ___ ______ _ _ _____ _ _ _____
* | | | |/ _ \ | ___ \ \ | |_ _| \ | | __ \
* | | | / /_\ \| |_/ / \| | | | | \| | | \/
* | |/\| | _ || /| . ` | | | | . ` | | __
* \ /\ / | | || |\ \| |\ |_| |_| |\ | |_\ \
* \/ \/\_| |_/\_| \_\_| \_/\___/\_| \_/\____/
*
* This contract DOES NOT WORK
*/