Note 1: Good】的更多相关文章

三星Note 7发售两个月即成为全球噩梦,从首炸到传言停产仅仅47天.所谓"屋漏偏逢连天雨",相比华为.小米等品牌对其全球市场的挤压.侵蚀,Galaxy Note 7爆炸事件这场连天雨算是把三星淋了个措手不及,致其声誉扫地.危机重重. 表面看来,此事件源于电池自燃,深究起来可以追溯到管理层变动带来的组织管理问题,再深究,业务流程管理系统可能是最基础和最关键的因素. 高层变动,赶超苹果埋祸端 2014年5月,三星老掌柜李健熙重病入院,儿子李在镕与元老崔志成(G.S.Choi)共掌时局.同…
Mem pro 是一个主要集成内存泄露检测的工具,其具有自身的源码和GUI,在GUI中利用"Launch" button进行加载自己待检测的application,目前支持的平台为Windows,Unix, Linux, OSX, IOS, GCC:但是按照官网的说法,其虽然只能运行到WIN上,但是根据TCP协议传输dump的方式也可以和其他平台的app进行连接: 关于内存泄露,按照官方文档中的说法,其检测内存泄露的算法主要是两种,一种是在抓取dump时候未被引用的变量会被认定为泄露,…
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 整体模块module分析: 打开Strate…

Given
 an 
arbitrary
 ransom
 note
 string 
and 
another 
string 
containing 
letters from
 all 
the 
magazines,
 write 
a 
function 
that 
will 
return 
true 
if 
the 
ransom 
 note 
