Skip to content

Instantly share code, notes, and snippets.

@waTeim
waTeim / macOS_template.xml
Created Aug 21, 2018
libvirt template for macOS
View macOS_template.xml
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>HOSTNAME</name>
<memory unit='KiB'>7812500</memory>
<currentMemory unit='KiB'>7812500</currentMemory>
<vcpu placement='static'>4</vcpu>
<os>
<type arch='x86_64' machine='pc-q35-2.11'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/local/share/OVMF/OSX-KVM/OVMF_CODE.fd</loader>
<nvram template='/usr/local/share/OVMF/OSX-KVM/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/HOSTNAME_VARS.fd</nvram>
<boot dev='hd'/>
View cudnn_error.txt
ame: GeForce GTX 980
major: 5 minor: 2 memoryClockRate (GHz) 1.2785
pciBusID 0000:03:00.0
Total memory: 4.00GiB
Free memory: 3.91GiB
I tensorflow/core/common_runtime/gpu/gpu_init.cc:126] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_init.cc:136] 0: Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:755] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 980, pci bus id: 0000:03:00.0)
Step #48, avg. train loss: 0.49619
Step #148, avg. train loss: 0.48362
View compile-all-gdb.txt
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
Program received signal SIGABRT, Aborted.
0x757b2f70 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) where
@waTeim
waTeim / Precompile_Base.jl
Created Mar 19, 2016
Julia package precompile steps to aid in startup speed on ARM
View Precompile_Base.jl
function _precompile_()
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
precompile(Base.Serializer.serialize_type, (Base.SerializationState{Base.Pipe}, DataType,))
precompile(Base.Serializer.write_as_tag, (Base.Pipe, Int32,))
precompile(Base.check_open, (Base.PipeEndpoint,))
precompile(Base.Serializer.serialize_cycle, (Base.SerializationState{Base.Pipe}, UInt8,))
precompile(Base.write, (Base.Pipe, Array{UInt8, 1},))
precompile(Base.flush, (Base.PipeEndpoint,))
precompile(Base.Serializer.serialize, (Base.SerializationState{Base.Pipe}, Int32,))
precompile(Base.Filesystem.lstat, (ASCIIString,))
View StateSpaceWarnings.txt
julia> import StateSpace;
INFO: Precompiling module StatsBase...
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
WARNING: Method definition call(Type{ArrayViews.UnsafeContiguousView}, Ptr{#T<:Any}, Int32, NTuple{#N<:Any, Int32}) in module ArrayViews at /home/jeffw/.julia/v0.5/ArrayViews/src/arrviews.jl:18 overwritten at /home/jeffw/.julia/v0.5/ArrayViews/src/arrviews.jl:26.
WARNING: unable to determine host cpu name.
INFO: Precompiling module Distributions...
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
@waTeim
waTeim / cert-list.text
Created Feb 9, 2016
Troubleshooting Julia git cert problems
View cert-list.text
3dr_solo:~/src/tmp$ ls -l /etc/ssl/certs/
drwxr-xr-x 2 root root 10240 Feb 9 06:09 ./
drwxr-xr-x 3 root root 1024 Feb 9 06:09 ../
lrwxrwxrwx 1 root root 55 Feb 9 06:09 A-Trust-nQual-03.pem -> /usr/share/ca-certificates/mozilla/A-Trust-nQual-03.crt
lrwxrwxrwx 1 root root 52 Feb 9 06:09 ACEDICOM_Root.pem -> /usr/share/ca-certificates/mozilla/ACEDICOM_Root.crt
lrwxrwxrwx 1 root root 65 Feb 9 06:09 AC_Ra??z_Certic??mara_S.A..pem -> /usr/share/ca-certificates/mozilla/AC_Ra??z_Certic??mara_S.A..crt
lrwxrwxrwx 1 root root 69 Feb 9 06:09 Actalis_Authentication_Root_CA.pem -> /usr/share/ca-certificates/mozilla/Actalis_Authentication_Root_CA.crt
lrwxrwxrwx 1 root root 61 Feb 9 06:09 AddTrust_External_Root.pem -> /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt
lrwxrwxrwx 1 root root 71 Feb 9 06:09 AddTrust_Low-Value_Services_Root.pem -> /usr/share/ca-certificate
@waTeim
waTeim / changes-to-binding.txt
Created Feb 7, 2016
Some experimenting julia on a 3DR drone
View changes-to-binding.txt
"libraries":
[
"-lgfortran", <--- added
"-lopenblas", <--- added
"-ljulia"
]
}
"cflags":
[
View Julia0.5onWindows.txt
jeffw@wedja MINGW64 ~/src/node-julia
$ npm install
npm WARN package.json node-julia@1.2.2 No license field.
> node-julia@1.2.2 install C:\msys64\home\jeffw\src\node-julia
> node-gyp rebuild
C:\msys64\home\jeffw\src\node-julia>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
@waTeim
waTeim / bug.html
Created Sep 10, 2015
Webcola Bug Illustration
View bug.html
<!DOCTYPE html>
<html>
<head>
<title>reapply group example </title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<script src="javascripts/d3.v3.js"></script>
<script src="javascripts/cola.v3.min.js"></script>
<h1>Reapply Group Example</h1>
@waTeim
waTeim / output.txt
Created Aug 16, 2015
Importing caffemodel into Mocha
View output.txt
julia> include("test2.jl")
Configuring Mocha...
* CUDA disabled by default
* Native Ext disabled by default
Mocha configured, continue loading module...
16-Aug 17:11:57:INFO:root:Constructing net CIFAR10 on Mocha.CPUBackend...
16-Aug 17:11:57:INFO:root:Topological sorting 16 layers...
16-Aug 17:11:57:INFO:root:Setup layers...
16-Aug 17:11:58:INFO:root:Network constructed!
************************************************************