Skip to content

Instantly share code, notes, and snippets.

# Copyright 2017 reinforce.io. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Package Version
------------------- ---------
absl-py 0.5.0
astor 0.7.1
atomicwrites 1.2.1
attrs 18.2.0
certifi 2018.8.24
chardet 3.0.4
future 0.16.0
gast 0.2.0
Traceback (most recent call last):
File "/home/erik/TestBench/tensorforceTest/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 510, in _apply_op_helper
preferred_dtype=default_dtype)
File "/home/erik/TestBench/tensorforceTest/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1144, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/erik/TestBench/tensorforceTest/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py", line 228, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/home/erik/TestBench/tensorforceTest/lib/python3.6/site-packages/tensorflow/python/framework/constant_op.py", line 213, in constant
name=name).outputs[0]
File "/home/erik/TestBench/tensorforceTest/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
{"meta":{"ruid":"UmFuZG9tSVYkc2RlIyh9YdJLHZhu1u8Z+8f7E6o8k8PfnWyhF74wSJkajdgz4fG+vNLXP3NQftX3LeWUp90dQ4NNBh+7JdqJ+MCvCbi+jgA="},"result":[{"review_nr":1721,"stars":"4.5","photo":"https://q-xx.bstatic.com/images/hotel/max500_watermarked_standard_bluecom/5bb/5bb66af8d9c75daf634c92bf58ac043109f95ec8.jpg","country":"au","hotel_name":"Novotel Wollongong Northbeach","deep_link_url":"booking://hotel/35569?checkin=2018-07-28&affiliate_id=881855&checkout=2018-07-29","review_score":8.7,"hotel_url":"https://www.booking.com/hotel/au/test-novotel-northbeach.en.html?aid=881855&checkin=2018-07-28&checkout=2018-07-29&room1=A%2CA","checkin_time":{"from":"14:00","until":""},"default_language":"en","rooms":[{"adults":2,"deposit_required":true,"breakfast_cost":35,"breakfast_included":false,"children":[],"refundable_until":"","extra_charge":[{"excluded":false,"amount":32.91,"type":"VAT","name":"VAT","charge_amount":10,"charge_price_mode":"percentage"}],"half_board":false,"all_inclusive":false,"room_name":"Superior Queen Room with
use eventual::{self, Async};
use portaudio;
use std::sync::{mpsc, Mutex, Arc, MutexGuard};
use std::thread;
use vorbis;
use metadata::{FileFormat, Track, TrackRef};
use session::{Bitrate, Session};
use audio_decrypt::AudioDecrypt;
use util::{self, SpotifyId, Subfile};
echo "------ get dependencies ------";
apt-get -y install wget file ca-certificates curl sudo git locate
echo "------ getting rust ----------";
wget https://static.rust-lang.org/rustup.sh
chmod a+x rustup.sh
./rustup.sh --channel=nightly --disable-sudo -y
echo "------ getting rust std for ARMHF -----";
wget -nv https://static.rust-lang.org/dist/$(date +%Y-%m-%d)/rust-std-nightly-arm-unknown-linux-gnueabihf.tar.gz
pi@raspberrypi:~/git/librespot $ sudo strace target/librespot
execve("target/librespot", ["target/librespot"], [/* 23 vars */]) = 0
brk(0) = 0x80e05000
uname({sys="Linux", node="raspberrypi", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f51000
access("/etc/ld.so.preload", R_OK) = 0
open("/etc/ld.so.preload", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=42, ...}) = 0
mmap2(NULL, 42, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb6f50000
echo "------ get dependencies ------";
apt-get -y install wget file ca-certificates curl sudo git locate
echo "------ getting rust ----------";
wget https://static.rust-lang.org/rustup.sh
chmod a+x rustup.sh
./rustup.sh --channel=nightly --disable-sudo -y
echo "------ getting rust std for ARMHF -----";
wget -nv https://static.rust-lang.org/dist/$(date +%Y-%m-%d)/rust-std-nightly-arm-unknown-linux-gnueabihf.tar.gz
Compiling librespot-protocol v0.1.0 (file:///librespot)
error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/librespot/target/release/build/librespot-protocol-9c9422231d2dfdec/build_script_build.0.o" "-o" "/librespot/target/release/build/librespot-protocol-9c9422231d2dfdec/build_script_build" "-Wl,--gc-sections" "-pie" "-nodefaultlibs" "-L" "/librespot/target/release/deps" "-L" "/librespot/target/release/deps" "-L" "/usr/lib/arm-linux-gnueabihf" "-L" "/librespot/target/release/build/protobuf_build-cc2477ede0bf27d6/out" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/librespot/target/release/deps/libprotobuf_build-cc2477ede0bf27d6.rlib" "/librespot/target/release/deps/libprotobuf-a98fadfad09b67f1.rlib" "/librespot/target/release/deps/liblibc-86e36839d9b4ae2b.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-fd663c41.rlib" "/usr/local/lib/rustlib/x86_64-unknown-li
@realtwister
realtwister / gist:4699462
Created February 2, 2013 22:00
HTML: Starting template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<title>Medivisual</title>
</head>
<body>