首页 > 其他
Cassandra1.2文档学习(15)—— 配置数据一致性
参考文档:http://www.datastax.com/documentation/cassandra/1.2/webhelp/index.html#cassandra/dml/dml_config_consistency_c.html 一致性指的是怎样更新到最新并且在所有副本节点上同步Cassa...
分类:其他   时间:2014-02-03 13:28:49    收藏:0  评论:0  赞:0  阅读:608
R语言学习笔记(一)
买了三本R语言的书,同时使用来学习R语言,粗略翻下来感觉第一本最好:《R语言编程艺术》The Art of R Programming《R语言初学者使用》A Beginner’s Guide to R《R语言实战》R in Action一句话简介R语言:R是一种用于数据处理和统计分析的脚本语言,它受...
分类:其他   时间:2014-02-03 13:27:59    收藏:0  评论:0  赞:0  阅读:580
Spring学习笔记
Spring学习笔记 Java相关课程系列笔记之十五 笔记内容说明 Spring(梁建全老师主讲,占笔记内容100%); 目 录 一、 Spring概述 1 1.1 Spring框架的作用 1 1.2 Spring框架的优点 1 1.3 Spring框架的容器 1 二、 Spring容器的基本应用 ...
分类:其他   时间:2014-02-03 13:27:09    收藏:0  评论:0  赞:0  阅读:780
屏保:自动寻路的贪吃蛇
将基于网格的寻路与贪吃蛇游戏相结合,实现贪吃蛇的自动寻路找食. 这两天将网格寻路算法集成到自己的引擎中,然后就用贪吃蛇测试下.贪吃蛇和网格寻路很搭配,花了两三个小时的时间就搞定了.当然这只是简单的测试,没有考虑到贪吃蛇每一格运动对寻路所产生的影响,因为这要涉及到动态归化,太麻烦了.在这个程序中贪吃蛇...
分类:其他   时间:2014-02-03 13:26:19    收藏:0  评论:0  赞:0  阅读:587
leetcode--Minimum Depth of Binary Tree
Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le...
分类:其他   时间:2014-02-03 13:24:39    收藏:0  评论:0  赞:0  阅读:446
使用zbar 解码二维码 条形码
#!/usr/bin/env python# coding: u8import osimport zbarimport Imageimport urllibimport uuiddef qrRead(url):uuid1 = uuid.uuid1()filename=str(uuid1)+".jpg...
分类:其他   时间:2014-02-03 13:25:29    收藏:0  评论:0  赞:0  阅读:565
上周热点回顾(1.27-2.2)
热点随笔: · 学一点Git--20分钟git快速上手(-Neil) · 软件开发真的这么简单吗?(川山甲) · ASP.NET MVC 3升级至MVC 5.1的遭遇:“已添加了具有相同键的项”(dudu) · 春节前最后一篇,CRUD码农专用福利:PDF.NET之SOD Version 5.1.0...
分类:其他   时间:2014-02-03 13:23:49    收藏:0  评论:0  赞:0  阅读:567
随机抽样一致性算法(RANSAC)示例及源代码
大约在两年前翻译了《随机抽样一致性算法RANSAC》,在文章的最后承诺写该算法的C#示例程序。可惜光阴似箭,转眼许久才写出来,实在抱歉。本文将使用随机抽样一致性算法来来检测直线和圆,并提供源代码下载。
分类:其他   时间:2014-02-03 13:22:59    收藏:0  评论:0  赞:0  阅读:742
leetcode--Jump Game II
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他   时间:2014-02-03 13:22:09    收藏:0  评论:0  赞:0  阅读:437
LeetCode: Anagrams
Given an array of strings, return all groups of strings that are anagrams.第一次面试dropbox就是面的anagrams。在面试前还恰巧看到了这个题,最后答得还是一塌糊涂。我在面试的时候想到了对string字符排序,但我忘记...
分类:其他   时间:2014-02-03 13:21:19    收藏:0  评论:0  赞:0  阅读:424
LeetCode: Permutation I & II
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:其他   时间:2014-02-03 13:19:39    收藏:0  评论:0  赞:0  阅读:544
[原创]传递UIScrollView的滑动事件到其子视图中
在开发项目时,遇到了一个问题:我的UIScrollViewOut中嵌入了一个UIScrollViewIn,当我想要拖动UIScrollViewIn时,UIScrollViewOut却动了,而UIScrollViewIn没有动。但是只要按住UIScrollViewIn一会再拖动,UIScrollVie...
分类:其他   时间:2014-02-03 13:18:49    收藏:0  评论:0  赞:0  阅读:424
[Leetcode]-- Reverse Integer
eetcode -- Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are ...
分类:其他   时间:2014-02-03 13:17:09    收藏:0  评论:0  赞:0  阅读:340
[Leetcode]-- Subsets
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:其他   时间:2014-02-03 13:16:19    收藏:0  评论:0  赞:0  阅读:399
[Leetcode]--Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他   时间:2014-02-03 13:15:29    收藏:0  评论:0  赞:0  阅读:432
[Leetcode]-- Word Search
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:其他   时间:2014-02-03 13:14:39    收藏:0  评论:0  赞:0  阅读:456
关于UIColor这个类的一些不知道的事
UIColor试剂上是UIKit对Core Graphics中CGColor的一个包装类。党我们在Core Graphics这个较低的层次编程时,我们对于如何使用我们的颜色对象突然有了更多的控制,我们甚至可以检测颜色的组成部分,比方说,一些其他代码传给你一个UIColor类型的对象,而你想要检测其红...
分类:其他   时间:2014-02-03 13:12:59    收藏:0  评论:0  赞:0  阅读:522
URAL 1297 Palindrome 最长回文子串
POJ上的,ZOJ上的OJ的最长回文子串数据量太大,用后缀数组的方法非常吃力,所以只能挑个数据量小点的试下,真要做可能还是得用manacher。贴一下代码两个小错,一个是没弄懂string类的substr的用法是S.substr(i,len)从i开始的长度为len的一段。另外一个是RMQ的时候,询问...
分类:其他   时间:2014-02-03 13:12:09    收藏:0  评论:0  赞:0  阅读:394
[Leetcode]--Convert Sorted List to Binary Search Tree
Ref:http://www.cnblogs.com/feiling/p/3267917.html3 中方法 两种top down, 一种 bottom up(TODO).
分类:其他   时间:2014-02-03 13:10:29    收藏:0  评论:0  赞:0  阅读:423
【C#小知识】C#中一些易混淆概念总结(二)
目录:【C#小知识】C#中一些易混淆概念总结继上篇对一些C#概念问题进行细节的剖析以后,收获颇多。以前,读书的时候,一句话一掠而过,但是现在再去重读的时候,每句话发现都包含大量的信息。这一篇继续总结自己的学习笔记,给大家深度的剖析一些概念性问题,有助于大家对C#的理解。---------------...
分类:其他   时间:2014-02-03 13:09:39    收藏:0  评论:0  赞:0  阅读:603
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!