自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

魏勇的专栏

点点滴滴

  • 博客(38)
  • 资源 (1)
  • 收藏
  • 关注

原创 产品经理

产品经理做产品经理,不要做页面经理。

2020-09-04 10:45:16 148

原创 前端

TIPssetIntervalandsetTimeoutaren't synced to when the browser is going to draw a new frame. However, requestAnimationFramecalls you at just the right time to sync your animation with the screen ...

2019-10-15 17:17:34 156

转载 About 3DTiles

Instead of relying on 2D constructs such as zoom levels, 3D Tiles are based on geometric error for Level-Of-Detail (LOD) selection and a tunable pixel error. This allows performance/visual-quality tun...

2019-04-12 10:59:05 450

转载 Socket Programming Tips

read也好,recv也好只负责把数据从底层缓冲copy到我们指定的位置。写的本质也不是进行发送操作,而是把用户态的数据copy到系统底层去,然后再由系统进行发送操作,返回成功只表示数据已经copy到底层缓冲,而不表示数据以及发出,更不能表示对端已经接收到数据. 短连接需要消耗更多的时间会产生TIME_WAIT问题;...

2019-01-31 10:47:25 140 1

转载 软件需求 - 数据需求

ONC (Office of National Coordinator for Health Information Technology)https://www.healthit.gov Data Requirements DefinitionPurposeEnsures that data produced and consumed satisfies business o...

2019-01-28 14:53:39 2004 1

转载 Spring

BasicsCentral to the Spring Framework is its IoC container, which provides a consistent means of configuring and managing Java objects using reflection.  The container can be turned into a partially...

2019-01-18 14:16:53 102

转载 Containerization

ContainerA computer program running on an ordinary operating system can see all resources (connected devices, files and folders, network shares, CPU power, quantifiable hardware capabilities) of tha...

2019-01-09 16:48:06 623

转载 Mr.doob's Code Style™

Mr.doob's Code Style™Mr.doob edited this page on 4 Feb 2017 · 16 revisionsJavaScript CodeStyleOnline Code BeautifierSee the online mrdoobapproves code beautifier.General ProvisionsCode sho...

2018-12-28 10:04:37 364

转载 向量场的可视化 - 要点

向量场维基百科的解释是:在向量分析中,向量场是把空间中的每一点指派到一个向量的映射。形成场的量仅为数量,称该场为标量场。让向量场动起来以风向量场为例说明:给你一个围棋棋盘(向量场),每一个格子就是一个向量,拿一个棋子随机放在一个格子上,这就是风的起点。根据当前格子的向量值移动棋子,直到格子的向量值为零(风停)。 引用https://www.cnblogs.com/fuc...

2018-09-12 12:17:44 3402

转载 ERR_NETWORK_CHANGED?

https://superuser.com/questions/747735/regularly-getting-err-network-changed-errors-in-chromePossible SolutionsHere are some approaches to solveing the problem that I found researching the enti...

2018-08-30 10:34:51 10570

转载 JS: Concurrancy and Event Loop

Event LoopJavaScript has a concurrency model based on an "event loop". The event loop got its name because of how it's usually implemented, which usually resembles:while (queue.waitForMessage()) ...

2018-08-29 12:29:35 143

转载 Use the "versionless" XSDs, please.

From: https://stackoverflow.com/questions/20894695/spring-configuration-xml-schema-with-or-without-version/20900801#20900801It is recommended to use the "versionless" XSDs, because they're mapped to...

2018-08-29 12:06:17 144

转载 Notes on web workers

How It Relates to OS Thread?The Worker interface spawns real OS-level threads, and mindful programmers may be concerned that concurrency can cause “interesting” effects in your code if you aren't ca...

2018-08-29 10:28:03 124

转载 Sleep in Javascript

Answer from stackoverflowhttps://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleepI think it's perfectly reasonable to want to perform an action, wait, then perform anothe...

2018-08-22 12:29:48 149

转载 H5语义标签

                                Semantic Elements For Document Outlining 1、<section></section>         定义文档中的主体部分的节、段。    2、<article></article>        一个特殊的section标...

