由买买提看人间百态

topics

全部话题 - 话题: attributes
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
b******y
发帖数: 139
1
来自主题: Programming版 - How to use reflection in C# to do this job?
Suppose I have a class as follows,
public class C
{
int id;
string name;
double amount;
public void ClassToDatarow(ref datarow r)
{
r["id"] = this.id;
r["name"] = this.name;
r["amount"] = this.amount;
}
}
Class C may have many attributes, every time I make a change to the
attributes I have to do the same to the function. Can I use some iteration
to finish the ClassToDatrow job without writing all r["var"]= this.var?
k***r
发帖数: 4260
2
来自主题: Programming版 - 有点挠头
这个都有。可以看到name value attribute等。里面有很多attributes和name决定
不同business logic分支。但是我不想用很多的if去处理,那样不能应付嵌套结构,
或者比较灵活的组合。我想设计a set of classes去处理这些不大,但是可能比较
复杂多变的情况。这个事情没想清楚。
c******e
发帖数: 558
3
来自主题: Programming版 - 问个XPath的问题
/title/[@lang] will select title element's all child nodes, which has lang
as attribute.
but how to select those child nodes that doesn't have the lang attribute?
Please advise, gurus! Thank you in advance. :-)
c*****s
发帖数: 49
4
来自主题: Programming版 - 请教显示object name的问题(c++)
Thanks all for your answers. Indeed I need to pass something else other than the object name.
blueivan, you are right, I do need a data member -- found some lecture notes
used the same method.
I later realize that even within "catch", I have no way to display the
object name even the object address has been passed by exception. Then I
realize in reality, the identifier for the object is always some attribute,
not the object name (or address). This attribute is what should be printed
out in the e... 阅读全帖
r*****3
发帖数: 143
5
中文名: HTML5 & CSS3 (第1版)
原名: HTML5 and CSS3: Develop with Tomorrow's Standards Today
作者: Brian P. Hogan
图书分类: 软件
资源格式: PDF
版本: 英文文字版/更新源代码
出版社: Pragmatic Bookshelf
书号: 978-1934356685
发行时间: 2011年
地区: 美国
语言: 英文
简介:
内容介绍:
HTML5 and CSS3 are the future of web development, but you don't have to wait
to start using them. Even though the specification is still in development,
many modern browsers and mobile devices already support HTML5 and CSS3.
This book gets you up to speed on the new HTML5 elements ... 阅读全帖
g*****g
发帖数: 34805
6
来自主题: Programming版 - 如何设计一个停车场。
In real world practice, this will be a single database table,
with whatever attribute you need, e.g. level. And build index
on those attribute you frequently search. It's faster, it's simpler.
Call it B+ tree if you want.

置?
g*****g
发帖数: 34805
7
来自主题: Programming版 - 如何设计一个停车场。
In real world practice, this will be a single database table,
with whatever attribute you need, e.g. level. And build index
on those attribute you frequently search. It's faster, it's simpler.
Call it B+ tree if you want.

