由买买提看人间百态

topics

全部话题 - 话题: cols
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
b*****e
发帖数: 14299
1

居然有争议说这部自传是虚构的,一大段讨论,自己看吧。
Guy Sajer's book THE FORGOTTEN SOLDIER is rather notorious in the historical
community; the book purports to be the memoirs of an Alsatian who served
with the Division for the last years of the Second World War. Much has been
written on the subject of whether or not the book is a true story or not.
Two articles are presented here, plus an exchange of letters to the editor
to an American military journal. Those curious may wish to obtain a copy of
their own, and to inv... 阅读全帖
t****g
发帖数: 35582
2
来自主题: PhotoGear版 - 住NYC附近的真不用喊贵
我原来还以为你们那里有多贵呢,原来是无鸭梨呀
White Plains is 15% cheaper than Newton.
http://www.bestplaces.net/col/?salary=100000&city1=52545560&cit
Princeton is 7% cheaper than Newton.
http://www.bestplaces.net/col/?salary=100000&city1=52545560&cit
O******e
发帖数: 748
3
来自主题: Sound_of_Music版 - Four Seasons ~ Vivaldi
La Primavera 《春》
Allegro
Giunt' è la Primavera e festosetti
La Salutan gl' Augei con lieto canto,
E i fonti allo Spirar de' Zeffiretti
Con dolce mormorio Scorrono intanto:
Vengon' coprendo l' aer di nero amanto
E Lampi, e tuoni ad annuntiarla eletti
Indi tacendo questi, gl' Augelletti;
Tornan' di nuovo al lor canoro incanto:
Largo
E quindi sul fiorito ameno prato
Al caro mormorio di fronde e piante
Dorme 'l Caprar col fido can' à lato.
Allegro
Di pastoral Zampogna al suon festante
Danzan Ninf... 阅读全帖
S*******h
发帖数: 7021
4
【 以下文字转载自 USANews 讨论区 】
发信人: gemini2012 (双子AB), 信区: USANews
标 题: 克林顿夫妇手上有多少条人命?(转载)
发信站: BBS 未名空间站 (Thu Jun 30 08:39:17 2016, 美东)
新闻下面一个人的留言:令人毛骨悚然的冷笑话
THE CLINTON SAGA.....
Just a quick refresher course - lest we forget what has happened to many
“friends” of the Clintons.
1- James McDougal – Clintons’ convicted Whitewater partner died of an
apparent heart attack, while in solitary prison confinement. He was a key
witness in the Ken Starr’s investigation.
2 - Mary Mahoney - A former White House... 阅读全帖
H********g
发帖数: 43926
5
来自主题: Joke版 - 大白鼠
1957年,5个美国军官志愿(加上一个非志愿的摄影师)参加一项实验。他们站在一个
标记为“爆点5人”的牌子旁边,等待一架F89战机发射的一枚2000吨级核弹。这枚核弹
将在他们头上6000米处爆炸。
这个实验的最终目的是要说服美国人民,在本土上空使用小当量核弹击落来袭的苏联核
弹基本可行。
http://www.npr.org/sections/krulwich/2012/07/16/156851175/five-men-agree-to-stand-directly-under-an-exploding-nuclear-bomb
https://www.youtube.com/watch?v=BlE1BdOAfVc
五个志愿者:
Col. Sidney C. Bruce — died in 2005 (age 86)
Lt. Col. Frank P. Ball — died in 2003 (age 83)
Maj. John Hughes — very common name, but I'm guessing he is Maj. John W.
Hughes II (born... 阅读全帖
S***e
发帖数: 2072
6
来自主题: Arts版 - frederick frieseke
我在图书馆看到两本:
Frederick Carl Frieseke : the evolution of an American impressionist / guest
curator, Nicholas Kilmer ; catalogue and exhibition coordinator, Linda McWh
orter ; essays by Nicholas Kilmer ... [et al.].
218 p. : ill. (some col.) ; 32 cm.
Frederick Frieseke, 1874-1939 : a retrospective exhibition / organized by th
e Telfair Academy of Arts and Sciences, Savannah, Georgia, Nov. 5-Dec. 5, 19
74 ; with the participation of Hirschl and Adler Galleries, New York City, D
ec. 11-Jan. 20, 1975 .... 阅读全帖
l******g
发帖数: 764
7
来自主题: Belief版 - 上帝 - 奴隶制度的总头目
Col 3:22 你们作仆人的,要凡事听从你们肉身的主人,不要只在眼前事奉,像是讨人
喜欢的,
总要存心诚实敬畏主。
Col 3:23 无论作什么,都要从心里作,像是给主作的,不是给人作的。
colossians : 22) Slaves, obey your earthly masters in everything;
colossians : 23) Whatever you do, work at it with all your heart, as working
for the Lord, not for men.
请注意中英文的差异,在英文中是奴隶slave,翻译成中文却成了仆人。基督教的骗人
功夫可见一斑!
上帝在麻痹广大奴隶思想上非常擅长,他要求奴隶们一心一意地服侍奴隶主,却又要他
们把服侍奴隶主当成是在服侍神,企图在精神上彻底摧毁掉奴隶们的反抗意志,手段之
毒辣,惊世骇俗!
他的这一手不仅用在奴隶身上,还用在了广大妇女同志身上。上帝有一句名言:“女人
要顺服自己的男人,就像顺服主一样”,这句话彻底摧毁了广大基督徒妇女的反抗意识
,她们天真地以为服侍自己的老公就是在服侍
l******g
发帖数: 764
8
来自主题: TrustInJesus版 - 奴隸制度是基督徒廢除的
Col 3:22 你们作仆人的,要凡事听从你们肉身的主人,不要只在眼前事奉,像是讨人
喜欢的,总要存心诚实敬畏主。
Col 3:23 无论作什么,都要从心里作,像是给主作的,不是给人作的。
colossians : 22) Slaves, obey your earthly masters in everything;
colossians : 23) Whatever you do, work at it with all your heart, as
working
for the Lord, not for men.
请注意中英文的差异,在英文中是奴隶slave,翻译成中文却成了仆人。基督教的骗人
功夫可见一斑!
G*******s
发帖数: 4956
9
来自主题: TrustInJesus版 - 海德堡要理问答主日03
【 以下文字转载自 BibleStudy 俱乐部 】
发信人: Godwithus (神与我们同在), 信区: BibleStudy
标 题: 海德堡要理问答主日03
发信站: BBS 未名空间站 (Thu Mar 29 15:06:35 2012, 美东)
http://blog.sina.com.cn/s/blog_622134fd01014ogf.html
海德堡要理问答主日03
来自CCWiki华人基督徒百科(Godwithus神同在网)
目录
1 英文版
2 英文2011版
3 赵中辉版
4 钱曜诚版
5 陈达/王志勇版
6 基督教要义圣经课程
7 参考链接
英文版
3. Lord's Day
Q. 6. Did God then create man so wicked and perverse?
A.
By no means;
but God created man good, (a)
and after his own image, (b)
in true righteousness and holiness, that he might rightly know G... 阅读全帖
C*****e
发帖数: 367
10
来自主题: TrustInJesus版 - 海德堡要理问答主日14
海德堡要理问答主日14
来自CCWiki中国基督徒百科(Godwithus神同在网)
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 参考链接
英文版
14. Lord's Day
Q. 35.
What is the meaning of these words "He was conceived by the Holy Ghost, born
of the virgin Mary"?
A.
That God's eternal Son, who is, and continues (a)
true and eternal God, (b)
took upon him the very nature of man, of the flesh and blood of the virgin
Mary, (c)
by the operation of the Holy Ghost; (d)
that he might also be the true seed of David, (e)
like unto his brethren ... 阅读全帖
C*****e
发帖数: 367
11
来自主题: TrustInJesus版 - 海德堡要理问答主日16
海德堡要理问答主日16
来自CCWiki中国基督徒百科(Godwithus神同在网)
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
16. Lord's Day
Q. 40.
Why was it necessary for Christ to humble himself even "unto death"?
A.
Because with respect to the justice and truth of God, (a)
satisfaction for our sins could be made no otherwise, than by the death of t
he Son of God. (b)
(a) Gen.2:17. (b) Rom.8:3,4; Heb.2:9,14,15.
Q. 41.
Why was he also "buried"?
A.
Thereby to prove that he was really dead. (a)
(a) Matt.27:59,60; Luke... 阅读全帖
C*****e
发帖数: 367
12
来自主题: TrustInJesus版 - 海德堡要理问答主日17
海德堡要理问答主日17
来自CCWiki中国基督徒百科(Godwithus神同在网)
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
17. Lord's Day
Q. 45.
What does the "resurrection" of Christ profit us?
A.
First, by his resurrection he has overcome death, that he might make us part
akers of that righteousness which he had purchased for us by his death; (a)
secondly, we are also by his power raised up to a new life; (b)
and lastly, the resurrection of Christ is a sure pledge of our blessed resur
rection. (c)
(a) 1 Cor.15:16... 阅读全帖
C*****e
发帖数: 367
13
来自主题: TrustInJesus版 - 海德堡要理问答主日19
海德堡要理问答主日19
来自CCWiki中国基督徒百科(Godwithus神同在网)
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要以圣经课程版
6 链接参考
英文版
19. Lord's Day
Q. 50.
Why is it added,
"and sitteth at the right hand of God"?
A.
Because Christ is ascended into heaven for this end, that he might appear as
head of his church, (a)
by whom the Father governs all things. (b)
(a) Eph.1:20,21,23; Col.1:18. (b) Matt.28:18; John 5:22.
Q. 51.
What profit is this glory of Christ, our head, unto us?
A.
First, that by his Holy Spirit he pours out heav... 阅读全帖
C*****e
发帖数: 367
14
来自主题: TrustInJesus版 - 海德堡要理问答主日27 (转载)
【 以下文字转载自 BibleStudy 俱乐部 】
发信人: CCBible (华人基督徒圣经), 信区: BibleStudy
标 题: 海德堡要理问答主日27
发信站: BBS 未名空间站 (Tue Apr 17 15:20:04 2012, 美东)
发信人: CCBible (华人基督徒圣经), 信区: Church
标 题: 海德堡要理问答主日27
发信站: BBS 未名空间站 (Tue Apr 17 15:19:31 2012, 美东)
海德堡要理问答主日27
来自基督徒百科
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
27. Lord's Day
Q. 72.
Is then the external baptism with water the washing away of sin itself?
A.
Not at all: (a)
for the blood of Jesus Christ only, and the Holy Ghost cleanse us from all s
i... 阅读全帖
G*******s
发帖数: 4956
15
来自主题: TrustInJesus版 - 海德堡要理问答主日28
【 以下文字转载自 Church 俱乐部 】
发信人: Godwithus (神与我们同在), 信区: Church
标 题: 海德堡要理问答主日28
发信站: BBS 未名空间站 (Wed Apr 18 00:50:47 2012, 美东)
海德堡要理问答主日28
来自基督徒百科
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
Of The Holy Supper Of Our Lord Jesus Christ
28 Lord's Day
Q. 75.
How art thou admonished and assured in the Lord's Supper, that thou art a pa
rtaker of that one sacrifice of Christ, accomplished on the cross, and of al
l his benefits?
A.
Thus: That Christ has commanded me and all believers, to ea... 阅读全帖
C*****e
发帖数: 367
16
来自主题: TrustInJesus版 - 海德堡要理问答主日30
【 以下文字转载自 Church 俱乐部 】
发信人: CCBible (神同在圣经), 信区: Church
标 题: 海德堡要理问答主日30
发信站: BBS 未名空间站 (Mon Apr 23 01:29:01 2012, 美东)
海德堡要理问答主日30
来自基督徒百科
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
30. Lord's Day
Q. 80.
What difference is there between the Lord's supper and the popish mass?
A.
The Lord's supper testifies to us, that we have a full pardon of all sin by
the only sacrifice of Jesus Christ, which he himself has once accomplished o
n the cross; (a)
and, that we by the Holy Ghost ar... 阅读全帖
C*****e
发帖数: 367
17
来自主题: TrustInJesus版 - 海德堡要理问答主日33
【 以下文字转载自 Church 俱乐部 】
发信人: CCBible (神同在圣经), 信区: Church
标 题: 海德堡要理问答主日33
发信站: BBS 未名空间站 (Wed Apr 25 13:09:29 2012, 美东)
海德堡要理问答主日33
来自基督徒百科
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
33. Lord's Day
Q. 88.
Of how many parts does the true conversion of man consist?
A.
Of two parts; of the mortification of the old, and the quickening of the new
man. (a)
(a) Rom.6:1,4-6; Eph.4:22-24; Col.3:5-10; 1 Cor.5:7; 2 Cor.7:10.
Q. 89.
What is the mortification of the old man?
A.
It is a since... 阅读全帖
C*****e
发帖数: 367
18
来自主题: TrustInJesus版 - 海德堡要理问答主日34
【 以下文字转载自 Church 俱乐部 】
发信人: CCBible (神同在圣经), 信区: Church
标 题: 海德堡要理问答主日34
发信站: BBS 未名空间站 (Thu Apr 26 01:34:41 2012, 美东)
海德堡要理问答主日34
来自基督徒百科
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
34. Lord's Day
Q. 92.
What is the law of God?
A.
God spake all these words, Exodus 20:1-17 and Denteronomy 5:6-21, saying: I
am the LORD thy God, which have brought thee out of the land of Egypt, out o
f the house of bondage.
1st commandment:
Thou shalt have no other gods before me.
2nd commandment:... 阅读全帖
C*****e
发帖数: 367
19
来自主题: TrustInJesus版 - 海德堡要理问答主日36
【 以下文字转载自 Church 俱乐部 】
发信人: CCBible (神同在圣经), 信区: Church
标 题: 海德堡要理问答主日36
发信站: BBS 未名空间站 (Sun Apr 29 02:21:12 2012, 美东)
海德堡要理问答主日36
来自基督徒百科
目录
1 英文版
2 英文2011版
3 赵中辉版
4 陈达/王志勇版
5 基督教要义圣经课程版
6 链接参考
英文版
36. Lord's Day
Q. 99.
What is required in the third commandment?
A.
That we, not only by cursing (a)
or perjury, (b)
but also by rash swearing, (c)
must not profane or abuse the name of God; nor by silence or connivance be p
artakers of these horrible sins in others; (d)
and, briefly, that we use th... 阅读全帖
m****r
发帖数: 1904
20
来自主题: TrustInJesus版 - define evil
EVIL
from http://www.jw.org
That which results in pain, sorrow, or distress. In order to convey the
correct thought in English, the very comprehensive Hebrew word raʽ is
variously translated as “bad,” “gloomy,” “ugly,” “evil,” “
calamitous,” “malignant,” “ungenerous,” and “envious,” depending upon
the context. (Ge 2:9; 40:7; 41:3; Ex 33:4; De 6:22; 28:35; Pr 23:6; 28:22)
The Greek word ka·kos′ may be defined as that which is (1) morally evil
and (2) destructive; among the ways it has been t... 阅读全帖
P******l
发帖数: 1648
21
Dangerous Parenting Advice From Abraham Piper
Tuesday, June 25, 2013
SUNNY SHELL
In my last post, I shared why I no longer follow John Piper and "Desiring
God" ministry, but I continue to love him, pray for him, the ministry, and
anyone who's following them, to practice discernment and test everything
from anyone (including me of course) with the Word of God, which alone is
perfect.
What motivated me to share this is my love for God, His Word and for my
fellow brothers and sisters in Christ who ... 阅读全帖
x*r
发帖数: 11073
c*********e
发帖数: 2
23
谢谢大家的帮助。
我暂时没有时间系统地去学习这方面的知识。我现在想将用户在FORM里填写的东西存在服
务器里我的子目录下的文本文挡里或发到我的电子信箱。在action处该怎么填。以下是我
写的text程序。