2018-08-20 16:10:16 316

翻译 webgl readpixels is always returning 0,0,0,0

Google网上论坛You can grab data from a canvas by simply doing:var pixels = new Uint8Array(gl.drawingBufferWidth * gl.drawingBufferHeight * 4);gl.readPixels(0, 0, gl.drawingBufferWidth, gl.drawingBuf...

2018-08-16 11:32:31 1313

原创 Stateful or stateless

HTTP is an example of a stateless protocol layered on top of TCP, a stateful protocol, which is layered on top of IP, another stateless protocol, which is routed on a network that employs BGP, a

2014-07-23 15:10:18 1181

原创 Agile

Early implementations of agile methods include Rational Unified Process (1994), Scrum (1995), Crystal Clear, Extreme Programming (1996), Adaptive Software Development, Feature Driven Develop

2014-07-23 10:43:38 720

原创 质量保证

提高软件质量有无数种方式和无数个因素,如果非要说一个最最重要的方式,那就是激发测试工程师的工作热情。

2014-07-22 15:13:04 442

原创 过程改进

持续的改进很重要,但频繁的改进会不利于过程的执行。 一个进度和成本宽余的项目和一群对过程改进有热情的人是保证试点成功的组合。 一个坚决支持过程改进的领导是必不可少的。 要有选择的对于KPA进行改进,不一定是最薄弱的KPA,最重要是选择你可以控制的KPA 。 对于过程的改进要有度量。 不必拘泥于CMM的级别。 ...

2014-07-18 13:30:02 446

原创 RUP和迭代

迭代化方法解决的主要是对于风险的控制。

2014-07-17 11:13:38 1748

原创 开发管理

绝对不要让组员一直做同样的工作,这样是限制了他的学习。

2014-07-16 09:19:57 521

原创 code review

“这个玩意很花时间,见效不快,老板未必喜欢”。

2014-06-27 16:11:22 550

转载 Notes on HTTP-the Definitive Guide

HTTP allows a cache to send a “conditional GET” to the origin server, asking the server to send back an object body only if the document is different from the copy currently in the cache.

2014-06-17 14:19:21 512

原创 需求分析-1

n  少就是多。如果用户的需求是在不能全部很好的满足,那么,就放弃非核心的需求,决不能贪多;而把用户的核心需求做到极致、完美。这是Apple的基本原则。当然,这个原则更适合通用型product的开发。 DFD、ERD和Use Case。这是3种常用的需求建模,它们各有其侧重点;它们的共同点是:使用图形化的手段进行描述。图形化的好处就是元素之间的关系一目了然,避免自然语言描述上的混沌和零散。不要用专

2014-01-22 13:39:36 683

原创 需求获取-2

需求(访谈)提纲。调查前的准备工作。给用户,让他们事先有所准备,特别是提醒他们可能想不到的方面;也给需求工程师,避免在交谈中遗漏重要之点。 背景知识。用户提出的所有需求一般而言都会有背景,了解这些背景知识可以有效避免对用户需求的误解。异常提问。这是深入探查需求的一个technique。在用户说了“这个business应当这样-这样”之后,需求工程师还要这样问“如果这个business因故(异常)不

2013-12-31 14:37:20 605

原创 需求获取-1

傻瓜用户。这是需求工程师必备的一个假设(assumption),这样我们才可以用感激的态度欢迎和接受用户提供的所有原始材料。提问的角度。一般的、传统的角度的询问是这样的:软件能为您做些什么;use case方法论则这样询问:您想怎样使用软件,用来做什么。 Impersonation。需求工程师了解了用户的business背景后,可以impersonate用户的角色,提出一系列的软件需求,并一一让用

2013-12-30 18:10:26 602

原创 Exception Handling

关于exception handling的一些注意点。1、  实现一个.Net library时的exceptionhandling。由于.Net已经基本上抛弃了传统的return code方式进行错误报告,所以我们现在实现一个.Net上的library时,也应该使用与其相一致的错误报告方式。这里有一个问题比较棘手:在实现一个method时,难免要调用多个其他的第三方.Netlibraries

2013-11-25 15:55:12 637

原创 Exception Handling

Exception handling说难不难,但是关于exception的问题分歧较多,没有定论,所以要处理好exceptions需要相当的耐心和较全面的考虑。下面的几条rules或许有一定的指导意义:1、  If you can’t actuallyhandle the exception, don’t. 但是,怎样才能称为“can handle”呢?这个问题的答案会不会是因人而异,或者

2013-11-21 16:27:54 951

原创 Pattern – MVC

按照Martin Fowler的观点,MVC的最有意义的思想在于M和VC进行了分离,而不在于V和C进行了分离。这个思想似乎简单、原始,但却普遍存在,历久弥新。Martin Fowler同时指出:MVC的一些assumptions现在可能已经过时,而且有些assumptions的过时是致命的。比如:MVC的一个assumption是所有View的states应该都可以derive自Model的s

2013-11-14 15:15:23 522

原创 Pattern – MVVM?

人们对patterns的热衷似乎并不是一个很健康的标志,比如来自Microsoft®的一个pattern:MVVM(Model-View-ViewModel),它似乎已经被深深的植根到每一个WPF应用中。然而,就是MVVM的发明人John Gossman却向人们发出了警告的声音:“The overhead inimplementing MVVM is “overkill” for simple

2013-11-08 18:07:47 552

原创 Ponders on Peopleware by DeMarco(2)

DeMarco在Peopleware中的观点充满了生活和人性,提倡managers要依照人性的规律(很多是内在的、不明显的,而且常常和其表现是相反的)来管理software产品的开发。1.       Parkinson’s Law,即“work expands so as to fill the time available for its completion”,这种现象在bureaucr

2013-11-05 10:49:25 533

原创 Ponders on Peopleware by DeMarco(1)

PeopleWare是Tom DeMarco等从其实践和思考中总结出来的关于管理从事脑力劳动的人的基本特点。这些基本特点都有其合理(rationality)的一面,但是,从实践(实际执行)的观点来看,也有其偏颇的一面。1.       DeMarco说:我们面临的主要问题是sociological方面的,而不是technological方面的。如果参与项目的人都对采用的technology运用

2013-10-31 10:21:08 446

原创 实现一个lock的考虑

实现一个lock的基本要求是正确性,尽管做到这一点已经很不容易,但是我们还要考虑其他的问题:1.       lock的公平性(fairness)要求。当有大量threads竞争一个lock时,我们应该考虑是不是有某些threads很难或永不可能获得lock,即所谓的starvation。但要注意:fairness不是一个“永远正确”的标准,因为在某些application中,我们恰恰要破坏这

2013-10-17 12:03:01 567

原创 PulseEvent Useless?

MSDN上明确写道:“Therefore, PulseEvent is unreliable and should notbe used by new applications. Instead, use condition variables.”,MSDN给的理由是:“A thread waiting on asynchronization object can be momentarily r

2013-10-12 18:24:02 586

原创 Socket是否connected?

综合网上的讨论,判断一个socket(client端或server端)当前的状态是否是connected是一个比较棘手的问题,似乎不存在一个通用的,“理想”的解决方案。       虽然如此,探测一个socket的某些connection相关属性的techniques还是比较多的,常见的有(主要来自www.stackoverflow.com ):1)       getsockopt( s

2013-09-27 15:14:57 1769

原创 .Net中的I/O thread vs. worker thread

Stackoverflow.com上的一个post(http://stackoverflow.com/questions/2099947/simple-description-of-worker-and-i-o-threads-in-net)关于它们的解释比较准确,原文摘录如下:“The term 'I/O thread' in.net/CLR refers to the threads th

2013-09-22 11:21:31 1872

原创 关于Win32中IO completion port的一点理解

I/O completionport是微软号称目前为止最好(performance,scalability,throughput,etc.)的I/O处理机制。MSDN关于它的运行机制、performance等写道:“The most efficient scenariooccurs when there are completion packets waiting in the queue,

2013-09-18 15:57:35 616

timeline control

timeline control, from visjs, great for specific purposes

2018-08-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除