置?
x**n
发帖数: 461
8
来自主题: Programming版 - C# is light-years ahead of Java now
大家都觉得C#有很多新feature,而JAVA没有,跟我的感觉差不少。C#
的以下feature我都在用:
LINQ
Lambda Expressions
WCF
WPF
Closures
Dynamic types and the DLR
Named and Optional arguments
Covariance and Contravariance
Task
事实上可以把他们都当作扩展库,除了Dynamic是真正新东西,而且最终Dynamic从我们
的code中消失了。
但是我最想用的AOP在.NET上基本就是靠attribute了,想weaver只能靠做梦,即使有
weaver也是动态的,没有象Java那样有一堆的静态weaver。首先作为一个坚定的POCO支
持者,为了AOP而用attribute是不可理喻的。其次,动态weaver的performance
penalty有多大还不知道,如果实在不行恐怕最后还是只能回到原始的OO的路上了。
m***i
发帖数: 2480
9
来自主题: Programming版 - 为什么java要用setter和getter
It is not that important now, because all modern IDEs can extract an
accessor out of an attribute. You can always start with a public attribute
for simplicity and refactor the code as needed.
f********o
发帖数: 1163
10
#!/usr/bin/python
import os;
import sys;
class Person:
''' Defines a Person class '''
population = 0
def __init__(self,name):
''' I really hate the indents. '''
self.name = name;
print 'The person'"'s"'name is %s' % self.name;
Person.population += 1;
def __del__(self):
print '%s says bye;' % self.name
Person.population -= 1
if Person.population == 0:... 阅读全帖
G***l
发帖数: 355
11
来自主题: Programming版 - 抛砖引玉,来谈谈functional programming
Functional Programming这几年来越来越热。 最近几年FP开始流行。众多纯FP或者FP
为主的语言出现,比如haskell, clojure, ocaml, f#等等。 很多非FP的语言都不约而
同的加入一定的FP功能,C#,C++,Java(将要)。很多一定程度支持FP的比如Python,
Ruby之类也很流行。
FP好用吗?答案是肯定的。Emacs和它所有的插件都是lisp写的,Emacs多牛逼这里就不
多说了。工业界的例子,华尔街著名的高频交易公司Jane Stree Capital的系统就是
OCaml写的,这种系统不管是的复杂性,可扩展性还是,可靠性和性能要求都是很高的。
FP的优点在哪里?wiki的词条上面列了一些fp的特性和优点,我就不赘述了。下面说一
些我的个人体验。水平有限,思维比较杂乱,大家见谅。
写程序,不管是过程式,OO还是fp,说到底是还是数据和算法。过程式样的思维,你会
想到一个input,然后这个input怎么转化,操作,最后变成output。OO能让你灵活的拆
分开数据和算法并且模块化。但你只要用OO建模过,你就会发现一开始你想的就是有... 阅读全帖
G***l
发帖数: 355
12
来自主题: Programming版 - 抛砖引玉,来谈谈functional programming
Functional Programming这几年来越来越热。 最近几年FP开始流行。众多纯FP或者FP
为主的语言出现,比如haskell, clojure, ocaml, f#等等。 很多非FP的语言都不约而
同的加入一定的FP功能,C#,C++,Java(将要)。很多一定程度支持FP的比如Python,
Ruby之类也很流行。
FP好用吗?答案是肯定的。Emacs和它所有的插件都是lisp写的,Emacs多牛逼这里就不
多说了。工业界的例子,华尔街著名的高频交易公司Jane Stree Capital的系统就是
OCaml写的,这种系统不管是的复杂性,可扩展性还是,可靠性和性能要求都是很高的。
FP的优点在哪里?wiki的词条上面列了一些fp的特性和优点,我就不赘述了。下面说一
些我的个人体验。水平有限,思维比较杂乱,大家见谅。
写程序,不管是过程式,OO还是fp,说到底是还是数据和算法。过程式样的思维,你会
想到一个input,然后这个input怎么转化,操作,最后变成output。OO能让你灵活的拆
分开数据和算法并且模块化。但你只要用OO建模过,你就会发现一开始你想的就是有... 阅读全帖
k**********g
发帖数: 989
13
来自主题: Programming版 - Sun当年设计Java的败笔

