由买买提看人间百态

topics

全部话题 - 话题: task
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
e****t
发帖数: 1
1
来自主题: JobHunting版 - Pure Storage面经
第一题,画的图没怎么看懂,不知道一个原来为1的节点置0,它的子节点怎么处理,是
所有子节点都置0?感觉不需要,下面的python实现中仅把该节点下所有左孩子置0:
def setbit_down(A, x, n):
if x>=n:
return
if 2*x+1<=n and A[2*x+1]==0:
A[2*x+1]=1
setbit_down(A,2*x+1,n)
if 2*x+2<=n and A[2*x+2]==0:
A[2*x+2]=1
setbit_down(A,2*x+2,n)

def set_bit(A, pos, length):
if not A or pos<0 or length<=0:
return
n = len(A)-1 #last index of A
# pos+length和2*pos+1取较小的即可,避免重复操作,如果较小值仍然大于len(
A),则到len(A)为止
for x i... 阅读全帖
s**********g
发帖数: 551
2
来自主题: Immigration版 - recommend as a lead guest editor
Please read the following and let me know if you would like to make the
commitment. I would be able to recommend.
I have been asked to contact you by Infectious Diseases: Research and
Treatment editor in chief Dr Douglas MacPherson concerning journal
supplements the editor in chief wishes to publish within the next 12 to 18
months. The supplements focus on the topics listed below, and the editor in
chief intends that it should provide an opportunity for relatively junior
researchers, as well as... 阅读全帖
W******c
发帖数: 23
3
来自主题: Java版 - Java interview Question(31-50)
31. What is the difference between preemptive scheduling and time slicing?
Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time
slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based
on priority and
other factors.
32. Name three Component subclasses that support painting.
Th... 阅读全帖
y***e
发帖数: 17
4
来自主题: Quant版 - 中信证券 海外招募
关于中信证券
中信证券股份有限公司(以下简称“中信证券”,“公司”)是一家以证券业务为核心
,提供证
券经纪、承销与保荐、证券自营、资产管理、证券投资咨询、融资融券等金融服务的综
合性证券公司。
在中国证券行业中,中信的总资产、净资本和盈利规模最大,业务牌照最齐全,综合实
力最强。
公司成立于1995 年10 月,总部位于深圳市。2003 年1 月,公司在上海证券交易所挂
牌上市交易,
股份名称“中信证券”,股票代码为 600030。中信证券第一大股东为中国中信集团公
司。截至2010
年底,中信集团公司持有中信证券的股份为23.45%。中信证券秉承中信集团勇于创新的
精神,与中信
银行、中信信托等公司共同组成综合经营模式,积极为客户提供境内外全面金融服务。
成立15 年来,中信证券伴随着中国经济的快速成长,以及资本市场的发展壮大,不断
扩展业务
领域,创新产品与服务。由一家净资产规模仅3 亿元、18 家证券营业部、450 余名员
工组成的专业证
券公司,发展成为净资产700 多亿元、140 余家营业网点、逾万名员工的大型证券集团
公司,为国内
外众多客户提供全方位的证券金融服务。截止... 阅读全帖
D**S
发帖数: 24887
5
Just one (more) dark page of American history that still haunts today. It
makes one almost shiver knowing these sorts of stuff.
http://www.google.com/hostednews/ap/article/ALeqM5jJ6AloB4tUje4
NC panel: Sterilization victims should get $50K
By MARTHA WAGGONER, Associated Press – 5 hours ago
RALEIGH, N.C. (AP) — People sterilized against their will under a
discredited North Carolina state program should each be paid $50,000, a task
force voted Tuesday, marking the first time a state has moved to c... 阅读全帖
c*********6
发帖数: 858
6
来自主题: Automobile版 - 怎么学修车?
http://www.linxdown.me/525190-auto-repair-car-tutorial-collecti
*******************************************************************
Auto Repair Car Tutorial Collection (2012)
629xWEBRip | MPG, ~1140 kb/s | 352x288 | Duration: ~20 hours | English: MP3,
224 kb/s (2 ch) | 9.67 GB
There are lots of auto repair and auto maintenance tasks that you can do
yourself with little experience and simple tools. Troubleshooting will lead
you to a repair that you can do yourself to save money and time. This lis... 阅读全帖
t*****3
发帖数: 112
7
来自主题: JobHunting版 - 几个OOP的面试题
第1个问题:
如果是个简单的controller
controller: doDevice(deviceID, commands)
这里doDevice不是一个固定的名称,而是针对不同设备定义的,比如doWashMachine()
,然后具体怎么调用设备命令就在里面具体实现。这样的好处是结构简单,很容易实现
,不利之处是随着设备增多和需求变化,controller会变得非常难以维护。
如果是要求比较复杂的controller:
controller: runTasks(), runTask()
Task: {multi-rooms, multi-devices} run(), pause(), stop(), restart()
Task类可以是个抽象类或者接口,供下层具体实现逻辑,得到device的实例然后调用相
应的方法。
第2个问题:
我用java,c++不是很懂。但是我觉得这里controller得用多线程的思路。
简单的做法是每个task开一个线程,然后自己去查询时间是否到了。好处是实现起来简
单,坏处是随着task增多,对系统资源的占用也比较大。
高级点做法:用个queue... 阅读全帖
t******l
发帖数: 10908
8
你看到的这些主要不是新增的部分,当然跟从前一致。其实就是从以前继承过来的。
新增的部分是 Constructed-response items 和 Performance tasks。
http://www.smarterbalanced.org/sample-items-and-performance-tas
Selected-response items prompt students to select one or more
responses for a set of options.
Technology-enhanced items take advantage of computer-based
administration to assess a deeper understanding of content
and skills than would otherwise be possible with traditional
item types. Technology-enhanced items capitalize on technology
to coll... 阅读全帖
r*s
发帖数: 2555
9
By Tamara Sharman
t******[email protected]
815-937-3371
Northern Illinois University professor Qingwei Yao thought he was soliciting
sex from a 13-year-old girl he met on the Internet, police said.
But his partner in the illicit flirtation on a commonly used chat room was a
police officer with the recently formed Kankakee County Cyber Crimes Task
Force, law enforcement officials announced at a Tuesday press conference.
Yao allegedly arranged to meet the "girl" in Kankakee County, police said.
... 阅读全帖
r*s
发帖数: 2555
10
By Tamara Sharman
[email protected]
/* */
815-937-3371
Northern Illinois University professor Qingwei Yao thought he was soliciting
sex from a 13-year-old girl he met on the Internet, police said.
But his partner in the illicit flirtation on a commonly used chat room was a
police officer with the recently formed Kankakee County Cyber Crimes Task
Force, law enforcement officials announced at a Tuesday press conference.
Yao allegedly arranged to meet the "girl" in Kankakee County, police sai... 阅读全帖
N****7
发帖数: 5261
11
【 以下文字转载自 OxBaby 俱乐部 】
发信人: aye (浮云,都是浮云哪!), 信区: OxBaby
标 题: [合集] 因为有孩子,所以没时间 (转载)
发信站: BBS 未名空间站 (Thu Nov 8 22:10:58 2012, 美东)
【 以下文字转载自 loseweight 讨论区 】
发信人: dash2000 (DASH), 信区: loseweight
标 题: [合集] 因为有孩子,所以没时间
发信站: BBS 未名空间站 (Thu Nov 8 08:09:50 2012, 美东)
☆─────────────────────────────────────☆
Gilda (屠龙公主,好女不跟女斗) 于 (Wed Nov 7 14:04:08 2012, 美东) 提到:
已经成了本版发文摸版了。。。鉴于自己没孩子,无直接经验,花了5秒种,google了
"time management for parents"
得到以下10条tip。
如果你自己连这5秒都没花,这中间有几条你还不知道,我觉得,应该好好思考一下:
自己是不是一个好的思考者... 阅读全帖
d******0
发帖数: 22800
12
来自主题: loseweight版 - [合集] 因为有孩子,所以没时间
☆─────────────────────────────────────☆
Gilda (屠龙公主,好女不跟女斗) 于 (Wed Nov 7 14:04:08 2012, 美东) 提到:
已经成了本版发文摸版了。。。鉴于自己没孩子,无直接经验,花了5秒种,google了
"time management for parents"
得到以下10条tip。
如果你自己连这5秒都没花,这中间有几条你还不知道,我觉得,应该好好思考一下:
自己是不是一个好的思考者,规划者?
如果你知道,没有做到至少其中一半,应该停下来想想,我自己执行能力有问题的吗?
问题出在哪儿?
如果你做到至少7条以上,还是没时间,恭喜你,你事业必有大发展! \在这种情况下
,我个人是没有更好建议了,欢迎大家补充
1. Menu Plan
It is easy to spend considerable time contemplating what to cook and then
run multiple times to the supermarket for the required ingredie... 阅读全帖
N***m
发帖数: 4460
13
来自主题: Programming版 - 问题一枚
上帝造我的时候肯定是让我脑袋先着地的。
两个callable,一个返回100,一个返回200,
还有一个runnable3,用于cyclicbarrier的action.
程序运行到runnable3的System.out.println("barrier action executed!"),
似乎就悬在那里了。似乎在等什么,或者死循环?
[Main.java]
public class Main {
static List> tasks = new ArrayList Integer>>();
public static void main(String[] args) throws InterruptedException,
ExecutionException {

CyclicBarrier barrier = new CyclicBarrier(2, new Runnable3()
);
Callabl... 阅读全帖
k**********g
发帖数: 989
14

If some tasks run much quicker than some other tasks (and if there is a way
to classify tasks beforehand, before they are dispatched to queues), then it
is better to have more than one queue, with at least one queue dedicated to
the known fastest tasks and one dedicated to the known slowest tasks.
Queueing theory also explains why supermarkets have "express checkout queues
".
Sometimes we have to use the correct cost function to understand theory.
Consider that user A submits only fast tasks. U... 阅读全帖

发帖数: 1
15
来自主题: Military2版 - 中途岛战役 日本有机会吗?
企业号战后报告:
PRELIMINARY
On the afternoon and evening of June 3, 1942, the general situation
prior to the battle was as follows (times throughout are Zone plus 10): Task
Force Seventeen and Task Force Sixteen had previously rendezvoused in the
general vicinity of "Point Luck", approximately 350 miles northeast of
Midway Island and were operating in that area closing Midway during darkness
and opening during the day, remaining east of the longitude of Midway. Both
Task Forces has complete... 阅读全帖

发帖数: 1
16
来自主题: Military2版 - 中途岛战役 日本有机会吗?
企业号战后报告:
PRELIMINARY
On the afternoon and evening of June 3, 1942, the general situation
prior to the battle was as follows (times throughout are Zone plus 10): Task
Force Seventeen and Task Force Sixteen had previously rendezvoused in the
general vicinity of "Point Luck", approximately 350 miles northeast of
Midway Island and were operating in that area closing Midway during darkness
and opening during the day, remaining east of the longitude of Midway. Both
Task Forces has complete... 阅读全帖
x****d
发帖数: 1766
17
I did text extraction from someone's PDF transcript file. The original
slides are here.
http://www.slideshare.net/egarbugli/26-time-management-hacks-i-
I find it very good and it is popular. Everybody is sharing with everybody.
So, I did a little work get the text out. You can redo the PPT if you want,
or print it out stick to your screen or your head, haha.
26 Time Management Hacks I Wish I’d Known at 20 by Etienne Garbugli,
Product Design &
Marketing Consultant
1. How I spend my Day How I wish... 阅读全帖
f*******e
发帖数: 1
18
来美国一段时间,最近一个多月开始网赚经验,拿到了$30 amazon giftcard(国内的
同学可以在淘宝出售)和一双手套也总结了一些拿免费giftcard的经验部分还没有在网
上被总结过,觉得独乐乐不如众乐乐所以和大家交流一下,不知道发的版面对不对,再
附上应该符合版面的两个少被人关注的deal网站,希望扔鸡蛋的手下留情:P
先说一下,网赚这个事情其实是蛮耗时间的,一般适合想赚一点小零花钱的家庭主妇,
学习有余的牛人以及上网成瘾又不想完全浪费时间的人(鄙人为第三项....)。对我来
说网赚是代替在线游戏的好方法,既有赚点升级的满足感,又可以拿到现实中的礼物,
一举两得~hoho,经过一个多月的搜寻各大论坛总结,鄙人认为要网赚拿现金实在是很
麻烦,相反那些赚点那giftcard的倒是容易到手
不罗嗦了介绍第一个我的最爱
Swagbucks:
大家随意,觉得不错支持一下我的referal link: http://www.swagbucks.com/refer/stonedalin
swagbucks是我目前拿到giftcard的唯一网站(只玩了一个月多点),网站支持多种赚
钱方式,... 阅读全帖
t******l
发帖数: 10908
19
来自主题: Parenting版 - WISC-V 智商测试
其实这个 (Reverse) Corsi Block Test 测试结果其实挺符合 wiki 里的这段的。也就
是说,complex span (encoding) matters much more:
http://en.wikipedia.org/wiki/Memory_span#From_simple_span_to_complex_span
[quote]
From simple span to complex span[edit]
Research in the 1970s has shown that memory span with digits and words is
only weakly related to performance in complex cognitive tasks such as text
comprehension, which are assumed to depend on short-term memory.[28] This
questioned the interpretation of memory span as a meas... 阅读全帖
T*******x
发帖数: 8565
20
来自主题: Linux版 - KDE的virtual desktop不错
知道什么原因了:
因为我在KDE上task-bar也是auto-hide,在windows上task-bar也是auto-hide。
Remmina全屏的时候,鼠标走到桌面最下方首先唤起的是KDE的task-bar。
而这个task-bar有被Remmina全屏遮住在下面,所以什么都看不到。
我试验把KDE的task-bar改成always visible,这样就可以唤起windows的taskbar了。
这里的原因是:Remmina不截获KDE的鼠标或键盘事件。
比如这个鼠标唤起task-bar的事件,既是KDE的事件,也是windows的事件,
Remmina不截获它,把它传给KDE了,结果windows的task-bar就不能唤起。
如果KDE的task-bar设为always visible,那么这个事件就不是KDE事件了,
这个事件就被Remmina传给windows,唤起了windows的taskbar.
Ctrl+Alt+Arrow在Remmina时好用也是一个道理。
另外Alt+Tab,这个组合既是KDE也是windows切换程序的事件,
Remmina不截获它,所以它... 阅读全帖
B*********e
发帖数: 263
21
来自主题: Accounting版 - CPA考试simulation评分方法
原来新版的考试除了pretest外是equally scoring. 网上以前说的两个research只有一
个判分纯属考生们的假设。
Dr. Gleim and I recently attended the AICPA Review Provider Meeting in New
York City. The following main items were covered:
Task-Based Simulations. The topic of the new Task-Based Simulations was
frequently discussed at this year's meeting. Below are the most salient
points that were presented.
We received some important clarification about Simulation scoring. The
presenter informed us that each task is equal to the others when... 阅读全帖
h***x
发帖数: 586
22
CALIFORNIA:
0000087272
SAS Programmer (12m)
Bachelor's or Masters in Computer Science or other relevant (Engineering)
degrees with 5+ years of pharmaceutical experience preferred- The work
experience should include at least two years of technical leadership in a
statistical programming environment in a pharmaceutical or biotechnology
environment including the analysis and reporting of clinical trial data-
Knowledge and application of p-values, confidence intervals, linear
regression analysis, ad... 阅读全帖
u*****n
发帖数: 126
23
来自主题: JobHunting版 - Pure Storage面经
在他们家遇到了两个傻B阿三。一个不停的纠正我的逗号和分号,另外一个给的hints都
是废话。最后挂了。他们家的阿三是我面过的所有公司中最极品的。所以面试他们家要
小心傻B阿三。当然他们家的华人美女HR相当的nice,是我遇到的所有HR中最nice的。
总共面了四轮:
第一轮:定义buddy system为一棵complete binary tree。一个node可能为0也可能为1
. 它的
value为1,当且仅当它所有的child的value均为1.
1
|
1 2
| |
1 2 3 4
| | | |
1 2 3 4 5 6 7 8
实现下列的method。
1' clearBit(int offset, int len);
2' setBit(int offset, int len);
第二轮:设计一个task dispatching system,里面有一个task queue和两个function。
1’ trigger。这个func... 阅读全帖
u*****n
发帖数: 126
24
来自主题: JobHunting版 - Pure Storage面经
在他们家遇到了两个傻B阿三。一个不停的纠正我的逗号和分号,另外一个给的hints都
是废话。最后挂了。他们家的阿三是我面过的所有公司中最极品的。所以面试他们家要
小心傻B阿三。当然他们家的华人美女HR相当的nice,是我遇到的所有HR中最nice的。
总共面了四轮:
第一轮:定义buddy system为一棵complete binary tree。一个node可能为0也可能为1
. 它的
value为1,当且仅当它所有的child的value均为1.
1
|
1 2
| |
1 2 3 4
| | | |
1 2 3 4 5 6 7 8
实现下列的method。
1' clearBit(int offset, int len);
2' setBit(int offset, int len);
第二轮:设计一个task dispatching system,里面有一个task queue和两个function。
1’ trigger。这个func... 阅读全帖
t******l
发帖数: 10908
25
其实我觉得对普通娃,这个平时不靠谱跟竞赛可能也是有一定相关性的,也可能也是同
一枚硬币的两面。这么说:
如果极端一点,我们把娃娃的 task 大致分成 “everyday task”(比如学校平时作业
测验)vs “now-or-never task”(各种竞赛)这两型,就会发现这两型 task 所需要
的 nature 的心态是截然相反的。。。这么说:
“everyday task”(学校平时课堂作业啥的)要做好的话,brain 要在平时更多的保
持在 high alert level(否则直接上课时而不时地打几个瞌睡好了)。。。但 在
high pressure / high tension 的环境下(“now-or-never task”),high alert
level 这枚硬币的另一面就是 high fear level。。。而对于 “now-or-never task”
(各种竞赛),alert 就不是个事儿(有见过在 AMC 8/10 或者 4x100 跑道上睡着的
么?);而这时 fear 反而就不仅是个事儿,而且是个大事儿(比如 AMC 竞赛中上二
十次厕所后,基本... 阅读全帖
f******e
发帖数: 164
26
来自主题: SanFrancisco版 - Pure Storage面经, 遇到傻X阿三 (转载)
【 以下文字转载自 JobHunting 讨论区 】
发信人: unichen (greedyrouter), 信区: JobHunting
标 题: Pure Storage面经, 遇到傻X阿三
发信站: BBS 未名空间站 (Sat May 24 11:44:44 2014, 美东)
在他们家遇到了两个傻B阿三。一个不停的纠正我的逗号和分号,另外一个给的hints都
是废话。最后挂了。他们家的阿三是我面过的所有公司中最极品的。所以面试他们家要
小心傻B阿三。当然他们家的华人美女HR相当的nice,是我遇到的所有HR中最nice的。
总共面了四轮:
第一轮:定义buddy system为一棵complete binary tree。一个node可能为0也可能为1
. 它的
value为1,当且仅当它所有的child的value均为1.
1
|
1 2
| |
1 2 3 4
| | | |
1 2 3 4 5 6 7 8
实现下列的metho... 阅读全帖
s**********e
发帖数: 417
27
说个在这个板上关于上升星座的不一样的看法。。同时也谈谈太阳和月亮。
我觉得区别一个上升、太阳和月亮的一个重要因素是在面对压力和放松时候的表现。
从这个角度看我觉得上升星座不是面具,而是灵魂和潜意识,在自己最轻松自在,没有
压力的时候的,毫不掩饰的真实的自己,一个大方向上的性格。无论有无压力,这个潜
意识一直都在那里。
想想一个人的时候,和最令自己放松的人在一起的时候,或者想象一下,没有任何压力
时自己是什么样的?平时喜欢表达情感的人还表达吗?喜欢服务的人还服务吗?要求高
的会不会就无所谓了?
在做一个task的时候,上升是一个大方向的舵,比如上升天秤,大的picture是这个
task要做得平衡有品位。上升水瓶,大picture是要独特并且innovative。如果不这
样,就会不喜欢这个task的 "idea"。
太阳星座是面具,在他人面前和压力面前表现出来的特质,有时也是想拥有的和完善的
quality,还有内在驱动的部分性格,是如何控制一个事情的方法。
在做一个task的时候,太阳的驱动就是如何做这件事,比如太阳处女座,画两条直线都
能在细节上改很长时间,温和和分析是控制方法。太... 阅读全帖
a*f
发帖数: 5682
28
来自主题: PhotoForum版 - 【版务请进】关于年终活动
根据大家的讨论,年终活动基本可以确定一个方案了- 在往年年终总结的形式上增加心
得和评片的成分,除了评出作品奖前十名以外也评出最有帮助评论前十名。参加可以匿
名也可以实名。评选方式通过群众实名不公开投票。
我把这次活动所需要的版务工作大致分了一下task,请几位版务看看如何,对那份task
有兴趣。
Task 1,撰写活动起始主题:活动规则,说明等等。
Task 2,接收匿名投稿,并代为发表(给予编号)
Task 3,截止日期后,总结所有参赛作品id(或匿名编号),列出参赛链接,以供大家
投票。
Task 4, 截止日期后,总结所有给出有用评片的评片者id, 以供大家投票。
Task 5,接受版友私信投票,并在投票截止日期之后计票,发布最终结果,并在
wbcenter申请代发伪币奖金。
其中task5可能需要一点点编程技术(或者excel技术),手工计票工作量会比较大。
谢谢各位版务!
f****a
发帖数: 847
29
来自主题: PhotoGear版 - Transformer T100 10.1 Tablet $170
X205 据说休眠,wake up 后 two finger scrolling 就不灵了,有bug
When it wakes up from sleep, it stops working and it's a known problem. TIA
解法
For people still having problems where the smart gesture software stops
working after resume, this seemed to work for me:
Create a .bat file with the following commands:
Code:
taskkill /f /im AsusTPCenter.exe
taskkill /f /im AsusTPHelper.exe
The problem seems to be with these and not AsusTPLauncher. After the .bat
runs, AsusTPLauncher will automatically restart those ... 阅读全帖
r***u
发帖数: 1272
30
效率极低人群之七大习惯(牛津大学通过对1050名在校大学生最新调查研究结果,后附
英文原版!!超值分享)
与通常所列举的应该培养的有益习惯不同,本文在此举出的是我们最好避免的7种习惯。
就像寻找对你有益的习惯一样,寻找妨碍你的习惯同样重要。这7种习惯中大多数
都可能会轻易成为你日常生活的一部分,使你难以察觉它的存在(或者它如何影响到你
)。我曾经略微尝试了这些习惯,结果毫无疑问,那些重要的事情没有几个可以完成。
同时我也要添加说明的是,这只是在生活中你可能形成的影响效率的主要的7个习惯,
我很确定绝不仅仅是这些。
1、缺席。

也许你曾经听过伍迪·艾伦所说的这句话:
“百分之八十的成功来自于出席。”
更多的出席——这是在生活中你可以保证更多成功所做的最大也是最简单的事情之
一,无论是在你的社交生活中,你的事业上还是你的健康方面。如果你想要改善你的健
康状况,一个最重要也是最有效的事情就是在每次你该出席时出现在健身房里。
也许天气会不好,也许你会不想出门,也许你有一大堆其他必须要做的事情。但是
,如果即使你在积极性不高时仍然继续出现在健身房里,那将比你呆在... 阅读全帖
J*******g
发帖数: 8775
31
来自主题: TrustInJesus版 - If God is so good, why is his world so bad?
You just need to read on and people already gave the answers one of them is
very similar to what I gave to you.
http://en.wikipedia.org/wiki/Omnipotence_paradox
Proposed answers
A common response from Christian philosophers, such as Norman Geisler or
Richard Swinburne is that the paradox assumes a wrong definition of
omnipotence. Omnipotence, they say, does not mean that God can do anything
at all but, rather, that he can do anything that's possible according to his
nature. The distinction is im... 阅读全帖
D*******z
发帖数: 319
32
Here is the error message. Any ideas? Thanks.
Started: 3:00:00 AM Error: 2011-09-26 05:53:00.76 Code: 0xC02020A1
Source: Data Flow Task 1 Destination - astromembers_txt [154]
Description: Data conversion failed. The data conversion for column "
FirstName" returned status value 4 and status text "Text was truncated or
one or more characters had no match in the target code page.". End Error
Error: 2011-09-26 05:53:00.76 Code: 0xC02020A0 Source: Data Flow
Task 1 Destination -... 阅读全帖
S*****0
发帖数: 538
33
来自主题: Database版 - Need help on a strange SQL server problem
Most likely, it is because of the transaction that the bulk insert resides,
is not commited.
http://msdn.microsoft.com/en-us/library/ms141239.aspx
The behavior of the Bulk Insert task, as it relates to transactions, depends
on whether the task joins the package transaction. If the Bulk Insert task
does not join the package transaction, each error-free batch is committed as
a unit before the next batch is tried. If the Bulk Insert task joins the
package transaction, error-free batches remain in t... 阅读全帖
c*****s
发帖数: 214
34
来自主题: Java版 - eclipse question,please help
借机讨论 :D
Bookmark是我对什么东西特有兴趣,下次希望还能找到。我觉得没有和别人分享的理由。
如果要,理由是或许你看到某人的程序写的不对,想让大家都看看。这时bookmark的内容
会是important: .. 或者 fixme: ...。但这样的事情在团队开发里都是Task, 级别不同
的Task。
你的Task会是什么?Task内容是和源码紧密相关, 需要团队所有人能在第一时间看到的。
源码可以是广义的包括java, 配置文件,测试和例子等。和源码紧密相关的评论为什么要
和源码分开呢?你难道不希望一个人看到一段程序时,第一时间了解到还有什么没完成吗

Task是Javadoc里很重要的一部分,也是开发协作的重要部分。你会发现所有的开发工具
对注释里的Task声明都有很好的支持,都会不约而同的在第一时间让开发者由总的了解。
如果你确定有一个Task, 不要对修改代码犹豫。这是代码的一部分。

就有
so
k**********g
发帖数: 989
35
我现在用 Microsoft Parallel Patterns Library (PPL) http://msdn.microsoft.com/en-us/library/dd492418.aspx
感觉上,任何物件只要被包进task lambda (closure)里面,它们的生命周期就好像没
有底似的。例子∶
(1) Create task completion event ( http://msdn.microsoft.com/en-us/library/hh750136.aspx )
(2) Create a lambda task as a continuation on that task completion event.
the lambda task captures some variables by reference count (using std::
shared_ptr )
e.g.
>> std::shared_ptr<...> something;
>> concurrency::task_completion_event tce;
>> concu... 阅读全帖
k**********g
发帖数: 989
36
来自主题: Programming版 - C++并发和Java并发有多大区别?

Start with Java Executors.
Learn how to use it just like the Runnable and Callable class.
http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/E
For example, if your goal is to write Android programs, (1) Executors is
basically all you need - the only other things you need are (2) thread
safety on Android, and (3) understand when and why you need to call Activity
.runOnUiThread() in some situations
C++ didn't have anything in the standard library comparable to Java
Executors. Design-by... 阅读全帖
z*******3
发帖数: 13709
37
来自主题: Programming版 - node现在还行么?用的地放多不多?

用swift伪码来解释就是
dispatch_async(queue){
//task 1 -> update b/c&update a
}
dispatch_async(queue){
//task 2 -> update b/c&update a
}
dispatch_async(queue){
//task 3 -> update b/c&update a
}
这三个tasks结束的顺序可能是213, 123或者其他什么
然后存a=b+c的时候,一个task需要存两次
一次存b/c,一次存a
当某个task update b/c之后,还没update a的时候,那么完成的b和c的任务总数会等
于a+1
同时,当某两个tasks同时update a的时候,两个都取到a,然后两个都+1之后再update
最后的结果就不是a+2,而是a+1
数据库常见的读写lock,什么dirty read之类的并发问题
用transaction可以搞定,如果是hdfs的话,用zookeeper,如果是内存的话
用java.util.concurrency,如果是vert.x的话,用worker t... 阅读全帖
s***c
发帖数: 1926
38
来自主题: Military版 - 韩国新冠治疗方案
1.年轻人不用治。
2.年纪大的上氯喹或者克力芝。
3.上面两个不行,可以考虑使用利巴韦林和干扰素。
明显参考了中国大陆和香港的方案,但是去掉了乱七八糟的东西。韩国确实迈入发达国
家门槛了。
http://m.koreabiomed.com/news/articleView.html?idxno=7428
Physicians work out treatment guidelines for coronavirus
Kwak Sung-sun Published 2020.02.13 15:49 Updated 2020.02.13 16:26
- +
Korean physicians treating the patients infected with the new coronavirus (
COVID-19) have established the treatment guidelines for the unpreceded
coronavirus.
The key guidelines are as following; healthy patients wi... 阅读全帖
l****z
发帖数: 29846
39
来自主题: USANews版 - Kids Who Use Facebook Do Worse in School
By Bonnie Rochman Monday, August 8, 2011
That Facebook is hugely distracting is hardly stop-the-presses kind of news,
but parents might be dismayed to learn that the social-media site can
hobble learning and make kids less healthy and more depressed.
Research has found that students in middle school, high school and college
who checked Facebook at least once during a 15-minute study period got lower
grades. Other studies have discovered that teens who use Facebook tend to
have more narcissistic ... 阅读全帖
l****z
发帖数: 29846
40
Health Panel Backs Broad HIV Tests
By THOMAS M. BURTON and BETSY MCKAY
A government health panel on Monday for the first time recommended testing
for the human immunodeficiency virus for all Americans aged 15 to 65, in an
effort to slow its spread.
An estimated 200,000 people in the U.S. are infected with the virus that can
cause AIDS and don't realize it. The U.S. Preventive Services Task Force
said the new draft recommendation is aimed at preventing those people from
infecting others or develo... 阅读全帖
j***j
发帖数: 4878
41
来自主题: ebiz版 - 看起来像是真的啊
http://www.justice.gov/usao/md/Public-Affairs/press_releases/Pr
GOVERNMENT SEIZES TWO WEBSITES OFFERING FRAUDULENT STORE AND REWARDS COUPONS
AND RELATED PAYPAL ACCOUNTS
Criminals Based in China Allegedly Sold Counterfeit Discounts and Refunds
Greenbelt, Maryland - Two domain names and three PayPal accounts were seized
today, in connection with a scheme to sell fraudulent store and rewards
coupons.
The domain names Sderclub.com and ccccpn.com were seized, as well as three
PayPal accounts associat... 阅读全帖
u***n
发帖数: 117
42
来自主题: JobHunting版 - Pure Storage面经
不是很明白这里第一题和第二题。
第一轮: offset 和 len 代表的含义是? (binary tree是以array形式存储?这能解
释offset,但len呢?array的总长度?似乎不太make sense)
第二轮: 这里的考点是在call这两个方法时需要对队列加锁来达到正确性吗?
我基本思路是需要设置一个boolean变量 a 来确认是否已经trigger了。
trigger(){
aquire(mutex_a);
a = true;
dispatch all tasks in the queue;
head = null;
tail = null;
release(mutex_a);
}
addtask(){
aquire(mutex_a);
if(a)
dispatch the task;
else{
if(head == null){
head = task;
tail = task;
} else{
tail.next = task;
tail = task;
}
}
release(mute... 阅读全帖
u***n
发帖数: 117
43
来自主题: JobHunting版 - Pure Storage面经
不是很明白这里第一题和第二题。
第一轮: offset 和 len 代表的含义是? (binary tree是以array形式存储?这能解
释offset,但len呢?array的总长度?似乎不太make sense)
第二轮: 这里的考点是在call这两个方法时需要对队列加锁来达到正确性吗?
我基本思路是需要设置一个boolean变量 a 来确认是否已经trigger了。
trigger(){
aquire(mutex_a);
a = true;
dispatch all tasks in the queue;
head = null;
tail = null;
release(mutex_a);
}
addtask(){
aquire(mutex_a);
if(a)
dispatch the task;
else{
if(head == null){
head = task;
tail = task;
} else{
tail.next = task;
tail = task;
}
}
release(mute... 阅读全帖
w****k
发帖数: 755
44
来自主题: JobHunting版 - VMWare Interview question
There are at most eight servers in a data center. Each server has got a
capacity/memory limit. There can be at most 8 tasks that need to be
scheduled on those servers. Each task requires certain capacity/memory to
run, and each server can handle multiple tasks as long as the capacity limit
is not hit. Write a program to see if all of the given tasks can be
scheduled or not on the servers?
Ex:
Servers capacity limits: 8, 16, 8, 32
Tasks capacity needs: 18, 4, 8, 4, 6, 6, 8, 8
For this example, th... 阅读全帖
l******s
发帖数: 3045
45
I'll try writing up it. Let me know.
//Maintain 2 Task Queue, to avoid long time occupying Task list variable
when a sync event trigger calling happens.
IEnumerable TRegister;
IEnumerable TExecute;
//define 2 lock object:
Object oRegister
Object oExecute
//define a flag (false is after event; true is before event)
flag_Event = true;
void AddTask(Task t)
{
lock(oRegister)
{
TRegister.Add(t);
}
}
void Trigger_Event()
{
lock(oExecute)
{
lock(oRegister... 阅读全帖
b**a
发帖数: 1118
46
来自主题: JobHunting版 - 求两道题目的代码,学习一下
Do not really know how to do the follow up.
private static int CoolDown(string tasks, int coolDown)
{
if (tasks.Length == 0 || tasks == null)
return 0;
Hashtable map = new Hashtable();
int sum = tasks.Length;
int gap = 0;
for(int i = 0;i< tasks.Length; i++)
{
char c = tasks[i];
if(map.ContainsKey(c))
{
int distance = i - (int)... 阅读全帖
W******e
发帖数: 3319
47
1. Introduction
My interest in studying creativity was inspired by the frustrations that I
felt as a student, then as a professor. I wanted to know how I could
encourage creativity in myself, my students, and my colleagues.
Politicians, industrial managers, academic administrators, and other leaders
often say that innovation is critical to the future of civilization, our
country, their company, etc. But in practice, these same people often act as
if innovation is an evil that must be suppressed,... 阅读全帖
A********e
发帖数: 535
48
来自主题: Parenting版 - 这是不是ADHD症状之一啊
不是,不用担心。
给您看看那个典型的ADHD的症状描述:
Be easily distracted, miss details, forget things, and frequently switch
from one activity to another
Have difficulty maintaining focus on one task
Become bored with a task after only a few minutes, unless doing something
enjoyable
Have difficulty focusing attention on organizing and completing a task or
learning something new
Have trouble completing or turning in homework assignments, often losing
things (e.g., pencils, toys, assignments) needed to complete tasks or... 阅读全帖
f********r
发帖数: 3155
49
【 以下文字转载自 LosAngeles 讨论区 】
发信人: labiker (), 信区: LosAngeles
标 题: 从一件小事窥见到了主流社会职场的血雨腥风及人性丑陋的一面
发信站: BBS 未名空间站 (Fri Aug 28 16:10:52 2015, 美东)
背景不用交代太多,知道我的人,基本都知道我从事哪一行业,再多说了就被人肉了,
不过真被人肉了也不是很怕了,已经到了TMD这一步。。。。
背景是这样的,公司要换更新产品的硬件,所以软件也要相应调整,组了个team由一个
PM和一个部门经理管理,这个部门经理是去年到公司的,VP多年的朋友/同事,来了肯
定就直接是Senior 工程师,年底给升了另外两个部门的经理(这人确实很全面,估计
是奔着director去的,但是他现在不是我的直接领导,只是team leader),我在三周
前被安排了一个task,而且也确定了3个礼拜的action items (这个task,这个
manager 本来预估是20小时给软件,结果被我们软件的经理和lead争取到了120小时,
他一直耿耿于怀,念念不忘据说),但是后来的meeti... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)