自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(345)
  • 资源 (4)
  • 收藏
  • 关注

原创 【转】那些年使用过MapReduce的论文

     MapReduce is a programming model for processing large data sets with a parallel, distributed algorithm on a cluster. It's definitely based on the principle of divide-and-conquer method. A MapRe...

2014-03-09 15:20:26 438

4Sum (C++实现)

Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note: Elements...

2013-12-12 19:07:48 276

原创 【转】Linux tcpdump命令详解

转自:http://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html 简介用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具。 tcpdump可以将网络中传送的数据包的“头”完全截获下来提供分析。它支持针对网络层、协议、...

2013-12-11 09:54:26 248

原创 XCode环境变量及路径设置

转自:http://blog.csdn.net/freedom2028/article/details/8658819 一般我们在xcode里面配置包含工程目录下头文件的时候,都要关联着相对路径和绝对路径,如果只是自己用这个项目,用绝对路径的问题不大,但是如果你把工程发给别人,别人就要在改这个绝对路径,这时候绝对路径的缺点立马出现。所以在修改User Header Search Path...

2013-11-17 16:05:55 209

OVGap — 沟通 Objective-C 与 Javascript

Github 地址: https://github.com/windshg/OVGap 一个轻量级的类库,能够让iOS应用和远程网页的 Javascript 代码进行通信。远程的 Javascript 代码能够调用本地 Objective-C 代码。类库的工作机制是基于一种插件式结构(plugin architecture)。Demo的具体部署测试(主要是模拟远程网页的部署),请移步到...

2013-11-14 15:14:36 157

原创 自动生成Makefile的全过程详解!automake/autoconf入门

文章出处:http://hi.baidu.com/%C7%B6%C8%EB%CA%BD%C7%FD%B6%AF/blog/item/16fb0b1eae1e3e8687d6b63b.html automake/autoconf 入门作为Linux下的程序开发人员,大家一定都遇到过Makefile,用make命令来编译自己写的程序确实是很方便。一般情况下,大家都是手工写一个简单Makefi...

2013-11-13 22:58:42 137

原创 PHP 中的 STATIC 关键字

转自: http://www.nowamagic.net/php/php_StaticInPhp.php static关键字在C#编程中非常常见,它用来修饰符声明属于类型本身而不是属于特定对象的静态成员。static 修饰符可用于类、字段、方法、属性、运算符、事件和构造函数,但不能用于索引器、析构函数或类以外的类型。声明为static的类、函数和变量将不能引用实例方法或变量,另外在C#中...

2013-10-25 14:16:41 120

多种加密算法实现(JAVA)

有短句“Sun Yat-sen University is a vibrant community of scholarship”,请用下列方法加密: – 简单代替密码(移位密码),k=5,q=26; – 多表代替密码,其中m=6, K=cipher; – 纵行置换密码,假定每行10个字节。请写出加密后密文。 加密结果:简单代替加密:Xzs Dfy-xjs Zsnajwxnyd nx...

2013-10-24 09:18:58 375

转载 JAVA与C++通信之字节序

1.BIG-ENDIAN、LITTLE-ENDIAN跟多字节类型的数据有关的比如int,short,long型,而对单字节数据byte却没有影响。BIG-ENDIAN就是低位字节排放在内存的低端,高位字节排放在内存的高端。而LITTLE-ENDIAN正好相反。   比如 int a = 0x05060708   在BIG-ENDIAN的情况下存放为:   字节号 0 1 2 3  

2013-10-22 22:57:42 2528

转载 大端与小端

端模式(Endian)的这个词出自Jonathan Swift书写的《格列佛游记》。这本书根据将鸡蛋敲开的方法不同将所有的人分为两类,从圆头开始将鸡蛋敲开的人被归为Big Endian,从尖头开始将鸡蛋敲开的人被归为Littile Endian。小人国的内战就源于吃鸡蛋时是究竟从大头(Big-Endian)敲开还是从小头(Little-Endian)敲开。在计算机业Big Endian和Littl

2013-10-22 22:55:53 776

原创 IOS开发常用命令

统计代码行数打开terminal, cd到项目根目录: 列出所有有效文件的目录:find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs wc -l 列出总的代码行数:find . -name "*.m" -or -name "*.h" -or -name &q

2013-10-11 10:41:06 106

原创 【转】基数排序

