码迷,mamicode.com
首页 > 其他好文
(HDUSTEP 2) hdu 2095 find your present (2)(找到出现奇数次的那个数)
题目如下:      find your present (2)Time Limit: 1000/2000 MS (Java/Others) Memory Limit: 32768/1024 K (Java/Others)Total Submission(s): 6275 Accepted Submission(s): 1639 Problem DescriptionIn the new year...
分类:其他好文   时间:2015-01-27 18:37:55    阅读次数:164
live555 播放视频 play 不能推送rtp数据
在项目开发过程中遇到一个问题,play之后,不能推送rtp数据包,跟踪代码调试发现,在获取H264视频数据,封包,发送,这条循环的链断开了,导致该问题的原因是: 在H264VideoStreamFramer.cpp中 unsigned H264VideoStreamParser::parse() { #if DEBUG_SHOWCHN printf("Parser() chn:...
分类:其他好文   时间:2015-01-27 18:37:34    阅读次数:358
HDU 3046-Pleasant sheep and big big wolf(网络流_最小割)
Pleasant sheep and big big wolf Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2254    Accepted Submission(s): 946 Problem Descriptio...
分类:其他好文   时间:2015-01-27 18:36:06    阅读次数:235
串行接口的基本特点
MCS-51单片机的串行端口有4种基本工作方式,通过编程设置,可以使其工作在任一方式,以满足不同场合的需要。其中,方式0主要用于外接移位寄存器,以扩展单片机的I/O电路;工作方式1多用于双机之间或与外设电路的通信;方式2、3除有方式1的功能外,还可以作多机通信,以构成分布式多微机系统。  串行端口有两个控制寄存器SCON、PCON,用于设置工作方式、发送或接收的状态、特征位、数据传送波特率[每秒...
分类:其他好文   时间:2015-01-27 18:35:01    阅读次数:258
基于STM32+W5500的UPnP协议应用
UPnP定义了设备之间、设备和控制点、控制点之间通信的协议。本文主要把路由器IP模拟为外网IP,W5500EVB的IP作为内网IP通过SNMP协议实现内网与外网的端口映射以及连接。PC连接路由器,PC和路由器在同一个网段。...
分类:其他好文   时间:2015-01-27 18:37:19    阅读次数:332
用户注册的三层架构问题
1、首先最简单的三层,jsp,service,dao层,jsp提交表单,service处理表单信息,dao用来和数据库交互 2、引入hibernate,dao中与数据库的交互从比较繁杂的sql语句变成hibernate的增删改查的简单操作 3、引入接口,service.impl实现service接口,dao.impl实现dao接口,这里可以引入spring的依赖注入,配置如下    ...
分类:其他好文   时间:2015-01-27 18:35:13    阅读次数:162
Solr与tomcat整合
让Solr与tomcat整合 1.在任意目录下建立solrproject文件夹,然后新建home文件夹作为solr的home文件夹 2.下载solr,将解压后的Solr中的example中的solr文件夹的内容拷贝到solrproject->home下 3.在solrproject文件夹下新建server文件夹,作为web程序的文件夹。 4.将解压后的solr->example->we...
分类:其他好文   时间:2015-01-27 18:33:40    阅读次数:172
储存容量单位:Bit, Byte, KB, MB, GB, TB , PB, EB, ZB, YB
最近在看Hadoop权威指南这本书,其中设计了很多单位, 不过我以前的书本好像也只有教到 GB, 现在的教科书可能有教到 TB 或 PB 吧,但我不确定,不过在不久的将来可能又会有更大的单位有机会用到, 这几天正好玩了一个测验脑容量的无聊游戏,也藉此了解了更多储存容量的单位。  计算机的最小单位为 Bit (位), 以下是所有数量单位的说明与其英文全名:   1 Byte = 8 Bi...
分类:其他好文   时间:2015-01-27 18:34:58    阅读次数:172
poj2031--Building a Space Station
题意:给你n个球 坐标 半径。球若相互覆盖或接触就算相连 让你求出最小的长度使得从任意一球出发能到达任意球; 思路:最小生成树 代码用g++交WA 用c++就A 无语。。。 #include #include #include #include #include #include #include #include #define N 110 #de...
分类:其他好文   时间:2015-01-27 18:33:30    阅读次数:152
[Leetcode] 26 - Remove Duplicates from Sorted Array
原题链接:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/ 很简单的题,维持一个front标志和prev维持之前的值,边扫边比较。 class Solution { public: int removeDuplicates(int A[], int n) { if ...
分类:其他好文   时间:2015-01-27 18:34:54    阅读次数:190
串口波特率选择
波特率(Boud Rate)就是在串口通信中每秒能够发送的位数(bits/second)。MCS-51串行端口在四种工作模式下有不同的波特率计算方法。其中,模式0和模式2波特率计算很简单;模式1和模式3的波特率选择相同,故在此仅以工作模式1为例来说明串口通信波特率的选择。      在串行端口工作于模式1,其波特率将由计时/计数器1来产生,通常设置定时器工作于模式2(自动再加模式)。在此模式下波...
分类:其他好文   时间:2015-01-27 18:33:26    阅读次数:256
HDU2571 命运 【DP】
命运 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10758    Accepted Submission(s): 3793 Problem Description 穿过幽谷意味着离大魔王lemon已经无限接近...
分类:其他好文   时间:2015-01-27 18:33:55    阅读次数:176
Hello Flink
Setup $ wget -O ~/data/gutenberg/hamlet.txt http://www.gutenberg.org/cache/epub/1787/pg1787.txt $ cd ~/soft/flink-0.7.0-incubating $ bin/start-local.sh $ jps -m 18689 JobManager -executionMode lo...
分类:其他好文   时间:2015-01-27 18:31:43    阅读次数:398
修改myslq编码
一般在安装myslq的时候容易造成字符乱码 默认的为latin1有些环境下写作Latin-1 你可以doc进入mysql命令下,运行show variables like 'character%'; 查看字符编码 找到myslq的安装目录  找到my.ini 文件修改里面的字符编码: 修改为: default-character-...
分类:其他好文   时间:2015-01-27 18:33:26    阅读次数:182
[Leetcode] 27 - Remove Element
原题链接:https://oj.leetcode.com/problems/remove-element/ 很简单一道题。。。 class Solution { public: int removeElement(int A[], int n, int elem) { int front = 0; int idx = 0; whi...
分类:其他好文   时间:2015-01-27 18:34:17    阅读次数:170
Binder 通讯数据流概览
The information below comes from a number of sources, including my own experiments with the Android IPC and some disparate internet sources. The overall architecture of the Android IPC system is sh...
分类:其他好文   时间:2015-01-27 18:32:24    阅读次数:217
LeetCode Longest Palindromic Substring 最长回文子串
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.(最长回文子串) 中心扩展法: pub...
分类:其他好文   时间:2015-01-27 18:31:08    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!