Skip to content

Instantly share code, notes, and snippets.

James Ray jamesray1

View GitHub Profile
View ethresearch-holochain
[Holochain](https://holochain.org/) is a framework for distributed apps that has an agent-centric approach. My initial impression of it after browsing its website, reading some of the white paper, some of the [FAQs](https://developer.holochain.org/guide/latest/faq.html), and [this blog post](https://medium.com/holochain/beyond-blockchain-simple-scalable-cryptocurrencies-1eb7aebac6ae), is that it looks better than Ethereum, providing a simpler, more intuitive approach to solving the scalability problem without compromising the scalability-decentralization-throughput trilemma, unless you really need universal consensus / data as an absolute truth, rather than data as a shared perspective. This is also after having been [involved with Ethereum](https://docs.google.com/spreadsheets/d/1Fv8XqLkMjdBkGPkVWfJulJU-5Qv6TSUR4oD5uKSEHW0/edit?usp=sharing) since mid 2017, without compensation.
I made a post about Holochain previously, but it seems that it was deleted, so I'm taking a screenshot [before](https://imgur.com/N
View new-way-contact-error
Server Error in '/' Application.
Unable to read data from the transport connection: net_io_connectionclosed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
Source Error:
Line 324:
View Codility Solutions in Javascript
Inspired from https://gist.github.com/lalkmim/e04845eb9d1c5936622a.
LinkedList Codility test: https://jsfiddle.net/jamesray/6fnw1yjq/1/, got a 100% score.
Find leader in array Codility test: https://jsfiddle.net/jamesray/6uqwb2c9/, got a 100% score.
Lesson 1 - Iterations
- BinaryGap - can't see how to improve on https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
@jamesray1
jamesray1 / footer-backup
Last active Feb 25, 2019
footer-backup
View footer-backup
View internal compiler error: librustc_traits_structural_impls.rs:180: impossible case reached
[jray@jr-dl core]$ RUST_BACKTRACE=1 cargo doc --verbose
Fresh semver-parser v0.7.0
Fresh byteorder v1.2.7
Fresh cfg-if v0.1.6
Fresh byte-tools v0.3.0
Fresh futures v0.1.25
Fresh subtle v1.0.0
Fresh void v1.0.2
Fresh rand_core v0.3.0
Fresh fake-simd v0.1.2
@jamesray1
jamesray1 / yay-backintime-manjaro
Created Nov 9, 2018
Installation for AUR package repository fails due to unresolved dependencies
View yay-backintime-manjaro
[jray@jr-dl ~]$ yay backintime
4 aur/backintime-cli-git 1.1.12.r440.gd0f9b844-1 (+24 0.00%) (Out-of-date 2018-11-09)
Simple backup/snapshot system inspired by Flyback and TimeVault. CLI version.
3 aur/backintime-git 1.1.12.r440.gd0f9b844-1 (+24 0.00%) (Out-of-date 2018-11-09)
Simple backup/snapshot system inspired by Flyback and TimeVault. Qt5 GUI version.
2 aur/backintime-cli 1.1.24-1 (+263 0.21%)
Simple backup system inspired from the Flyback Project and TimeVault. CLI version.
1 aur/backintime 1.1.24-1 (+263 0.21%)
Simple backup system inspired from the Flyback Project and TimeVault. QT4 GUI version.
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
View ext-hdd
[jray@jr-dl h]$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=7D57-B7BC /boot/efi vfat defaults,noatime 0 2
UUID=8ad88713-bc2e-4bfb-af80-c0f7e0f5e91c / ext4 defaults,noatime 0 1
View log-with-dodo-5g-router-yhwr1200js-5g-extender
Jan 1 00:00:03 syslogd started: BusyBox v1.24.2
Jan 1 00:00:04 YOUHUA-WR1200JS: firmware version: 3.4.3.9-099_20180421-0528
Jan 1 00:00:04 kernel: klogd started: BusyBox v1.24.2 (2018-04-16 21:26:53 CST)
Jan 1 00:00:04 kernel: Linux version 3.4.113 (padavan@hms) (gcc version 4.4.7 (GCC) ) #1 SMP Sat Apr 21 05:28:45 CST 2018
Jan 1 00:00:04 kernel: MediaTek SoC: MT7621A, RevID: 0103, RAM: DDR3, XTAL: 40MHz
Jan 1 00:00:04 kernel: CPU/OCP/SYS frequency: 880/293/220 MHz
Jan 1 00:00:04 kernel: CPU revision is: 0001992f (MIPS 1004Kc)
Jan 1 00:00:04 kernel: Determined physical RAM map:
Jan 1 00:00:04 kernel: memory: 08000000 @ 00000000 (usable)
Jan 1 00:00:04 kernel: Zone PFN ranges:
View building-paritytech-rust-secp256k1
➜ Rust git clone https://github.com/paritytech/rust-secp256k1.git
Cloning into 'rust-secp256k1'...
remote: Enumerating objects: 981, done.
remote: Counting objects: 100% (981/981), done.
remote: Compressing objects: 100% (345/345), done.
remote: Total 981 (delta 607), reused 981 (delta 607), pack-reused 0
Receiving objects: 100% (981/981), 471.30 KiB | 184.00 KiB/s, done.
Resolving deltas: 100% (607/607), done.
➜ Rust cd rust-secp256k1
➜ rust-secp256k1 git:(master) cargo build
View build-paritytech-rust-secp256k1-after-building-secp256k1
➜ jrl git:(master) cargo build
Compiling eth-secp256k1 v0.5.7 (https://github.com/paritytech/rust-secp256k1#db81cfea)
Compiling aio-limited v0.1.0 (https://github.com/paritytech/aio-limited.git#1f42497d)
Compiling aes-ctr v0.1.0
Compiling ring v0.12.1
Compiling multistream-select v0.1.0 (file:///home/james/Rust/jrl/misc/multistream-select)
error: could not find native static library `secp256k1`, perhaps an -L flag is missing?
error: aborting due to previous error
You can’t perform that action at this time.