由买买提看人间百态

topics

全部话题 - 话题: functi
1 (共1页)
w*****s
发帖数: 230
1
附件是主治大夫的reasoning(email回复,红字), 他的水平我们还是很佩服的,因为
他已开始猜了个病就和我们宝宝症状非常一致,可惜后来发现不是;而且他不是代谢病
专家。
问题是坚持宝宝不吃长链脂肪酸的奶粉后,他奇迹般地改善了;完全出乎医生们的预料
。我感觉医生列的是常见的代谢病,而我们感觉宝宝吃长链脂肪酸似乎是慢性中毒,大
概需要一个月左右才能体现出来。因为过程很慢,我们怀疑很多方法查不出来。
我们最大的问题是如果是这种病怎么查?不能确认的话他一辈子吃饭都受影响,基本也
就很难出门时间长一点了。尤其是他的肝已经在要换的边缘。医生们现在改口说他的病
程都是偶然,可我们不能同意。为什么每次都是长链吃一段时间就得病,尤其是这次停
了鸡蛋后马上改善。。
谢谢大家。 (下面是文字,可惜设置不成红色)
Q: Our biggest concern is the reason of his liver damage.
A: The biopsy shows severe fibrotic changes and tells us that this is not a
liver that ... 阅读全帖
w*****s
发帖数: 230
2
【 以下文字转载自 Biology 讨论区 】
发信人: wwwjobs (minimouse), 信区: Biology
标 题: 请看看附件图片文字,建议我们能做什么呢?
发信站: BBS 未名空间站 (Thu Jan 16 12:24:03 2014, 美东)
附件是主治大夫的reasoning(email回复,红字), 他的水平我们还是很佩服的,因为
他已开始猜了个病就和我们宝宝症状非常一致,可惜后来发现不是;而且他不是代谢病
专家。
问题是坚持宝宝不吃长链脂肪酸的奶粉后,他奇迹般地改善了;完全出乎医生们的预料
。我感觉医生列的是常见的代谢病,而我们感觉宝宝吃长链脂肪酸似乎是慢性中毒,大
概需要一个月左右才能体现出来。因为过程很慢,我们怀疑很多方法查不出来。
我们最大的问题是如果是这种病怎么查?不能确认的话他一辈子吃饭都受影响,基本也
就很难出门时间长一点了。尤其是他的肝已经在要换的边缘。医生们现在改口说他的病
程都是偶然,可我们不能同意。为什么每次都是长链吃一段时间就得病,尤其是这次停
了鸡蛋后马上改善。。
谢谢大家。 (下面是文字,可惜设置不成红色)
Q: Our big... 阅读全帖
z******t
发帖数: 59
3
来自主题: JobHunting版 - Google onsite问题
For the 6-th question: Stack with a function to get the minimum elment,
there is a wonderful blog for it:
http://codercareer.blogspot.com/2011/09/no-02-stack-with-functi
It provides a solution with O(1) auxiliary space. Time efficiency for min,
pop and push are all O(1). Enjoy it :-)

We
's
r******7
发帖数: 58
4
来自主题: JobHunting版 - Bloomberg电话面试真题并求答案
下面是本人近日在Bloomberg电话面试中被问到的题目及我自己的答案。面试后我问
考官我答得如何。他说因为面试是用同一套题目,所以不能告诉我哪题答对。这样说来
,这些题目可能对大家都有用。我贴一下向本版回馈。因为我的专业是EE,对这些编程
问题也没有把握。希望大家指出我回答中的错误。多谢。
注:题目以数字排序。以字母排序的是我的回答及注解。
Asked Questions
1. How to divide a number by 8 without using division?
a) Use bitwise shift >>3
2. What is register in C?
a) Register variables are stored in the registers in CPUs. Other
variables are stored in memory chips. Thus, register is faster.
3. The return of the sizeof functi
z******t
发帖数: 59
5
来自主题: JobHunting版 - google电面杯具,贡献题目
第二轮的题目O(1)时间找出栈中的最小值,有只需要O(1)辅助空间的解法,见下述博客:
http://codercareer.blogspot.com/2011/09/no-02-stack-with-functi

is
the
z******t
发帖数: 59
6
来自主题: JobHunting版 - google电面杯具,贡献题目
第二轮的题目O(1)时间找出栈中的最小值,有只需要O(1)辅助空间的解法,见下述博客:
http://codercareer.blogspot.com/2011/09/no-02-stack-with-functi

is
the
p********r
发帖数: 3243
7
thanks.

