l*******G 发帖数: 1191 | 1 #!/usr/bin/python
def permu(xs):
if xs:
r , h = [],[]
for x in xs:
if x not in h:
ts = xs[:]; ts.remove(x)
for p in permu(ts):
r.append([x]+p)
h.append(x)
return r
else:
return [[]]
def product(*args, **kwds):
# product('ABCD', 'xy') --> Ax Ay Bx By Cx Cy Dx Dy
... 阅读全帖 |
|
l*******G 发帖数: 1191 | 2 #!/usr/bin/python
def permu(xs):
if xs:
r , h = [],[]
for x in xs:
if x not in h:
ts = xs[:]; ts.remove(x)
for p in permu(ts):
r.append([x]+p)
h.append(x)
return r
else:
return [[]]
def product(*args, **kwds):
# product('ABCD', 'xy') --> Ax Ay Bx By Cx Cy Dx Dy
... 阅读全帖 |
|
|
g*****g 发帖数: 34805 | 4 You are not doing the best practice in maintaining high availability. e.g.
You shouldn't run automatic upgrade on production server. For example, you
can let it upgrade automatically on a test instance, running regression
tests on every new build. And push to prod with the same AMI when all tests
are passed. You also keep last few AMIs. When you run into problem in prod,
instead of scrambling to get the problem fixed, you can simply rollback with
a few clicks and buy yourself some time for inves... 阅读全帖 |
|
z*******3 发帖数: 13709 | 5 顺便说一下,run 什么来submit jobs这种属于手动
这种东西完全可以自动化起来
cloud一天到晚忙活的就是自动化这些东西
所以cloud开发经常用python这些东西
因为wrapper容易做
但是一般运行时候,这种东西尽量做成自动化操作
就是service,楼主的思路很正确
一般通过run什么script来提交的,这种要么就是开发时候用
因为测试时候直接run比较容易搞,大部分qa都有自己的脚本
但是prod.一般都是自动化,所以一般需要看programmatically blablabla
这个如果多做点vert.x的项目,就很容易想到
因为vert.x的verticles的安装,就是run script和programmatically两种方式
一般测试用前者,prod.用后者
楼主可以搜索一下programmatically run spark jobs,可以看到很多人在问类似的问题
然后前面其他人推荐的jobserver也是一个solution |
|
C*********r 发帖数: 21 | 6 一般客户在使用的系统数据量是最大的,并且有大量部署的机器可以进行运算。但是如
果是做dev或者qa的话怎么办呢。如果copy整套prod的环境实在是太贵了。如果使用一
套小的cluster进行模拟,但是一般prod上面的数据怎么迁移到qa或者dev环境做测试呢
?比如facebook或者google这种,肯定不会是有三套系统可以供不同的开发阶段进行使
用的吧。 |
|
l*********g 发帖数: 9 | 7 The original Hadamard inequality states that
det(G(x_1,...,x_n))<=det(G(x_1,...,x_k))det(G(x_(k+1),...,x_n)) where, G is
the Gramian of vector x_1,...x_n
All other results follow from this. Let A=[x_1,...,x_n]
Then G(x_1,...,x_n)=A(^T)A By Hardamard we have
(detA)^2<=prod(||x_i||^2), which is what you find in wiki.
If H>=0 then H=A^2, where A>=0 A=[x_1,...,x_n] then H=G(x_1,...,x_n). By Had
amard you have det(H)<=prod(H_ii), which is a special case.
Hopefully this will make sense to you.
and |
|
o**a 发帖数: 76 | 8 It seems that
a_n = (-1)^(n+1) * i/\sqrt(n) gives the example for the second case that
\sum a_n converges but \prod (1+a_n) diverges
for \sum a_n goes to some imaginary number, but the module of \prod (1+a_n)
goes to infinity
t.
positive |
|
w******o 发帖数: 442 | 9 the roots of cos(sqrt(z)) is (n*pi+pi/2)^2
so cos(sqrt(z)) = prod (1-z/(n*pi+pi/2)^2)
and cos(sqrt(z))^m = prod (1-z/(n*pi+pi/2)^2) m is positive integer.
so g(z) = cos(sqrt(z))^(1-m) |
|
c*******r 发帖数: 51 | 10 From: Debra G. Leonard, MD, PhD [mailto:d*****[email protected]]
Sent: Tuesday, May 01, 2012 3:35 PM
To: PRODS
Subject: [prods] Unexpected Residency Opening
Due to personal circumstances, one of our PGY-1 residents will not be able
to start this year, so we have an unexpected opening. We would be
interested in considering either a starting PGY-1 resident or a transfer
resident from another program, if a resident needs to relocate for personal
reasons. Please forward to me ERAS application info... 阅读全帖 |
|
O*******f 发帖数: 926 | 11 公司电面的人可能是HR(谈人生谈理想谈人品,behavior question),更可能是HM(
谈专业谈能力,professional question),因为这是未来你的直接领导。对于药企而
言,我遇到最多的是HM电面。一般药企都是一次电面,我只遇到一次两次电面的(上午
HR谈完后给我约的当天下午HM的)。我觉得,对于找工作的人而言,电面的直接目的是
得到on-site的机会。考虑到一般一个公司只给一个电面的机会,所以对每个电面(不
论公司大小)都要重视,要做足功课,还要抓住机会涨电面的经验值。
因为我是做药物合成的,对药企的其它位置很不熟,以下我的内容和术语只集中在HM电
面medicinal chemist(搬砖的苦力)上。请其它专业童鞋踊跃发言。也请有过当HM或
者HR的童鞋分享心得。我也学习一下。先谢谢啦。
功课1:公司网站基本介绍,业务特点,如果能找到你感兴趣的或者熟悉的,就要留心
记住,电面的时候可以说出来,既能解决冷场的尴尬,更能表示你对公司的兴趣。这个
是绝对加分项,但不是主要的。有时公司的主业和你应聘的位置不一致,我遇到过一个
公司主要做polymer,但另开一摊... 阅读全帖 |
|
n*********e 发帖数: 318 | 12 I am trying to translate prod id into prod name
Here is data -
#----------------------
customer_id, product_id, date
11111,634578,11/12/2011
11111,987654,11/12/2011
11111,678978,11/12/2011
11111,678978,12/22/2011
22222,456789,12/24/2011
33333,678978,01/10/2012
33333,678978,01/15/2012
44444,987365,03/30/2012
I also has a reference file -
prod_id, prod_name
634578, 'ice-cream'
987654, 'green beans'
678978, 'beef'
...
------------------------------------------------------------
How can I do it in R... 阅读全帖 |
|
|
|
|
|
|
|
|
|
|
|
w*******y 发帖数: 60932 | 23 Price is not as good as the last time, but you don't need to spend at least
$50. So this deal is good for people that just wanted to get a few towels.
Horchow has the Ralph Lauren Greenwich Monogrammed Bath Towel on sale for $9
.99.
Enter code WINTER to save 30% off.
Enter code DECEMBER to get free shipping.
Monogrammed Greenwich Bath Towel $6.99:
http://www.horchow.com/store/catalog/prod.jhtml?itemId=cprod72620001&parentId=
If you want the more expensive Ralph Lauren Regent towel, it is also o... 阅读全帖 |
|
|
|
|
w*******y 发帖数: 60932 | 27 This is my first hot deal so please bear with me...
Buy.com has the Kingston 128GB SSD for sale up until February 17th for $199-
$75 Rebate. Rebate isn't any good after the 17th so jump on this fast!
Link is here:
Link:
http://www.buy.com/prod/kingston-128gb-ssdnow-v-series-sata-ii-
#cRevSec" rel="nofollow" target="_blank" onclick="_gaq.push(['_trackEvent',
'thread', 'click', '2675685 - kingston-128gb-ssdnow-v-series-sata-ii-2.5-
solid-state-drive-125ar']);">http://www.buy.com/prod/kingston-...#... 阅读全帖 |
|
|
|
|
|
w*******y 发帖数: 60932 | 32 I was at Rite Aid earlier today and they had Duracell 10 packs for $2.24.
Have a friend who works there and she told me about it. Not sure if it's a
price mistake or a clearing out sale, but good deal anyway.
The ones I got were AAA and AA. No other purchase was necessary.
AAA Prod: 01/07/11 UPC 041333170640
AA Prod: 03/01/11 UPC 041333048642
Receipt attached
|
|
|
w*******y 发帖数: 60932 | 34 Buy.com has the:
- "Kingston 64GB SSDNow V100 Series 2.5" SATA II Solid State Drive,
Notebook Kit SV100S2N/64GZ" and the
- "Kingston 64GB SSDNow V100 Series 2.5" SATA II Solid State Drive, Desktop
Kit SV100S2D/64GZ"
$124.95 - $55.00 Rebate = $69.95 with Free Shipping. Buy Limit is 10. Rebate
Limit is Two. Expires on the 10th. Rebate is also good for 96/128/256 Size
Drives although the prizes don't seem as competitive.
Product Link Notebook:
Link:
http://www.buy.com/prod/kingston-64gb-ssdnow-v100... 阅读全帖 |
|
|
|
|
|
|
w*******y 发帖数: 60932 | 40 Viewsonic (VA2448M-LED) 24" 1080p LED Backlit LCD Monitor
$139.99
was $295.00
Free Shipping
Product Details:
* 23.6" (1920 x 1080) LED Backlit LCD Display
* 5ms Response Time
* 300 cd/m2 Brightness
* 10M:1 Dynamic Contrast Ratio
* DVI & VGA Inputs
* Built-In Speakers
* 3-Year Limited Warranty
www.buy.com/prod/viewsonic-va2448m-led-24-23-6-viewable-led-backlit-lcd-
monitor-10-000/219837058.html:
http://www.buy.com/prod/viewsonic-va2448m-led-24-23-6-viewable-
|
|
|
|
|
w*******y 发帖数: 60932 | 44 Advance Auto Parts (AAP) has the Peak 900 Amp Jump Starter for $49.99
Add a Small filler such as a nut (Dorman - Autograde Speed Nuts Part No:
45423)
Use Coupon A123 for $20 of $50
Total ~ $30 ( to jsmiley1127 on FW)
Peak 900 Amp Jump Starter $49.99 + Filler - $20 Coupon = $30
advanceautoparts.com:
http://shop.advanceautoparts.com/webapp/wcs/stores/servlet/prod
#utm_source=aff&utm_medium=cj&utm_campaign=361116&utm_content=10716090"
target="_blank">Link to the Peak Jump Starter [advanceautoparts.... 阅读全帖 |
|
|
|
|
|
w*******y 发帖数: 60932 | 49 Advanced Auto Parts is having a sale on oil.
Usually doesnt include the European Formula but it looks like it is working
this time.
Buy a 5 Plus Quarts jug or 5 single quarts of Mobil 1 Full Synthetic motor
oil and a Mobil 1 oil filter for $32.99. Get 25% off up to 4 additional
quarts.
Savings depends on the cost of your filter but for a $13 filter you are
paying around $4.75/qt. A lot better than most places. (If your filter is $
20 like mine you are only paying around $4 per quart)
You get the... 阅读全帖 |
|