Skip to content

Instantly share code, notes, and snippets.

View jamesray1's full-sized avatar

James Ray jamesray1

  • Sydney, Australia
View GitHub Profile
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:
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 May 25, 2020 04:41
footer-backup
[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 November 9, 2018 11:07
Installation for AUR package repository fails due to unresolved dependencies
[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)
@jamesray1
jamesray1 / ext-hdd
Last active October 19, 2018 03:47
[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
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:
➜ 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
➜ 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
Server Error in '/' Application.
The wait operation timed out
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.ComponentModel.Win32Exception: The wait operation timed out
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.