Here's a quick'n'dirty work around to install torch-svm:
Clone the repo
git clone [email protected]:koraykv/torch-svm.git && cd torch-svm
Here's a quick'n'dirty work around to install torch-svm:
Clone the repo
git clone [email protected]:koraykv/torch-svm.git && cd torch-svm
diff --git a/src/Makefile b/src/Makefile
index c558003..39676b8 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -57,7 +57,7 @@ CCOPT_mips=
#
# ------- | |
# cfsm | |
# ------- | |
# see: http://www.mindrot.org/projects/cfsm/ | |
# Build (tested on Mac OS X 10.9.3) | |
cvs -d :ext:[email protected]:/cvs checkout cfsm mtemplate | |
make -C mtemplate | |
make -C cfsm CPPFLAGS='-D_FORTIFY_SOURCE=0' | |
mkdir /usr/local/share/cfsm |
# Get QuickBlob here: https://github.com/keenerd/quickblob | |
# | |
# QuickBlob comes as a C library. To use it within your own | |
# program you need to implement a few functions: | |
# https://github.com/keenerd/quickblob/blob/a2502b0/quickblob.h#L52-L72 | |
# | |
# QuickBlob comes with a command-line tool that depends on DevIL library | |
# but you are free to use your own image processor while integrating the | |
# library into your program. | |
cd /path/to/quickblob |
The Tokyo Cabinet B+tree database (a.k.a TCBDB
) is implemented on-top of the
hash database (TCHDB
) that acts as the persistence layer.
Note: the same occurs with Tokyo table database (
TCTDB
) which is also a wrapper around theTCHDB
(the table database can be thought as a document oriented database with querying capabilities).
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> /* strtoumax */ | |
#include <stdbool.h> | |
#include <errno.h> | |
static bool str_to_uint16(const char *str, uint16_t *res); | |
int | |
main(int argc, char *argv[]) |
I suffer from a nagging, constant twitch to check the latest tech headlines.
On good mornings, I have time to read my RSS feeds. Most mornings, however,
# Create a reference folder with some data | |
mkdir foo | |
echo "hey" > foo/A.txt | |
echo "scm" > foo/B.txt | |
echo "git" > foo/C.txt | |
# Generate the list of hashes for each file | |
# -b = bare mode (strips any leading directory | |
# information from displayed filenames) | |
md5deep -b foo/* > hashes.txt |
require "ohm" | |
class Doc < Ohm::Model | |
attribute :colour | |
index :colour | |
end | |
Doc.create(:colour => "red") | |
Doc.create(:colour => "green") | |
Doc.create(:colour => "red") |
CURLOPT_DNS_CACHE_TIMEOUT
: controls the TTL of a DNS cache entry. The default is 60s. Use -1 to keep the entry forever.CURLOPT_RESOLVE
: pre-populate the DNS cache manually.CURLOPT_DNS_SERVERS
: use alternate DNS servers (instead of system default ones). Warning: works only with c-ares (and it requires c-ares version >= 1.7.4),CURLOPT_DNS_USE_GLOBAL_CACHE
: cache DNS queries between easy handles. Warning: this is not thread-safe and documented as deprecated. Use the share interface instead (see below).