由买买提看人间百态

topics

全部话题 - 话题: equal
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
z****e
发帖数: 54598
1
来自主题: Java版 - 关于==和equals
今天做leetcode突然遇到的一个问题
在数据量比较小的时候,不会有问题
但是数据量一旦变大,马上就出问题了
不多说废话,上代码,代码很简单
Map m1 = new HashMap();
Map m2 = new HashMap();
然后
m1.put('a',1);
m2.put('a',new Integer(1));
然后
m1.get('a') == m2.get('a'),这个autoboxing理论上是可以的
但是实际上,在数据量陡然变大了之后,这个会出现false的结果
不是很明白为什么
不过让我想起一个往事就是
enum类型的判断,同样可以用==来替换equals
但是,这个情况在rmi的时候会出问题
所以说到底,还是尽量避免使用==
否则会出现很多很subtle的问题
以下是代码正文
test case什么都写好了
可以直接debug和运行main函数
package test;
import java.... 阅读全帖
w****6
发帖数: 796
2
来自主题: Programming版 - JAVA equals()和hashCode()请教。
if hashset:
两步:
1)hashCode(), then
2)equals()
建议都一下<>:
hashCode() and equals() 必须同时 override and in sync
if treeset:
参见 HoboCS (Kane)
l****u
发帖数: 1764
3
来自主题: Programming版 - JAVA equals()和hashCode()请教。
没有重载hashCode()的话就默认用Object的hashCode(),这个函数每个对象返回一个不
同的code。你的两个new Turtle(1)的hashCode也是不同的,所以被当做不同的对象可
以共存于一个Set里面了
HashSet判断是否重复的依据是:如果hashCode相同,继续判断equals()是否为true,
true则两个object相同,false则不同;如果hashCode不同,直接跳过equals()函数,
这俩obj不同
c******l
发帖数: 94
4
看到有些firm的网页上写着:we are a equal opportunity employer. 这是否在暗示
他们会支持H1b? 请有经验的朋友来介绍下。
网上对于equal opportunity employer的定义是不以种族,肤色之类的歧视,但没提
foreign worker.
j******c
发帖数: 712
5
想详细了解一下decision feedback equalizer, frequency domain equalizer,要是
能有些实际应用方面的介绍就更好了,谢谢
e****i
发帖数: 78
6
请教一个问题, 如果create a small sample (100 obs) from a bigger sample (
30000 obs) and the mean of small sample not equal to bigger sample. 具体来说
, bigger sample's mean = 100, 如果create a small sample (100 obs) with mean
equal to 145?
多谢!
T**r
发帖数: 7016
7
偶的弓调了很长时间没有成功,原因就是太注重这两条principle,
一是目测center shot的位置,二是equal limb adjustment(没找到合适的词,就是上
下limb的调整要一致)。
正好这两个是我的弓不能达到理想状态的原因。
先说equal limb adjustment,我甚至用游标卡尺来量gap的距离,确保上下两臂有同样
的设定。nock low(tear down)是俺的弓的一个完固的毛病,easton guide和网上的
大多数都说要提升nock point来解决这个问题,但对我来说不是这么简单,我甚至将
nock point调到超过90度level位置1/2寸还要多,箭摆上去明显地箭头朝下,即使这样
也不能解决这个nock low的问题。调整了nock point, rest height, string, cable
timing,甚至rest ripcord的timing,都不能根治这个问题。最后在archerytalk上看
到有人说了一句,可能是lower limb比upper limb快,所以始终有这么一个向下的运动
。其实这个nock lo... 阅读全帖
m******1
发帖数: 19713
8
Group Pushes to Overturn Iowa Marriage Equality
By Advocate.com Editors
Iowa marriage equality foes are ramping up pressure on state legislators to
support a constitutional ban on gay marriage.
The Iowa Family Policy Council’s Bryan English told the Waterloo-Cedar
Falls Courier that the group is asking 150 state lawmakers where they stand
on a ballot measure similar to California’s Proposition 8 and Maine’s
Question 1 — both of which stripped same-sex couples of state marriage
rights. The group
a*****y
发帖数: 33185
9
all men are created equal,这是为自己争取权利的人的口号
不为自己争取权利的人,就别指望这句话能自动生效
Y****a
发帖数: 796
10
God created men, Colt made them equal.
I********x
发帖数: 858
11
这尼玛放屁呢,现在都没能equal还能是当初之本?你这是说美帝一只在开倒车到现在?
n***y
发帖数: 2730
12
I thought Glock made them equal.
e****n
发帖数: 2022
13
后一句是,but,some are more equal than others
g*****y
发帖数: 1120
14
All men are created equal ,some work harder than others and should be
rewarded
w*******y
发帖数: 582
15
created equal 是针对 divine right of kings的神学宣言.就是"王侯将相,宁有种乎
"的意思,跟你们扯得这些东西没有关系。

