This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <errno.h> | |
void main() { | |
char filename[] = "/tmp/out.txt"; | |
int fd = open(filename, O_RDWR | O_CREAT | O_TRUNC | O_APPEND, S_IXUSR | S_IWUSR | S_IRUSR); | |
printf("fd: %d errno: %d\n", fd, errno); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rmprocs() | |
# [Pkg.rm(x[1]) for x in Pkg.installed()] | |
# Pkg.update() | |
# # [Pkg.add(x) for x in {"JSON","HDF5","Nettle"}] | |
# for x in Pkg.available() | |
# try | |
# Pkg.add(x) | |
# catch e | |
# dump(e) | |
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetching path ‘/nix/store/s1sk7p2q27ijdz38la67pl860gf7f8s5-perl-DBD-SQLite-1.42’... | |
*** Downloading ‘http://cache.nixos.org/nar/17y01zvjacxc25cd5sanf7f586qjnanpzjzz9d7pb4i6phj45khh.nar.xz’ to ‘/nix/store/s1sk7p2q27ijdz38la67pl860gf7f8s5-perl-DBD-SQLite-1.42’... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 89808 100 89808 0 0 211k 0 --:--:-- --:--:-- --:--:-- 212k | |
building path(s) ‘/nix/store/bz5bngwd1sxwxcc1cqdhzgmfsx3z4xd6-stage-2-init.sh’ | |
error: a ‘x86_64-linux’ is required to build ‘/nix/store/h9rfm77y2z52xj3vp80b1cnhp91d9smx-stage-2-init.sh.drv’, but I am a ‘x86_64-darwin’ | |
error: unable to build all machine configurations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: a ‘x86_64-linux’ is required to build ‘/nix/store/h7s2kgq77gw3bv8pr8pac87kvr6r5ab0-users-groups.json.drv’, but I am a ‘x86_64-darwin’ | |
error: unable to build all machine configurations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> versioninfo() | |
Julia Version 0.3.8 | |
Commit 79599ad* (2015-04-30 23:40 UTC) | |
Platform Info: | |
System: Darwin (x86_64-apple-darwin13.4.0) | |
CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz | |
WORD_SIZE: 64 | |
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) | |
LAPACK: libopenblas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script installs nix from source into the current working directory. | |
set -e | |
export TARGET=$(pwd) | |
export BUILDTMP=/tmp/install-nix-here | |
export BUILDTMPESC=$(echo $BUILDTMP | sed -e's/\//\\\//g') | |
if [ "$(ls -A $TARGET)" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rene@cn2:~ $ rm -rf .julia | |
rene@cn2:~ $ julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" to list help topics | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.2.0-prerelease+3743 | |
_/ |\__'_|_|_|\__'_| | Commit fc445f8* 2013-09-16 05:29:41 UTC | |
|__/ | x86_64-redhat-linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> Pkg.add("HttpServer") | |
INFO: Installing Calendar v0.4.0 | |
INFO: Installing FactCheck v0.1.0 | |
INFO: Installing HttpServer v0.0.3 | |
INFO: Installing GnuTLS v0.0.0 | |
INFO: Installing HttpParser v0.0.4 | |
INFO: Installing HttpCommon v0.0.2 | |
INFO: Installing ICU v0.0.0 | |
INFO: Installing UTF16 v0.2.0 | |
INFO: Running build script for package GnuTLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rene@cirdesk3:julia $ julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" to list help topics | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.2.0-prerelease+3743 | |
_/ |\__'_|_|_|\__'_| | Commit fc445f8* 2013-09-16 05:29:41 UTC | |
|__/ | x86_64-apple-darwin12.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rene@cirdesk3:~ $ DYLD_LIBRARY_PATH=/Users/rene/local/julia/usr/lib:/usr/lib julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "help()" to list help topics | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.2.0-prerelease+3743 | |
_/ |\__'_|_|_|\__'_| | Commit fc445f8* 2013-09-16 05:29:41 UTC | |
|__/ | x86_64-apple-darwin12.4.0 |
OlderNewer