转自:http://www.cppblog.com/shongbee2/archive/2009/04/24/80992.html 今天学了基数排序,据说他的时间复杂度也是O(n),他的思路就是:没有计数排序那么理想,我们的数据都比较集中,都比较大,一般是4,5位。基本没有小的数据。那我们的处理很简单,你不是没有小的数据嘛。我给一个基数,例如个位,个位都是[0-10)范围内的。先对他进行...

2013-09-20 22:42:55 85

原创 字符串题目推荐及解题报告

转自:http://hi.baidu.com/fpkelejggfbfimd/item/701ab1be964e89d184dd79a6 POJ 1002 - 487-3279(基础)http://acm.pku.edu.cn/JudgeOnline/problem?id=1002题意:略解法:二叉查找数,map,快排...POJ 1200 - Crazy Search(基础)ht...

2013-09-08 17:30:31 138

循环字符串最小表示

题目 From POJ : http://poj.org/problem?id=1509 #include <iostream>#include <string>using namespace std;int minlist(string &str) { if(str.size() < 2) return 0; ...

2013-09-07 20:29:38 105

原创 phonegap js 和 本地代码 调用原理

转自:http://www.cnblogs.com/comsokey/archive/2012/12/20/phonegap.html  iOS:通过让本地代码拦截JavaScript中调用的window.location=”gap://Class.method/args”命令,来实现从JavaScript到本地代码之间的通信。在本地代码拦截该命令后,解析获取的参数,然后调用对应的类...

2013-09-03 11:52:28 99

原创 提高在Xcode上的工作效率

转自:http://liuminqian.github.io/blog/2013/08/25/ti-gao-zai-xcodeshang-de-gong-zuo-xiao-lu/ Key words: Xcode, 效率对于在Xcode上提高工作效率,内功在这不提,对于外力,我将它分为三类: 工具、快捷键和小技巧。主要获得的路径是通过平时积累和看 WWDC12 上的 Session ...

2013-08-31 11:05:36 98

原创 把ipa包上传到AppStore

转自:http://doc.appcan.cn/dev_iosdom.html概述由于苹果的机制,在非越狱机器上安装应用必须通过官方的Appstore,开发者开发好应用后上传Appstore,也需要通过审核等环节。AppCan作为一个跨主流平台的一个开发平台,也对ipa包上传Appstore作了支持。本文从三个流程来介绍如何实现AppCan在线编译出ipa包,以及上传到苹果Appsto...

2013-08-26 21:46:47 150

原创 iPhone应用程序中App目录结构

转自:http://blog.csdn.net/justinjing0612/article/details/6954407 了解iPhone应用程序中App目录结构是本文要介绍的内容,不多说,直接进入内容。iPhone的App的目录结构如下:对于一个运行在iPhone得app,它只能访问自己根目录下得一些文件(所谓sandbox).一个app发布到iPhone上后,它得目录...

2013-08-26 17:30:57 131

原创 单点登录SSO的实现原理

转自:http://blog.csdn.net/cutesource/article/details/5838693#comments 单点登录SSO(Single Sign On)说得简单点就是在一个多系统共存的环境下,用户在一处登录后,就不用在其他系统中登录,也就是用户的一次登录能得到其他所有系统的信任。单点登录在大型网站里使用得非常频繁,例如像阿里巴巴这样的网站,在网站的背后是成...

2013-08-26 10:09:31 110

原创 iOS运行回路(RunLoop)总结

转自:http://www.cocoachina.com/iphonedev/sdk/2011/1111/3487.html  首先看两个runloop的示例,来源:http://paste.lisp.org/display/86524第一个: #include <CoreFoundation/CoreFoundation.h>    static ...

2013-08-05 13:37:45 66

原创 Simple iPhone Keychain Access

 转自:http://useyourloaf.com/blog/2010/03/29/simple-iphone-keychain-access.html The keychain is about the only place that an iPhone application can safely store data that will be preserved acro...

2013-08-04 15:54:37 86

Valid Palindrome

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is not a pali...

2013-07-29 10:34:04 69

Surrounded Regions

Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounded region .For example,X X X XX O O XX X ...

2013-07-28 20:11:31 86

原创 IOS媒体层

转自:http://wd397.blog.163.com/blog/static/60860635201281683054319/ 媒体层包含图形技术、音频技术和视频技术,这些技术相互结合就可为移动设备带来最好的多媒体体验,更重要的是,它们让创建外观音效俱佳的应用程序变得更加容易。您可以使用iOS的高级框架更快速地创建高级的图形和动画,也可以通过底层框架访问必要的工具,从而以某种特定的方...

