由买买提看人间百态

topics

全部话题 - 话题: cgits
(共0页)
l*****i
发帖数: 3929
1
【 以下文字转载自 Linux 讨论区 】
【 原文由 longhei 所发表 】
有这样一段perl script:
use strict;
open(my $fd," my(@cgits,@barits);
while(<$fd>) {
$_ =~ s/^\s+//; # trim leading white space
my($iter,$res,$obj,$feas,$dual,$comp,$its,$mu,$junk) = split(/\s+/,$_);
next if ! defined $its || $its !~ /^\d+$/; # skip if seventh token not
integer
push(@cgits,$its);
push(@barits,$its) if $mu > 2.1e-8;
}
有这样几个问题请教:
1。“use strict”是干什么用的?
2。open(my $fd,"
r*******e
发帖数: 7583
G*****7
发帖数: 1759
3
来自主题: JobHunting版 - Twitter电面经
it's a trap! you just lost minutes for the next problem and points for cli.
you should just tell him to "tac theFileToBeReversed".
here is how it's done.
http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/tac.c

vector
w*******s
发帖数: 138
x****o
发帖数: 21566
5
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
author Maisa Roponen <[email protected]
/* */> 2014-11-24 07:54:17 (
GMT)
committer Jonathan Corbet <[email protected]
/* */> 2014-11-24 14:40:35 (GMT)
commit 690b0543a813b0ecfc51b0374c0ce6c8275435f0 (patch)
tree afff985a0c48f307ae3752735eb6aa7d1da5c649
parent 1f999d14fc7f772fbdd19151ebe5ee081f53dd49 (diff)
Documentation: fix formatting to make 's' happy
"That letter [the last s] is sad because all t... 阅读全帖
p**o
发帖数: 3409
6
不知道版上有没有用Python做科学计算的同好,
本人近日在带Lion的新MBA上安装Python科学计算包遇到了困难,
现把失败经历小结如下,希望后来人不要重走弯路,
如果能为本人指出一条“正路”就更感谢。
尝试1. MacPorts
macports是我第一个试的,下面这些包可以通过编译:gnuplot libsvm py27-numpy
py27-scipy py27-matplotlib python27-doc py27-sympy py27-ipython py27-
networkx py27-pymc py27-django py27-libdnet py27-lint py27-mysql py27-pip
py27-ply py27-pygraphviz py27-pyrex py27-rpy2 py27-scientific py27-sqlite
py27-svn py27-tables py27-tornado igraph py27-igraph py27-numexpr py27-pp
py27-cython py27-psyco py27-twisted... 阅读全帖
s*****g
发帖数: 1055
7
来自主题: Linux版 - 怎样保证隐私?
This is what you are looking for:
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable
Debian Wheezy has this feature, never used it though.
n****1
发帖数: 1136
c**t
发帖数: 2744
9
use strict; # all variables should be declared
my $fd; # define file handle
my (@cgits, @barits) #declare two array.
(共0页)