|
w*******y 发帖数: 60932 | 2 mwave has ASUS WL-500Gp V2 Premium V.2 (DD-WRT Compatible) 802.11b/g Multi-
Functional Wireless Router with x2 USB Plug-N-Share hard drive function and
Print Server Function [mwave.com] for $64 - $40 Rebate = $24 Ar + FS
If you have a review coupon get it for $19 AR + FS
|
|
w*******y 发帖数: 60932 | 3 Mwave has a refurbished ASUS WL-500Gp V2 Premium V.2 (DD-WRT Compatible) 802
.11b/g Multi-Functional Wireless Router with x2 USB Plug-N-Share hard drive
function and Print Server Function:
http://www.mwave.com/mwave/SKUSearch.asp?px=MK&scriteria=76258A
for $20 with free shipping.
Probably won't last long.
|
|
h****n 发帖数: 4960 | 4
(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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
(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){... 阅读全帖 |
|
h****n 发帖数: 4960 | 5
(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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
(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){... 阅读全帖 |
|
r*******1 发帖数: 2894 | 6 400刀 toysrus [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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
面值100的
4000+ Sears [email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=... 阅读全帖 |
|
k***e 发帖数: 556 | 7 今天想实现前两天大家讨论的minmaxheap找median,结果碰到一个问题。
I want pass function pointer to create a heap that has comparison function
as I defined. Thus I don't need both minHeap maxHeap. By the way, because I
have heap with template parameters, I also need function pointers with
template parameter.
It looks like:
template
class Heap {
private:
T* data;
public:
Heap(const vector& dataSrc, bool (*cmp)(T, T);
};
However, I cannot get a function pointer with template parameter. I really
had no idea h |
|
C***y 发帖数: 2546 | 8 【 以下文字转载自 Programming 讨论区 】
发信人: Chevy (Chevy), 信区: Programming
标 题: C++ function template问题
发信站: BBS 未名空间站 (Mon Nov 28 15:02:20 2011, 美东)
我有两个function,一个传入pointer,另外一个传入refernce
例如:
void func(int& a);
void func(double* a);
有办法为这两个function写一个function template吗?
Thanks! |
|
m********1 发帖数: 31 | 9 "Effective C++" Meyers mentions a reason for a pure virtual function to have
a body: Derived classes that implement this pure virtual function may call
this implementation smwhere in their code. If part of the code of two
different derived classes is similar then it makes sense to move it up in
the hierarchy, even if the function should be pure virtual.
ISO C++ 12.4 (7):
A destructor can be declared virtual (10.3) or pure virtual (10.4); if any
objects of that class or any derived class are crea... 阅读全帖 |
|
f****4 发帖数: 1359 | 10 typedef int (*sf)(int n);
sf fps = &myFunc.next;
fps(111);
error: ISO C++ forbids taking the address of a bound member function to form
a pointer to member function. Say ‘&Function_pointer::next’
error: cannot convert ‘int (Function_pointer::*)(int)’ to ‘int (*)(int)’
in initialization
typedef int (*sf)(int n);
sf fps = (sf)&myFunc.next;
fps(111);
error: ISO C++ forbids taking the address of a bound member function to form
a pointer to member function. Say ‘&Function_pointer::next’
warning: co... 阅读全帖 |
|
n*******7 发帖数: 181 | 11 基本概念不清啊。function pointer是runtime 变量,可以赋函数地址的值。函数地址
是compile time决定。stack方向应该看stack pointer,和function无关。
:for example:
:我有两个function pointer, 分别指向两个不同function。 |
|
H***8 发帖数: 18 | 12 如果覺得你可以勝任以下職位,請將簡歷寄到[email protected]
/* */, 可以幫忙內推到
Apple
Job Summary
The Haptic Engineering team develops cutting-edge Haptic solutions and
technologies that are central to Apple’s products, including the iPhone and
Apple Watch. The key goal of the Haptic Engineering team is to enable the
world’s best user-experience. New challenges arise everyday that require
the sharp problem-solving skills of talented and smart individuals. The team
features a collaborative and hands-on environment th... 阅读全帖 |
|
o*****l 发帖数: 539 | 13 Is there a way that we could invoke a function dynamically?
For example, at some point of the program, I need to call a function, but
the function name, input parameters need to be dynamic, which will be define
in a config file, loaded when the program start. The function always
return a integer.
the config file like this:
|
|
h****e 发帖数: 2125 | 14 said it's more efficient to put often-used and short functions as inline, so
they are taken care of at compile time, to save function calls overhead and
improve performance thereafter. this I understand, but how do u define "short
functions"?? dozens of lines or a
few hundred lines? or some big functions, I can divide them into smaller
funcs and make them inline?? besides, what bad impact if I make some large
funcs inline? |
|
w***g 发帖数: 5958 | 15 对。指call function back。一般情况下调用某个功能传一些参数进去就足够了,但是
有时光参数不够,就要传function进去。比如一个算数值积分的程序,就需要传进去一
个被积函数。至于"call back"这个名字,就是美国人打电话时说的"call back",可能
对中国人来说不是很熟悉。
function pointer. |
|
a***m 发帖数: 74 | 16 Hello,请高手指点:
I am using Matlab integral function. I need to integrate a function of one
variable t for different values of a parameter y. The output is a vector for
each value of the parameter y.
for example:
function f = myfunc(x, a)
b = 0.5;
f = a+quad(@myInt, 0, 0.5*pi, [], b, x);
function v = myInt(t,b,x)
v = cos(t*b).*x;
%main.m
a = 4;
x = [ 1,2,3];
f = myfunc(x,a);
I got error message says:
??? Error using ==> mtimes
Inner matrix dimensions must agree.
Error in ==> myInt at 2
v = cos(t*b). |
|
j***i 发帖数: 1278 | 17 C++ 里面用function 除了 空间开销小点,还有什么优势,
把所有函数用function obj 有什么问题.
python function 好像就是全部都是 obj |
|
l*********s 发帖数: 5409 | 18 Two entry level questions,
1) to declare extern functions, does the compiler differentiate between
"const" and non-const versions? In other words, is constness of /return value and/or arguments part of the function signature?
2) Say, in one source file defined a function ff(str& a),, then in the other
file the function is referenced/declared, however, these two files use
different namespaces, both have defined the symbol str. What will happen? |
|
D*****r 发帖数: 6791 | 19 Does a python function return a reference to a large mutable object?
I can't read chinese on this machine...
My question is:
If I use a function to create an object (for example a browser object from
mechanize module, or a dictionary from reading a csv file) and return it,
does it only return a reference?
I am doing work on these large objects and the function is getting too long.
I want to use seperate functions to do work. But I certainly don't want the
large object to be duplicated or disappe... 阅读全帖 |
|
n*****y 发帖数: 552 | 20 Let's say I have category as 'a', how can get items from the function below?
This is a javascript function. Really feel lost how to use the parameter
success.
thanks a million
getItemsInCategory(category, success, failure)
Description
Asynchronously retrieves an array of all items which belong to the specified
category.
Parameters
category – [required] [string] The category to query. Currently, the only
categories which contain items are “a”, “b”, “c”.
success – [optional] [function (requestId, ... 阅读全帖 |
|
p*****2 发帖数: 21240 | 21
这是刚从wiki上查的
First class functions have slowly been added to mainstream languages. For
example, in early 1994, support for lambda, filter, map, and reduce was
added to Python. Then during the development of Python 3000, Guido van
Rossum called for the removal of these features.[40][41] So far, only the
reduce function has been removed, but remains accessible via the functools
standard library module.[42] First class functions were also introduced in
PHP 5.3, Visual Basic 9, C# 3.0, and C++11.
Th... 阅读全帖 |
|
d*******i 发帖数: 77 | 22 我看到 functional programming 好处。
* immutable. 这点在并行运算中力量很大. 试想如果保证所有的arguments 都没有
state change那传统一以上的locking, synchronization就不存在了或没必要了。 大
大提高了程序可读性和可维护性。
* First class/Hight order functions. function 可以作为argument。 好处是大大
提高function 的易重用行和简便性。
* Syntax 简单。 上边讲过AST, Java 有很多事先制定 好的keyword match 到AST。
不过clojure 自己就是一个AST, 程序员可以自己定制macros, 所以程序syntax 很简
单又很flexible. 学一种语言不用象Java 那样去记它特定的语法。
由于强调 immutable , no state. FP 在现实production中多用于后台数据处理。 现
在在Big data 里很吃香。 但是有些时候是不可能完全no state, 比如你的程序调用
3rd pa... 阅读全帖 |
|
g*****g 发帖数: 34805 | 23 If your so claimed functional programmers did not land a job as a functional
programmer, they are not a functional programmer. Or they are a jobless
functional programmer. Plain and simple.
When you can find a ton of bad java programmers employed, you know for sure
a good java programmer can get a good paycheck. That's the point.
The remaining Cobol programmers are probably very good, that doesn't mean
Cobol isn't dead.
or
H1B
Java |
|
b***e 发帖数: 1419 | 24 Well, if that's by definition your logic, then I certainly cannot beat you
on it. But I disagree. To your point, you can similarly argue most of the
PHDs hired by Google or Facebook are jobless computer science researchers.
In my opinion, a functional developer, as smart and capable she/he is,
usually lands a good job easily, regardless if the job is directly related
to functional programming or not. The thoughts and insights gained from
understanding functional languages is beyond merely usi... 阅读全帖 |
|
p*****2 发帖数: 21240 | 25
这是刚从wiki上查的
First class functions have slowly been added to mainstream languages. For
example, in early 1994, support for lambda, filter, map, and reduce was
added to Python. Then during the development of Python 3000, Guido van
Rossum called for the removal of these features.[40][41] So far, only the
reduce function has been removed, but remains accessible via the functools
standard library module.[42] First class functions were also introduced in
PHP 5.3, Visual Basic 9, C# 3.0, and C++11.
Th... 阅读全帖 |
|
d*******i 发帖数: 77 | 26 我看到 functional programming 好处。
* immutable. 这点在并行运算中力量很大. 试想如果保证所有的arguments 都没有
state change那传统一以上的locking, synchronization就不存在了或没必要了。 大
大提高了程序可读性和可维护性。
* First class/Hight order functions. function 可以作为argument。 好处是大大
提高function 的易重用行和简便性。
* Syntax 简单。 上边讲过AST, Java 有很多事先制定 好的keyword match 到AST。
不过clojure 自己就是一个AST, 程序员可以自己定制macros, 所以程序syntax 很简
单又很flexible. 学一种语言不用象Java 那样去记它特定的语法。
由于强调 immutable , no state. FP 在现实production中多用于后台数据处理。 现
在在Big data 里很吃香。 但是有些时候是不可能完全no state, 比如你的程序调用
3rd pa... 阅读全帖 |
|
g*****g 发帖数: 34805 | 27 If your so claimed functional programmers did not land a job as a functional
programmer, they are not a functional programmer. Or they are a jobless
functional programmer. Plain and simple.
When you can find a ton of bad java programmers employed, you know for sure
a good java programmer can get a good paycheck. That's the point.
The remaining Cobol programmers are probably very good, that doesn't mean
Cobol isn't dead.
or
H1B
Java |
|
b***e 发帖数: 1419 | 28 Well, if that's by definition your logic, then I certainly cannot beat you
on it. But I disagree. To your point, you can similarly argue most of the
PHDs hired by Google or Facebook are jobless computer science researchers.
In my opinion, a functional developer, as smart and capable she/he is,
usually lands a good job easily, regardless if the job is directly related
to functional programming or not. The thoughts and insights gained from
understanding functional languages is beyond merely usi... 阅读全帖 |
|
n*w 发帖数: 3393 | 29 excel本身,很早以前看到过有人这么说。
google到这个
“While most people don't call it programming, technically excel
spreadsheets comprise a functional programming language, and like most
functional programming languages, it excels (pun intended) at numerical
calculations. Each cell contains a constant or a formula, which is a pure
function since it has no side effects. Whenever a cell is changed, the "
program" executes. Selection is done via functions like IF or HLOOKUP.
Sequence is determined by formula dependenc... 阅读全帖 |
|
z*****m 发帖数: 119 | 30 技术上差别很大,不是一回事儿.
当然,理论上functional programming把AOP的功能给包括了,纯functional language
是不需要AOP的。直接function裹function就完了。 |
|
e*******o 发帖数: 4654 | 31 如何找出所有的recursive function?
copy 一段代码到一个function,一不小心,拷贝的代码调用了这个function。
out of memory,太恶心了。
有没有方法可以检测所有的recursive function,这样,就可以很快发现问题。 |
|
d******c 发帖数: 2407 | 32 函数式一大好处是可以比较容易引入并行。能够几乎不改变代码就支持并行就是新鲜高
级的东西,10年前有吗?各种语言和库都支持吗?天底下没有新鲜事,但是很多东西的
做法不同,context不同,效果完全不同。
你给我来个python list comprehension并行看看。GIL从根子上就限定了python,
python作者自己说了一大堆python不是函数式的话,实际上他就不怎么喜欢。看他的文
章,完全是因为别人要,别人加的,他是持保留态度的。
I have never considered Python to be heavily influenced by functional
languages, no matter what people say or think. I was much more familiar with
imperative languages such as C and Algol 68 and although I had made
functions first-class objects, I didn't view Python as a f... 阅读全帖 |
|
c*******u 发帖数: 14 | 33 Functional genomics 功能基因组学
鬼子已经几乎完成了水稻基因组的测序工作,
所谓functional genomics是指:
Development and application of global experimental
approaches to assess gene function by making use of
the information and reagents provided by structural
genomics(see Functional Genomics in Plants, 1998,
Plant Physiol. 118:725-732) |
|
w*****g 发帖数: 47 | 34 what do u need this for?
why do u particularly need the production function to be like this? you can
use the function as u like to model it. of course, the C-D function has some
wonderful properties.
does this has something to do with your major work? and what is the realation
ship between C-D function and returns to scale? i think this may be related
to IO (returns to scale determine the size of degree of integration of firms) |
|
m******t 发帖数: 273 | 35 【 以下文字转载自 Statistics 讨论区 】
发信人: myregmit (myregmit), 信区: Statistics
标 题: Predict values of vectors by other vectors generated by black box
functions
发信站: BBS 未名空间站 (Sun Mar 2 11:38:56 2014, 美东)
Hi,
I need to solve a problem about predicting values of some numerical vectors
by using other numerical vectors with all these vectors in the same vector
set, which is generated by one or more black box functions.
Given a vector space:
P =[S_1, S_2, …, S_T | Sk is a vector of q numbers, k = 1, ..., T]... 阅读全帖 |
|
m******t 发帖数: 273 | 36 【 以下文字转载自 Statistics 讨论区 】
发信人: myregmit (myregmit), 信区: Statistics
标 题: Predict values of vectors by other vectors generated by black box
functions
发信站: BBS 未名空间站 (Sun Mar 2 11:38:56 2014, 美东)
Hi,
I need to solve a problem about predicting values of some numerical vectors
by using other numerical vectors with all these vectors in the same vector
set, which is generated by one or more black box functions.
Given a vector space:
P =[S_1, S_2, …, S_T | Sk is a vector of q numbers, k = 1, ..., T]... 阅读全帖 |
|
a**r 发帖数: 4 | 37 【 以下文字转载自 Love 讨论区 】
【 原文由 abor 所发表 】
Love(t,x)=integral(-infinite, t){M(t')*E(x)d(t')}
This is a love functional.
t, the current time.
M(t'), the memory function, representing your emotional
history effect. Typiclly,
M(t')=exp[-(t-t')/personality]
personality is a constant for a particular person.
The whole function means that the recent feeling has larger
effect on love than those long before.
E(x), the enviroment function, representing the enviroment
effect. Most important variable is the d |
|
m******t 发帖数: 273 | 38 【 以下文字转载自 Statistics 讨论区 】
发信人: myregmit (myregmit), 信区: Statistics
标 题: Predict values of vectors by other vectors generated by black box
functions
发信站: BBS 未名空间站 (Sun Mar 2 11:38:56 2014, 美东)
Hi,
I need to solve a problem about predicting values of some numerical vectors
by using other numerical vectors with all these vectors in the same vector
set, which is generated by one or more black box functions.
Given a vector space:
P =[S_1, S_2, …, S_T | Sk is a vector of q numbers, k = 1, ..., T]... 阅读全帖 |
|
m******t 发帖数: 273 | 39 【 以下文字转载自 Statistics 讨论区 】
发信人: myregmit (myregmit), 信区: Statistics
标 题: Predict values of vectors by other vectors generated by black box
functions
发信站: BBS 未名空间站 (Sun Mar 2 11:38:56 2014, 美东)
Hi,
I need to solve a problem about predicting values of some numerical vectors
by using other numerical vectors with all these vectors in the same vector
set, which is generated by one or more black box functions.
Given a vector space:
P =[S_1, S_2, …, S_T | Sk is a vector of q numbers, k = 1, ..., T]... 阅读全帖 |
|
S******y 发帖数: 1123 | 40 I have a function which takes in two arguments -
1) data : input data frame
2) x: a column name
But within function, it seems that I cannot use data$x to properly
reference an existing column within my data frame.
For example,
> library(MASS)
> length(iris$Species)
[1] 150
> fx<-function(data, x) {
+ print(length(data$x))
+ }
>
#hope to return 150. but none of the following is working right!!!!
> fx(iris,Species)
[1] 0
> fx(iris,'Species')
[1] 0 |
|
w**2 发帖数: 147 | 41 请教大牛们,如何用window functions来算出 3day moving avg。那个error msg看不
懂呢,为啥要hive context。
多谢了~
例子如下,
from pyspark.sql import Window
from pyspark.sql import SQLContext
import pyspark.sql.functions as func
Table T:
Date Num
07/01 2
07/02 3
07/03 2
07/04 2
07/05 5
07/06 6
07/07 7
sqlCtx = SQLContext(sc)
T.registerTempTable(“T”)
w = Window.partitionBy(T.Date).orderBy(T.Date).rangeBetween(-2,0)
a = (func.avg(T["Num"]).over(w))
T.select(T["Date"],T["Num"],a.alias("... 阅读全帖 |
|
|
w*******y 发帖数: 60932 | 43 mwave has ASUS WL-500Gp V2 Premium V.2 (DD-WRT Compatible) 802.11b/g Multi-
Functional Wireless Router with x2 USB Plug-N-Share for $32 Ar + FS
Link:
http://www.mwave.com/mwave/SKUSearch_v3.asp?scriteria=AA76258&p WL-500Gp V2 Premium V.2 (DD-WRT Compatible) 802.11b/g Multi-Functional Wireless Router with x2 USB Plug-N-Share hard drive function and Print Server Function
|
|
发帖数: 1 | 44 function - 说人话
functionality - 装逼鬼话 |
|
a******9 发帖数: 20431 | 45 functionality= 席卷可以杀猪
function = 席卷杀猪前有时候会给猪放血
:军版知道的不超过五个 |
|
s*******b 发帖数: 14 | 46 哪位有多余的ultimate points可以转给UA的,[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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
或者[email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b... 阅读全帖 |
|
p********x 发帖数: 5583 | 47 发信人: pangxiongx (pangxiong), 信区: FleaMarket
标 题:
发信站: BBS 未名空间站 (Sun Jul 27 12:46:25 2014, 美东)
二手交易风险自负!请自行验证是否合法和一手卡!:
y
我想卖的物品:
coash GC $[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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();... 阅读全帖 |
|
s***i 发帖数: 603 | 48 二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
US Airway [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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
, AA [email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagNam... 阅读全帖 |
|
y*****e 发帖数: 567 | 49 二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
110k AA [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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
单张面值:
110k AA [email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsB... 阅读全帖 |
|
g***h 发帖数: 3246 | 50 我想要的物品:
Kohls [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)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
, Kohls [email protected]
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1... 阅读全帖 |
|