自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

唐辰砂的博客

唯代码与BUG不可辜负

  • 博客(15)
  • 收藏
  • 关注

翻译 ffmpeg Documentation-3 滤波器

ffmpeg 官方文档第三章

2016-11-10 16:26:04 1117

翻译 ffmpeg Documentation-1 简介

最近因工作原因,开始接触ffmpeg,发现中文版资料较少,所以想自己翻译一下官方文档,一方面是方便后续查找,一方面是督促自己学习。附上官方原文链接:https://ffmpeg.org/ffmpeg-all.html翻译过程中查阅了很多前辈的资料,感谢他们,尤其感谢雷神的系列文章,愿天堂也有所爱。附上雷神文章入口:http://blog.csdn.net/leixiaohua1020/

2016-11-10 16:04:43 591

翻译 ffmpeg Documentation-4&5 Stream selection and specifiers

ffmpeg官方文档第4章和第5.1章官方文档链接:https://ffmpeg.org/ffmpeg-all.html#Options4 Stream selection 4 流选择 By default, ffmpeg includes only one stream of each type (video, audio, subtitle) present in the input fil

2016-11-15 13:58:10 586

原创 Process.waitFor()

在Java程序中,经常会遇到需要执行外部命令的情况,此时可以使用Runtime.getRuntime().exec(commands)。场景:java程序中需要执行shell命令代码:  Process process = Runtime.getRuntime().exec(commands);  // 重定向错误输出            StreamRedirect err

2016-11-02 16:49:24 2218

原创 @Override annotation 错误

项目导入eclipse后,implements类中的方法出现如下错误:The method of  xxx  type must override a superclass? annotation:@Override原因及解决办法1、在jdk1.5下要使用@Override 这个annotation 必须保证 被标注方法来源于class 而不是interface。2、检查项目的

2016-11-02 12:01:13 1363

翻译 Cannot change version of project facet Dynamic Web Module to 2.5

问题:Cannot change version of project facet Dynamic Web Module to 2.5解决办法:1、确认web.xml中是2.5<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-

2016-07-26 16:39:31 338

翻译 maven update error:Cannot nest 'xxx/WEB-INF/classes' inside 'xxx'

maven update 错误:Cannot nest 'final/src/main/webapp/WEB-INF/classes' inside 'final/src'解决办法:查看pom.xml中是否有xxx属性删除sourceDirectory属性

2016-07-26 11:19:55 3594 1

原创 【leetcode】Linked List Cycle

//两个指针slow和fast,都从链表头开始走,s每次走一步,f每次走两步,等两个指针重合时,就说明有环,否则没有/** * Definition for singly-linked list. * struct ListNode { *     int val; *     ListNode *next; *     ListNode(int x) : val(x)

2015-06-05 14:53:18 703

原创 【leetcode】Linked List Cycle II

/** * Definition for singly-linked list. * struct ListNode { *     int val; *     ListNode *next; *     ListNode(int x) : val(x), next(NULL) {} * }; *///两个指针slow和fast,都从链表头开始走,s每次走一步,f

2015-06-05 14:45:36 588

原创 【leetcode】Reorder List

Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For example,Given {1,2,3,4}, reorder it to 

2015-06-05 14:14:13 455

原创 【leetcode】Binary Tree Preorder Traversal

/** * Definition for a binary tree node. * struct TreeNode { *     int val; *     TreeNode *left; *     TreeNode *right; *     TreeNode(int x) : val(x), left(NULL), right(NULL) {} * };

2015-06-05 11:15:44 440

原创 【leetcode】3sums

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:Elements in a triplet (a,b,c

2015-06-05 10:59:23 894

原创 【leetcode】Course Schedule II

There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as

2015-06-05 10:16:20 1581 1

原创 【leetcode】Insertion Sort List

Sort a linked list using insertion sort.建立一个新头结点,然后依次将head链表中的结点有序的插入到新链表中/** * Definition for singly-linked list. * struct ListNode { *     int val; *     ListNode *next; *     ListNode

2015-06-04 13:58:13 402

原创 【leetcode】Sort List

Sort a linked list in O(n log n) time using constant space complexity.题目要求:对一个链表进行归并排序。基本思想:1:利用归并排序的整体思想2:找到一个链表的中间节点的方法3:合并两个已排好序的链表为一个新的有序链表/** * Definition for singly-l

2015-06-04 10:03:08 392

空空如也

空空如也

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

TA关注的人

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