由买买提看人间百态

topics

全部话题 - 话题: false
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
t********5
发帖数: 274
1
来自主题: DotNet版 - Jquery dialog问题请教
btnCreateAccount是主页面的按钮,按下之后弹出dialog子页面,子页面里有个
continue按钮,按下之后希望主页面的btnCreateAccount继续提交,按照我下边的代码
,无法继续,因为$("#<%=btnCreateAccount.ClientID %>").click(function() 里
return false了,如果不return false的话,子页面只是一闪而过,无法停留,不知如
何处理,望高人指教!
$("#<%=btnCreateAccount.ClientID %>").click(function() {
if ($("#aspnetForm").valid())
{
if( $('#<%=drpCompanyState.ClientID %>').val() =='CA' ||
$('#<%=drpCompanyState.ClientID %>').val() =='GA'){
$... 阅读全帖
c*******9
发帖数: 6411
2
来自主题: Programming版 - compile error
get compile error from following code, any ideas?
thanks...
.....
set seen;
.....
pair::iterator, bool> res = seen.insert(str);
c:\apps\mvs8\vc\include\functional(143) : error C2784: 'bool
std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits>
&)' : could not deduce template argument for 'const std::_Tree<_Traits>
&' from 'const std::string'
1> c:\apps\mvs8\vc\include\xtree(1372) : see declaration of
'std::operator <'
1> c:\apps\mvs8\vc\include\fu... 阅读全帖
x****k
发帖数: 2932
3
如何编写无法维护的代码
让自己稳拿铁饭碗 ;-)
– Roedy Green(翻译版略有删节)
简介
永远不要(把自己遇到的问题)归因于(他人的)恶意,这恰恰说明了(你自己的)无
能。 — 拿破仑
为了造福大众,在Java编程领域创造就业机会,兄弟我在此传授大师们的秘籍。这些大
师写的代码极其难以维护,后继者就是想对它做最简单的修改都需要花上数年时间。而
且,如果你能对照秘籍潜心修炼,你甚至可以给自己弄个铁饭碗,因为除了你之外,没
人能维护你写的代码。再而且,如果你能练就秘籍中的全部招式,那么连你自己都无法
维护你的代码了!
(伯乐在线配图)
你不想练功过度走火入魔吧。那就不要让你的代码一眼看去就完全无法维护,只要它实
质上是那样就行了。否则,你的代码就有被重写或重构的风险!
总体原则
Quidquid latine dictum sit, altum sonatur.
(随便用拉丁文写点啥都会显得高大上。)
想挫败维护代码的程序员,你必须先明白他的思维方式。他接手了你的庞大程序,没有
时间把它全部读一遍,更别说理解它了。他无非是想快速找到修改代码的位置、改代码
、编译,然后就能交差,... 阅读全帖
m*****r
发帖数: 37
4
来自主题: Programming版 - Java弱弱请救几个小问题
我是最近刚转Java的弱弱,有几个小问题,请牛牛们轻拍。
这次转java,总算像是某位说的那样,原来c++转java也就分分钟的事儿。写得顺的时
候,边google边写,也可以写得稀里糊涂、腾云架雾、行云流水;可问题是bug一出现
,立马歇菜!比如,min stack, stack1.peek()==stack2.peek(),顶上的两个数字明明
是相等的,为什么会return false呢?想去google都不知道该搜什么。。。等把java刷
一遍lc就算我可以写java了?
我有个function, public boolean dfdjdf(){return dfkld;} 为什么它一定要我在最
后一句话加个return啊,方法里的逻辑到那一步早就应该已经return了啊?
还有就是,刷lc搭了个local的架,本来没什么心理障碍,可是每遇到有Node,
ListNode, TreeNode的题就一股无名火,我不知道该把这些定义的类塞到哪里?试过两
种:
public class getIntersectionNode {
public class ListNode {
... 阅读全帖
p**r
发帖数: 5853
5
来自主题: Programming版 - 请教各路大神一个算法问题
不是啥面试问题,
是俺,街头派遇到实际问题,请教各路学院大神指点算法:
大概情况如下:
N个List
object
int按升序排列,比如说1,2,3,4,5...
每个list数目未知,可能是100个,有可能是1000个,但是有个上限比如说一万。
每个object中有一个分界点,一旦分界点确定那之后的object都是false
现在要找出每串中带false的那个object
大概举例:
<1,true>,<2,true>,<3,true>,<4,false>,<5,false>....
4 is the flag
<1,true>,<2,true>,<3,true>,<4,true>...<1052,true>,<1053, false>...
1053 is the flag
重要的事情说三遍:长度未知,长度未知,长度未知!
我现在用二分法 不知道有什么更好的算法,谢谢
m******r
发帖数: 1033
6
来自主题: Programming版 - 两个简单R代码(坑?)求解[factor]
第一个问题是看了统计版一人问的。 我把该问题简化如下:
[1] FALSE TRUE
> v <- seq(1.5, 1.7, 0.1)
> c(1.5, 1.6, 1.7) == v;
[1] TRUE TRUE TRUE
>
> v <- seq(1.4, 1.6, 0.1)
> c(1.4, 1.5, 1.6) == v;
[1] TRUE TRUE FALSE
谁碰到过这个坑, 请来说说。 第二坑,也很奇怪。 难道不应该是FALSE TRUE TRUE??
第二个问题是从factor文档(?factor)看来的(稍作改动,简化问题)
> (x <- factor(c(1, 2, NA) , exclude = NULL))
[1] 1 2
Levels: 1 2
> is.na(x)[2] <- T
> x
[1] 1
Levels: 1 2
> is.na(x)
[1] FALSE TRUE FALSE
d******c
发帖数: 2407
7
来自主题: Programming版 - 两个简单R代码(坑?)求解[factor]
第二个运行结果不对把
is.na(x)[2] <- T 是什么乱七八糟的?这跟x根本没关系,根本没改变x好吧,我运行
结果x也没有变。
而且用T当TRUE是非常坏的用法。
TRUE and FALSE are reserved words denoting logical constants in the R
language, whereas T and F are global variables whose initial values set to
these.
> (x <- factor(c(1, 2, NA) , exclude = NULL))
[1] 1 2
Levels: 1 2
> x
[1] 1 2
Levels: 1 2
> is.na(x)[2]
[1] FALSE
> is.na(x)
[1] FALSE FALSE FALSE
> is.na(x)[2] <- T
> x
[1] 1
Levels: 1 2

发帖数: 1
8
来自主题: Biology版 - adjacent p和FDR的区别?
我不是很懂, 抛砖引玉
P-value 就是false的discovery (positive)的概率,用统计的话说就是,incorrect
rejection of a true null hypothesis (也就是你的 false positive)。 但是这个是
针对single test, 但是对于multiple test, 在用p-value就会造成过多的false
positives, 所以需要adjust, 最简单的就是Bonferroni, 直接除以the number of
tests, 但是这样的话会造成很多true positives 不能被发现, 降低了power. 于是,
BH 提出FDR(False discovery rate), 其实也是一种adjust p-value的方法 for
multiple tests, 是p-values 排序(step-up, step-down)的方法来找到threshold. 这
样能保证false positive 在一定level情况下, 找到尽可能多的true positives. 但
是BH证明时, se... 阅读全帖
j***h
发帖数: 4412
9
Earthquake detection systems can sound the alarm in the moments before a
big tremor strikes—time enough to save lives
Japan’s system, which went live in 2007, makes heavy use of personal
technology. Alerts go out not only on television and radio but through
special receivers in homes, offices and schools. Pop-up windows on
computers show a real-time map with the epicenter’s location and the
radiating seismic waves. A timer counts down to the shaking at your
location and highlights predicted inte... 阅读全帖
m*******r
发帖数: 7495
10
来自主题: Statistics版 - 问个R的小题目
这个问题的b)问
R language if(), while() etc
A positive integer number n is a prime number if it is only divisible
by 1 and itself.
a)Use it to write checkDiv <- function(n,k) {........} which either
writes " is divisible by " or " / has remainer
" when it is not divisible. Hint: use paste()
b) Now use a loop, searching for possible divisors of n to write a function
is.primeNum <- function(n) { .... } which returns true whenever n is a prime
number.
下面附上了原题的答案,我想用另外一个办法,不过本人超级菜鸟,把自己绕进... 阅读全帖
B******y
发帖数: 9065
11
来自主题: Statistics版 - 与CDISC相关的问题
ADaM
1. Which variable metadata field is NOT a part of a Version 2.1 ADaM-
compliant analysis dataset?
A. Dataset Name
B. Variable Label
C. Source/Derivation
D. Display Format
E. Codelist/Controlled Term
F. Variable Type
G. Informat
2. According to ADaM, the structure for most datasets should be vertical (i.
e., tall and thin).
A. TRUE
B. FALSE
3. In ADaM as in the SDTM, there is no day 0 for relative day variables
whose name ends in DY.
A. TRUE
B. FALSE
4. In ADaM-compliant datasets the display... 阅读全帖
s**********8
发帖数: 25265
12
来自主题: MedicalDevice版 - FDA
The Food and Drug Administration (FDA or USFDA) is an agency of the United
States Department of Health and Human Services, one of the United States
federal executive departments. The FDA is responsible for protecting and
promoting public health through the regulation and supervision of food
safety, tobacco products, dietary supplements, prescription and over-the-
counter pharmaceutical drugs (medications), vaccines, biopharmaceuticals,
blood transfusions, medical devices, electromagnetic radiati... 阅读全帖
k*****e
发帖数: 22013
13
来自主题: PhotoProcessing版 - lightroom难道有隐藏的参数?
这就是那个诡异的preset,附件不能上传,还好是文本的
用记事本存成txt,然后把文件名改成PH Edgy church.lrtemplate
s = {
id = "1608FB87-0E44-408B-8F5F-3EB0E059C749",
internalName = "PH Edgy church",
title = "PH Edgy church",
type = "Develop",
value = {
settings = {
AutoBrightness = false,
AutoContrast = false,
AutoExposure = false,
AutoShadows = false,
BlueHue = 0,
BlueSaturation = -15,
Brightness = 18,
CameraProfi... 阅读全帖
m*********y
发帖数: 10616
14
来自主题: _pennystock版 - 假的,全是假的,天啦!
NEW YORK (Dow Jones)--The top executives of Spongetech Delivery Systems Inc.
(SPNG) were arrested and charged Wednesday in an alleged scheme to defraud
investors by reporting falsely and grossly overstated sales figures.
According to a criminal complaint filed Wednesday, Michael Metter,
Spongetech's
chief executive and president, and Steven Moskowitz, the New York pre-soaped
sponge maker's chief operating officer and chief financial officer, were
charged
with conspiracy to commit securities frau... 阅读全帖
g********n
发帖数: 2314
15
原来是'Performance profiling' could help to catch cheater 现在是 '
Performance profiling' could help to dispel doubts.
Why great Olympic feats raise suspicions
'Performance profiling' could help to dispel doubts.
Ewen Callaway
01 August 2012 Corrected: 03 August 2012
Chinese swimmer Ye Shiwen broke the world record for the women's 400-metre
individual medley event at the Olympic Games on 28 July.
L. NEAL /AFP / GETTY IMAGES
Article tools
print
email
rights & permissions
share/bookmark
At the Olympics,... 阅读全帖
t***u
发帖数: 807
16
An obscure documentary nowhere to be found on the net until now. An
explosive documentary giving an indepth behind the scenes perspective of the
events unfolding in India. This documentary compiles videos showing the
perpetrators themselves & film crew interviewing the victims after the dust
has settled. This is by no means an apology for any terror attack against
any innocent, and these events are not THE reason for the recent Mumbai
attacks but A reason for the attacks. This controversial docu... 阅读全帖
w**j
发帖数: 1032
17
来自主题: Military版 - Murder in the Bible (Evil Bible.com)
The act of murder is rampant in the Bible. In much of the Bible,
especially the Old Testament, there are laws that command that people be
killed for absurd reasons such as working on the Sabbath, being gay, cursing
your parents, or not being a virgin on your wedding night. In addition to
these crazy and immoral laws, there are plenty of examples of God's
irrationality by his direct killing of many people for reasons that defy any
rational explanation such as killing children who make fun of... 阅读全帖
R****a
发帖数: 6858
18
来自主题: Military版 - 大棋局与9/11
大棋局与9/11
来源: ognc 于 2013-02-22 16:08:44[档案] [博客] [旧帖] [转至博客] [给我悄悄
话] 本文已被阅读:63次
字体:调大/调小/重置 | 加入书签| 打印| 所有跟帖 | 加跟贴| 查看当前最热讨论主题
The Moral Decoding of 9-11
By Prof. John McMurtry
(Journal of 9/11 Studies) - I was sceptical of the 9-11 event from the first
time I saw it on television. It was on every major network within minutes.
All the guilty parties were declared before any evidence was shown. The
first questions of any criminal investigation were erased. Who had the most
compelling motives for... 阅读全帖
b********n
发帖数: 38600
19
来自主题: Military版 - Will Washington Kill Us All?
Will Washington Kill Us All? — Paul Craig Roberts
http://www.paulcraigroberts.org/2015/04/15/will-washington-kill
Did you know that Washington keeps 450 nuclear ICBMs on “hair-trigger alert
”? Washington thinks that this makes us “safe.” The reasoning, if it can
be called reason, is that by being able to launch in a few minutes, no one
will try to attack the US with nuclear weapons. US missiles are able to get
on their way before the enemy’s missiles can reach the US to destroy ours.
If this mak... 阅读全帖
L*********s
发帖数: 3063
20
来自主题: Military版 - 马航documentary: A year without truth
https://www.youtube.com/watch?v=Z4CtpLFc8LM
This Mh-17 tragedy was epiphany moment for me about the west. On July 17
2014 I found out that the west is insane. The contrast with the slow and
methodical look at evidence for the March plane disappearance and the sudden
and massive propoganda within hours of the July crash with no real evidence
against Russia was shocking. I thought the west were the adults. I was
wrong. I learned the concept of false flag that day also by researching why
the west w... 阅读全帖
a*******a
发帖数: 1240
21
来自主题: Military版 - A critique, 从引力波说开去
Before embarking on a metaphysical critique of the famed "theory of general
relativity" (GR) amidst the fanfare of the recent observation by LIGO of
gravitational wave, an explorative discussion of mathematics is both helpful
and necessary.
In any theoretical investigations, mathematics plays a pivotal role. The
natural question arising herein is then, what is mathematics? And what kind
of roles can we possibly expect of mathematics in any theoretical enquiries
(i.e., by deductions) or in a prac... 阅读全帖
T****t
发帖数: 11162
22
来自主题: Military版 - 章莹颖应该是确认死亡
嫌犯被追加起诉kidnap result in death.
估计证据挺足的。
http://www.wandtv.com/story/36513959/christensen-facing-new-charges-in-yingying-zhang-kidnapping
Christensen facing new charges in Yingying Zhang kidnapping
Posted: Oct 03, 2017 6:33 PM EDT
Updated: Oct 03, 2017 6:33 PM EDT
URBANA, Ill. (WAND) - The U.S. Department of Justice has announced that
Brendt Christensen has been indicted on new charges related to the
kidnapping of University of Illinois scholar Yingying Zhang.
According to a release, the U.S. Dep... 阅读全帖
t*****r
发帖数: 543
23
来自主题: Military版 - 武汉很多病人转阴后再次复阳
Mystery In Wuhan: Recovered Coronavirus Patients Test Negative ... Then
Positive
A spate of mysterious second-time infections is calling into question the
accuracy of COVID-19 diagnostic tools even as China prepares to lift
quarantine measures to allow residents to leave the epicenter of its
outbreak next month. It's also raising concerns of a possible second wave of
cases.
From March 18-22, the Chinese city of Wuhan reported no new cases of the
virus through domestic transmission — that is, inf... 阅读全帖
q*a
发帖数: 2330
24
☆─────────────────────────────────────☆
jianglai (Veni, Vidi, Vici.) 于 (Thu Aug 2 02:54:30 2012, 美东) 提到:
http://www.nature.com/news/why-great-olympic-feats-raise-suspic
英帝堕落到什么地步了。。。
★ 发自iPhone App: ChineseWeb 7.3.1
☆─────────────────────────────────────☆
daye520 (哈哈) 于 (Thu Aug 2 02:56:00 2012, 美东) 提到:
罗切特每次都被拿出来做背景。

☆─────────────────────────────────────☆
michaelxiaga (南京中山陵) 于 (Thu Aug 2 02:58:53 2012, 美东) 提到:
回复里面有一个哥们写的不错
其实咱们在这里说有啥用, 就得用英文反驳white trash
☆─────────────────... 阅读全帖
l****z
发帖数: 29846
25
“Beware, America. The Muslims are coming, and they look and act
suspiciously like you.”
December 30, 2011 | Posted by Rick Rice
That’s the opening line from a WaPo piece announcing an Arab-American
comedy tour aimed at combating what the comics are calling Islamophobia.
Hmmm.
When I see any accusatory word whose suffix is phobia, I’m immediately
suspicious. Usually those throwing such words about are those who are also
throwing an agenda at us.
But I digress… let’s first excerpt the piece:
... 阅读全帖
l****z
发帖数: 29846
26
来自主题: USANews版 - New Hampshire Going… Romney?
October 26, 2012 Posted by Warner Todd Huston
In keeping with the “Mittmentum” that we are seeing in many states and
swing states across the country, New Hampshire is for the first time looking
more like a lovely purple color tinged heavily in red with polls showing
Mitt Romney topping President Obama there for the first time.
With less than two weeks to go, historically blue New Hampshire is showing a
50% Romney to 48% Obama result in Rasmussen’s latest polling. Rasmussen
has shown a steady mo... 阅读全帖
g********2
发帖数: 6571
27
来自主题: USANews版 - Black Lives Matter 跟以色列干上了
Black Lives Matter Promotes Another Bogus Narrative by Accusing Israel of
Genocide
Katie Pavlich
|
Posted: Aug 10, 2016
In the summer of 2014, the Black Lives Matter movement was born after a
young man named Michael Brown robbed a convenience store and got into a
physical altercation with Ferguson Police Officer Darren Wilson. During the
altercation, which took place inside Wilson's police cruiser, Brown
attempted to take Wilson's gun and was shot and killed. These are the facts,
backed up by an... 阅读全帖
a*********a
发帖数: 3656
28
A say 10 things, 6 true, 4 false, media fact checks 8 of them and found all
4 false statements.
B say 10 things, 3 true, 7 false, media fact checks 3 of them and found 1
false statements.
media happily declares A is a big fat liar and B is more honest than A.
Not to mention whether a statement is true or not most of the times also
depends on the perspective, especially how one interprets the statistics.
In the 2012 presidential debate. One single host did one single fact check
during the live de... 阅读全帖
p******e
发帖数: 897
29
WASHINGTON — Days before the presidential election, James Alefantis, owner
of a local pizza restaurant called Comet Ping Pong, noticed an unusual spike
in the number of his Instagram followers.
Within hours, menacing messages like “we’re on to you” began appearing in
his Instagram feed. In the ensuing days, hundreds of death threats — one
read “I will kill you personally” — started arriving via texts, Facebook
and Twitter. All of them alleged something that made Mr. Alefantis’s jaw
drop: that Co... 阅读全帖
n******g
发帖数: 17225
30
false id, false driver's license, false SS card, false, green card...

发帖数: 1
31
弗林向聯邦調查局說謊的行為除了可能違反「羅根法」外,已經觸及美國法典第18編第
1001節的內容,即向聯邦政府進行虛假陳述的禁令。
Making false statements (18 U.S.C. § 1001) is the common name for the
United States federal crime laid out in Section 1001 of Title 18 of the
United States Code, which generally prohibits knowingly and willfully making
false or fraudulent statements, or concealing information, in "any matter
within the jurisdiction" of the federal government of the United States,
even by mere denial[clarification needed]. A number of notable peopl... 阅读全帖
M******e
发帖数: 1193
32
来自主题: USANews版 - 又一个“温和”穆斯林
Police in Prince William County said Tuesday that a report of an attack on a
13-year-old girl who wore a headscarf in Woodbridge was false.
In a statement, police said a school resource officer and the department’s
detectives found that the girl last week had “falsely reported” the
incident, which they were investigating as a hate crime.
According to authorities, the girl said a man had cursed at her, grabbed her
arm and showed a knife near Jato Court and Riverview Lane. She said the man
was bla... 阅读全帖
T**********e
发帖数: 29576
33
来自主题: USANews版 - 福林的起诉是不要撤消了?
福林早已经认罪了,mueller现在要求推迟宣判两个月。
国会听证FBI探员认为福林没有意撒谎,可他居然认罪了,有猜测是被FBI威胁他儿子。
但法庭能判一个没犯法的认罪吗?
The Mystery of Michael Flynn’s Guilty Plea
He pleaded guilty to a crime FBI agents said he didn’t commit.
One of the stranger moments of Robert Mueller’s special counsel probe is
Michael Flynn’s Dec. 1, 2017 guilty plea for lying to the Federal Bureau of
Investigation. The former White House national security adviser pleaded
guilty to a single count of making false statements, even though then FBI
director Jam... 阅读全帖
j*********r
发帖数: 24733
34
Prosecutors say homeless offered cash, cigarettes in exchange for hundreds
of signatures
An alleged voter fraud scheme in which Skid Row’s homeless were being
offered money and cigarettes in exchange for “false and forged signatures”
on ballot petitions and registration documents has been uncovered in Los
Angeles, prosecutors announced Tuesday.
The Los Angeles County District Attorney’s Office says it is charging nine
people in total with felony counts related to the offenses, which are said
to ... 阅读全帖
r*********t
发帖数: 4911
35
只要liberal觉得不合适的谎言,在我看来都是善意的谎言. 难道我无权做这个自定义?
就许你罔顾事实,强行自定义什么是傻什么不是?
此外你这15个所谓的谎言的最终数据源本身说的是false claim,跑你嘴里却是谎言。即
使是华邮,标题都是false claim 而内容也细化到false claim, lie, and misleadi
ng claims, 而不仅仅是lie. 你把这三类东西当成lie在说,可见,你自己就在说谎。
https://www.washingtonpost.com/graphics/politics/trump-claims-database/?utm_
term=.a0701404b665
https://www.washingtonpost.com/politics/2018/12/30/year-unprecedented-
deception-trump-averaged-false-claims-day/?utm_term=.591f422e797f
我的话,在你看来鬼都不信,可我认为,你的话鬼都不信,因为事实就和你的话相冲突。
z***t
发帖数: 10817
36
来自主题: USANews版 - 纽时专门有个fact-check的记者
邱琳达女士 半个老乡吧
事实是观点的根据和来源 弄清事实无比重要 她算的对不对??
1 墙对el paso暴力犯罪率的影响
2 羁押非法移民床位容量的减少会不会放跑坏人
还有这一系列:
He exaggerated when he claimed that he had presided over an “economic
miracle.” (The strong economy is a continuation of trends that began before
Mr. Trump took office.)
He falsely claimed that terminally ill patients could not get access to
experimental drugs before he signed a “Right to Try” law. (A similar
federal program had existed for decades before Mr. Trump signed the law last
summer.)
He claimed... 阅读全帖
i***0
发帖数: 8469
37
Traffic Science
Do you want to have an impact on the largest eCommerce website? Are you
interested in solving cutting edge research problems while impacting all
eBay advertising channels? Does working with BigData, cloud computing, and
machine learning excite you?
If you answered yes, the Marketing Science team is hiring Applied
Researchers to understand what/when/how to market to our customers. Bring
your ideas, energy, and dedication to reach and engage the next 100M eBay
users. The Market... 阅读全帖
z********0
发帖数: 1835
38
var currentOoId = 3445;
var part_currentOffer = $('ooCurrentOutput').innerHTML;
var part_resFee = $('ooContentOutput').innerHTML;
var part_resFailed = $('ooContentOutput').innerHTML;
var part_currentOfferLoaded = false;
var part_resFeeLoaded = false;
var part_resFailedLoaded = false;
var user_qualified = 1;
var adOoId = false;
var activeOOIds = Array();
activeOOIds[0] = 3383;
activeOOIds[1] = 3445;
activeOOIds[2] = 3446;
activeOOIds[3] = 3447;
activeOOIds[4] = 3450;
activeOOIds[5] = 3451;
loadCa... 阅读全帖
o**********e
发帖数: 18403
39
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: onetiemyshoe (onetiemyshoe), 信区: SanFrancisco
标 题: 烙印简历造假 (HM,大公司的朋友看过来)
发信站: BBS 未名空间站 (Sat Apr 12 09:02:15 2014, 美东)
注意打(简历)假了。 特别是高大上的烙印。
他要是隐藏结业早期的一些经历,那很可能掺假。
http://www.salesforce.com/company/leadership/executive-team/#ku
比如这个同学。 别人都写了毕业学校,他却
遮遮掩掩。
Bangalore: Every day the Indian IT industry wakes up with new challenges
which could be from hiring skilled professionals to cost cutting during
recession. Fake resumes are one of them. Since this is the firs... 阅读全帖
f*******o
发帖数: 43
40
有什么aisian professor协会之类可以帮帮她吗?声援一下也好。
发信人: doublebull (doublebull), 信区: Military
标 题: 谁来说说UTSA的美女教授Ruoting Pei被诬陷解雇的事?
发信站: BBS 未名空间站 (Mon Oct 5 13:46:40 2015, 美东)
看报道好像是被诬陷帮助中国政府研究炭疽并被学校解雇。但后来FBI也没查出什么来
。谁能仔细讲讲,看看大家能为她做点什么。
Lawsuit: False Allegations of Anthrax Research Led to Discriminatory Firing
Miriam Rozen, Texas Lawyer
istockphoto.com
A former University of Texas at San Antonio biology professor, who is a
native of China, filed an employment discrimination lawsuit against the
school.
In... 阅读全帖
o*****o
发帖数: 299
41
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: orinoco (其若是), 信区: SanFrancisco
标 题: 大家都用什么Home Secuirty system的?
发信站: BBS 未名空间站 (Fri Jul 26 14:13:33 2013, 美东)
我打听了一下,mornitor的比如ADT啥的,贵也就罢了,关键有false alarm,而且
False Alarm又找不到你,他就call 911了,然后就得给政府掏钱。
而且这玩意如果半夜false alarm个几次,那简直太痛苦了。
我现在想买一套这样的系统自己安装,不用mornitor的,但是系统上会自动通过给我发
短信或者打手机报警。大家有什么建议吗?特别是质量比较好,False Alarm比例比较
低的。
或者大家用其他什么方案吗?
多谢
y****n
发帖数: 192
42
来自主题: JobHunting版 - 问2道面试题
有那么夸张吗?
private static Boolean isPrefix(String prefix, String s1) {
if(prefix.length()>s1.length())
return false;
for(int i=0; i
boolean t = prefix.charAt(i)==s1.charAt(i);
if (false==t)
return false;
else if (true==t&& i == prefix.length()-1)
return true;
}
return false;
}
y****n
发帖数: 192
43
来自主题: JobHunting版 - 问2道面试题
有那么夸张吗?
private static Boolean isPrefix(String prefix, String s1) {
if(prefix.length()>s1.length())
return false;
for(int i=0; i
boolean t = prefix.charAt(i)==s1.charAt(i);
if (false==t)
return false;
else if (true==t&& i == prefix.length()-1)
return true;
}
return false;
}
H*M
发帖数: 1268
44
来自主题: JobHunting版 - matrix question
agiven n by n matrix( elements are either 0 or 1)
find out if there exist a row i and column j such that
1) all elements of row i are zeros
2) all elements of column j are 1s
3)(i,j) entry can be either 0 or 1
my thinking is:
sum each row and each column
if sumRow[i] > 1 mark it false
if sumCol[i] also for those rows and cols,if they are not marked false, record the 1 posi
tions for row and 0 positions for col when doing sum.
for those cols and rows that are not marked false
P********l
发帖数: 452
45
How about this version using Dynamic Programming?
The basic idea is fill in a table for a matching path. If the last pair
matches, the whole string will match.
mtch is the array, which is of (string length + 1)*(pattern length + 1).
mtch[0][*] and mtch[*][0] is padded with false.
Then the function is something like:
mtch[i][j] =
1. if pattern char='.', mtch[i][j]=mtch[i-1][j-1]
2. if pattern char='*', mtch[i][j]=mtch[i-1][j-1] || mtch[i][j]=mtch[i-1][
j]
3. if pattern char=string char, mtc... 阅读全帖
P********l
发帖数: 452
46
Same as previous version but only 1-dimension array is used.
time complexity is still O(mn).
You can check the code here:
http://code.google.com/p/sureinterview/source/browse/src/solution/string/WildcardMatching.java
After you logged in, you can conveniently put comments on the code.
/**
* check if patt matches the string str. Same as {@link match} but
* one-dimension array is used.
*
* @param str
* the string to match
* @param patt
* ... 阅读全帖
i**********e
发帖数: 1145
47
另外,这是我的重写的新代码,我觉得比我之前的版本要简洁些。
而且这版本也处理'.'为一个任意字母。
bool match(const char *str, const char *pattern) {
const char *p1 = pattern, *p2 = str;
// If the first character is a letter, need to match letter by letter.
while (*p1 != '*') {
if (!*p1 && !*p2) return true;
if (!*p1 || !*p2) return false;
if (*p1 == '.' || *p1 == *p2) {
p1++;
p2++;
} else {
return false;
}
}
while (true) {
// Now *p1 must be '*'
while (*p1 && *p1 == '*') {
p1++;
... 阅读全帖
s*******f
发帖数: 1114
48
来自主题: JobHunting版 - facebook电面题目
bool FindThreeNum1(int in[], int len, int sum, int out[]){
if (!in || len < 3 || !out)
return false;
std::sort(in, in + len);
int prej = 1;
int prek = len - 1;
for (int i = 0; i < prek - 2; ++i){
bool nobig = true;
bool nosmall = true;
int j = prej;
int k = prek;
int two_sum = sum - in[i];
while(j < k){
if (in[j] + in[k] == two_sum){
out[0] = in[i];
out[1] = in[j];
... 阅读全帖
i**********e
发帖数: 1145
49
来自主题: JobHunting版 - 问道 facebook 面试题
其实不递归 代码或许会更简单些
void outputJSon(istream &in) {
bool newLine = false;
bool inBracket = false;
int indentLevel = 0;
while (in) {
char c = in.get();
if (newLine) {
cout << endl << setw(indentLevel) << c;
newLine = false;
}
else {
cout << c;
}
if (c == '{') {
indentLevel += TAB_SPACE;
newLine = true;
} else if (!inBracket && c == ',') {
newLine = true;
} else if (c == '}') {
newLine = true;
} else if (c == '[') {
... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)