首页 > 其他
使用xig工具从schema生成schema实例
1,下载xig工具,xml-xig-0.1.1.jar可以到一下链接下载    2.编写schema文件,如下:    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://my.soa.com" targetNamespace="http://my.soa.com" elementForm...
分类:其他   时间:2015-04-07 17:45:14    收藏:0  评论:0  赞:0  阅读:199
编译cling核心库的方法
1,安装jdk, 去甲骨文网站下载jdk1.7.0_71.tar.gz 展开到/opt目录下 2,安装git-core 3,安装maven 下载链接:http://maven.apache.org/download.cgi 下载apache-maven-3.3.1-bin.tar.gz 展开到/usr/local下 4,配置路径 修改/etc/profile文件(sudo ged...
分类:其他   时间:2015-04-07 17:44:54    收藏:0  评论:0  赞:0  阅读:440
lua正则表达式
lua中的正则表达式,规则如图: 常用示例,代码如下: -- 去掉首尾所有空格 function trim(s) return (string.gsub(s, "^%s*(.-)%s*$", "%1")) end local s = " space " local txt = trim(s) print(string.len(s), string.len(txt))...
分类:其他   时间:2015-04-07 17:44:44    收藏:0  评论:0  赞:0  阅读:131
ROS 学习系列 -- 使用Rviz观察智能车的运动轨迹 无陀螺仪计算角度转动
视频录像 根据两边轮子转动的速率不同,推算出转动的角度。包括原地旋转。 计算的原理和代码可以查看文章 ROS 教程之 navigation : 用 move_base 控制自己的机器人(2)...
分类:其他   时间:2015-04-07 17:44:24    收藏:0  评论:0  赞:0  阅读:941
HDU 2059 龟兔赛跑
模拟加简单的动态规划。...
分类:其他   时间:2015-04-07 17:44:14    收藏:0  评论:0  赞:0  阅读:129
HDU4407Sum ( 容斥原理)
HDU4407Sum ( 容斥原理)...
分类:其他   时间:2015-04-07 17:43:54    收藏:0  评论:0  赞:0  阅读:97
CSU1565: Word Cloud
Description A word cloud (or tag cloud) is a visual representation of textual data based on a weighted metric. In the above cloud (which is based on this year's list of Mid-Central teams), the fo...
分类:其他   时间:2015-04-07 17:43:34    收藏:0  评论:0  赞:0  阅读:386
input disabled不能提交表单
今天,在开发过程中发现一个问题,在提交form表单时,有一个input一直不能被提交,后台一直报错!究其原因,是因为该input上设置了disabled属性。然而,有时我们又不得不设置某些元素为不可操作的,建议使用readonly替之。 一、readonly & disabled区别 readonly和disabled是用在表单中的两个属性,它们都能够做到使用户不能够更改表单域中的内容。 ...
分类:其他   时间:2015-04-07 17:43:25    收藏:0  评论:0  赞:0  阅读:100
soj 2222 01背包变形
背景:wa~Tl~看来背包还是很欠缺啊~ 思路1(1500ms):变形的01背包。把题目改为:选择一组HP和大于等于所需血量且这组物品的分数之和最小,即可。这里把HP看做cost,score看做weight。但是这个题有个特点是最后选择HP必须大于等于k,容易想到,最多我们会有k+10000(10000为单个物品的最大HP值)的HP值,所以我们有这样的转移方程: for i 0....n  ...
分类:其他   时间:2015-04-07 17:43:14    收藏:0  评论:0  赞:0  阅读:250
修改密码
mysql> set password for root@localhost=password('12'); ----将主机地址为localhost用户名为root的密码改为12 Query OK, 0 rows affected (0.02 sec)...
分类:其他   时间:2015-04-07 17:42:54    收藏:0  评论:0  赞:0  阅读:190
把svn中的分支(branch)合并到主分支(trunk)
把svn中的分支(branch)合并到主分支(trunk) branch 和 trunk的代码同步至最新 选中trunk项目需要合并的代码(可以项目根目录、也可以是子目录或文件) 选择合并操作 ( team-->合并) 选择合并一个分支(reintegrate a branch) 填写需要合并的分支目录(reintegrate a branch)...
分类:其他   时间:2015-04-07 17:42:44    收藏:0  评论:0  赞:0  阅读:783
输入一个整数矩阵,计算位于矩阵边缘的元素之和
输入一个整数矩阵,计算位于矩阵边缘的元素之和.所谓矩阵边缘的元素,就是第一行和最后一行的元素以及第一列和最后一列的元素。 源代码: #include #include int main() { int m,n;//矩阵的长和宽 int sum = 0; printf("输入矩阵的长和宽\n"); scanf("%d%d",&m,&n); int a[m][n];//存储矩阵的值...
分类:其他   时间:2015-04-07 17:42:34    收藏:0  评论:0  赞:0  阅读:728
HDU 4291 A Short problem(矩阵快速幂+循环节)
HDU 4291 A Short problem(矩阵快速幂+循环节)...
分类:其他   时间:2015-04-07 17:42:24    收藏:0  评论:0  赞:0  阅读:263
Search in Rotated Sorted Array--LeetCode
题目: 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. If found in the ar...
分类:其他   时间:2015-04-07 17:42:14    收藏:0  评论:0  赞:0  阅读:202
hdu1728逃离迷宫 bfs
//bfs用vis[i][x][y][k] 表示从i的方向到x,y且剩下的转弯数是k #include #include #include #include using namespace std; const int maxn = 110 ; int vis[4][maxn][maxn][maxn] ; char map[maxn][maxn] ; struct node {...
分类:其他   时间:2015-04-07 17:42:06    收藏:0  评论:0  赞:0  阅读:167
【BZOJ3931】【CQOI2015】网络吞吐量 最短路+网络流
题解: ……两遍最短路然后判断哪些边可以在某条最短路上,然后加到网络流图中。 然后题意是一个点经过流量有限制,拆点就好。 然后有重边Qwq(调了好久。。。) 然后或许有自环,不过这并不影响什么。 代码: 调试过程中代码风格已经狗一样。 看到 long long i;i #include #include #include #include #include #defi...
分类:其他   时间:2015-04-07 17:41:31    收藏:0  评论:0  赞:0  阅读:228
Search in Rotated Sorted Array II-LeetCode
过正是因为这个条件的出现,出现了比较复杂的case,甚至影响到了算法的时间复杂度。原来我们是依靠中间和边缘元素的大小关系,来判断哪一半是不受rotate影响,仍然有序的。而现在因为重复的出现,如果我们遇到中间和边缘相等的情况,我们就丢失了哪边有序的信息,因为哪边都有可能是有序的结果。假设原数组是{1,2,3,3,3,3,3},那么旋转之后有可能是{3,3,3,3,3,1,2},或者{3,1,2,3...
分类:其他   时间:2015-04-07 17:40:44    收藏:0  评论:0  赞:0  阅读:133
CSU1566: The Maze Makers(BFS)
Description The Maze Makers is a publisher of puzzle books. One of their most popular series is maze books. They have a program that generates rectangular two-dimensional mazes like the one shown...
分类:其他   时间:2015-04-07 17:40:34    收藏:0  评论:0  赞:0  阅读:125
Text Justification -- leetcode
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy approach; that i...
分类:其他   时间:2015-04-07 17:40:24    收藏:0  评论:0  赞:0  阅读:239
Bundle&Intent&for&List&Map&Extra
关于不同的activity之间的传值个人感觉如果两个activity相关的话,使用intent和bundle还是挺多的,如果关联不是很密切的话一般都是用service传值,后文会将四大组建结合起来讲解下,现在先说说bundle,原来博主一般都是直接itntent.putextra();键值对少的时候控制的比较精细,而且感觉也不是很麻烦,但是一旦键值对很多的时候,那就比较可怕了,一个是程序的性能问题...
分类:其他   时间:2015-04-07 17:40:14    收藏:0  评论:0  赞:0  阅读:145
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!