大体上按照官网wiki
把自己加入libvirt这个组就能解决。
pacman -Si libvirt查看依赖,为了支持nat需要安装ebtables和dnsmasq
大体上按照官网wiki
把自己加入libvirt这个组就能解决。
pacman -Si libvirt查看依赖,为了支持nat需要安装ebtables和dnsmasq
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| simple version of auc roc calculate | |
| ''' | |
| import numpy as np | |
| def area(x, y): |
| #include <fstream> | |
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <boost/regex.hpp> | |
| #include <boost/lexical_cast.hpp> | |
| #include <unordered_map> | |
| #include <cmath> | |
| struct Node { |
| // Based on tinrtgu's Python script here: | |
| // https://www.kaggle.com/c/avazu-ctr-prediction/forums/t/10927/beat-the-benchmark-with-less-than-1mb-of-memory | |
| package main | |
| import ( | |
| "encoding/csv" | |
| "os" | |
| "strconv" | |
| "hash/fnv" | |
| "math" |
| #define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */ | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <limits.h> | |
| #include <string.h> | |
| struct entry_s { | |
| char *key; | |
| char *value; |
| package main | |
| import ( | |
| "os" | |
| "fmt" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and | |
| // a slice of URLs found on that page. |
| #!/usr/bin/env python3 | |
| # encoding: utf-8 | |
| import ipaddress | |
| from random import shuffle | |
| #iprange = ipaddress.ip_network('2800:3f0:4000::/36') | |
| iprange = ipaddress.ip_network('2607:f8b0:4005:802::1002/112', strict=False) |
| <% if(theme.mathjax) {%> | |
| <%- partial('mathjax')%> | |
| <% } %> |
| <?xml version="1.0"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <!-- | |
| Target dots per inch | |
| --> | |
| <match target="pattern"> | |
| <edit name="dpi" mode="assign" > |
| tom@nextzone ~/Projects/pcsclient $ python client.py ~/Downloads/2013国庆环青海湖.zip | |
| Namespace(file='/home/tom/Downloads/2013\xe5\x9b\xbd\xe5\xba\x86\xe7\x8e\xaf\xe9\x9d\x92\xe6\xb5\xb7\xe6\xb9\x96.zip', token='token/access_token.txt') | |
| Traceback (most recent call last): | |
| File "client.py", line 26, in <module> | |
| pcs.upload('/apps/gentoo/' + os.path.basename(args.file), f) | |
| File "/home/tom/.local/lib64/python2.7/site-packages/baidupcs/api.py", line 130, in upload | |
| files=files, **kwargs) | |
| File "/home/tom/.local/lib64/python2.7/site-packages/baidupcs/api.py", line 26, in wrapper | |
| response = func(*args, **kwargs) | |
| File "/home/tom/.local/lib64/python2.7/site-packages/baidupcs/api.py", line 62, in _request |