2013-07-28 15:18:21 87

原创 nginx上搭建HLS流媒体服务器

转自:http://blog.csdn.net/cjsafty/article/details/7922849 简介:HTTP Live Streaming(缩写是 HLS)是一个由苹果公司提出的基于HTTP的流媒体 网络传输协议。是苹果公司QuickTime X和iPhone软件系统的一部分。它的工作原理是把整个流分成一个个小的基于HTTP的文件来下载,每次只下载一些。当媒体流...

2013-07-28 13:31:20 99

Construct Binary Tree from Inorder and Postorder Traversal

Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNo...

2013-07-27 21:11:25 95

Construct Binary Tree from Preorder and Inorder Traversal

Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.  // construct tree from preorder and inorder class...

2013-07-27 13:58:36 73

原创 Compile ffmpeg for iOS 6, support Simulator & armv7 & armv7s

转自:http://witcheryne.iteye.com/blog/1734706  In the posts, I will show how to use ffmpeg on iOS. This posts is a document for this project: https://github.com/lvjian700/ffmpegc-demo ...

2013-07-23 17:03:40 105

Add Binary

Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100". class Solution {public: string addBinary(string a, string b) { if(a.s...

2013-07-23 00:59:28 103

Best Time to Buy and Sell Stock I II III(C++实现)

// Best Time to Buy and Sell Stock I class Solution {public: int maxProfit(vector<int> &prices) { if(prices.size() < 2) return 0; int mj = 0, mjIdx = 0; ...

2013-07-20 20:10:41 95

UITableView 修改编辑模式下的切图

把以下代码放在点解 “编辑” 按钮时触发的方法中。 dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.001); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ for (UIView *sv in ...

2013-07-14 21:03:42 94

Merge Sort (C++ 实现)

// Type your C++ code and click the "Run Code" button!// Your code output will be shown on the left.// Click on the "Show input" button to enter input data to be read (from stdin).#include &...

2013-07-14 16:01:31 305

Subsets II(C++实现)

 Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not contain dup...

2013-07-13 23:16:54 106

subsets(C++实现)

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 contain duplicate subsets. For exampl...

2013-07-13 23:15:47 344

Combinations(c++实现)

 Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], [3,4], [2,3], [1,2], [1,3], [...

2013-07-10 16:52:29 487

Combination Sum II(c++实现)

 Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once in the combin...

2013-07-10 16:32:47 133

Combination Sum(c++实现)

Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited number...

2013-07-10 16:20:46 113

原创 iOS平台UDID方案比较

转自:http://www.cocoachina.com/bbs/read.php?tid=144524  苹果在iOS6中禁用了[UIDevice uniqueIdentifier],在iOS7中又把mac地址的获取给堵上了。没办法,毕竟人家是老大,说不让你用,你也没办法。在这边总结一下现有的一部分UDID获取方法(有苹果推荐的,也有第三方的),目的在于抛砖,没有切实的说明哪种方法...

2013-07-09 20:27:30 344

转载 机器学习——深度学习(Deep Learning)

转自:http://blog.csdn.net/abcjennifer/article/details/7826917Deep Learning是机器学习中一个非常接近AI的领域,其动机在于建立、模拟人脑进行分析学习的神经网络,最近研究了机器学习中一些深度学习的相关知识,本文给出一些很有用的资料和心得。Key Words:有监督学习与无监督学习,分类

2013-07-01 21:40:55 716

转载 随机模拟的基本思想和常用采样方法(sampling)

转自:http://blog.csdn.net/xianlingmao/article/details/7768833通常,我们会遇到很多问题无法用分析的方法来求得精确解,例如由于式子特别,真的解不出来;一般遇到这种情况,人们经常会采用一些方法去得到近似解(越逼近精确解越好,当然如果一个近似算法与精确解的接近程度能够通过一个式子来衡量或者有上下界,那么这种近似算法比较好

2013-06-19 21:49:31 1008

mod_ssl(apache SSL插件)

apache插件,用以实现SSL协议,good luck!

2011-12-21

基于uml的教务管理系统

本论文为uml爱好者提供一个很好的实例,分析比较全面,由浅入深。

2010-10-24

计算机图形学全课件ppt——欢迎下载

计算机图形学全课件ppt,从图形显示原理到基本图形算法都包含在内,适合有需要学习计算机图形学的同学。

2010-07-08

空空如也

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

TA关注的人

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