PInvoke stored as .NET Attributes (MSIL Metadata, see http://en.wikipedia.org/wiki/Metadata_(CLI) )
These attributes tell JIT how to generate the glue code. This aspect of code
-generating metadata cannot be easily encoded by bytecodes alone.
z****e
发帖数: 54598
14
显然不是
xuer最出名的一次是那次公然发帖
说手下一个北航毕业的孩子
把一个object里面的attributes用setter/getter方法给包装起来
引起它大怒,然后要求全部去掉,直接访问内部attribute
引发一群人围观,自此成名
d*******r
发帖数: 3299
15
来自主题: Programming版 - 我去你妈的AWS,byebye,操你妈的
M3.med 这种大路货应该是共享的厉害, 换大的 size 应该就好很多.
另外, 一直跑的机器, 如果贵, 其实不一定要 AWS.
AWS 最牛B 的用处是, 要 scale out 的时候,
编程随便开一堆机器, 用完就自动关, 其实挺省的.
建议自己用监控 lib 写个 logger, 看看卡的时候 CPU 各个使用的百分比.
可以用下面这个 python psutil, 简单易用, 跨所有平台, 估计 20 多行就搞定了.
http://pythonhosted.org/psutil/
psutil.cpu_times(percpu=False)[source]
Return system CPU times as a namedtuple. Every attribute represents the
seconds the CPU has spent in the given mode. The attributes availability
varies depending on the platform:
user
system
idle
nice (UNIX)
io... 阅读全帖
G******n
发帖数: 572
16
来自主题: Programming版 - 发个面试题
抛砖引玉欢迎讨论
order class 有三个map:attribute,filterable,measurable
id-》value
所有的id都是enum
query的时候可以用filter
measurable目前有qty和price
需要一个aggregation layer
attribute就存static data
r****t
发帖数: 10904
17
git 内置了一些关于 latex 的知识,加了 gitattributes 以后,diff 的时候应该会
在 hunk header 里面告诉改动发生在哪个 section, 不过我没有验证。 这个是 man
gitattributes, 里面还建议 *.bib diff=bibtex
Each group of changes (called a "hunk") in the textual diff output is
prefixed with a line of the form:
@@ -k,l +n,m @@ TEXT
This is called a hunk header. The "TEXT" portion is by default a
line that begins with an alphabet, an underscore or
a dollar sign; this matches what GNU diff -p output uses. This
default sel... 阅读全帖
e*********s
发帖数: 200
18
win2k 里, 你可以看到是不是 EFS 啊. Windows Explorer, 打开 attributes 那一栏,
如果文件的 attribute 中有一个 "E" 就是 EFS 加密过的文件呀.


.
不知道这句话的意思是说原操作系统的admin

这个encrytion
w*****o
发帖数: 105
19
来自主题: Windows版 - Access denied???
I just bought a new PC (XP home), and a set up an account as adminstrator.
I met a problem when I tried to install some software, the error message
tells me that the folder C:\Documents and Settings\All Users\Documents is
read-only. i tried to re-set the attribute, but all failed.
can any HH tell me how to reset the attribute for that folder?
thanks,
g******6
发帖数: 162
20
【 以下文字转载自 Seattle 讨论区 】
发信人: gomo6666 (gomo6666), 信区: Seattle
标 题: 哪位在ms工作的,帮我看看email被block的问题,或帮我转发一下吧,急
发信站: BBS 未名空间站 (Tue Apr 24 10:55:59 2012, 美东)
我老爸的msn帐号登陆不进去了(估计是中毒然后自动发垃圾邮件了),然后我帮他重
新设置密码,然后登陆,就进入:
You accounthas been blocked的页面,需要点“continue”继续。但是点了continue
之后,就是这个:
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons).... 阅读全帖
m**********y
发帖数: 14
21
来自主题: XML版 - Problem with transformNode??
I use
document.write(xmldomobj.transformNode(xsldomobj.documentEle
ment));
to display a webpage (a table), inside my .xsl file, I use
xsl:attribute
to add in an "ID" attribute for a
. The display is ok.
But I when
I keep getting the value of that
by using
eval("ID").innerText, I
will get different values. Is that a bug with
transformNode??? Any suggestion
to improve?? Thanx a lot.
c********e
发帖数: 383
22
来自主题: XML版 - xslt question
要把xml变成另一个xml.
主要是element的顺序变一下,所有的element的attribute都不便。
我不想在xsl文件中,给每个element都作相应的attribute,想用一个
template解决问题。大家有没有什么想法?
c******e
发帖数: 558
23
来自主题: XML版 - 问个XPath的问题
/title/[@lang] will select title element's all child nodes, which has lang
as attribute.
but how to select those child nodes that doesn't have the lang attribute?
Please advise, gurus! Thank you in advance. :-)
c******e
发帖数: 558
24
来自主题: XML版 - 问个XPath的问题
/title/[@lang] will select title element's all child nodes, which has lang
as attribute.
but how to select those child nodes that doesn't have the lang attribute?
Please advise, gurus! Thank you in advance. :-)
v********e
发帖数: 378
25
来自主题: Accounting版 - Tax - Corporate Ownership Question
318(a)(2)(C) is an attributing rule from a corporation. The difference is
that indirect and contructive onwerships are real ownership but by
attribution is "imputed", which is only relevant for testing ownership
purposes.
b*******n
发帖数: 209
26
来自主题: Actuary版 - Massmutual is hiring
OVERALL RESPONSIBILITY:
• Model, test and run products in QRM system, our ERM economic
value model
• Perform Excel-based analyses and programming to support overall
economic value and economic capital assessments and attribution
• Work with systems, line of business actuaries, and ERM staff in
optimizing efficiency of data feeds used, production and testing for
economic analyses
• Facilitate governance, execution, and enhancements to a robust,
repeatable, high... 阅读全帖
p****y
发帖数: 23737
27
Recently, there has been a renewed interest in vegetarian diets. Today there
are countless books, cookbooks, and magazine articles promoting vegetarian
diets and providing guidance for those who wish to follow a meatless diet. A
Short Historical Perspective on Vegetarian Diets
In the past, many viewed vegetarianism as strange and faddish but
appropriately planned vegetarian diets are now recognized by many, including
the American Dietetic Association, as being nutritionally adequate, and
providi... 阅读全帖
h****e
发帖数: 138
28
“在任何学科领域,是否有一个好导师将决定学生的研究生涯初期的成败。” [1]
什么样的导师是好导师呢?2005年,Nature创立了the Nature awards for mentoring
in science,用于表彰在指导研究生方面卓有成效的导师。有关人员广泛收集总结了学
生们对其导师的评价,总结成了给导师的16条建议 [2],如对学生的智力与能力的尊重
,对学生职业发展(甚至选择非学术道路)的尊重,等等。
下文分别列出这16条建议,并引用学生的comments作为例证。基于我与自己的博士导师
&& 我与本科期间的两个导师的各种经历,我highlight了这些comment里让我深有感触
的地方。在异国求学,一个supportive的好导师是如父亲一般的存在(撒花)~
此外,我认为导师“nice”这个说法太笼统。我认为挑导师主要有两个维度:一个是做
人,一个是治学。真正的好导师,做人方面要正直、得体,尊重学生,让学生如沐春风
,心情愉快,感到个人价值受到认可;做研究方面,要非常responsible,对学生的研
究生涯发展很给力,所以push至少比放羊好一点,让学生紧张一点总... 阅读全帖
v**********m
发帖数: 5516
29
http://m.f1000research.com/articles/3-291/v1
波士顿地区的千老联合会的报告,文章提到的问题非常典型和深刻,该文已经在圈内得
到了包括大佬们的极大肯定(恐惧)。
OPINION ARTICLE
Shaping the Future of Research: a perspective from junior scientists[v1;
ref status: approved 1, approved with reservations 1,http://f1000r.es/4ug]
Gary S. McDowell1*, Kearney T. W. Gunsalus2*, Drew C. MacKellar3, Sarah A.
Mazzilli4, Vaibhav P. Pai1, Patricia R. Goodwin5, Erica M. Walsh6, Avi
Robinson-Mosher7, Thomas A. Bowman8, James Kraemer9, Marcella L. Erb10, Eldi
Schoenfeld1... 阅读全帖
b*******x
发帖数: 2469
30
来自主题: ChemEng版 - ExxonMobil Campus Interview
几乎是所有的工程专业^_^
典型的是exxonmobil因为油价赚疯了,疯狂招人。。。。
Application Qualifications
Desired Attributes
The following attributes are desired for this position.
* Desired Degree:
Bachelor of Science, Doctorate, Master of Engineering, Master of
Science
* Desired Major/Concentration:
Chemical Engineering, Civil Engineering, Electrical Engineering,
Environmental Engineering, Industrial Engineering, Materials Science &
Engineering, Mechanical Engineering
* Desired Student Status:
Doc
a******n
发帖数: 37
31
Our team is looking for CS people for our HK office. Candidates who have
less experience, new graduate or who are going to graduate on Dec / May can
apply for our Associate Position. Candidates who has more experience can
apply for our Senior Associate position. Visa can be sponsered if you are
not a Hong Kong resident.
Requirements:
1. BS or MS degree, major in CS.
2. Good computer skills.
3. GPA > 3.0
4. English, Mandarin & Cantonese Chinese.
Please send your resume to h********[email protected].
Be... 阅读全帖
a******n
发帖数: 37
32
Our team is looking for CS people for our HK office. Candidates who have
less experience, new graduate or who are going to graduate on Dec / May can
apply for our Associate Position. Candidates who has more experience can
apply for our Senior Associate position. Visa can be sponsered if you are
not a Hong Kong resident.
Requirements:
1. BS or MS degree, major in CS.
2. Good computer skills.
3. GPA > 3.0
4. English, Mandarin & Cantonese Chinese.
Please send your resume to h********[email protected].
Be... 阅读全帖
C********n
发帖数: 346
33
来自主题: Economics版 - HELP: Psychology applied in economics
Barber and Odean (2001):
"Gervais and Odean [1998] develop a model in which investor
overconfidence results from self-serving attribution bias. Investors
in this model infer their own abilities from their successes
and failures. Due to their tendency to take too much credit for
their successes, they become overconŽdent. Deaux and Farris
[1977], Meehan and Overton [1986], and Beyer [1990] and that
the self-serving attribution bias is greater for men than for
women. And so men are likely to b... 阅读全帖
m*****t
发帖数: 3477
34
来自主题: EE版 - Top 10 foundry in 2011 - EET
The worldwide semiconductor foundry market totaled $29.8 billion in 2011, a
5.1 percent increase from 2010, according to market research firm Gartner
Inc. The top four foundries held their rankings from the previous year. But
of those four only the leader, TSMC, increased its market share, taking it
to 48.8 percent of the total foundry business.
Samsung, listed at position nine in the ranking, made about $1 billion of
wafers for Apple in 2011 that are not counted as part of its foundry
business,... 阅读全帖
r***0
发帖数: 406
35
http://www.wsj.com/articles/new-chips-propel-machine-learning-1
Computer users have long relied on Nvidia Corp.’s technology to paint
virtual worlds on the screen as they gunned down videogame enemies. Now some
researchers are betting it can also help save lives—of real people.
Massachusetts General Hospital recently established a center in Boston that
plans to use Nvidia chips to help an artificial-intelligence system spot
anomalies on CT scans and other medical images, jobs now carried out by
... 阅读全帖
t********h
发帖数: 161
36
我现在有个polygon file,想做成3D的,symbology反映一个attribute,3D高度反映另
一个attribute. 我在arcscene里面尝试了extrusion,效果不理想,surface不smooth
,边界变化比较突兀,所以我想用raster,不过问题是,raster的话,我就不能用
symbology了。不知道各位高手有没有办法解决啊?google,百度了半天了,还是没有
结果。谢过
w**********d
发帖数: 155
37
poems A and B are all attribute to author H in ancient times. But these 2
poems differ greatly in tone and vocabulary and in certain details of the
fictional world they depict. So they are almost certainly not the work of
the same poet.
Ask for weakening:
A) several hymns that were also attribute to H in ancient times differ more
from the A in the respects mentioned than does the B.
B) works known to have been written by the same modern writer are as
different from each other in the respects men
c******r
发帖数: 889
38
I think B is better.
Since for B, works dramatically different are "known" to be written by the
same writer. It provides a real example with certainty that the situation in
the stimulus happens.
As for option A, the said hymns are merely "attributed" to H and this
attribution could be wrong just as that of poem A or B. Uncertain facts can
't be used as reference to judge other uncertain facts.
My two cents.
j****i
发帖数: 496
39
Clearly B.
"The same" modern writer here got to refer to the poet who writes poems A
and B, which both attribute to author H. So answer B is saying that this
modern writer/poet's other works are as different from each other as are A
and B. Therefore, A and B are more likely to be from the same modern writer
/poet.
Answer A basically is saying that other works attributable to H are more
like B than A, which bears no weight on whether A and B are more or less
likely to be from the work of the sa
s*********e
发帖数: 1051
40
【 以下文字转载自 Statistics 讨论区 】
发信人: statcompute (statcompute), 信区: Statistics
标 题: an opening coming to my mailbox
发信站: BBS 未名空间站 (Wed Jul 17 17:48:32 2013, 美东)
I am seeking to place a Risk/Pricing Manager. This position is most likely
junior to your status however I am hoping you may know of someone I may want
to speak with. This position will be highly visible and report directly to
the company chief credit officer.This person's contributions will directly
effect the company's bottom line.
Risk /... 阅读全帖
j*****1
发帖数: 66
41
【 以下文字转载自 JobHunting 讨论区 】
发信人: johnus1 (John), 信区: JobHunting
标 题: SAS Quant Developer - Los Angeles
发信站: BBS 未名空间站 (Mon Sep 15 01:03:38 2014, 美东)
contractor 职位,但可以办H1B transfer(不能申请新的H1B),如果合适会长期雇用
。公司是个Fixed Income Asset Management Firm.
发简历到 [email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^... 阅读全帖
l******o
发帖数: 52
42
http://gtnr.it/1tdIeVw
Magic Quadrant for Data Quality Tools
gartner.comOctober 7
Data quality assurance is a discipline focused on ensuring that data is fit
for use in business processes ranging from core operations to analytics and
decision-making, regulatory compliance, and engagement and interaction with
external entities.
As a discipline, it comprises much more than technology — it also includes
roles and organizational structures, processes for monitoring, measuring,
reporting and remediat... 阅读全帖
s*****n
发帖数: 2174
43
来自主题: Statistics版 - A question about basic statistics, thanks.
Short answer: "the sample-size-5 variance" is they way to "compute the
theoretical variance".
Long answer:
It seems you have some confusions about basic concepts.
A distribution has an inherit variance and a lot of other attribute (such as
mean, skewness, etc), but neither of the distribution or the attributes of
the distribution can we see. What we can do is to obtain a sample from that
distribution, and use some function of the sample (a.k.a. statistics) to
guess the underlying distribution or
s*****n
发帖数: 2174
44
来自主题: Statistics版 - R data frame and matrix
1. There is no "table" in R.
2. Data frame and matrix are totally different things. A data frame is
basically a list, with some extra attributes. A matrix is a vector with some
extra attributes.
3. You can convert them in certain cases, but not all.
s*i
发帖数: 388
45
so, using dummy var, if the "store" attribute contains 1000000 stores
e.g. walmart, safeway, etc, then this attribute has a 1000000
dimensional distribution? then this will significantly increase the
computation, because we are expanding the model variable beta to 1
million long?
D******n
发帖数: 2836
46
剛好相反吧,regulation制定人都是不理統計原理的。所以制定出來的東西很不講統計
道理,只講老
百姓能懂的道理。譬如,這個attribute不能用,這個attribute的coefficient的符號
不能是負
的,諸如此類。到最後都手動建模好了。
A*******s
发帖数: 3942
47
来自主题: Statistics版 - 再问multinomial logit
your original question about "model学校会给谁发offer" is way too general,
which leads to thousands of possible candidate models. you must ask a
specific one. For example:
do u wanna predict the joint distribution of offers from various school?
wanna test marginal association between offer and certain attributes?
wanna estimate school-specific or applicant-specific effects?
I kinda feel that you wanna estimate the marginal association between prob.
of offer and some applicants' attributes, in which cas... 阅读全帖
c******g
发帖数: 63
48
来自主题: Statistics版 - 初学者问个线性回归的RSS的问题
我有两个attribute X1 和 X2,response variable是Y. 同时用这两个attribute的
data fit出来的linear model(三个系数的,b2,b1,b0)的RSS,是不是不可能大于仅
用任何一个X_i的data fit出来的model(两个系数的)的RSS啊?
谢谢!
l*********t
发帖数: 18
49
来自主题: Statistics版 - 问一个SAS macro的问题
我写了一个很短的macro, 用来提取sas dataset的attribute.
%macro getattrn(indata=, attrn=);
%if %sysfunc(exist(&indata)) %then %do;
%* open data set;
%let did=%sysfunc(open(&indata));
%* Get attribute;
%let attvalue=%sysfunc(attrn(&did, &attrn));
%* Close data set;
%sysfunc(close(&did));
%end;
%else %let attvalue=-999;
&attvalue
%mend getattrn;
然后call的时候就把值赋给一个marco variable, 比如
%let MV=%getattrn(indata=mydata, attrn=nobs)
按道理这个macro应该返回mydata里面的observation个数. 但是我查MV的值竟然是:
0; 396... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)