。重点是他谈的都是就事实来说话,不是光说你牛啊,牛啊牛。所以这样非独立也就有
power了,还有就是讲detail,这样贡献就很清晰了。我block了一些个人信息,但最大
可能的保留了原文,基本到了可以被人肉的地步,但只要对后来人有用,被人肉了也在
所不辞.在此也要special thank 我的老板,居然花了两个小时在办公室给我修改律师
写好的推荐信。
immunologist who has made significant contributions to our understanding of
immunosenescence --- the decline in immune responsiveness that occurs as
part of aging. Dr. Genegun’s current research position is in the Department
of AA at BB Medical School, where he has been a major researcher for many
years. I am a... 阅读全帖
T**M
发帖数: 658
8
谢谢!

。重点是他谈的都是就事实来说话,不是光说你牛啊,牛啊牛。所以这样非独立也就有
power了,还有就是讲detail,这样贡献就很清晰了。我block了一些个人信息,但最大
可能的保留了原文,基本到了可以被人肉的地步,但只要对后来人有用,被人肉了也在
所不辞.在此也要special thank 我的老板,居然花了两个小时在办公室给我修改律师
写好的推荐信。
immunologist who has made significant contributions to our understanding of
immunosenescence --- the decline in immune responsiveness that occurs as
part of aging. Dr. Genegun’s current research position is in the Department
of AA at BB Medical School, where he has been a major researcher for many
years. I am a Pro... 阅读全帖
C****i
发帖数: 1776
9
第一课 神学:以信学神
一、何谓“神学”
“神学 Theology”是由希腊字“Theos 神”与“logos 学”所组成,意即“学习认
识神”。简言之,“神学”即是“学神”,乃是灵修、敬拜、赞美的生活。诚如中世纪
神学家阿奎纳 Thomas Aquinas 所言:“神学乃是为神所教导、教导我们认识神、引导
我们归向神”。所以“神学”就是“灵修,灵命造就”,就是圣经所说的:“属灵的人
用圣灵所指教的言语,将属灵的话,解释属灵的事,给属灵的人听”(林前二13)。“
神学”是以“圣灵所指教的言语”(即圣经,神的话)来学习认识神。我们必须照着神
自己所启示的来做神学讨论与研究。正如现代神学家巴刻 J. I. Packer 给“神学”所
下的定义:学习聆听圣灵在圣经中所说的话,照着遵行来改正指引我们的生活。因此,
在谈论神学之前,必须先以“主啊请说,仆人敬听”的心谦卑聆听神的话。唯有如此,
神学研究才会正本清源,才会带来生活的实效。如此的神学才会使人真正认识神,学神

真正认识神的人,必然爱神、服事神。所以,“神学”就是学神、爱神、事神,这
是一体的三面,缺一不可。诚如十二世纪的著名祷文“每... 阅读全帖
B*********e
发帖数: 254
10
来自主题: TrustInJesus版 - the Story of the Adulteress in John 8
Bible Research > Textual Criticism > Story of the Adulteress
Concerning the Story of the Adulteress
in the Eighth Chapter of John
Biblical scholars are nearly all agreed that the Story of the Adulteress (al
so known as the Pericope Adulterae or the Pericope de Adultera) usually prin
ted in Bibles as John 7:53-8:11 is a later addition to the Gospel. On this p
age I present some extended quotations from scholarly works that explain the
reasons for this judgment. On another page I give an extract f... 阅读全帖
n*******3
发帖数: 5232
11
publication不是特别好,我还是贴出来吧,不要砸砖头。
BMC bioinformatics两篇,一个一作,一个二作,
Computational Biology and Chemistry 一篇,一个一作。
Amino Acids 一作
其他几个小journal,一作,或者二作。最近投了一个bioinformatics,不知道能不能
中。
conference
International Symposium on BioInformatics and BioEngineering 一篇,一作
IEEE Symposium on Computational Intelligence in Bioinformatics and
Computational Biology 两篇,一作或者二作。
其他若干conference,一作或者2作。
问题是,我以前不是作bioinformatics方向的,是作machine learning的。后来老板跑
掉了,转过来的。这个领域作了2年半。所以publication不多。
研究方向:prediction of Protein functi
b****r
发帖数: 1272
12
As shown in figure: In 3D, Given 2 links attached end to end with lengths
L1 and L2 respectively, a point P1 that the first link starts at, and a
point P2 that you want the end of the 2nd link to be at, write a function
that finds the configurations of the links that put the 2nd link’s end at
point P2.
我的理解是这个function是(P1,P2,L1,L2),但是输出(link的configuration
)应该怎么表达呢? 我想分三种情况讨论:
1.if distance(P1,P2) > L1+L2 : 无解(不可能把线段L2放到P2点)
2.if distance(P1,P2) == L1+L2 : 有唯一解 (两个线段在一直线上,交点就是P1,P2
中点),这种情况functi
s*****r
发帖数: 59
13
来自主题: Internet版 - how to pass checkbox value to php functi
how to pass a set of parameter in php code?
eg. user check a number of check box, and click ok, how could I pass the list
of all that checked box id to a function written by php? Thanks very much!
how could I pass the variables returned by the checkbox to the function:
move_file in php code ? (they are not in the same class).
I put checkbox inside a form, like this;