发帖数: 1
16
早说了平等权利要靠自己去争取。。。
有的人就是自己愿意当奴隶,如果人人平等,你就得尊重这些人他们的自由意志,不能
说你认为当奴隶不好,就把废除奴隶制、解放黑奴强加到这些人身上去,不管那看上去
多么正义。
如果黑奴自己不愿意去争取解放,这在表面上看来就是奴性重、逆来顺受,你怎么知道
他们内心里是愿意当奴隶还是愿意当人?
你要是搞错了,把自己的意志强加于别人、即使他们不把自己当人而是当奴隶,岂非正
是违背立国之本 all men are created equal?
h******u
发帖数: 105
17
是让全世界equally 成为烂攤子,还是保留好点的地方,再去修复地球上不好的地方?
h******u
发帖数: 105
18
是让全世界equally 成为烂攤子,还是保留好点的地方,再去修复地球上不好的地方?
E**********d
发帖数: 253
19
God Created Men and Sam Colt Made Them Equal
M*******e
发帖数: 546
20
看来洗脑真是有用。如果洗脑没用,也就没这回事了。唉,还equal呢。不多说了。就
像楼上妹子说的,你还配称men?alien!
h*******n
发帖数: 8906
21
他们要争取什么equal?人人工作平等?人人纳税平等?人人遵守法律平等?这些东西平
权主义从来不会提的
200年前黑人做奴隶养活白人庄园主,现在中产做奴隶养活黑人,黑奴已经revenge了,
有啥好抱怨的。
好吃懒做领救济之余还要打砸抢杀做娱乐,别人说不得,警察也管不得,这是哪门子的
平等???
h***n
发帖数: 1600
22
【 以下文字转载自 JobHunting 讨论区 】
发信人: hsbbn (habby), 信区: JobHunting
标 题: 210k Job ads 不再宣称Equal Employment而是affirmative action employer
发信站: BBS 未名空间站 (Fri Oct 14 10:08:00 2016, 美东)
大家自己看, indeed job ads, 公开宣称是affirmative action employer有210k:
http://www.indeed.com/q-affirmative-action-jobs.html