can 
be 
constructed 
from 
the 
magazines ; 
otherwise, 
it 
wil…
1. Translating Java Classes to Scala Classes Example 1: # a class declaration in Java public class Book{} # Scala equivalent of a class declaration class Book Example 2: # a Java class with a Construtor public class Book{ private final int isbn; priv…
1. Unified Type System Scala has a unified type system, enclosed by the type Any at the top of the hierarchy and the type Nothing at the bottom of the hierarchy. All Scala types inherit from Any. # Using Any, Book extends AnyRef, and x is an Int that…
A trait provides code reusability in Scala by encapsulating method and state and then offing possibility of mixing them into classes thus allowing code reuse. #define Trait Gliding scala> trait Gliding{ | def gliding(){ println("gliding")} |…
Scala's object-oriented collections support mutable and immutable type hierarchies. Also support functional higher-order operations such as map, filter, and reduce that let you use expression-oriented programming in collections. Higher-order operatio…
The basic functional cornerstones of Scala: immutable data types, passing of functions as parameters and pattern matching. 1. Basic Pattern Matching In Scala, your cases can include types, wildcards, sequences, regular expressions, and so forth. scal…
1. Functional programming treats computation as the evaluation of mathematical and avoids state and mutable data. Scala encourages an expression-oriented programming(EOP) 1) In expression-oriented programming every statement is an expression. A state…
1. The three principles of OOP are encapsulation(封装性), inheritance(继承性) and polymorphism(多态性). example: class Shape{ def area: Double = 0.0 } # supertype # subtypes class Rectangle(val width: Double, val height: Double) extends Shape{ override def ar…
1. Variables (1) Three ways to define variables: 1) val refers to define an immutable variable; scala> val x = x: Int = scala> x*x res4: Int = scala> res4 + # use result as a value res6: Int = scala> res4 + res6 res7: Int = scala> x = # x i…
刚开始经营博客的时候,我写过不少“扒皮”系列的文章,主要介绍一些知名站点上有趣的交互效果,然后试着实现它们.后来开始把注意力挪到一些新颖的前端技术上,“扒皮”系列便因此封笔多时.今天打算重开“扒皮”的坑,不过咱挂个优雅点的名字——“优秀网站看前端”,顾名思义的,也是寻觅一些值得玩味的趣味网站,来学习它们的前端技术和交互理念. 作为本系列的开篇,我们拿“买手机送国土”的小米来打头阵,缘由是鄙人有着更换手机的打算又刚好看上小米note高配版,于是逛了下小米note的介绍页面,感觉交互做的挺不错,特别…
1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution. Example: /** * Note: The returned array must be malloced, assume call…
============================================================================== Until Oracle 8i DBAs have been using a text file called the pfile (parameter file) to store the database initialization parameters.  ---8i之前使用文本参数文件 The pfile is read at i…

Given
 an 
arbitrary
 ransom
 note
 string 
and 
another 
string 
containing 
letters from
 all 
the 
magazines,
 write 
a 
function 
that 
will 
return 
true 
if 
the 
ransom 
 note 
can 
be 
constructed 
from 
the 
magazines ; 
otherwise, 
it 
wil…
copy from https://github.com/operando/Android-Command-Note Android Command Note Logcat adb logcat -v time adb logcat -v time -b main adb logcat -v time -b system adb logcat -v time -b events adb logcat -v time -b radio adb shell logcat -b all adb log…
463. Island Perimeterhttps://leetcode.com/problems/island-perimeter/就是逐一遍历所有的cell,用分离的cell总的的边数减去重叠的边的数目即可.在查找重叠的边的数目的时候有一点小技巧,就是沿着其中两个方向就好,这种题目都有类似的规律,就是可以沿着上三角或者下三角形的方向来做.一刷一次ac,但是还没开始注意codestyle的问题,需要再刷一遍. class Solution { public: int islandPerime…
手机客户端向服务器提交Http请求时,Tomcat抛出错误: 十二月 31, 2014 2:32:45 下午 org.apache.coyote.http11.AbstractHttp11Processor process信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. 经过调试后发现是Tomcat…
java class 基本定义 Note 1 package abeen.note; 2 import java.util.*; 3 4 5 /* 6 java calss 基本 7 */ 8 public class BaseClassDescription{ 9 10 BaseClassDescription() { 11 //构造器 12 } 13 14 BaseClassDescription(int i) { 15 //带参数构造器 重载 16 } 17 18 void info(){…
面向对象编程OOP Note OOP五个基本特性1. 万物皆对象.2. 程序是对象的集合,它们通过发送消息来告知彼此所要做的.3. 每个对象都有自己的由其他对象所构成的存储.4. 每个对象都拥有其类型.5. 某一特定类型的所有对象都可以接收同样的消息. OOP五个不同地方可以存储数据:1. 寄存器2. 堆栈3. 堆4. 常量存储5. 非RAM存储 对象初始化地方:1. 在定义对象的地方2. 在类的构造器内3. 正要使用对象之前(惰性初始化)4. 使用实例初始化 Static 关键字当声明Stat…
TestNG 插件在线安装 Help -> Install New Software -> Add -> Paste TestNG url to Add:  http://testng.org/eclipse-beta -> OK -> Select All -> click Next -> Finished. NOTE: since TestNG Eclipse Plugin 6.9.10, there is a new optional plug-in for…
Lecture 3(part 1) Divide and conquer 1. the general paradim of algrithm as bellow: 1. divide the problem into subproblems; 2. conqure each subproblems recrusively; 3. combine solution 2. Some typical problem (part 1) the matrix mutiplication(strassen…
调试网站时,异常出现:Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service t…
在Eclipse中开发Android项目时,鼠标停放在想要查看帮助文档的类上面,发现没有显示帮助文档,显示了下面一句话: Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found. 这是因为Android.jar文件的Javadoc location属性没有设置好,按照下面不走进行操作: (1) 右击项目名称,选择Properties-->Java…
笔记[问题描述]给定一个长度为m的序列a,下标编号为1~m.序列的每个元素都是1~n的整数.定义序列的代价为m−1 ∑|ai+1-ai| i=1 你现在可以选择两个数x和y,并将序列a中所有的x改成y.x可以与y相等.请求出序列最小可能的代价.[输入格式]输入第一行包含两个整数n和m.第二行包含m个空格分隔的整数,代表序列a.[输出格式]输出一行,包含一个整数,代表序列最小的代价.[样例输入 1]4 61 2 3 4 3 2[样例输出 1]3[样例输入 2]10 59 4 3 8 8[样例输出…
hr,fresh meat!! --------------------------------------------------- 15 Practical Usages of Mysqladmin Command For Administering MySQL Server In all the 15 mysqladmin command-line examples below, tmppassword is used as the MySQL root user password. Pl…
#MySQL for Python(MySQLdb) Note #切记不要在python中创建表,只做增删改查即可. #步骤:(0)引用库 -->(1)创建连接 -->(2)创建游标 -->(3)选择数据库 -->(4)执行语句 -->(5)关闭连接 #(0)引用库 import MySQLdb #(1)创建连接 con = MySQLdb.connect(user = ",host = "127.0.0.1") #(2)创建游标 cur = c…
问题描述: OS X(Yosemite),ADB(1.0.32),Android Studio(1.0.1),魅蓝note手机(m1 note,Android 4.4.4,Flyme OS 4.2.0 3U). 通过USB线将手机连接到 MAC 时,执行 adb devices 未能发现设备. 解决方法: 查找该手机的 vender id,有以下两个途径 在 terminal 输入 system_profier SPUSBDataType,找到 m1 note About This Mac ->…
docker --bip="10.1.42.1/16" -d 挂载宿主机目录 Docker支持挂载宿主机目录,支持宿主机目录和容器之间文件目录进行映射,彼此共享: docker run -i -t -v /host/dir:/container/path ubuntu /bin/bash在Dockerfile中,则可以使用'VOLUME'命令 VOLUME ["/var/volume1", "/var/volume2"] 如何在容器之间共享存储…