.....
g*****g
发帖数: 34805
14
来自主题: Programming版 - Refactoring long class step by step (1)
Lately I tried to break down a long class which had 3000+ lines of code
developed by someone coz I am having a hard time maintaining it. And it's
common in everyone's project.
Here are some practical steps and tips I want to share and would welcome
any comments and suggestions. Most of them you can find more details in
refactoring books.
1. Remove unused fields and functions. If there's no references, simply
remove them unless you are providing standard API to open public.
2. Move utility functi
i***0
发帖数: 8469
15
来自主题: Programming版 - CODING QUESTIONS
CODING QUESTIONS
Please write a solution for each of the following coding questions:
1. Given a singly linked list of integers, write a function to remove all
nodes with even values, and then provide a set of test cases against that
function.
2. Write me a function that receives three integer inputs for the lengths
of the sides of a triangle and returns one of four values to determine the
triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate
test cases for the functi
d****p
发帖数: 685
16
来自主题: Programming版 - Question about name resolution in C++
Recently one of my colleagues did something below:
A.h
class A
{
public:
...static void Foo() { ... }
};
B.cpp
#include "A.h"
namespace MyStuff {
void A()
{
....A::Foo(); // name clash for function A and class A
}
}
The funny thing is visual studio c++ accepts this so he checked the above
code in and thus broke unix build.
He finally fixed this by using another name for function A in B.cpp.
My question is: is there a way to get the thing around without changing
names for either class A or functi
y***a
发帖数: 840
17
来自主题: Programming版 - C++ optimization question
compilers can be used to optimize this kind of code. But to say "it doesn't
matter actually" is really far-fetched. The fact is that the compielr can b
e easily confused and then gives up the optimizations that are easy from the
user point of view.
to do that, comipiler has to do good inlining to eliminate the member functi
on calls (many compiler does poor job on that).
oftentimes actually this is the easist thing, it has some benefit because it
eliminates function call overhead. but oftentimes
P********e
发帖数: 2610
18
机子空闲的人可以试试
这样:
class A
{
virtual void f1(){};
.
.
.
virtual void f129(){}
};
void (*A::fp)() = &A::f129();
A a;
(a.*fp)();
t****t
发帖数: 6806
19
你写个编译都不可能过的东西叫别人试试?
h****g
发帖数: 71
20
No this problem on G++4.4. I guess it may appear on MSVC.
struct A
{
virtual void f1(){};
virtual void f2(){};
virtual void f3(){};
virtual void f4(){};
virtual void f5(){};
virtual void f6(){};
virtual void f7(){};
virtual void f8(){};
virtual void f9(){};
virtual void f10(){};
virtual void f11(){};
virtual void f12(){};
virtual void f13(){};
virtual void f14(){};
virtual void f15(){};
virtual void f16(){};
virtual void f17(){}
P********e
发帖数: 2610
21
you are right.
i am asking is because that initially
void (A::*funp)() = &A::f2;
int i = (int) funp;
print i;// i = 2;
they changed this design later.
t****t
发帖数: 6806
22
...人都贴了可以编译过的版本了, 你随手又给改成不能编译的了
c**r
发帖数: 108
23
MSVC 10.0 is fine with this.
p*****m
发帖数: 7030
24
three 1st or co-1st papers, 2Neuron 1JN
Xu W, Schlüter OM, Steiner P, Czervionke BL, Sabatini B, Malenka RC. Molecu
lar dissociation of the role of PSD-95 in regulating synaptic strength and L
TD. Neuron. 2008 Jan 24;57(2):248-62.
Schlüter OM, Xu W, Malenka RC. Alternative N-terminal domains of PSD-95 and
SAP97 govern activity-dependent regulation of synaptic AMPA receptor functi
on. Neuron. 2006 Jul 6;51(1):99-111.
Helton TD, Xu W, Lipscombe D.Neuronal L-type calcium channels open quickly a
nd
c*******h
发帖数: 1096
25
来自主题: Computation版 - Parallel computing in Matlab
man, not everyone makes comments before he realizes others are not newbies.
when you use 2007b, i am now using 2008a, and i guess you would like to know
the new features in the parallel computing toolbox in this new version of
matlab. so you can go find it out and try.
and you think mentioning a tesla 10 product that may not have been on the
market to someone who asks about how to do parallel computing is a good
suggestion?
and please point out a cuda matlab plugin that you think is fully functi
l***g
发帖数: 1035
26
来自主题: EE版 - [job post] - 2 PV priciple
Principal Research Engineer PV Systems
There has never been a better time to join our truly global company. We have
been helping our customer realize significant savings in energy consumption
for over 77 years, and now we offer a position where you will play a key ro
le in meeting our ambitious aspirations for the future. The growing awarenes
s world wide for environment and alternative energy sources are enabling us
to create strong paybacks for our customers and we need you to help us devel
op... 阅读全帖
N***l
发帖数: 52
27
来自主题: Mathematics版 - a question about optimization
I think there are counter examples (bad examples) for both of your
composite ``optimal" objectives.

Hi there,
Sorry I can't input Chinese right now.
Please help me with the following question. Thank you so much!
To solve a problem, I have two objectives:
1. choose xi to max f(xi),
2. choose xi to min g(xi).
where f(x) and g(x) are two functions of x.
Since there are two objectives, I want to combine them to one objective
function to ease the problem.
Two possible choices of the objective functi
D******4
发帖数: 47
28
来自主题: Quant版 - 请教: c++ 重载问题
遇到一个关于terminate() 在 c++里的重载问题,请问各位大虾这个如何是好。。
Which of the following methods can a developer use to override the default
ter
minate() function in C++?
A. Write the terminate() function with two int arguments.
B. Write the terminate() function with a runtime_error
argument.
C. Pass the address of the overriding function to the
set_terminate() functi
on.
D. Write the terminate() function with one int argument.
E. Write the terminate() function with a runtime_... 阅读全帖
q**j
发帖数: 10612
29
i just looked at the R help doc, it seems to me that the "<<-" operator will
only work this way when you do not have a variable called 'b' in the functi
on defined. so i am not fully convinced that this qualifies as a passing by
reference.
Can you come up with an example w/o the need to define a function? I mean on
ly at the top level, i.e., global environment? Thanks.
q**j
发帖数: 10612
30
like this case:
> a = 10
> b <<- a
> b
[1] 10
> a = 2
> b
[1] 10
if it is by reference, i got the memory location of a, so its value should c
hange after we reassign 2 as a's value. but it did not change.

will
functi
by
on
p********a
发帖数: 5352
31
☆─────────────────────────────────────☆
kkkchina (kk) 于 (Sun Sep 5 20:48:19 2010, 美东) 提到:
比如说我有一串数列:
0 1 0 0 3 5 0 0 0 4
在这个数列里面一共有六个零,不过零的最长连续个数是三。
不知道excel里面能不能实现?我现在只能在excel里找到如何求某数值的总个数。
请各位高手赐教,sas 或者 r的做法也行,万分感谢!
☆─────────────────────────────────────☆
songkun (告别棒球场) 于 (Sun Sep 5 21:37:06 2010, 美东) 提到:
你要找的目标数(你例子里面的0) 是已知的还是未知的?
比如(1, 0, 0, 0, 2, 2, 2, 2) 是要返回(最长连续"0"的)3
还是返回(最长连续"2"的)4.
比如你要是希望找最长的相同数段(2,2,2,2)的话
a <- c(1, 0, 0, 0, 2, 2, 2, 2)
find.consecutive.same <- functi
a*****3
发帖数: 601
w*j
发帖数: 336
33
来自主题: _voip版 - GV+Asterisk 1.8不能接来电
google voice 的配置里,只选中了google talk
打出没问题,应该是加载成功了吧?用module show命令,出来36个module,有一个叫
chan_gtalk.so:
res_adsi ADSI Resource
res_jabber.so AJI - Asterisk Jabber Interface
format_pcm.so Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G.
codec_ulaw.so mu-Law Coder/Decoder
format_g726.so Raw G.726 (16/24/32/40kbps) data
codec_g726.so ITU G.726-32... 阅读全帖
1 (共1页)