发帖数: 1
23
来自主题: Military版 - How can Beijing and Nanjing be equal ?????
How can Beijing and Nanjing be equal ?????
You think so ? But I don't
W*****B
发帖数: 4796
24
No men are created equal才是大实话
r******t
发帖数: 8967
25
要放在时代的背景看。当时是封建时代,Money talk算是平等的表现了
[在 WCNMLGB (CCC) 的大作中提到:]
:No men are created equal才是大实话
:☆ 发自 iPhone 买买提 1.24.10
m******1
发帖数: 19713
26
在“酷儿新闻”开版之即,我想起来这句话。这句话是我以前一位直人同事说的,我和她曾在一次数万人的反第8提案游行中不期而遇。
我说:I appreciate your support.
她说:It is my business too. Equality is everybody's business.
平等是每个人的事---女子之于男权的平等、亚裔之于白人的平等、乡下人之于城里人的平等、同性恋文化之于主流文化的平等。。。身处一个还远没有实现完全平等的社会里,每个群体中的人都有可能面临着来自其他群体的不平等对待。。。
LGBT 群体争取平权的运动经过了长夜漫漫,取得了今天的成就,离不开LGBT人群的呐喊与流血牺牲,更离不开广大友同直人朋友的鼎立支持,甚至也离不开反同人士的推波助澜。所以,不管你是直人还是弯人,不管你是友同还是反同,“酷尔新闻”的大门都真诚地向你打开,欢迎你来与我们交流,欢迎你来倾听我们的声音,也欢迎你带来尖锐的质疑。
为了你自己,为了你的同性恋亲人、朋友、同事,为了每一个你所爱的和爱你的人,也为了让我们的下一代不再无故地被歧视,为了我们的孩子生活得更好,请关注同性恋、双性恋
m******1
发帖数: 19713
27
这个moron真是自讨苦吃,已经有4000多人签名抵制为他的英国之行买单了。
4,000-Plus Sign Anti-Pope Petition
By Advocate.com Editors
Pope Benedict XVI X390 (GETTY) | ADVOCATE.COM
More than 4,000 people have signed an online petition demanding that the
Catholic Church, and not the taxpayer, pay the cost of Pope Benedict XVI’s
planned visit to the United Kingdom later this year. The action was sparked,
in part, by a papal speech earlier this week criticizing pro-gay equality
legislation in the U.K., The Times of London reports.
“Th
k*****e
发帖数: 22013
28
捐款的链接
http://tinyurl.com/27jy8ot
【 以下文字转载自 Queer 俱乐部 】
发信人: chahatai (chahatai), 信区: Queer
标 题: We need your generous help! A letter from Equality California
发信站: BBS 未名空间站 (Mon Aug 9 14:18:34 2010, 美东)
我刚刚收到这封信, K哥给我转到新闻版吧。 :
g********d
发帖数: 4174
29
来自主题: QueerNews版 - Newsom Credits Marriage Equality for Career
Posted on Advocate.com December 23, 2010
Newsom Credits Marriage Equality for Career
By Julie Bolcer
San Francisco mayor Gavin Newsom, now the lieutenant governor-elect of
California, said Tuesday that he believes his decision to allow same-sex
marriages in 2004 helped him win reelection.
The San Francisco Chronicle reports on a meeting between the Democratic
mayor and its editorial board.
“Newsom answered that the decision allowed him to take more risks,” the
Chronicle reports. “He talked abou... 阅读全帖
c*****n
发帖数: 115
30
发信人: chemren (chemren), 信区: LES
标 题: 有人去1月份的The National Conference on LGBT Equality Creating
Change么?
发信站: BBS 未名空间站 (Fri Dec 30 12:21:26 2011, 美东)
一月25-29在Baltimore的那个Task Force组织的年会,我会跟学校rainbow room的朋
友一起去,不知道版上有没有也报名去的
给个链接,有感兴趣的可以随时去报名的:
http://www.creatingchange.org/
g********d
发帖数: 4174
31
http://www.northjersey.com/news/opinions/136994258_Sweeney_s_ev
Sweeney's evolution on gay marriage may be futile
MONDAY, JANUARY 9, 2012 LAST UPDATED: TUESDAY JANUARY 10, 2012, 9:01
AM
By CHARLES STILE
COLUMNIST
PAGES: 1 2 3 > DISPLAY ON ONE PAGE | PRINT | E-MAIL
Two years ago, Democrat Steve Sweeney was just a disappointing, knuckle-
dragging Neanderthal on gay rights.
Now, the state's most vocal gay rights advocate readily declared the über-
macho Senate president a candidate for a Nob... 阅读全帖
g********d
发帖数: 4174
32
http://thinkprogress.org/lgbt/2012/01/17/405115/romney-stresses
Romney Stresses Opposition To Marriage Equality In South Carolina | Mitt
Romney added a reference to same-sex marriage during his regular stump
speech in South Carolina this morning, highlighting his campaign’s effort
to court the state’s many social voters ahead of the primary on Saturday.
“This is a president also who is attempting to pave the way for same-sex
marriage in our nation by refusing through his attorney general to defe... 阅读全帖
m******1
发帖数: 19713
33
BTW,停车可以在隔壁的cathedral of our lady of the angels,$5一天,API
Equality给报销parking ticket.
m******1
发帖数: 19713
34
BRIDGEWATER - Gov. Chris Christie today called for a ballot question this
November on same-sex marriage.
"Let's put the question of same sex marriage on the ballot," Christie said.
"I believe in the institution of marriage. I realize this is my personal
opinion. ...Rather than have stalemate and deadlock on this issue, let's put
it on the ballot.
"It shouldn't be decided by 121 people in Trenton.
"While I know I could stop this by mself, I suggest an alternative," the
governor added. "Let’s be g... 阅读全帖
g********d
发帖数: 4174
35
支持共和党的同志,支持谁是你的自由,但是请不要用两党在同志议题上没什么区别做
借口,来误导其他同志。
The Republican Party platform, by comparison, stated in 2008: "Because our
children’s future is best preserved within the traditional understanding of
marriage, we call for a constitutional amendment that fully protects
marriage as a union of a man and a woman, so that judges cannot make other
arrangements equivalent to it. In the absence of a national amendment, we
support the right of the people of the various states to affirm traditional
marr... 阅读全帖
g********d
发帖数: 4174
36
提倡种族主义是不是也是民主?怎么成了过街老鼠了?别用民主来为歧视找借口。共和
党的PLATFORM是support a Federal Marriage Amendment,运用一切可以用的机会阻挠
MARRIAGE EQUALITY的进展,我还不能公开反对了?反对共和党反同的主流与争取部分
友同的共和党人以及在可以COMPROMISE的问题上COMPROMISE一点也不矛盾(比如保障宗
教自由)。通过合作来解决问题是要分清是非和敌友,是非都分不清,解决个P问题。
g********d
发帖数: 4174
37
我们从来没有吝啬对投票支持我门的共和党人的赞美,这年头,民主党人支持我们没有
多大压力,而共和党人则需要更大的勇气。LGBT给了NY投票支持GAY MARRIAGE的四位共
和党人的连任很大的支持。再看最近通过GAY MARRIAGE的,哪个州的法案没包括保护宗
教自由的条款?
但是,如果你选了GINGRICH,ROMNEY 或SANTORUM,你就等着他提名几个保守大法官,
或是VETO国会通过的GAY MARRIAGE吧?想要MARRIAGE EQUALITY?20年后都难,对很
多人来说可能是下辈子了。NJ就是一例,如果现在NJ的州长是民主党,NJ这几星期内就
是第8个实现GAY MARRIAGE的州了,而现在这个可能性很小。
k*****e
发帖数: 22013
38
州长据说要veto。

