D***r 发帖数: 7511 | 1 光有Python显然不行,但是那些常用package基本都有Python的wrapper
所以大家都只用Python是很有可能的 |
|
h******k 发帖数: 810 | 2 找第一份工的时候,三个公司问了三遍atoi。
最后直接告诉对方:注意正负注意溢出忽略leading whitespaces遇到non-numeral停止
,还有BSD stdlib里atoi是strtol的wrapper。惊得他下巴都掉了。 |
|
c******a 发帖数: 198 | 3 1. Given a method (public int Rand()) that returns any random integer in the
int range, write a wrapper method that returns a random number within a
specific range [min, max], assuming int.MinValue <= min <= max <= int.
MaxValue.
my solution was: min + (Rand() - int.MinValue) * (max - min + 1) / (int.
MaxValue - int.MinValue + 1), and use long type to account for overflow
issue. is this solution correct?
2. Given a M*N matrix where some cells are blocked and there may or may not
be a cell which ... 阅读全帖 |
|
s******c 发帖数: 1920 | 4 我狗内部很多人也是心向git的
搞了个git的wrapper巨多人在用
主要就是为了cheap branching
不过那些在狗待了很久的很多真的不会用git
想想也觉得挺可悲 |
|
k****r 发帖数: 807 | 5 I finished one following the similar idea in LC maxPathInTree. Use a wrapper
to return the current closeMax and farMax of each subTree. At the same time
, calculate the currentMaxPathSum:
public static int maxPath = Integer.MIN_VALUE;
public static int maxJumpPathinTree(TreeNode root) {
maxJumpPathHelper(root);
return maxPath;
}
public static SumWrapper maxJumpPathHelper(TreeNode root) {
if (root == null) return new SumWrapper(0, 0);
SumWrapper left = ... 阅读全帖 |
|
k****r 发帖数: 807 | 6 I finished one following the similar idea in LC maxPathInTree. Use a wrapper
to return the current closeMax and farMax of each subTree. At the same time
, calculate the currentMaxPathSum:
public static int maxPath = Integer.MIN_VALUE;
public static int maxJumpPathinTree(TreeNode root) {
maxJumpPathHelper(root);
return maxPath;
}
public static SumWrapper maxJumpPathHelper(TreeNode root) {
if (root == null) return new SumWrapper(0, 0);
SumWrapper left = ... 阅读全帖 |
|
t*****d 发帖数: 525 | 7 【 以下文字转载自 PDA 讨论区 】
发信人: weidong (伊拉克学习小组副组长), 信区: PDA
标 题: 老码农骂小码农的强文。
发信站: BBS 未名空间站 (Mon Nov 2 19:52:49 2015, 美东)
Linus Tovalds骂瞎写代码的小码农,荡气回肠,应该下发所有码农学习。
Christ people. This is just sh*t
.The conflict I get is due to stupid new gcc header file crap. But what
makes me upset is that the crap is for completely bogus reasons.
This is the old code in net/ipv6/ip6_output.c:
mtu -= hlen + sizeof(struct frag_hdr);
and this is the new “improved” code that uses fancy stuff that wants
magical built-in... 阅读全帖 |
|
a*****h 发帖数: 36 | 8 本着国人互助以及传递正能量的真理,发一下我个人找工作过程中整理的machine
learning相关面经以及一些心得总结。楼主的背景是fresh CS PhD in computer
vision and machine learning, 非牛校。
已经有前辈总结过很多machine learning的面试题(传送门: http://www.mitbbs.com/article/JobHunting/32808273_0.html),此帖是对其的补充,有一小部分是重复的。面经分两大块:machine learning questions 和 coding questions.
Machine learning related questions:
- Discuss how to predict the price of a hotel given data from previous
years
- SVM formulation
- Logistic regression
- Regularization
- Cost function of neural networ... 阅读全帖 |
|
a*****h 发帖数: 36 | 9 本着国人互助以及传递正能量的真理,发一下我个人找工作过程中整理的machine
learning相关面经以及一些心得总结。楼主的背景是fresh CS PhD in computer
vision and machine learning, 非牛校。
已经有前辈总结过很多machine learning的面试题(传送门: http://www.mitbbs.com/article/JobHunting/32808273_0.html),此帖是对其的补充,有一小部分是重复的。面经分两大块:machine learning questions 和 coding questions.
Machine learning related questions:
- Discuss how to predict the price of a hotel given data from previous
years
- SVM formulation
- Logistic regression
- Regularization
- Cost function of neural networ... 阅读全帖 |
|
y**********a 发帖数: 824 | 10 I guess both answers are acceptable.
Map Reduce sorts the k-v pairs internally. In this case MR is like a wrapper
of external sort. |
|
j**********r 发帖数: 3798 | 11 For JDK, this is an afterthought wrapper. Design pattern wise, if you are
creating your own class, you can use a private constructor and only expose a
factory method, then it'd be threadsafe. |
|
|
s***d 发帖数: 15421 | 13 【 以下文字转载自 Programming 讨论区 】
发信人: guvest (我爱你老婆Anna), 信区: Programming
标 题: Re: [bssd]人在江湖,身不由己
发信站: BBS 未名空间站 (Fri Dec 8 16:21:17 2017, 美东)
政治套路是个高科技。
今天先讲第一课,如何抄袭别人的软件,working pattern 1.
---------------/-//-----
我们用例子来说明
假如赵策开发了IE
赵策作为星宿派一个人写的code
牛x到顶了
我和好虫两个老印要灭你
好虫是我老板
我是个老印
那我就开会。
我说,开网页速度可以快10倍
好虫一听
这管用吗
你瞎吹的吧?
我说,做做看吧
没人能否定这是个好方向啊
有市场value啊
然后好虫说
赵策干的比你强多了
滚蛋
于是我滚蛋了
再过一周
你会发现
好虫说
马化腾要买我们这个光速浏览器啊
这种听着不靠谱的都有人要
马化腾人傻钱多啊
但是我们技术不ready啊
然后他跟上级大领导汇报
上面大领导讲
Business ready了,做吧
那么要人开始烧资源
这时候请注意,好虫... 阅读全帖 |
|
j***7 发帖数: 19 | 14 http://jobs.jobvite.com/careers/tsra-main/job/oS7c7fw2?__jvst=Career%20Site
你可以直接网上申请,如果符合条件,我可以内部推荐, 站内信箱联系。
Essential Functions and Responsibilities
Provide solution delivery and expert support for OTT head-end integration
and to enable end-to-end streaming delivery and content playback on OTT
device.
Register, understand and own post-sales customer problems/issues with the
application of DTS audio technologies and leverage of SDKs.
Design, Develop and build Proof-of-Concept (PoC... 阅读全帖 |
|
T*****0 发帖数: 22 | 15 Hi, All,
If you have interesting in the following job, please kindly update your
resume to n************[email protected] or contact my cell phone 0086-13811923880
for more details.
---------------------------------------------------
Research Engineer – Computational Advertising
Job Number: 110621
Primary Location: China-Beijing-Haidian
Description
About Yahoo! Labs,
Do you enjoy solving challenging and complex problems? Are you passionate
about dealing with Tega-byte daily data? Do you want to help d... 阅读全帖 |
|
s***a 发帖数: 200 | 16 房子边的几颗树 叶子太多了
前几天看了一下gutter 腐烂的叶子 将其堵得乱七八糟
不得不出手装gutter guard
去home depot看见这种plastic mesh
装好了车库上gutter guard
问题一
每两片塑料网(剪成每片4 feet) 之间 有必要钉一下么
现在是用wire wrapper 很麻烦
问题二
现在看来塑料网是卡在shingle和gutter之间
担心刮大风时被吹走 有必要把其中的一边 用钉子顶在gutter的铝皮上么
下雪时可能会压瘪这塑料网 不过应该不影响秋天挡叶子的功能
因为要借梯子上房(两层) 也求建议 |
|
G***G 发帖数: 16778 | 17 hi
which tools can we use to make dumpling wrappers which are 3 inches in
diameter?
Where to buy?
I am looking for something like this but with sharper edge. |
|
G***G 发帖数: 16778 | 18 I like the idea. It is very smart.
save the plastic wrapper.
And I find out there is another usage of your video:
learning English. |
|
G***G 发帖数: 16778 | 19 last week, I pollinated cantaloupe flowers. But only two out of 10 keeps
growing. I don't know why I did it wronly.
I just cut the male flower and pasted it inside the female flower, and used
tape to wrapper it.
What is your good way to pollinate the cantaloupe flowers?
Thanks. |
|
v********e 发帖数: 1985 | 20 house wrapper可换,换的时候还可以重新做窗框防水。insulation不行,要扒外墙,
那你还不如推了造新的。当然你还可以用专门用在外墙的insulation。 |
|
v****n 发帖数: 40 | 21 不错,看到今天国内一个公司在美国上了这个短融ETF。 相当于在美国就可以买国内的
货币基金了。 人民币4.5%的收益率,算下来我那2万美金存一年就可以买部iPhone 6裸
机了。 现在在BOA存一年连个汉堡都买不了。 回家赶快让老婆转了。
http://www.etftrends.com/2014/12/new-china-onshore-bond-etf-goe
The KraneShares E Fund China Commercial Paper ETF (NYSEArca; KCNY), the
newest member of the rapidly expanding lineup of exchange traded funds
holding renminbi-issued Chinese bonds debuted Wednesday.
With an average maturity of just 128 days and a lineup comprised entirely of
investment-grade holdings, KCNY can be... 阅读全帖 |
|
p*******e 发帖数: 986 | 22 I use plastic wrappers to wrap ice cube tray. After freezing for 4 hours, I
transfer ice cubes to ziplock bags.
My freezer has isolated sections. |
|
a****l 发帖数: 6431 | 23 不抱, use a baby wrapper/carrier?
开始闹觉, |
|
x**i 发帖数: 403 | 24 是裹紧的问题。我的第一个孩子也是,刚回家的第一天就闹了一整夜,后来是放到car
seat上才睡的。我们大人老是觉得,裹着多难受。但小孩在妈妈肚子里这样呆惯了。我
们也是不会裹,就买了那种专门的magic wrapper,很管用,一定要把胳膊裹紧。 |
|
c*******u 发帖数: 12899 | 25 ☆─────────────────────────────────────☆
berryli (berryli) 于 (Mon Sep 10 14:40:48 2012, 美东) 提到:
宝宝是前天下午四点顺产生的,昨天下午五点出院回家。
因为暂时没奶,怕把宝宝饿坏了,就边胸喂边喝医院给的液体奶。
白天倒是吃饱了就睡,可是晚上九点开始,按照医院给的量喂了13ml后,宝宝就一直哭
闹不睡,而且放到妈妈胸前又使劲吸,我们又害怕她没有吃饱。于是隔了一个小时无法
让她不哭闹只好又给她喂奶,这回让她自己停止吸奶瓶,结果喝了17ml。但是还是一直
哭闹,闹到半夜两点半才睡着。
期间都有喂奶和拍嗝,可是喂完之后不哭了迷迷糊糊看着睡着了一放到摇篮上立刻又哭
,一点办法都没有。
作为新妈,问题一堆,心情也很焦虑。请大家帮忙。
1. 第二天的宝宝这么爱哭该怎么安抚? 是因为白天睡多了黑白颠倒么?
2. 我们每次是拍出一个嗝就没拍了,大概拍了两分钟吧,难道要一直拍20分钟么?还
是会有一串的嗝? 哭闹不停是因为胀气么?
3. 该给她吃多少合适呢?按照13ml还是让她自己停止吸奶瓶?
4. 这么小... 阅读全帖 |
|
q******s 发帖数: 289 | 26 最近小朋友的preschool里活动比较多。而且马上又是holiday season了。通常一个小
小的东西就要用gift bag装一下。我看CVS一个小小的礼品袋就要3刀左右,大的就更贵
了,5-6刀的也有。
小朋友过一段时间还要过生日,按照学校的传统,要给班上的每个小朋友一个gift bag
,如果按一个gift bag3刀算,班上16个小孩,光是买袋子就要50刀了。吃不消啊。
请问哪里可以买到便宜的gift bag,gift wrapper之类的东东呢?谢谢了 |
|
q*w 发帖数: 52 | 27 Vitamin D Council 要开一个免费诊所。有兴趣的可以关注一下。下面是我收到的
email.
Vitamin D Council
May 19, 2011
On July 1, 2011, the Vitamin D Council is planning to begin a free clinic
for children with autism. My time will be free, the autism assessment scales
will be free, the blood tests will be free, and the vitamin D for the kids
will be free (due to the generosity of Ddrops). We estimate 3-4 clinic
visits will be needed. Anyone in the world with a child with autism can call
and get an appointment to see me. The Vita... 阅读全帖 |
|
p*******h 发帖数: 184 | 28 A good read from journal today - we need to teach kids to be patient.
When my daughter was 18 months old, my husband and I decided to take her on
a little summer holiday. We picked a coastal town that's a few hours by
train from Paris, where we were living (I'm American, he's British), and
booked a hotel room with a crib. Bean, as we call her, was our only child at
this point, so forgive us for thinking: How hard could it be?
We ate breakfast at the hotel, but we had to eat lunch and dinner at t... 阅读全帖 |
|
B******1 发帖数: 9094 | 29 Solutions might be:
1) Quanrantine his "painting" activities to his own room or a special corner
in the garage. Then periodically paint the walls of that room or the corner.
2) Gum wrapper is not an issue. Just ask your son to pick it up afterwards.
3) Whatever your hubby found on the roof, such as a small rock, would not cause
serious damage to the house, even if the rock was thrown by your son or his
friends. If they broke a window, I would be worried. Bring the kid to a
lake, and let him th... 阅读全帖 |
|
m********a 发帖数: 1063 | 30 今天收到俺们家 Second Grader 的一份小礼物,一个用Gift wrapper paper制作的精
美的小袋子,上面写着:
Here are a few free tickets/coupons to get some free massages from me.
Happy Father's Day!
(No expiration date.)
打开一看,里面有6张小卡片,每张上面都写着:
Free Massage!
Come to my room to get a free massage!
小棉袄就是贴心啊,知道老爹做院子辛苦,主动offer马杀鸡来着,感动ing... |
|
w**********2 发帖数: 332 | 31 我个人的看法是办party就是让小孩高兴。要是为捐钱就不要办了,把省下的钱都捐了
不是更好。想鼓励小孩做慈善,家长身体力行就好了,自己多捐多做义工。如果怕小孩
玩具太多可以让他先不拆包装(wrapper可以拆),只有他最喜欢的可以当天玩,不喜
欢的先收起来,一般小孩都不会抗议,过几天他也就忘了,你就可以捐了或送人。
我自己开的party和参加别人的party,最喜欢看小孩拆礼物,看他们的眼睛一下就亮了
。我最不爱去声明no gift的party。空手去很别扭。我觉得那样的party还不如就改叫
playdate就完了。 |
|
a*****g 发帖数: 19398 | 32 [zz] You might be a charter school fan ...
If every time your car gets too full of fast food wrappers and empty drink
cans, you go buy a new car (and kept the old one so you can make payments on
both), you might be a charter school fan.
If ice cream cones cost a dollar and you only have 75 cents, so you decide
the solution is to buy three, you might be a charter school fan.
If you think it's a shame that some schools have gotten worse since they let
Those People in, you might be a charter school... 阅读全帖 |
|
m****o 发帖数: 3762 | 33 officedepot microsdhc kingson 32gb,match amazon,17,买两个,
用10off30 facebook coupon,5off wrapper offer,最后价格
大概是10/个 |
|
j******u 发帖数: 41683 | 34 ☆─────────────────────────────────────☆
marsmission (伙呆了) 于 (Fri Dec 27 00:43:19 2013, 美东) 提到:
大家来说说本年度自己最满意或比较满意的deal。
要求简单说明是怎么样的deal,比如买了什么东西,如何买的(用了胖子或code),最
后免费/倒赚/oop大概多少等等,简单明了就行。
deal不单单指药店的丢,别的比如电子产品,文具服装等的deal都可以说说。
就在此帖下跟贴,每个人可以多说几个,每个id最多可得3个包子,多个deal请分别跟
贴(以便版务马克包子),不要把几个deal集中在一个跟贴里说。
时间:1/7截至。
☆─────────────────────────────────────☆
EA () 于 (Fri Dec 27 01:06:02 2013, 美东) 提到:
前几周在office depot 买了75%off 书架,计算机桌,文件柜,花了100刀
☆─────────────────────────────────────☆
EA () 于... 阅读全帖 |
|
s****m 发帖数: 229 | 35 我的是3.1.3为了用tethering在网上下了个叫spirit的东西一键破解。好像是个
jailbreaker的
wrapper. 这样可以下一些apple store里没有的app了。不知道是否可以插别的SIM卡了。 |
|
|
z**q 发帖数: 577 | 37 我理解mac os结构大体是这样的
gui (好象叫aqua之类的)
bsd compatible wrapper
micro kernel (叫mach)
严格意义上说不是基于BSD。不过不严格地说基于BSD也成。
我最不能接受的是它的fs不区分大小写,这个有点难受。 |
|
o****n 发帖数: 599 | 38 在Amazon market 上买了东西。寄来后发现和描述不符。试图发个negative的review,
但被系统拒绝,也没说具体啥原因。大侠们帮看看这review违反啥规则吗?谢谢。
Why did they send me 2 small boxes marked "not for resale", which is not the
same thing as shown on the product webpage. One side of the box is even
exposed without any plastic wrapper. Are those samples they got from
somewhere? |
|
o****n 发帖数: 599 | 39 在Amazon market 上买了东西。寄来后发现和描述不符。试图发个negative的review,
但被系统拒绝,也没说具体啥原因。大侠们帮看看这review违反啥规则吗?谢谢。
Why did they send me 2 small boxes marked "not for resale", which is not the
same thing as shown on the product webpage. One side of the box is even
exposed without any plastic wrapper. Are those samples they got from
somewhere? |
|
b******y 发帖数: 9224 | 40
我自己编写的类似lucene的搜索library. 不同之处是,lucene 处理中文的能力远远不
行。还有就是,自己写的东西,好调整, memory, performance啥的。
基本上,这个相当于自己发明的搜索算法了。当然,功劳在于lucene了。是受了他家的
启发。
solr只不过是个wrapper而已,不是啥computer science challenging的东东。要说
challenging的,还是lucene,有点儿算法啥的。
如果继续讨论这个,版上很多人都看不懂了。不行只能去programming版去了。 |
|
e****9 发帖数: 316 | 41 solr是个wrapper完全同意,但是好处就是包装到http
至于中文分词,现在也有几个开源的方案.
感觉是做最底层,是会有成就感,但是已经有那么多现成的方案为什么不用哪?至少大家
都用稳定性上要很好多,而且有很多人一起推动,新feature会加的比较快。
其实主要不是要Challenge你的产品,主要是觉得产品要更外应用上靠,好的底层不一
定是好的产品。
我最近也在考虑一些类似的东西,有机会可以多交流交流。 |
|
w******s 发帖数: 16209 | 42 Back in 1997, just as former Oracle executive Tom Siebel was starting to
grow Siebel Systems (Nasdaq: SEBL) into a worthy niche competitor, Ellison
sent an ice cream truck to Siebel's headquarters. Free ice cream sandwiches
were passed out. Written on the wrapper?
"Summer is near. Oracle is here. To brighten your day and your career." |
|
c*****o 发帖数: 1702 | 43 就是realtimebar怎么拿出来啊,这个wrapper哪存数据啊。求有经验的指点 |
|
c*******y 发帖数: 1630 | 44 4. delay data--I am not sure if IB is in the club of deliberately delaying
data with import data release time. I traded /6E with TDA during NFP. it was
terrible. Graph, quote, level 2, and time&sale were off sync, all of them
delayed by seconds if not minutes. I haven't tested IB during NFP or ECB
press conference(there is one tmr morning).
My guess it is slightly better than most other retail brokers.
By the way, I wonder if anyone here knows how to test latency, eg, read msg
latency, and send ... 阅读全帖 |
|
c*******y 发帖数: 1630 | 45 4. delay data--I am not sure if IB is in the club of deliberately delaying
data with import data release time. I traded /6E with TDA during NFP. it was
terrible. Graph, quote, level 2, and time&sale were off sync, all of them
delayed by seconds if not minutes. I haven't tested IB during NFP or ECB
press conference(there is one tmr morning).
My guess it is slightly better than most other retail brokers.
By the way, I wonder if anyone here knows how to test latency, eg, read msg
latency, and send ... 阅读全帖 |
|
r****m 发帖数: 131 | 46 google talib which has candlestick pattern recognition functions. python
wrapper is also available. I've been testing it for a
while. Results are not very ecouraging. I might not use it right.oooG (pumpkin) 的大作中提到: 】 |
|
y******5 发帖数: 131 | 47 【 以下文字转载自 Money 讨论区 】
发信人: velbon (tripod), 信区: Money
标 题: 终于有了美版“余额宝”了。
关键字: 余额宝,人民币
发信站: BBS 未名空间站 (Wed Dec 3 21:14:35 2014, 美东)
不错,看到今天国内一个公司在美国上了这个短融ETF。 相当于在美国就可以买国内的
货币基金了。 人民币4.5%的收益率,算下来我那2万美金存一年就可以买部iPhone 6裸
机了。 现在在BOA存一年连个汉堡都买不了。 回家赶快让老婆转了。
http://www.etftrends.com/2014/12/new-china-onshore-bond-etf-goe
The KraneShares E Fund China Commercial Paper ETF (NYSEArca; KCNY), the
newest member of the rapidly expanding lineup of exchange traded funds
holding renminbi-issued Chinese bonds d... 阅读全帖 |
|
BR 发帖数: 4151 | 48 有人讨论这个吗?
【 以下文字转载自 Money 讨论区 】
发信人: velbon (tripod), 信区: Money
标 题: 终于有了美版“余额宝”了。
关键字: 余额宝,人民币
发信站: BBS 未名空间站 (Wed Dec 3 21:14:35 2014, 美东)
不错,看到今天国内一个公司在美国上了这个短融ETF。 相当于在美国就可以买国内的
货币基金了。 人民币4.5%的收益率,算下来我那2万美金存一年就可以买部iPhone 6裸
机了。 现在在BOA存一年连个汉堡都买不了。 回家赶快让老婆转了。
http://www.etftrends.com/2014/12/new-china-onshore-bond-etf-goe
The KraneShares E Fund China Commercial Paper ETF (NYSEArca; KCNY), the
newest member of the rapidly expanding lineup of exchange traded funds
holding renminbi-issued Chines... 阅读全帖 |
|
c****t 发帖数: 5452 | 49 IB提供的语言就有Java,c++, vb, excel,更不要说各种wrapper了 |
|
发帖数: 1 | 50 能不能写个wrapper或者background app,自动capture SNAP的内容?
: NM每次那个白妞用这软件发给我照片都得迅速用screenshot再保存。二三次以后
就把软
: 件删了,让伊用text
|
|