谢谢!

主页放
web
publish this

l********a
发帖数: 1154
24
如果只是为了完成任务,用matlab吧
代码==
============================
disp('点个数:');
N = 4
disp('随机生成的N个点(每行是一个(x,y):');
ptMat = randi(100,[N,2])
disp('距离矩阵:');
distMat = squareform(pdist(ptMat))
disp('距离阀值(为了演示,选了距离的均值):');
threshold = mean2(distMat)
disp('得到上三角(下三角也行),去除重复:');
distMat = triu(distMat)
disp('找到距离小于threshold的点对(去除重复):');
idxMat = triu(distMat disp('找到距离小于threshold的点对序号(每行表示一对):');
[row,col] = find(idxMat);
[row,col]
=========================
运行结果:
=============================
点个数:
N... 阅读全帖
c***y
发帖数: 114
25
来自主题: Database版 - a simple question about insert
ft, it's either
insert into table(col) values(value)
or update table set col = value
ur sql is wrong
c*****t
发帖数: 1879
26
来自主题: Database版 - Oracle / DB2 问题
Oracle 应该支持 index on expression 吧。
比如 index on MyEval (col),然后每次碰到
where MyEval (col) > 1000
就用到该 index 。
这样的话,就可以做很多 fansy 的东西。
S***k
发帖数: 370
27
来自主题: Database版 - Like 和 equal 啥区别?
The column was designed to hold customized input from users and not
specific to hold date time string.

Select *
From table
Where col = ‘2007’
Except
Select *
From table
Where col like ‘2007’
The number of returned rows is the difference between two queries. And all
of these records have 2007 in that column.
i****a
发帖数: 36252
28
来自主题: Database版 - remove special character
can you so something like
update tbl
set col = replace(col, '¿', '')
B*****g
发帖数: 34098
29
来自主题: Database版 - 问个简单的sql语句
Cannot check I/O now.
update col = col, SQL%ROWCOUNT in oracle is not 0
and those records are locked if no commit.
c*****d
发帖数: 6045
30
来自主题: Database版 - mysql index优化求助 (转载)
我没太看懂
你这个试验怎么做的?
a table with 300+M rows
count(*) costs 2 seconds?
另外你count where on no index take 12 seconds
是select count(index_col) where col = value1
还是select index_col where col = value1?
c*****d
发帖数: 6045
31
来自主题: Database版 - mysql index优化求助 (转载)
unique不能保证not null
optimizer如果用index fast full scan
怎么知道count(unique index col)中null值的个数?
虽然在你这个case里col原来曾经是pk
y****9
发帖数: 144
32
来自主题: Database版 - Doubts about clustered index
If I have a one-million row table without any index, let's say it has a col
called SSN and its values are unique. now i create a clustered index on SSN,
what will happen to the existing table rows?
For example, let's say each page can only hold two rows, at the begining,
rows with ssn=1 and ssn=4 are in page no 1; rows with ssn=2 and ssn=3 are in
page no 2. now i create a clustered index on ssn col, at the end will
page no1 contains ssn=1,2 and page no 2 contains ssn= 3 and 4 ?
gy
发帖数: 620
33
来自主题: Database版 - SQL问题请教: add one more column
I did a test on this, and the conclusion is "字段id和原来表中的物理排列顺序
相关"
Here is the test code:
-- 1. First create a table with only one column
CREATE TABLE dbo.test(col varchar(5));
-- 2. Insert some test data
DECLARE @id int
SET @id = 1
WHILE(@id <= 5000)
BEGIN
INSERT INTO dbo.test(col)
VALUES(LEFT(CAST(NEWID() AS VARCHAR(50)), 5));
SET @id = @id + 1;
END
SELECT * FROM dbo.test
-- 3. Now, add the identity column:
ALTER TABLE dbo.test
ADD TID INT IDENTITY;
-- 4. Check the result compared w... 阅读全帖
i*****w
发帖数: 75
34
建议一种方法:
1) UNPIVOT TableA, You will get:
ID1, COL1, CONTENT1
ID2, COL2, CONTENT2
ID3, COL3, CONTENT3
2) Join TableA and TableB by LIKE.
EXAMPLE:
-- Prepare Source Table
DECLARE @tblA Table (ID int identity, col1 varchar(100), col2 varchar(100),
col3 varchar(100))
INSERT INTO @tblA (col1, col2, col3)
SELECT 'this is a test', 'I am not sure', 'Give it a try.'
UNION ALL
SELECT 'who cares', 'No one knows', 'Why not'
UNION ALL
SELECT 'it is impossible', 'please let me know', 'be honest'
-- ... 阅读全帖
s**********o
发帖数: 14359
35
我的SQL SERVER一般是这样的
select
t1.col1,
t2.col1,...
from
table1 t1 with (nolock)
left outer join
table2 t2 with (nolock) on
(
t1.col = t2.col
)
l******9
发帖数: 579
36
【 以下文字转载自 Quant 讨论区 】
发信人: light009 (light009), 信区: Quant
标 题: SQL multiply all values of a column in table
发信站: BBS 未名空间站 (Wed Jun 25 17:35:13 2014, 美东)
I need to multiply all float values of a column in table if the column value
is positive. If I find a value is null or negative or not numeric, I raise
an error in SQL server 2008 R2.
given table t0:
col
1.5
2
given table t1:
col
2
-1
5
0
null
NaN
For t0 I should get 3, for t1, I should raise an error.
... 阅读全帖
x******m
发帖数: 736
37
来自主题: Database版 - 请教一个sql问题
table2用来表明table1中每个col的category,比如你的table
id col value col_id category
1 身高,1米八 3 body_index
1 体重,300斤 4 body_index
1 职业,学生 1 other_index
2 身高,1米七 3 body_index
WB
发帖数: 170
38
来自主题: DotNet版 - h
how to clear all value of cell in datagridview?
how to copy rows to another datagridview?
how to locate a cell with row/col id?
set to the row or colume or cell i want (set to curor to the row /col/cell?
i canot find moveto() such functions.
can paged the datagrid ?set a datagrid's page of rows?
how to remove the datagrid's all rows and columes?
i tried for i=0 tp dv.row.cont; i++
dv1.rows.removeat(i)
but got exceptoin. not commit the new row.
c*****t
发帖数: 1879
39

你是指
select foo ();
工作,还是
insert table values (foo ());
工作,还是
update table set col = foo () where col = ...;
工作?
stored procedure 没写好的话,是可以出现前两个“工作”,但是到 update
的时候出问题的情形。比如,foo () 的结果是一 complex data structure,
这个 data structure 可能写的人没注意,只是 memory resident 的。但是
存到硬盘的结够必须是另外一种形式(比如 size header 等),因为有些
database 出于 performance 的考虑,所有的 in-memory data structure
得和硬盘 上的结构一一对应,并不提供 I/O wrapper 。这样的话,
in memory operation 是可以工作的。但是 store / load 在 database 里的
只是 memory pointer,没有实际的
n******7
发帖数: 12463
40
来自主题: Linux版 - 请教一个打印列的问题
用awk算列数不划算,而且可能出错,如果每一行都有空白列的话,换成grep好点吧...
---
只会用shell基本功能,蛋疼的写了一下,觉得这样搞还不如用perl/python了...
#ncol=`awk '{print NF}' $1 | sort -r | head -1`
ncol=`head -1 $1 | grep -o $'\t' | wc -l`
ncol=$((ncol+1))
nrow=`wc -l $1| cut -f 1 -d ' ' `
good_cols=()
for ((i=1;i<=$ncol;i++))
do
non_blank=`cut -f $i $1 | grep -v '^$' |wc -l | cut -f 1 -d ' '`
if (( $(echo "$non_blank == $nrow" | bc -l) ))
then
good_cols=("${good_cols[@]}" $i)
fi
done
SAVE_IFS=$IFS
IFS=","
cols="${good_cols[*]... 阅读全帖
n******7
发帖数: 12463
41
来自主题: Linux版 - 请教一个打印列的问题
发现脑残了,row number 不需要算
要是能利用上paste,也许可以不用再cut一遍
ncol=`head -1 $1 | grep -o $'t' | wc -l`
ncol=$((ncol+1))
good_cols=()
for ((i=1;i<=$ncol;i++))
do
if !(cut -f $i $1 | grep -m 1 '^$' > /dev/null )
then
good_cols=("${good_cols[@]}" $i)
fi
done
SAVE_IFS=$IFS
IFS=","
cols="${good_cols[*]}"
IFS=$SAVE_IFS
cut -f $cols $1
t*********s
发帖数: 5
42
what shell, (t)csh or bash ...

the
$column in shell is different from $column in awk
for bash(no space allowed around the '='):
value=$( awk -v col=$column '{ print $col }' < input )
H***a
发帖数: 735
43
Can also use like:
/** 1D **/
int * foo( int size )
{
return malloc( sizeof(int) * size);
}
/** 2D **/
int ** foo( int row, int col )
{
int ** ptr = (int **) malloc( sizeof(int *) * row);
int i = 0;
for (i=0; i < row; ++i)
{
ptr[i] = (int *) malloc( sizeof(int) * col);
}
return ptr;
}
d****n
发帖数: 1637
44
来自主题: Programming版 - 【包子求助】20M*20M的loop怎么搞?
load file A col 1 & 2, into two array A1 A2
sort these two array
load file B col 1 ,
for each b in B:
binary_search b in A1
binary_search b in A2
done
//you can read B line by line, or load all B into memory.
Sort B also can help on speed
S*A
发帖数: 7142
45
里面有高人给出八皇后的 python 解法,太太牛了。
瞻仰一下。
from itertools import permutations as perm
cols = perm(range(8))
def OK(s):
sl = set(r-c for r,c in enumerate(s))
bs = set(r+c for r,c in enumerate(s))
return len(sl) == len(bs) == 8
ans = [c for c in cols if OK(c)]
w*****e
发帖数: 721
46
来自主题: Programming版 - 脚本问题求教
#!/usr/local/bin/python3
import re;
fh=open('input.txt','r');
all=[];
for line in fh:
line=line.rstrip('\n');
arr=re.split('\s+',line)
all.extend(arr);
col=2;
for i in range(len(all)):
if ((i > 0) and (i % col == 0)):
print("\n", end='');
elif (i != 0):
print(" ", end='');
print(all[i].rstrip('\n'),end='');
z****e
发帖数: 54598
47
来自主题: Programming版 - 竟然有人鼓吹自动生成代码的?
定义的变量你不知道是啥东西
比如col,cols,set,sets,ss
这种乱七八糟的变量满天飞
压根没有声明,就算看到了声明
你也不知道中间是不是被改动过
到最后乱七八糟
一种方法主要说的是动词,函数
而非变量,变量名这个你控制不了
java一旦定下来,就不允许换类型
ide你可以通过快捷查找定位变量的声明
然后你看到声明,就知道,哦,是这个东西
然后不会变来变去
T*******n
发帖数: 493
48
\documentclass{article}
\begin{document}
\begin{tabular}{p{1in}|p{1in}}
\hline
\multicolumn{2}{c}{the first row} \\
\hline
row 2 col 1 & row 2 col 2 \\
\hline
\end{tabular}
\end{document}
a******h
发帖数: 908
49
来自主题: Accounting版 - 求教: ExceL 问题 版上大牛请进。
Add an additional col, this is for individual date value. Input workday(b2)
in the new col then drag it to apply to all the data
c*****g
发帖数: 66
50
来自主题: Biology版 - 新手请教一个 R 作图的问题
你把这俩行去了试试
##
panel.cor.res(x, y, digits = 2, meth = "spearman", cex.cor=1)
panel.lm(x, y, col =1, bg = NA, pch = 16, cex = 1,
col.line = 2, lty = 1)
##
这俩行不需要的
另外
head(data)
看看你的数据是不是被读进来了

upper.
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)