下载最新的libtheora, wget http://downloads.xiph.org/releases/theora/libtheora-1.2.0alpha1.tar.gz
解压缩,然后使用如下configure来编译
#!/bin/sh
BUILD_PATH=/home/zangcf/ffmpeg/ffmpeg_arm/ffmpeg_build
CC_PATH=/opt/and...
分类:
其他 时间:
2014-03-27 00:51:26
收藏:
0 评论:
0 赞:
0 阅读:
680
using System;
using System.Collections.Generic;
using System.Text;
namespace MacPrinter
{
public class ZPL_Command
{
/// (^EF)
/// 清除设定 (已包含起始结束命令)
///
...
分类:
其他 时间:
2014-03-27 00:21:38
收藏:
0 评论:
0 赞:
0 阅读:
670
一 简介
Boost Asio ( asynchronous input and output)关注异步输入输出。Boost Asio库提供了平台无关性的异步数据处理能力(当然它也支持同步数据处理)。一般的数据传输过程需要通过函数的返回值来判断数据传输是否成功。Boost Asio将数据传输分为两个独立的步骤:
采用异步任务的方式开始数据传输。将传输结果通知调用端
...
分类:
其他 时间:
2014-03-27 01:23:47
收藏:
0 评论:
0 赞:
0 阅读:
529
Bitbucket介绍:
Bitbucket是一家类似于Github的免费代码托管空间,采用Mercurial和Git作为分布式版本控制系统,总得来说,Bitbucket和Github在代码托管和管理方面都旗鼓相当,Bitbucket甚至在某些方面还要强,只不过名气没有Github大些。
用过Github空间的朋友,都知道Github上的Repos都是公共的,除非你愿意付费,否则你放在...
分类:
其他 时间:
2014-03-27 01:14:28
收藏:
0 评论:
0 赞:
0 阅读:
635
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他 时间:
2014-03-27 00:36:59
收藏:
0 评论:
0 赞:
0 阅读:
416
背景图片循环滚动 使用action 实现的:
主要有两个背景图片交替循环滚动:我选的两个背景图片的宽度都是1024的 ,所以定义了#define BGIMG_WIDTH 1024
代码如下:
在HelloWorld.h的头文件中声明两个背景图片精灵
#import "cocos2d.h"
// HelloWorldLayer
@interface HelloWorldLayer : ...
分类:
其他 时间:
2014-03-27 01:27:51
收藏:
0 评论:
0 赞:
0 阅读:
594
Description
Consider a tree T with N (1 <= N <= 20,000) nodes numbered 1...N. Deleting any node from the tree yields a forest: a collection of one or more trees. Define the balance of a node to be ...
分类:
其他 时间:
2014-03-26 22:27:49
收藏:
0 评论:
0 赞:
0 阅读:
685
/*
*程序的版权和版本声明部分:
*Copyright(c)2014,烟台大学计算机学院学生
*All rights reserved.
*文件名称:
*作者:zhaojiaxiang
*完成日期:2014 年 3月 26 日
*版本号:v1.0
*对任务及求解方法的描述部分:
*输入描述:无
*问题描述:四个数,分别表示矩形左下角和右上角顶点的坐标,如输入3.7 0.4 ...
分类:
其他 时间:
2014-03-27 01:17:35
收藏:
0 评论:
0 赞:
0 阅读:
307
今天弄好久。直接拿例子吧。
function addWatchItem(param1,param2){
$.ajax({
url : 'addWatchItem.html',
data : {auctionItemId: param1, flag:param2},
success : function(data){
if(data=="error"){
alert("内部错误!");...
分类:
其他 时间:
2014-03-27 00:24:13
收藏:
0 评论:
0 赞:
0 阅读:
601
Problem Description:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search. I...
分类:
其他 时间:
2014-03-27 00:27:48
收藏:
0 评论:
0 赞:
0 阅读:
299
Gold Transportation
题目链接:Click Here~
题目分析:
For each case, output the minimum of the maximum adjacent distance on the condition that all the gold has been transported to the storehouses ...
分类:
其他 时间:
2014-03-27 00:56:03
收藏:
0 评论:
0 赞:
0 阅读:
724
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target is not found in t...
分类:
其他 时间:
2014-03-27 01:17:02
收藏:
0 评论:
0 赞:
0 阅读:
462
自从2008年开始,全球经济形势一直相当低迷。许多人认为现阶段不事宜创业,但是Y Combinator通过这几年孵化的一些创业公司经验来看,经济的低迷对创业环境的影响甚微,真正能够影响创业成功与否的是创业者自身。
在经济飞速发展甚至有泡沫的时候声称适合创业,或者在经济危机的时候呼吁大家不要创业,都是没有道理的。如果你的产品创意的确能够满足用户需求,你的确是一个适合创业的人,无论什么时候一般都...
分类:
其他 时间:
2014-03-26 22:27:09
收藏:
0 评论:
0 赞:
0 阅读:
600
上面这段代码在IE下会生成一个多选框,单击它会选中打勾,再次单击则会取消打勾。
这样看上去并没有什么不妥的地方,但是如果你尝试快速两次单击(比双击稍微慢一点吧。。)这个按钮,可能效果并不如你想象的那样。
在IE下面,假如此时checkbox为选中状态,在你快速两次单击的过程中,第一次单击会使得checkbox取消选中,第二次单击完之后checkbox并不会变为已选中,而是继续保持取消选...
分类:
其他 时间:
2014-03-27 01:11:22
收藏:
0 评论:
0 赞:
0 阅读:
515
变形课
Problem Description
呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体.
Harry已经将他所会的所有咒语都列成了一个表,他想让你帮忙计算一下他是否能完成老师的作业,将...
分类:
其他 时间:
2014-03-27 00:32:27
收藏:
0 评论:
0 赞:
0 阅读:
506
创业公司能活下去,靠的是不抛弃不放弃的士气。
创业是个艰辛的过程,成功的创业者变得富有,失败的创业者一无所有(除了经验教训)。Paul Graham提到如果一个创业公司与Y Combinator失去联系,或者创业者不再出现在每周的聚会上,基本说明这个创业公司要挂掉了。(在国内,或许是下面的情景预示着公司即将挂掉:创业公司淡出人们的实现,创业者不再露面吧)。死掉的创业公司都是默默就挂掉了,悄无...
分类:
其他 时间:
2014-03-27 01:16:00
收藏:
0 评论:
0 赞:
0 阅读:
667
Struts2框架中的Action类是一个单独的javabean对象。不像Struts1中还要去继承HttpServlet,耦合度减小了。
1,流程
拦截器拦截请求,创建代理Action对象,执行方法,返回结果,界面跳转。
拦截器解析请求路径,获取Action的名称,到配置文件中查找action的完整类名,利用反射创建对象。
每请求一次,就创建一个对象,所以action是多例的...
分类:
其他 时间:
2014-03-27 00:23:13
收藏:
0 评论:
0 赞:
0 阅读:
489
http://poj.org/problem?id=3687
非常坑的一道题,最后快要绕晕了。。
题意:有N个球,重量分别是1~N,给着n个球贴上标签。输入n,m代表n个球和m条边(a b),代表 标签为a的要比标签为b的轻。最后输出标签1~N对应的重量(注意是重量,而不是轻重关系),还有要注意“ you should output the one with the smallest
we...
分类:
其他 时间:
2014-03-27 01:25:49
收藏:
0 评论:
0 赞:
0 阅读:
483
题目
Implement pow(x, n).
分析
分治法(解法1)和一种比较巧的方法(解法2)
解法1
public class Pow {
public double pow(double x, int n) {
if (n == 0) {
return 1;
} else if (n > 0) {
if (n == 1) {
return x;
...
分类:
其他 时间:
2014-03-27 00:54:30
收藏:
0 评论:
0 赞:
0 阅读:
337
题目
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
分析
这题就是想清楚移动时索引值得变化关系即可。还要注意一轮移动涉及四个元素,因此只要遍...
分类:
其他 时间:
2014-03-27 01:02:43
收藏:
0 评论:
0 赞:
0 阅读:
483