Skip to content

Instantly share code, notes, and snippets.

julia> df = CSV.read("test.csv", DataFrame)
ERROR: CSV.Error on row=4963, column=8:
Parsers.Error (INVALID: SENTINEL, DELIMITED, INVALID_DELIMITER):
initial value parsing failed, a sentinel value was parsed, a valid delimiter was parsed, invalid delimiter
attempted to parse Missing from: "ESVUFR,"
Stacktrace:
[1] stream!(::CSV.Source{Parsers.Delimited{false,Parsers.Quoted{Parsers.Strip{Parsers.Sentinel{typeof(Parsers.defaultparser),Parsers.Trie{0x00,false,missing,2,Tuple{}}}}},Parsers.Trie{0x00,false,missing,8,Tuple{Parsers.Trie{0x2c,true,missing,8,Tuple{}},Parsers.Trie{0x0a,true,missing,8,Tuple{}},Parsers.Trie{0x0d,true,missing,8,Tuple{Parsers.Trie{0x0a,true,missing,8,Tuple{}}}}}}},Base.GenericIOBuffer{Array{UInt8,1}},Dates.DateFormat{Symbol("yyyy-mm-dd\\THH:MM:SS.s"),Tuple{Dates.DatePart{'y'},Dates.Delim{Char,1},Dates.DatePart{'m'},Dates.Delim{Char,1},Dates.DatePart{'d'},Dates.Delim{Char,1},Dates.DatePart{'H'},Dates.Delim{Char,1},Dates.DatePart{'M'},Dates.Delim{Char,1},Dates.DatePart{'S'},Dates.Delim{Char
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Aaron Lindsay <aaron@aaronlindsay.com>
# Contributor: Tiago Camargo <tcamargo@gmail.com>
# Contributor: Daniel YC Lin <dlin.tw at gmail.com>
pkgname=devkitppc-bin
pkgver=r29.1
pkgrel=2
pkgdesc='PowerPC toolchain for Nintendo Gamecube/Wii/Wii U homebrew development (precompiled)'
arch=('i686' 'x86_64')
@dlintw
dlintw / cloudSettings
Created December 29, 2017 05:49
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-29T05:49:40.730Z","extensionVersion":"v2.8.7"}
@dlintw
dlintw / output.log
Created May 7, 2017 06:51
install Arch Linux on Android m7 failed log
+ PATH=/data/user/0/ru.meefik.linuxdeploy/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ printf $'>>> deploy\n'
>>> deploy
+ /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy -d -t deploy
+ config_which linux
+ local conf_file=linux
+ [ -n linux ]
+ [ -n linux ]
+ conf_file=/data/user/0/ru.meefik.linuxdeploy/env/config/linux.conf
+ echo /data/user/0/ru.meefik.linuxdeploy/env/config/linux.conf
@dlintw
dlintw / PKGBUILD
Created April 28, 2017 05:13
PKGBUILD for rstudio-desktop-git
# Maintainer: Artem Klevtsov <a.a.klevtso@gmail.com>
pkgname=rstudio-desktop-git
_gitname=rstudio
pkgver=1.1.214
_gwtver=2.7.0
_ginver=1.5
_clangver=3.8.0
pkgrel=1
pkgdesc="A powerful and productive integrated development environment (IDE) for R programming language"
backtest = function(filename, traindata, alldata, algo, learn, skip_train_count) {
# ... omit
return(list(train_buy_cnt=train_buy_cnt, test_buy_cnt=test_buy_cnt,
t11=t[1,1], t12=t[1,2], t21=t[2,1], t22=t[2,2],rate=rate, earn=earn))
# Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
# arguments imply differing number of rows: 1, 0
}
main <- function(report_file, stk_cnt, data_cnt, algo_cnt, learn_cnt) {
# ... omit
br = backtest(infile, dat$traindata, dat$alldata, i_algo, i_learn, 250)
@dlintw
dlintw / PKGBUILD
Created March 22, 2017 00:42 — forked from anonymous/PKGBUILD
# Maintainer: Daniel YC Lin <dlin.tw@gmail.com>
pkgname=tarantool-avro-schema
_pkgname=avro-schema
pkgver=2.0
pkgrel=1
pkgdesc='Apache Avro schema tools for Tarantool'
arch=(i686 x86_64)
url='http://github.com/tarantool/avro-schema'
license=(BSD)
@dlintw
dlintw / build log
Created February 28, 2017 23:08
missing gcin-dev
...
install -m 644 zh_CN/gcin.gmo /home/dlin/aports/testing/gcin/pkg/gcin/usr/share/locale/zh_CN/LC_MESSAGES/gcin.mo
make[1]: Leaving directory '/home/dlin/aports/testing/gcin/src/gcin-2.8.4/po'
>>> gcin-dev*: Running split function dev...
>>> gcin-dev*: Preparing subpackage gcin-dev...
/usr/bin/abuild: cd: line 2315: can't cd to /home/dlin/aports/testing/gcin/pkg/gcin-dev
>>> ERROR: gcin-dev*: Missing /home/dlin/aports/testing/gcin/pkg/gcin-dev
>>> ERROR: gcin*: prepare_subpackages failed
>>> ERROR: gcin: all failed
abuild -i 183.34s user 16.02s system 68% cpu 4:51.97 total
141 dlin@cfw5 ~/aports/testing/synergy (git)-[new-synergy] % git log --pretty=oneline | head :(
0ea39cd660288eddf6a005553db7de8afafa3380 Added synergy package and depend packages
542c18c4739f7c612f81b0f695e771aefb25cb4c Revert "testing/ghc: temporarily disable on armhf since the bootstrap package is not yet available"
dlin@cfw5 ~/aports/testing/synergy (git)-[new-synergy] % git push origin new-synergy
To https://github.com/dlintw/aports
! [rejected] new-synergy -> new-synergy (non-fast-forward)
error: failed to push some refs to 'https://github.com/dlintw/aports'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
dlin@cfw5 ~/aports/testing/synergy (git)-[heads/master] % git co new-synergy
Checking out files: 100% (2082/2082), done.
Previous HEAD position was c2fdb8a1ee... Added synergy package and depend packages
Switched to branch 'new-synergy'
dlin@cfw5 ~/aports/testing/synergy (git)-[new-synergy] % vim APKBUILD
dlin@cfw5 ~/aports/testing/synergy (git)-[new-synergy] % git diff
diff --git a/testing/synergy/APKBUILD b/testing/synergy/APKBUILD
index 92bb179bc3..7d0d0c10ae 100644
--- a/testing/synergy/APKBUILD
+++ b/testing/synergy/APKBUILD