equality
g********d
发帖数: 4174
39
http://www.independent.co.uk/news/uk/politics/no-10-sides-with-
Gay couples will finally win the right to marry, Downing Street insisted
last night, despite an escalating campaign of opposition led by a former
Archbishop of Canterbury and some Conservative MPs.
Lord Carey provoked an angry backlash from gay couples and campaigners as he
denounced the move as a "hostile strike" on the traditional view of
marriage. There will now be a furious battle ahead of this spring's Queen's
Speech, in which ... 阅读全帖
g********d
发帖数: 4174
40
"Republican Rep. Seth Cohn, who
supports marriage equality, proposed banning marriage between left-handed
people. That didn't pass either."
哈哈哈。我想知道几比几没过。
还指望有2/3票OVERRIDE州长的VETO,做梦!
k*****e
发帖数: 22013
41
最后面说道,marriage equality已经成为了一个bipartisan value
共和党支持同性婚姻的也越来越多了。
m******8
发帖数: 2153
42
Wao, 211 support marriage equality vs. 116 against gay marriage, this is
really good...
m******8
发帖数: 2153
43
The 211-116 margin was a victory for gay rights advocates. It was also a
shock to social conservatives, who thought a 3 to 1 GOP majority combined
with a party platform that defines marriage as a between a man and women,
would secure the bill’s passage.
Deep into a debate that lasted 2 hours and included 10 separate votes,
Kingston Republican David Welch stated what by then was plain: gay marriage
is topic that divides House Republicans.
“This is an issue that is confusing, sets one section of t... 阅读全帖
g********d
发帖数: 4174
44
如果他今天出柜,应该是算好了,出柜比不出柜划的来。VP前几天是打前站。今年的民
主党PLATFORM就会包括MARRIAGE EQUALITY,民主党就算无保留的支持了。
g********d
发帖数: 4174
45
要看也是看独立的民调,而不是Marylanders for Marriage Equality搞的。当然同一
机构不同时间的比较还是有用的,看来OBAMA的表态的实际意义也很大,如果这次MD能
保住,他功不可没。去年SLOW,我没激情写总结,今年一定会写的。
m******1
发帖数: 19713
46
Internet search engine Google launched "Legalize Love," a campaign that
shows its support of same-sex marriage, reports Dot429.
In a written statement Google describes "Legalize Love' as "a campaign to
promote safer conditions for gay and lesbian people inside and outside the
office in countries with anti-gay laws on the books."
Mark Palmer-Edgecumbe, Google's head of diversity, outlined the initiative
at a Global LGBT Workplace Summit in London on Saturday, saying "We want our
employees who are... 阅读全帖
m******1
发帖数: 19713
47
来自主题: QueerNews版 - France to Consider Marriage Equality Bill
The French government will introduce a marriage equality bill to Parliament
in October, Prime Minister Jean-Marc Ayrault told the annual meeting of the
Socialist Party Saturday.
“We will send a bill to the National Assembly and the Senate to allow same-
sex couples to marry,” Ayrault told party members gathered in the coastal
of La Rochelle, The Wall Street Journal reports. “It would also allow them
to form families and adopt children.”
France has offered marriage-like civil partnerships since t... 阅读全帖
m******1
发帖数: 19713
48
A poll from NBC Latino/IBOPE Zogby finds that 60% of Latino respondents
support marriage equality.
According to the poll, 48% of those polled "strongly agree" that same-sex
couples should have the right to marry. The bad news? Ten percent of
respondents say having a gay child would be more of a disappointment than a
son or daughter who's a drug addict or in prison.
Meanwhile, one of the most prominent LGBT Latinos, Ricky Martin, is lending
his support to the Obama campaign. Martin filmed a video... 阅读全帖
g********d
发帖数: 4174
49
A Republican lawmaker in Wyoming is pitching in to legalize marriage
equality in his state.
Rep. Keith Gingery, a Catholic on the state's judiciary committee, is co-
sponsoring two measures to recognize same-sex relationships either through
civil unions or marriage, according to the Jackson Hole Daily. Rep. Ruth Ann
Petroff, another Republican, has also expressed support for Laramie
Democrat Cathy Connolly's marriage bill.
"The population of gay couples in the state is increasing, and the law is... 阅读全帖
m******1
发帖数: 19713
50
Super Bowl champion Brendon Ayanbadejo of the Baltimore Ravens may play for
a state where marriage equality is now legal, but his work is not done.
"People from all walks of life, including gay and lesbian couples, want
their children to have stable homes, and protected under the law," he said
in a new video for the Respect for Marriage coalition.
Watch the video below:
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)