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... 阅读全帖
第二个运行结果不对把
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
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... 阅读全帖
这个问题的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.
下面附上了原题的答案,我想用另外一个办法,不过本人超级菜鸟,把自己绕进... 阅读全帖
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... 阅读全帖
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... 阅读全帖
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... 阅读全帖
原来是'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,... 阅读全帖
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... 阅读全帖
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... 阅读全帖
大棋局与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... 阅读全帖
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... 阅读全帖
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... 阅读全帖
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... 阅读全帖
嫌犯被追加起诉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... 阅读全帖
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... 阅读全帖
“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:
... 阅读全帖
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... 阅读全帖
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 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... 阅读全帖
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... 阅读全帖
弗林向聯邦調查局說謊的行為除了可能違反「羅根法」外,已經觸及美國法典第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... 阅读全帖
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... 阅读全帖
福林早已经认罪了,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... 阅读全帖
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 ... 阅读全帖
邱琳达女士 半个老乡吧
事实是观点的根据和来源 弄清事实无比重要 她算的对不对??
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... 阅读全帖
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... 阅读全帖
【 以下文字转载自 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... 阅读全帖
有什么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... 阅读全帖
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
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... 阅读全帖
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
* ... 阅读全帖
另外,这是我的重写的新代码,我觉得比我之前的版本要简洁些。
而且这版本也处理'.'为一个任意字母。
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++;
... 阅读全帖
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];
... 阅读全帖