由买买提看人间百态

topics

全部话题 - 话题: defining
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
b*x
发帖数: 5456
1
来自主题: Chicago版 - 给几个版上无知ID
最近chicago版几大ID是缺钱疯了, 老是比拼无知无畏.
Pension 废除? 是公司不用老的defined benefit pension了. 除了sb 的工会的公司
或者赚钱赚的手软的公司. Defined benefit没了, 大部分是Defined contribution,
就是以401K, IRA为主的.
Defined benefit消失, 主要是人寿命越来越长, 医疗费越来越高. 没法估计未来成本,
公司不愿意背个大包袱.
从投资的角度而言, ETF的兴起, 让投资更加简单和有针对性, 也系统降低了风险, 只
要有点脑子就可以自己manage. 传统的fund行业management fee相对过高了, 电子化的
交易让人投资成本减少不少. Pro averagely -management fee没法beat market.
401K的问题在于, 选择太少, 大部分fund的management fee 太高. 要是401K 能投资
ETf会好很多. 而且, 401K没法选择ultra short, 没法两边赚钱.
认为401K比SS更危险的人真... 阅读全帖
b*x
发帖数: 5456
2
来自主题: Chicago版 - 给几个版上无知ID
最近chicago版几大ID是缺钱疯了, 老是比拼无知无畏.
Pension 废除? 是公司不用老的defined benefit pension了. 除了sb 的工会的公司
或者赚钱赚的手软的公司. Defined benefit没了, 大部分是Defined contribution,
就是以401K, IRA为主的.
Defined benefit消失, 主要是人寿命越来越长, 医疗费越来越高. 没法估计未来成本,
公司不愿意背个大包袱.
从投资的角度而言, ETF的兴起, 让投资更加简单和有针对性, 也系统降低了风险, 只
要有点脑子就可以自己manage. 传统的fund行业management fee相对过高了, 电子化的
交易让人投资成本减少不少. Pro averagely -management fee没法beat market.
401K的问题在于, 选择太少, 大部分fund的management fee 太高. 要是401K 能投资
ETf会好很多. 而且, 401K没法选择ultra short, 没法两边赚钱.
认为401K比SS更危险的人真... 阅读全帖
m****s
发帖数: 7397
3
来自主题: NewYork版 - 有人了解投行么?
可以读读今天的样本文。
投行的工作
就是把商业转为数据
再把数据包装成一个个美丽动人的故事。
***THIS EMAIL MAY BE FORWARDED TO EXTERNAL CLIENTS***
***THIS DOCUMENT MAY ONLY BE SENT EXTERNALLY WITH THE DISCLAIMERS INCLUDED***
**THIS DOCUMENT IS NOT FOR DISTRIBUTION IN CANADA, JAPAN OR BRAZIL**
**THIS DOCUMENT IS NOT FOR DISTRIBUTION IN CHINA (PRC) EXCEPT IN COMPLIANCE
WITH ALL APPLICABLE LAWS AND REGULATIONS**
**ONLY FOR DISTRIBUTION TO AUSTRALIAN "EXEMPT INVESTORS" AS DEFINED IN
CHAPTER 6D.2 OF THE AUSTRALIAN CORPORATIONS ACT 2001 (CTH) (CO... 阅读全帖
g****n
发帖数: 3313
4
来自主题: SanFrancisco版 - 【JOBS】11.01 -- 11.30
以下职位,如果是名校,高分,申请把握会大增,经过内部推荐后,不需要HR
SCREENING, 直接面试。
年底机会不多,大家抓紧。
EMAIL 简历到:GPSFAN#GMAIL.COM
Office Coordinator
The Role:
Company Concierge, a full-time superstar responsible for helping to run the
day-to-day office operations of a fast-growing technology company.
This is no ordinary admin job:
Historically, it has been the entry point to the company for smart, dynamic
working students, recent grads, and people re-entering the workforce. Admin
team members have gone on to work in other parts of ... 阅读全帖
g****n
发帖数: 3313
5
具体讨论或有问题:
https://www.facebook.com/groups/CCCN.CMAIN/
以下职位,如果是名校,高分,申请把握会大增,经过内部推荐后,不需要HR
SCREENING, 直接面试。
强调一下啊,要名校,英语要好,GPA 要好,这个我没办法,是公司的文化。
年底机会不多,大家抓紧。在美国之外的同学就先别折腾申请了。虽然公司支持H1B
EMAIL 简历到:GPSFAN#GMAIL.COM
Office Coordinator
The Role:
Company Concierge, a full-time superstar responsible for helping to run
the
day-to-day office operations of a fast-growing technology company.
This is no ordinary admin job:
Historically, it has been the entry point to the company for smart,
dynamic
working stu... 阅读全帖
A*******s
发帖数: 23
6
【 以下文字转载自 JobHunting 讨论区 】
发信人: AppleJobs ((can help refer)), 信区: JobHunting
标 题: [Apple Jobs]Power system, AC-DC, backlight driver (转载)
发信站: BBS 未名空间站 (Tue Feb 5 01:48:38 2013, 美东)
发信人: AppleJobs ((can help refer)), 信区: JobMarket
标 题: [Apple Jobs]Power system, AC-DC, backlight driver
发信站: BBS 未名空间站 (Tue Feb 5 01:48:09 2013, 美东)
Send resume with position title to a****************[email protected]
Sr. AC-DC Designer
Sr. Power Systems Engineer
Sr DC-DC Power System Design Engineer
Sr. Backlight Dri... 阅读全帖
g**8
发帖数: 4951
7
来自主题: SanFrancisco版 - macOS/Linux 巨大安全漏洞 shellshock
谢谢楼主的贴。这么大的新闻居然没人讨论?
这里是这次事情的wiki,整个事情还在不断更新
http://en.wikipedia.org/w/index.php?title=Shellshock_%28softwar
上班的电脑不算,我自己的电脑自从N年前开始就只用linux了。结果今晚我根据
wiki上给出的命令做了个测试,结果我的这个比较新的某linux distribution也有问题
,当然,目前所有没有patch的linux系统应该全都有问题。。。
我记得很早的时候,unix上default的shell是sh,csh, tcsh这样的shell, bash是后来随
着linux才开始流行起来的,现在需要看看这次这个bash的漏洞,那个env variable使
用上的漏洞,是从bash最初版本就有的,还是随着linux从linux的open source阵营带
进来的,什么时候带进来的具体check-in,我还没更多阅读,冒昧臆测的话,不知是否
如同上次那个heartbleed,也有可能是人故意埋的bug,上次那个heartbleed是个德国
人某年的新年夜check-in的... 阅读全帖
j********r
发帖数: 96
8
来自主题: Seattle版 - System Administrator - Full Time
System Administrator - Full Time position
Salary: 80 - 90k
If interested contact: J**[email protected]
This position is responsible for supporting, managing and implementing all
production and lower environment applications utilized by the company's
internal users and external customers within all business areas. This role
will ensure that Service Level and System Availability targets are
established and met while functioning as the Tier II/III application support
resource for defined applicatio... 阅读全帖
G*******9
发帖数: 4371
9
发信人: agostic (π-packing), 信区: Military
标 题: (中英文)原子弹下无冤魂:B29飞行员查尔斯•斯韦尼将军1995国会演讲
发信站: BBS 未名空间站 (Wed Aug 15 20:13:42 2012, 美东)
只有记忆才能带来真正的原谅,而遗忘就可能冒重复历史的危险。
One can only forgive by remembering. And to forget, is to risk repeating
history.
学英文是为了更好地了解历史。文章很长,有兴趣学英语同时了解历史的同学,希望耐
心地看完(也可以拷贝下来仔细研读)。不仅仅是学英语,更重要的是学如何写作,如
何摆事实,讲道理,反驳质疑。可以学的东西(中英文)原子弹下无冤魂:B29飞行员查
尔斯•斯韦尼将军1995国会演讲很多,就看你是否能够用心去领悟。这是一篇难
得的informative/historical/linguastic article. Enjoy and welcome to comment.
(中英文)原子弹下无冤魂:B29... 阅读全帖
F*V
发帖数: 3978
10
来自主题: CanadaNews版 - 大棋局与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... 阅读全帖
e***s
发帖数: 1397
11
来自主题: GunsAndGears版 - AR15, Legal status of civilian ownership
仔细看一下,有AWB的时候,美国和其它大多数发达国家相比,对半自动步枪的管制都
要严格,管理要松一些的 - 我说管制严,管理松 - 因为美国不要license, 但是用一
些莫明其妙的限制管制了硬件。
现在纽约州通过的SB法律,结果是造成的管理和管制比大多数其它发达国家都要严。
希望纽约的今天不是美国的未来...
http://en.wikipedia.org/wiki/AR-15
AR15
Legal status of civilian ownership
Australia
AR-15 rifles, like all semi-automatic rifles, are subject to strong
restrictions of ownership in all states and territories in Australia. The
only means of legally owning an AR-15/M16-type rifle in Australia today
beyond law enforcement is to have a Categor... 阅读全帖
a****t
发帖数: 1532
12
来自主题: Tennis版 - 关公战秦琼 祖上原先阔过
你把两件事情混淆了。一个是所谓的真伪概念,是说定义是不是well defined,也就是
说会不会引起confusing. 大满贯数是个确定的量,自然是well defined. 同样的道理
,有人用大师赛数量,世界第一周数,这些都是well defined.
另一个是所谓的定义合理性。也就是你在论证的。也许大满贯 大师赛 世界第一周数
等等都有不合理性,但是在新的标准被广泛接受之前,那就是按现在的标准,而且球员
也是朝这个方向在努力。
不管怎么说,原帖所谓的关公战秦琼,这种假设性的东西,肯定是既不合理,也不是
well defined.
g**u
发帖数: 13
13
来自主题: WmGame版 - 哪有LINUX下的Mud client ?
谢谢,我有了,不过我在安装mud (fy3 ) 在freeBSD 2.2.7上的时候
碰钉子了,谁能帮帮我?
下面是报错信息和config.fy3的前部分内容
% ./driver config.fy3 &
[1] 17313
% using config file: config.fy3
Initializing internal tables....
----------------------------------------------------------------------------
风云三(本地) (MudOS v21.7) starting up on FreeBSD - Sun Mar 21 16:58:10 1999
Connected to address server on localhost port 9990
adm/simul_efun/file.c line 20: Undefined function seteuid
adm/simul_efun/object.c line 57: Undefined function getuid
ad... 阅读全帖
j*****t
发帖数: 5475
14
嗯,好像是上了设备之后的第一首单曲,大家听听版麦效果如何
先要谢谢yikeliMM送我的Amazon的伴奏
其次要谢谢味精哥帮忙做的一部分后期以及在后期上的指导
还有我家的酷猫猫,虽然她最终好像啥也没干
歌词如下:
In a way, I need a change
From this burnout scene
Another time, another town
Another everything
But it's always back to you
Stumble out, in the night
From the pouring rain
Made the block, sat and thought
There's more I need
It's always back to you
But I'm good without ya
Yeah, I'm good without you
Yeah, yeah, yeah
How many times can I break till I shatter?
Over the line can't define what I... 阅读全帖
a*****c
发帖数: 3525
15
【 以下文字转载自 Military 讨论区 】
发信人: agostic (π-packing), 信区: Military
标 题: (中英文)原子弹下无冤魂:B29飞行员查尔斯•斯韦尼将军1995国会演讲
发信站: BBS 未名空间站 (Wed Aug 15 20:13:42 2012, 美东)
只有记忆才能带来真正的原谅,而遗忘就可能冒重复历史的危险。
One can only forgive by remembering. And to forget, is to risk repeating
history.
学英文是为了更好地了解历史。文章很长,有兴趣学英语同时了解历史的同学,希望耐
心地看完(也可以拷贝下来仔细研读)。不仅仅是学英语,更重要的是学如何写作,如
何摆事实,讲道理,反驳质疑。可以学的东西(中英文)原子弹下无冤魂:B29飞行员查
尔斯•斯韦尼将军1995国会演讲很多,就看你是否能够用心去领悟。这是一篇难
得的informative/historical/linguastic article. Enjoy and welcome to ... 阅读全帖
s**********d
发帖数: 36899
16
来自主题: Joke版 - american airline需要招些五毛
目前的水平太差了:
http://www.aa.com/content/images/restructuring/AAdvantageProgra
FRQUENTLY ASKED QUESTIONS ABOUT AADVANTAGE
1. Are my AAdvantage miles going away?
No, we intend to maintain our AAdvantage program and ensure that all miles
and elite
status earned by members remain secure and intact. As usual, your AAdvantage
miles
do not expire as long as you have qualifying account activity at least once
every 18
months. Qualifying account activity is defined as any AAdvantage mileage
accrual or
AAdvant... 阅读全帖
G*******s
发帖数: 4956
17
Blinded By Tradition:
An Open Letter to Dave Hunt
Regarding His Newly Published Attack Upon the Reformation, What Love Is This
? Calvinism's Misrepresentation of God
James White
Updated 5/16/02, see bottom of file
Dear Dave,
In the period of time since I finally received my own copy of your book (you
may recall I scanned through it while standing at your table in St. Louis a
t the PFO Conference) I have gone through a number of different emotions. A
t first I was just going to do one Dividing ... 阅读全帖
s********b
发帖数: 3
18
来自主题: TrustInJesus版 - 再来提问一个信奉的问题

回应:
一、注意“长老”不是“老年人”可能是年轻人或中年人。请长老抹油祷告是很正常的
,任何相信圣经的教会都会有人相信并实践的。
二、我不清楚怎样解释‘“圣经”“新约”明确要求女人在教会要“闭口不言”’。
我不知道这个教导是不是绝对的,或“明确”。
例如,哥林多前书十一章,
4 凡男人祷告或是讲道(讲道或作说预言下同),若蒙着头,就羞辱自己的头。 5 凡
女人祷告或是讲道,若不蒙着头,就羞辱自己的头。因为这就如同剃了头发一样。 6
女人若不蒙着头,就该剪了头发。女人若以剪发剃发为羞愧,就该蒙着头。
这些经文意为,女人可以讲道(先知预言)只有蒙头(要不就剪头发)就可以了。与哥
林多前书十四章34-35节的教导有异。我没时间具体查原文希腊文怎么写的。
在网上找到一篇有关文章。(比较长)
http://www.ntrf.org/articles/article_detail.php?PRKey=16
Correctly Interpreting 1 Corinthians 14:33b-35 (Part 1&Part 2)
by Steve Atkerson
If you ever wis... 阅读全帖
t******g
发帖数: 17520
19
来自主题: Wisdom版 - 轮回之说的产生
黄皮猫说的
意识也是无我的。人是意识里的一个概念,先有意识,才有人。但是可以有意识,而完
全没有人的概念。
===============================
乍一看挺对的, 细想想, 还是有问题的
没有人的概念, 首先要建立一个什么是人的概念, 不然没有人的概念本身就不成立
但是下面这个study guide 里面说巴利经书中
it never quotes him as trying to define what a person is at all.
.....
However, once the commentaries used the khandhas to define what a person
is, they spawned many of the controversies that have plagued Buddhist
thinking
ever since: “If a person is just khandhas, then what gets reborn?” “If a
person is just khandhas, and the... 阅读全帖
t******g
发帖数: 17520
20
来自主题: Wisdom版 - 轮回之说的产生
黄皮猫说的
意识也是无我的。人是意识里的一个概念,先有意识,才有人。但是可以有意识,而完
全没有人的概念。
===============================
乍一看挺对的, 细想想, 还是有问题的
没有人的概念, 首先要建立一个什么是人的概念, 不然没有人的概念本身就不成立
但是下面这个study guide 里面说巴利经书中
it never quotes him as trying to define what a person is at all.
.....
However, once the commentaries used the khandhas to define what a person
is, they spawned many of the controversies that have plagued Buddhist
thinking
ever since: “If a person is just khandhas, then what gets reborn?” “If a
person is just khandhas, and the... 阅读全帖
g********r
发帖数: 4248
21
来自主题: Zhejiang版 - 幸福生活是什么样子的?
Defining happiness
Defining happiness can seem as elusive as achieving it. We want to be happy,
and we can say whether we are or not, but can it really be defined, studied
and measured? And can we use this learning to become happier?
Psychologists say yes, and that there are good reasons for doing so.
Positive psychology is “the scientific study of the strengths and virtues
that enable individuals and communities to thrive.” These researchers’
work includes studying strengths, positive emotions,... 阅读全帖
t****g
发帖数: 343
22
来自主题: Programming版 - 神奇的程序。。。。
谁来运行一把?
http://www0.us.ioccc.org/2004/jdalbec.c
#define Nd Np define
#define Ni(N) Np include
#define Np ??=
Ni(def)
Ni(io)
Ni(lib)
Nd Ba BC(B, I)
Nd Be BC(Br, I)
Nd Ca(C, Ca) CB(B, In C, Ca)
Nd Cl(Cl) Cl Cl
Nd Cs const
Nd FrB N = Zr; Fr((O, B = BrB(BrF, I)))
Nd Fe(F) FO (In = Zr; F; In++)
Nd FF FB(B); FB(BF);
Nd FI Fe(IO)
Nd FO for
Nd Fr(F) FO (I = Zr; F; I++)
Nd II I I, In
Nd In(I, Ir) main(I, Ir)
Nd IO In[O[C + I]]
Nd Ir(I) if (I)
Nd Nb N > N && N > -O
Nd Rb(Rb, B) BBr(Br, Rb, B)
h**o
发帖数: 347
23
来自主题: Programming版 - 请问一个implicit conversion的问题(C++)
I get most of your points. But could you belabor a little on your last
sentence please?
The problem I have is that class A is actually built-in in STL and it has
a lot of non-member binary operations. Class B is defined by me. It is a
variant of class A. What I am looking for is a way to implicitly convert
B to A when invoking any function defined for A.
I don't know if this kind of shortcut exits. It is impossible to define a
base class and it looks verbose to define all combinations of A & B f
w**q
发帖数: 3
24
来自主题: Programming版 - what does this code do?
Hi I am not sure what this code does.
I have the following questions
1. where is the case?
2. #define TLV_INTEGER(name, octets) p->name = -1; Is it define a
function
TLV_INTEGER(name, octets) and return a -1? and similar questions on
other #define
3. in
#define PDU(name, id, fields) \
case id: { \
struct name *p = &pdu->u.name; \
pdu->type_name = #name; \
fields \
p->command_id = type; \
p->sequence_number = seq_no; \
t****t
发帖数: 6806
25
来自主题: Programming版 - 一道面试题
actually, in c++, you can't do that, since void* can't be casted to T*.
so in c++, it's simply
#define NULL 0
in fact, this is what linux do:
#if defined(__cplusplus)
#define NULL 0
#else
#define NULL ((void *)0)
#endif
S*******t
发帖数: 97
26
来自主题: Programming版 - 问一下bitmap sorting的问题
看了programming pearls里面的bitmap sorting,
大致上的idea是明白了,但是看了书后面的源码,
实在不明白那三个function set, clr test实现
的原理。有没有人可以解释一下?
#define BITSPERWORD 32
#define SHIFT 5
#define MASK 0x1F
#define N 10000000
int a[1 + N/BITSPERWORD];
void set(int i) { a[i>>SHIFT] |= (1<<(i & MASK)); }
void clr(int i) { a[i>>SHIFT] &= ~(1<<(i & MASK)); }
int test(int i){ return a[i>>SHIFT] & (1<<(i & MASK)); }
m********g
发帖数: 9
27
来自主题: Programming版 - 问个简单的bitwise的问题
在一本书上看到的
就是用bitmap来做sorting的经典题
实在不明白这个什么意思 a[i>>SHIFT] |= (1<<(i & MASK))
后面那个( 1<<(i&MASK) )是什么意思?
codes在下面
#include
#define BITSPERWORD 32
#define SHIFT 5
#define MASK 0x1F
#define N 10000000
int a[1 + N/BITSPERWORD];
void set(int i) { a[i>>SHIFT] |= (1<<(i & MASK)); }
void clr(int i) { a[i>>SHIFT] &= ~(1<<(i & MASK)); }
int test(int i){ return a[i>>SHIFT] & (1<<(i & MASK)); }
n****g
发帖数: 150
28
来自主题: Programming版 - 菜鸟弱问FORTRAN的一个小问题
可以用来实现多个函数共享一块数据
例如:
program xxx
!!! define data here
contains
!!! define functions here
end program xxx
对应C++ 的class
class xxx {
// define data here
public:
// define interface here
};
X****r
发帖数: 3557
29
来自主题: Programming版 - C pre-compiling 如何用macro替换括号?
你其它那些阿猫阿狗准备怎么办?
要是阿猫阿狗的种类不多的话,你可以这么办:
#define declspec(x) declspec_##x
#define declspec_selectany __attribute__((weak))
#define declspec_dllimport declspec(dllimport)
#define declspec_dllexport declspec(dllexport)
其它阿猫阿狗同理。
不过你真的想要declspec(阿猫阿狗)维持原样?不是__declspec(阿猫阿狗)?
g*********s
发帖数: 1782
30
来自主题: Programming版 - 问个函数指针指向操作符的问题
下面这段没问题:
bool op_less(int x, int y) {
return (x < y);
}
bool op_greater(int x, int y) {
return (x > y);
}
bool (*compare_op)(int, int) = is_min ? &op_less : &op_greater;
但是下面这段总是编译失败:
bool (*compare_op)(int, int) = is_min ? &(operator<) : &(operator>);
error: ‘operator<’ not defined
error: ‘operator>’ not defined
这样也不行:
bool (*compare_op)(int, int) = is_min ? &(operator<(int, int)) : &(operator>(int, int));
basic.h:83: error: expected primary-expression before ‘int’
basic.h:83: error: ex... 阅读全帖
a****l
发帖数: 8211
31
我现在有一堆的C程序,需要知道其中宏定义的数值.比如:
file1: #define pig 1
file2: #define sheep 2
file3: #define dog 5
file4: #define total dog+sheep-pig
需要用一个比如perl的脚本程序扫描过所有的文件,然后能输出total=6.问题是显然这
个计算的方法不是固定的,所以脚本程序基本上需要按照C的规定展开宏定义,找到各词
语对应的数值,再计算出最终的数字.
有谁知道perl能不能做这样的工作?如果不是perl,有什么东西能做这样的事?谢谢!
t****t
发帖数: 6806
32
there is NO "execution order" defined here. for C/C++ operators, you may say
precedence and associativity, which defines the binding order of operators:
A op1 B op2 C
is parsed as
(A op1 B) op2 C
or
A op1 (B op2 C)
if op1 has high precedence, then 1st form is taken; op2 has higher precedenc
e, 2nd form is taken. if op1 and op2 has same precedence, associativity kick
s in: if they have left assoc., 1st form is taken, otherwise 2nd form is ta
ken.
however, "execution order" is subtle. in 1st form... 阅读全帖
l***t
发帖数: 10
33
let me try:
~~~~~~~~~~~
1.使用 #define 定义一个值为一年的秒数的常量,不考虑润年。
#define sec_per_year (60*60*24*365)UL
~~~~~~~~~~~
2.使用 #define 定义一个返回两个数中较小的一个的宏。
#define MIN(a,b) ((a)<=(b)?(a):(b))
~~~~~~~~~~~~
3.将变量a定义成如下类型:
1. 有符号整数
int a;
2. 双精度浮点数
double a;
3. 指向一个有符号整数的指针
int *a;
4. 一个十个成员的有符号整数数组
int a[10];
5. 一个函数指针,指向的函数返回类型为有符号整数,有一个有符号整数类型的参数
int (*a)(int);
~~~~~~~~~~~~
4.C语言中的static的用处是?
~~~~~~~~~~~~
5. 写出下面函数被调用时的输出。
void foo(void)
{
unsigned int a = 6;
int b = -20;
(a+b > 6) ? puts("> 6") :
puts... 阅读全帖
c******s
发帖数: 270
34
要被继承的类(DllObject)定义在Project A, 用DLL导出. 而子类(MyClass)定义在
Project B.
在Project A中, 我定义了宏MYDLL_BUILD.
// Config_Project_A.h
#if !defined(MYDLL_BUILD)
# pragma comment(lib, "myDll.lib")
#endif
#if defined(MYDLL_BUILD)
# define MYDLL_API __declspec(dllexport)
#else
# define MYDLL_API __declspec(dllimport)
#endif
// DllObject.h
class MYDLL_API DllObject
{
public:
virtual ~DllObject() {}
protected:
DllObject() { m_count = 3; }
priv... 阅读全帖
t****t
发帖数: 6806
35
actually it's an error, not warning.
[16.3 Macro replacement]
2 An identifier currently defined as an object-like macro may be redefined
by another #define preprocessing directive provided that the second
definition is an object-like macro definition and the two replacement lists
are identical, otherwise the program is ill-formed. Likewise, an identifier
currently defined as a function-like macro may be redefined by another #
define preprocessing directive provided that the second definition is ... 阅读全帖
j******t
发帖数: 788
36
那就再套#define macro
#define P_a (struct A*)p_v
#define P_b (struct B*)p_v
#ifndef CAST_Pv
#define CAST_Pv(type) \
if...
P_a
or P_b
#endif
然后用CAST_Pv(type).
S*A
发帖数: 7142
37
我的机器没有Wei 的好,
但是相对结果还是可以看出来的。
原来的测试程序是严格顺序向后找, 虽然看上去
跳了 40 byte, 但是仍然小于 64 byte 的cache line
size. 但是从访问内存的次序来看是严格增加的。
这个是 cache 最爽的状态。
我改变了输入的次序,变成随机定票段,从输入数组
里面进来,其他的不变。构造输入数组的时间是刨去的。
程序里面 USE_RAND = 1 vs 0
仅仅变的是订票的次序,结果呢?
速度差了整整 4 倍。从 28M 暴减少到7M.当然实际订票
更接近与随机分布。谁排好了一个接一个定。
这就是为什么我会担心 IO 是瓶颈的问题。外部进来的数据,
全部都是 cache miss。这些纯计算的模拟还不能很好的代表真实
的负载情况。
程序如下:
比较快的机器建议增加 ITER 大小,使得总共运行时间超过几十秒。
#include
#include
#include
#define SEGMENTS 10000000
#define INPUTS 1000... 阅读全帖
v******y
发帖数: 84
38
搞对八题
下面二题错了
Which of the following is the most portable way to declare a C preprocessor
constant for the number of seconds in a (non-leap) calendar year?
Response:
#define SECONDS_PER_YEAR 60 * 60 * 24 * 365
#define SECONDS_PER_YEAR 60 * 60 * 24 * 365;
#define SECONDS_PER_YEAR (60 * 60 * 24 * 365UL)
#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)
Which ANSI C compilers allow a variable to be declared both volatile and
const?
Response:
All ANSI C compilers allow this
No ANSI C compilers allow this;... 阅读全帖
c*****t
发帖数: 1879
39
来自主题: Programming版 - just had an interview
I was interviewing for a principle software engineer / architect
position. The manager also gave me an offline interview question.
I did not give it much thought and sent the solution back. Then
I googled the problem afterward. It was the same as this one.
https://github.com/deepsolo9/interview/tree/master/amazon
The solution there was very bad. Obvious problems you can spot:
1. macros should not be defined in the header file. These macros are
strickly for the implementation, and not for... 阅读全帖
d*********e
发帖数: 3835
40
Primary Account Manager (Business Development)
CA Global: Africa Positions has a client that is in need of a Primary
Account Manager. The position is based in Abu Dhabi.
Overview:
Commercial:
• To evaluate the company’s market position in the defined region
• To suggest modifications to the short term sales objectives in line
with the market situation
• To anticipate market trends and changes
Account Management:
• To maintain contact with customers
• To report on sa... 阅读全帖
d*********e
发帖数: 3835
41
来自主题: Aviation版 - Primary Account Manager
CA Global: Africa Positions has a client that is in need of a Primary
Account Manager. The position is based in Abu Dhabi.
Overview:
Commercial:
• To evaluate the company’s market position in the defined region
• To suggest modifications to the short term sales objectives in line
with the market situation
• To anticipate market trends and changes
Account Management:
• To maintain contact with customers
• To report on sales activities
• To keep abreast of regio... 阅读全帖
t*d
发帖数: 1290
42
来自主题: Biology版 - the Real Cost of Sequencing
http://www.genomeweb.com//node/980559?hq_e=el&hq_m=1103092&hq_l
----------------------------------------
A recent study by scientists at Yale University suggests that the actual
cost of sequencing may be much higher than some current estimates indicate
since those figures may not factor in the analysis costs that are necessary
for a successful sequencing project.
In the paper, published in Genome Biology last month, Yale's Mark Gerstein
and colleagues consider costs that weren’t taken into accou... 阅读全帖
m***c
发帖数: 637
43
招聘:世界500强上海研发中心诚聘以下物理化学生物医药海外留学人士。
If you are interested, please email your CV to d****[email protected] with the
position that you are applying as the title.
Assistant Research Scientist-Food Science
Assistant Research Scientist-Polymer
Assistant Research Scientist-Polymer
Assistant Research Scientist-Rheology in Deposition
Assistant Research Scientist-Water Purification
Assistant Research Scientist –Deposition
Product Development Technologist-Skin GDC护肤类产品开发研究(For Skin
Category)
Research Associate (Me... 阅读全帖
p**e
发帖数: 126
44
来自主题: Computation版 - Abaqus modeling/ Orthotropic materials
if you define an anisotropic material, there should be something defines how
the material direction fits to global direction. but the requirement of
orientation in solid section line is stupid, should be an option since
in composite definition, you can choose either use an orientation definition
for each layer or define an angle to the orientation define in the
solid section line.
w***n
发帖数: 1137
45
来自主题: Computation版 - 请问这个mpi程序有什么问题?
如果msize, nsize, ksize,都是300, 没有问题,如果改成3000, 就出现
[mpirund] rank 0 has got signal 11
[mpirund] rank 1 has got signal 11
我用了两个节点计算。
#include
#include "mpi.h"
#define msize 3000
#define nsize 3000
#define ksize 3000
#define MTRSIZE msize*nsize
main(int argc, char* argv[]) {
int p;
int my_rank;
double A[MTRSIZE];
double D[MTRSIZE];
MPI_Status status;
MPI_Comm comm;
long int matrix_size=MTRSIZE;
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WO
m******o
发帖数: 33
46
it all depends on the sequence of definitions. starting from
simple/'intuitive' ones, and build up all those craps. is PI
a intuitive one? not really, you need integretion to define it.
same for e. one approach is, define integral of 1/x as log(x),
then define log(e)=1. etc, etc. that's an intuitive appraoch.
you can't just start by defining a^x, it's not convincing.
s*****e
发帖数: 115
47
来自主题: Mathematics版 - 俺有一个问题一直想不通
Most of real numbers can NOT be defined by 有限长度的文字
because real numbers are defined as limits of Cauchy sequences (only a few real numbers such as sqrt(2) can be defined without using Cauchy sequence), and "most of" Cauchy sequences can NOT be defined (or described) by 有限长度的文字.
j**p
发帖数: 53
48
来自主题: Mathematics版 - statistics question
This sounds like a physics-inspired problem, so let's try a physicist's
approach
1. define a 2-body interaction energy function E(r) -- to achieve the
desired 2-body distance pdf P(d), set $E(r)=-(\ln P(d))/\beta$. See 3 below.
2. define that there is no direct 3-body, 4-body etc. interaction. Hence the
system of N particles total energy is $H=\sum_{i\neq j} E_{ij}(r_{ij})$
3. define the physical system's distribution to be Boltzman distribution,
namely the probability the system is in state is:... 阅读全帖
j**p
发帖数: 53
49
来自主题: Physics版 - Re: statistics question (转载)
【 以下文字转载自 Mathematics 讨论区 】
发信人: joep (joep), 信区: Mathematics
标 题: Re: statistics question
发信站: BBS 未名空间站 (Sat Jan 4 11:57:55 2014, 美东)
This sounds like a physics-inspired problem, so let's try a physicist's
approach
1. define a 2-body interaction energy function E(r) -- to achieve the
desired 2-body distance pdf P(d), set $E(r)=-(\ln P(d))/\beta$. See 3 below.
2. define that there is no direct 3-body, 4-body etc. interaction. Hence the
system of N particles total energy is $H=\sum_{i\neq j} E... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)