z*******3 发帖数: 13709 | 1 看了一遍我笑了
第一,楼主你这个高级黑啊
我都分不清楚你到底是在认同我还是在反对我
当然你有其他的原因,也行,蛮好
世界是多样的,但是你我在结果上的一致就可以了
你重复了我至少三个观点,都只说了原因不同
但是对结果居然均表示赞同
这就够了,我很感谢你,其实完全可以求同存异的
我不想奚落你,但是你的错误还是要改正
哈哈
第二
呢,本着讨论的态度,我点解你一点点
你应该把我以前贴认真看看再说
不要以为只有你知道enum是个class,我早就说过enum是有限个的class
java只有一种结构,就是class,但是我隐约觉得这是白说,估计没几个看懂
这是流行答案
No, you can't do this in Java. Aside from anything else, d would then
presumably be an instance of A (given the normal idea of "extends"), but
users who only knew about A wouldn't know about it - which defeats the poi... 阅读全帖 |
|
z*******3 发帖数: 13709 | 2 看了一遍我笑了
第一,楼主你这个高级黑啊
我都分不清楚你到底是在认同我还是在反对我
当然你有其他的原因,也行,蛮好
世界是多样的,但是你我在结果上的一致就可以了
你重复了我至少三个观点,都只说了原因不同
但是对结果居然均表示赞同
这就够了,我很感谢你,其实完全可以求同存异的
我不想奚落你,但是你的错误还是要改正
哈哈
第二
呢,本着讨论的态度,我点解你一点点
你应该把我以前贴认真看看再说
不要以为只有你知道enum是个class,我早就说过enum是有限个的class
java只有一种结构,就是class,但是我隐约觉得这是白说,估计没几个看懂
这是流行答案
No, you can't do this in Java. Aside from anything else, d would then
presumably be an instance of A (given the normal idea of "extends"), but
users who only knew about A wouldn't know about it - which defeats the poi... 阅读全帖 |
|
z*******3 发帖数: 13709 | 3 看了一遍我笑了
第一,楼主你这个高级黑啊
我都分不清楚你到底是在认同我还是在反对我
当然你有其他的原因,也行,蛮好
世界是多样的,但是你我在结果上的一致就可以了
你重复了我至少三个观点,都只说了原因不同
但是对结果居然均表示赞同
这就够了,我很感谢你,其实完全可以求同存异的
我不想奚落你,但是你的错误还是要改正
哈哈
第二
呢,本着讨论的态度,我点解你一点点
你应该把我以前贴认真看看再说
不要以为只有你知道enum是个class,我早就说过enum是有限个的class
java只有一种结构,就是class,但是我隐约觉得这是白说,估计没几个看懂
这是流行答案
No, you can't do this in Java. Aside from anything else, d would then
presumably be an instance of A (given the normal idea of "extends"), but
users who only knew about A wouldn't know about it - which defeats the poi... 阅读全帖 |
|
c*********e 发帖数: 16335 | 4 Enumeration e=hashtable.elements();
while(e.hasMoreElements()){
System.out.println(e.nextElement());
}
Enumeration e=hashtable.keys();
while(e.hasMoreElements()){
System.out.println(hash.get(e.nextElement()));
}
网上google的。 |
|
S*A 发帖数: 7142 | 5 If member has own access function/slots etc,
Unless the class provide an enumerate function for you,
there is no way to enumerate all the members.
In that case, just read the documents. You seems using
some web DOM stuff. The documents should cover what
member is there. |
|
j***o 发帖数: 2842 | 6 我用linux的主要原因是要用latex写文章和slides,emacs具有很多很多软件不具备的
优势,主要是lisp语言的支持,能做很多的智能选择,定义快捷键等,这里就不多说了
linux的主要问题是驱动和一些乱七八糟的问题,还有不能用office系列。如果能安装
emacs在windows上,可以说是一个完美的解决计划。
用下面的方法来安装,就能实现,不建议任何从源码编译的安装方法,太麻烦了。
第一步,安装miktex系统,这个就是latex所需要的所有软件包,很简单,只要等就可
以了,不过,建议你安装完整版本。
第二步,下载emacs系统的binary for windows,地址是
http://ftp.gnu.org/gnu/emacs/windows/
最好安装最新版本:emacs-24.3-bin-i386.zip 是最新版本。解压到c:\program files
\下面,创建一个文件夹emacs-24.3
然后到产生的bin文件夹下运行addpm.exe会在启动文件夹下面安装icon等
第三步,安装gsview和ghostscript,到相应的网站下载安装即可,默认安... 阅读全帖 |
|
i***r 发帖数: 1035 | 7 【 以下文字转载自 Programming 讨论区 】
发信人: iiiir (哎呀我最牛), 信区: Programming
标 题: python code performance --- normal or too slow?
发信站: BBS 未名空间站 (Tue Jan 7 11:21:52 2014, 美东)
file is 2.5GB with 18,217,166 lines
my python script took about 20-30 minutes to finish
seems slow?
Thanks!!
input file data structure (showing first two lines, wrapped):
chromo pos ref alt dc1 dc2 dc3 dtm bas din
crw itb ptw spw isw irw inw ru1 ru2
ru3 im1 ... 阅读全帖 |
|
j***i 发帖数: 1278 | 8 看c++ template数书上有段
Types that involve unnamed class types or unnamed enumeration types cannot b
e template type arguments (unnamed classes or enumerations that are given a
name through a typedef declaration are OK).
An example illustrates these two exceptions:
template class List {
…
};
typedef struct {
double x, y, z;
} Point;
typedef enum { red, green, blue } *ColorPtr;
int main()
{
struct Association
{
int* p;
int* q;
};
List e |
|
n*******e 发帖数: 62 | 9 Abstract
1 – “Rose is a rose is a rose is a rose”, C# is case sensitive, that
sucks.
2 – The Switch clause
3 – Event-Handling code
4 –Stupid symbols
5 – Autocorrection in Visual Basic actually works
6 – Lack of supported functions, such as:IsNumeric,PMT, etc. but they don’
t exist in C#.
7 – That wretched semi-colon.Why do I have to end every line in C# with a
semi-colon?
8 – Arguments and variables.The order of words in a C# variable declaration
is wrong.the C# method of having to prefix argume... 阅读全帖 |
|
D**u 发帖数: 288 | 10 这个例子看起来很fancy啊,查了一下,Enumerable.ToDictionary
发现Enumerable Class有很多可以利用的
|
|
S*A 发帖数: 7142 | 11 里面有高人给出八皇后的 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)] |
|
i***r 发帖数: 1035 | 12 file is 2.5GB with 18,217,166 lines
my python script took about 20-30 minutes to finish
seems slow?
Thanks!!
input file data structure (showing first two lines, wrapped):
chromo pos ref alt dc1 dc2 dc3 dtm bas din
crw itb ptw spw isw irw inw ru1 ru2
ru3 im1 im2 im3 im4 xj1 xj2 qh1 qh2
ti1 ti2 glw mxa rwa ysa ysb ysc cac jaa
jac
chr01 242806 G ... 阅读全帖 |
|
m******u 发帖数: 12400 | 13 puts造的挺好啊,人家已经解释了,这个s是string的意思。put本身用在这里也符合英
文习惯,不然python的input也不对劲了。ruby的get,也蛮好的。就是硬生拉这个
enumerable看上去有点不爽,在介绍each,map的时候与介绍enumerable是有点矛盾了
。 |
|
m******u 发帖数: 12400 | 14 puts造的挺好啊,人家已经解释了,这个s是string的意思。put本身用在这里也符合英
文习惯,不然python的input也不对劲了。ruby的get,也蛮好的。就是硬生拉这个
enumerable看上去有点不爽,在介绍each,map的时候与介绍enumerable是有点矛盾了
。 |
|
d*********y 发帖数: 124 | 15 我是这样处理的
\begin{itemize}
\end{itemize}
或者
\begin{enumerate}
\end{enumerate}
你那样bib的东西很容易搞乱了,我一般不用,主要在\item里面\cite全文就可以,不
用逐字逐句敲进去。希望能管用 |
|
m****d 发帖数: 9307 | 16 大家好,我的问题其实是,在分情况讨论是,有1,2,3点,2里面可以有2.1,2.2这样
的吗?
然后可以在其他文本里面hyperref 2.1,2.2吗?如何操作呢?
谢谢啦!!! |
|
X*****r 发帖数: 2521 | 17 就是跟MATLAB里面那样
有没有快捷键使得整个文章的代码都自动缩进?
比如
\begin{itemize}
\item
\begin{enumerate}
****
\end{enumerate}
\item
\end{itemize}
这种?
谢谢! |
|
b*******t 发帖数: 33714 | 18 \begin{enumerate}
\item
第一步
\item
第二步
\begin{itemize}
\item
第一小步
\item
第二小步
\end{itemize}
\item
第三步
\end{enumerate} |
|
j***o 发帖数: 2842 | 19 【 以下文字转载自 Linux 讨论区 】
发信人: jigao (左季高), 信区: Linux
标 题: 在windows系统上安装emacs24
发信站: BBS 未名空间站 (Sun Apr 21 13:20:33 2013, 美东)
我用linux的主要原因是要用latex写文章和slides,emacs具有很多很多软件不具备的
优势,主要是lisp语言的支持,能做很多的智能选择,定义快捷键等,这里就不多说了
linux的主要问题是驱动和一些乱七八糟的问题,还有不能用office系列。如果能安装
emacs在windows上,可以说是一个完美的解决计划。
用下面的方法来安装,就能实现,不建议任何从源码编译的安装方法,太麻烦了。
第一步,安装miktex系统,这个就是latex所需要的所有软件包,很简单,只要等就可
以了,不过,建议你安装完整版本。
第二步,下载emacs系统的binary for windows,地址是
http://ftp.gnu.org/gnu/emacs/windows/
最好安装最新版本:emacs-24.3-bin-i386.zip 是最新版本。解... 阅读全帖 |
|
j******w 发帖数: 690 | 20 I didnt' check the details. But the following construction should work.
I am waiting for the simpler proof.
Let p_n be an enumeration of rationals in (0,1)
Let u_n be an enumeration of rational open intervals in [0,1].
Define f on rationals as follows:
At stage 0. f(0)=p_1, f(1)=p_2. Moreover, let u_i be the least i so that
the following forced condition is consistent : f 1-1 maps rationals in u_i
onto the rationals in u_0
At stage n+1, if f(p_n) is undefined, let f(p_n) be p_i where i is the l |
|
f**d 发帖数: 768 | 21 这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖 |
|
r****t 发帖数: 10904 | 22 asterisk 如果必须从外面注册的,必须用 ip deny/permit,即使这样也受到过
攻击的尝试。基本上每个月都有一两次尝试。关键是别人会 enumerate 分机号码来尝试注册,抵抗方法有二,两个同
时使用:
1. 分机号码里面加字母,通常攻击是 enumerate 数字。
2. sip.conf 里面加这些:
[general]
allowguest=no
alwaysauthreject=yes
; When an incoming INVITE or REGISTER is to be rejected,
; for any reason, always reject with an identical response
; equivalent to valid username and invalid password/hash
; instead of letting the requester know whether there was
; a matching user or peer for their request. This reduces
; |
|
t*******a 发帖数: 4055 | 23 谈谈“持枪权”和“推翻暴政的权利”
分享到:
时间:2017-10-05 09:13
•来源: 察网
•作者: 唐律疏议
•浏览:394
评论: 0
字号: 大 中 小
每次美国爆发枪击案,关于美国宪法中“持枪权”的话题就会热起来。有一种说法广为
流传:美国宪法规定了人民拥有“持枪权”;更有甚者,还说这个“持枪权”是为了保
证宪法赋予人民“推翻暴政的权利”。但事实上,“持枪权”只是对美国联邦宪法第二
修正案的曲解。而所谓“推翻暴政的权利”则完全是讹传。
谈谈“持枪权”和“推翻暴政的权利”
每次美国爆发枪击案,关于美国宪法中“持枪权”的话题就会热起来。有一种说法广为
流传:美国宪法规定了人民拥有“持枪权”;更有甚者,还说这个“持枪权”是为了保
证宪法赋予人民“推翻暴政的权利”。但事实上,“持枪权”只是对美国联邦宪法第二
修正案的曲解。而所谓“推翻暴政的权利”则完全是讹传。本文接下来分别对二者进行
分析。
§1 美国宪法赋予人民“持枪权”了吗?
关于“持枪权”的说法,来源于对美国联邦宪... 阅读全帖 |
|
V*E 发帖数: 1642 | 24 which ID r u talking? could you enumerate them?
md' |
|
V*E 发帖数: 1642 | 25 which ID r u talking? could you enumerate them? |
|
l**i 发帖数: 8144 | 26 简单地讲 就是谋事在人 成事在天
认为社会发展沿着某个预定方向发展的理论 都是傻逼理论
--------------------------------------
Anthropic principle
From Wikipedia, the free encyclopedia
In astrophysics and cosmology, the anthropic principle is the philosophical
argument that observations of the physical Universe must be compatible with
the conscious life that observes it. Some proponents of the argument reason
that it explains why the Universe has the age and the fundamental physical
constants necessary to accommodate conscious life. As a ... 阅读全帖 |
|
m******O 发帖数: 596 | 27 ... Manslaughter is not an enumerated felony under the 10-20-Life statute, a
judge is not required to impose any mandatory-minimum sentence.
虽然这么说,我看好那个法官在量刑上把GZ往死里整。 |
|
t********s 发帖数: 4503 | 28 It is strongly suggested to enumerate or highlight some main facts or points
at the bottom of the new ad. We need explicitly point out to people what
the issues REALLY are.
I can think of something like the following
1. Jimmy Kimmel and ABC, shame on you passing your fault onto six-year-old
children. Wasn't it Kimmel that uttered the question "should we allow the
Chinese to live?"; Wasn't you, the ABC network, that aired the message?
2. Jimmy Kimmel and ABC, you are sorry that the protesters "di... 阅读全帖 |
|
t********s 发帖数: 4503 | 29 I am not an organizer, but would suggest calling Everyone, donated or not
donated, to contribute your ideas to help refine the ad. Even you didn't
donate, it is important to help make the ad the way you want.
I suggested to enumerate or highlight some main facts or points
at the bottom of the new ad. We need explicitly point out to people what
the issues REALLY are.
I can think of something like the following
1. Jimmy Kimmel and ABC, shame on you passing your fault onto six-year-old
children. W... 阅读全帖 |
|
t********s 发帖数: 4503 | 30 I am not an organizer, but would suggest calling Everyone, donated or not
donated, to contribute your ideas to help refine the ad. Even you didn't
donate, it is important to help make the ad the way you want.
I suggested to enumerate or highlight some main facts or points
at the bottom of the new ad. We need explicitly point out to people what
the issues REALLY are.
I can think of something like the following
1. Jimmy Kimmel and ABC, shame on you passing your fault onto six-year-old
children. W... 阅读全帖 |
|
M******8 发帖数: 10589 | 31 http://www.raskb.com/transactions/VOL64/VOL64-3.docx
“You are Dead, the Square is Dead”: The 1989 Chinese Pro-Democracy
Movement
by Karen EGGLESTON
You are dead, the Square is dead.
They say now is a great victory,
thinking that death can protect their criminal existence.
We live on,
We give our hearts to you,the dead ones,
to let you live again through our lives,
to complete the mission which you left incomplete.
by Gu Cheng and Yang... 阅读全帖 |
|
l*******u 发帖数: 59 | 32 靠 这家伙感谢的人真多。。。
Friends Brian Alexander, for watching baseball with me when we both had "
important" work to do; Elaine Auyeung, for doing my algorithms homework; Tim
Bavaro, for a shared appreciation of acerbic humor; Ramona Pousti Canan, for
being as close to a soul mate as I can imagine; Tony Capra, for a sharp
intellect; Melissa Carroll, for putting up with countless asinine arguments;
Hubert Chao, for
bringing me into the 312 fold; Min Li Chan, for being interesting; Jamie
Consuegra,
for smi... 阅读全帖 |
|
l******t 发帖数: 55733 | 33 This list enumerates the twenty most common street names and the number of
nationwide occurances:
Second (10,866)
Third (10,131)
First (9,898)
Fourth (9,190)
Park (8,926)
Fifth (8,186)
Main (7,644)
Sixth (7,283)
Oak (6,946)
Seventh (6,377)
Pine (6,170)
Maple (6,103)
Cedar (5,644)
Eighth (5,524)
Elm (5,233)
View (5,202)
Washington (4,974)
Ninth (4,908)
Lake (4,901)
Hill (4,877) |
|
c****3 发帖数: 6038 | 34 逻辑的空间是巨大的
但是这个巨大的逻辑空间里面对人有用的东西很少
你不能把整个逻辑空间都enumerate的跑一边
运算量太大不现实 就跟为了中彩票把所有的号都买一遍
数学好就意味着能从巨大的可能性中找出有用的那一点
数学家就像是买彩票特别容易中一样
当然买彩票的比喻是相对普通人而言
对数学家来说并不是彩票 |
|
I*D 发帖数: 40035 | 35 [email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
says:
April 26, 2010 at 11:52 am
Dear Dr. Groves,
I applied for census job and got 100% score (28/28) in employment test on... 阅读全帖 |
|
|
f********4 发帖数: 2883 | 37 首先,祝贺大家的努力,华人的大签名活动以及各种抗议已经得到主流的注意,今天的
纽约时报发表文章专门说“梁警官事件华人社区分离的看法”,貌似很客观地报道了一
下华人的主流意见,而且允许评论。
400多评论,大多数认为梁警官是被当作了替罪羊。这不仅仅是我的观察,有人看了评
论也总结了:A lot of these comments are depressing with most viewing this
situation through the lenses of whatever ethnic group they belong to with
most of the sympathy going to the police officer because people think he is
the hapless victim of scapegoating due to his ethnicity or the difficulty
inherent in his job. There is relatively little sympathy going to Mr. Gur... 阅读全帖 |
|
c*******o 发帖数: 8869 | 38 又一个恍然大悟的, 呵呵,普法一下,
宪法中总统执法的原文是president takes care that laws be faithfully executed.
但是在实际执行中允许总统有一定的自由度, 比如将几千万非法移民缔结出境不实际
,人手不够,就可以按照优先原则,先处理有犯罪记录,这叫prosecution discretion.
关于同性婚姻的判决是高法作出的,和奥巴马没啥关系,看来楼主对什么叫三权分立基
本没概念。高法判决的宪法依据是equal protection under the law. 也就是说不允许
同性结婚是限制了同性恋者的人权。和宪法里有没有“婚姻”两字并无关系。另外你可
以看一下宪法第九修正案:Protects rights not enumerated in the Constitution.
也就是说宪法里没有明文规定的权利并不等于就不保护。
美国宪法体系可不是看一个youtube就能补上的。 |
|
b******r 发帖数: 1619 | 39 WTF?
Inside President Trump’s otherwise “standard Trump stump speech” at CPAC
was nestled what might be a most intriguing observation:
Global cooperation, dealing with other countries, getting along with other
countries is good, it’s very important. But there is no such thing as a
global anthem, a global currency or a global flag. This is the United States
of America that I’m representing.
There's a keen insight in there that could, just maybe, transform our lives,
America, and the world. No "gl... 阅读全帖 |
|
b***y 发帖数: 14281 | 40 The mystery is precisely while enumeration is in principle all human needs
to understand the universe, particular if we believe the universe, including
space and time, is finite, the hypothetically imagined existence of
irrational numbers, and consequently the continuum of real number, is much
more useful in many ways. It also created lots of troubles at the same time,
and in my opinion, it shows the imperfection of human invention.
The question LZ asked was whether the concept of prime number i... 阅读全帖 |
|
i*****r 发帖数: 105 | 41 Enumerate all cases after 7th race of 14, 22, 31, 41, 51. It should work.
11 12 13 14 15
21 22 23
31
41
51
7th result 14 22
8th race 15 21
7th result 14 31
8th race 15 21 31
7th result 22 14
8th race 13 23
7th result 22 31 ... 阅读全帖 |
|
i*****9 发帖数: 3157 | 42 差不多就是这样,最 tricky 的应该是最后一个 case, 结果没错。其他的我没细看。
辛苦您单发一贴让这帮人找 bug 吧。
:Enumerate all cases after 7th race of 14, 22, 31, 41, 51. It should work.
: |
|
|