我们先来看看下面这段代码:
Hello World
document.write("Hello World")
保存以.html为后缀名,使用浏览器查看一下效果:
在网页中加入JavaScript代码时,必须使用成对的标记:
以开始 并以结束,在这块区域的代码,我们称为脚本块
从上面代码中,我们看到script脚本块被放在了和之间,的位置是随意的,它...
分类:
编程语言 时间:
2014-11-02 10:51:26
阅读次数:
155
XML\YAML文件在OpenCV中的数据结构为FileStorage string filename = "I.xml";
FileStorage fs(filename, FileStorage::WRITE);
\\...
fs.open(filename, FileStorage::READ...
分类:
其他好文 时间:
2014-10-31 22:06:31
阅读次数:
393
相比前些天的内容,今天的内容算是比较简单的。主要说了VT控制 码,三种排序算法:选择排序,冒泡排序,快速排序。二分查找。遍历二叉树还有posix的简单介绍。系统调用函数:open close read write lseek fstat的使用。 关于vt控制码的学习,据老刘说是为了以后的小项...
分类:
其他好文 时间:
2014-10-31 20:36:14
阅读次数:
232
在看苹果官方的Swift Language的时候,遇到实验:Write an extension for the Double type that add an absoluteValue property. 在直接使用extension加入了属性的时候,出现错误(当然这时候代码还没写完,Pla.....
分类:
编程语言 时间:
2014-10-31 09:59:40
阅读次数:
191
在RMAN备份中,出现了一个问题,就是出现坏块了。ORA-19502: write error on file "/u01/app/oracle/oradata/standby/system01.dbf", blockno 40321 (blocksize=8192)ORA-27072: File ...
分类:
移动开发 时间:
2014-10-30 22:20:17
阅读次数:
252
int?write_JPEG_file?(char?*?filename,?unsigned?char*?yuvData,?int?quality,int?image_width,int?image_height)
{
?????struct?jpeg_compress_struct?cinfo;
?
?????struct?jpeg_er...
分类:
其他好文 时间:
2014-10-30 21:06:50
阅读次数:
252
Shuffle'm Up
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 5983
Accepted: 2809
Description
A common pastime for poker players at a poker table is to shuf...
分类:
其他好文 时间:
2014-10-30 20:59:47
阅读次数:
211
1) union(otherRDD)RDD-->UnionRDD2) groupByKey(numPartitions)RDD-->ShuffledRDD-->MapPartitionsRDDgroupByKey() 只需要将 Key 相同的 records 聚合在一起,一个简单的 shuffle ...
分类:
其他好文 时间:
2014-10-30 20:46:35
阅读次数:
207
众所周知,Hadoop框架使用Mapper将数据处理成一个键值对,再网络节点间对其进行整理(shuffle),然后使用Reducer处理数据并进行最终输出。 在上述过程中,我们看到至少两个性能瓶颈:如果我们有10亿个数据,Mapper会生成10亿个键值对在网络间进行传输,但如果我们只是对数据求最大值...
分类:
其他好文 时间:
2014-10-30 20:32:28
阅读次数:
283
foreach (WeekDay c in (WeekDay [])Enum.GetValues(typeof(WeekDay ))){Console.Write(String.Format("{0}是一周第{1}天",c.ToString(),(int)c));}Hashtable Ht = ne...
分类:
编程语言 时间:
2014-10-30 16:51:38
阅读次数:
195