首页 > 2015年03月30日 > 全部分享
WebLogic Server
前几天,看了几集J2ee , 给我的感觉就是,看不懂!! 一点也不懂! 那怎么办呢? 听老师的,不管懂不懂,先看看再说。接下来,就开始了J2ee “艰苦”的历程。在J2ee中,经常提到WebLogic Server,这究竟是个什么东西呢? 在好奇心驱使下,我简单的查询了一下,整理如下。 WebLogic 是美商Oracle的主要产品之一,系购并BEA得来。是商业市场上主要的Java(J2EE)应...
分类:Web开发   时间:2015-03-30 16:29:41    收藏:0  评论:0  赞:0  阅读:271
Log4j日志切割实践篇
1:需要的jar log4j-1.2.14.jar tomcat-juli-adapters.jar tomcat-juli.jar 2:src下添加log4j.properties log4j.rootLogger=debug, stdout, log, errorlog #log4j.addivity.org.apache=true ###Con...
分类:其他   时间:2015-03-30 16:29:32    收藏:0  评论:0  赞:0  阅读:530
eclipse 解决中文字体过小的问题,简单方便
eclipse和sts比较新的版本中字体默认是Consolas,这种字体文字比较小。这个可以调整到没所谓,但是中文字太小了,一旦用注释。。。。眼睛没办法直视。 一直习惯&喜欢的字体是Courier New。没办法去设置字体。 点开window--》perferences General-->Colors and Fonts-->Basic-->Text Font...
分类:系统服务   时间:2015-03-30 16:29:21    收藏:0  评论:0  赞:0  阅读:277
C++ URL encode/decode (gb2312)
char Dec2HexChar(short int n) { if ( 0 <= n && n <= 9 ) { return char( short('0') + n ); } else if ( 10 <= n && n <= 15 ) { return char( short('A...
分类:编程语言   时间:2015-03-30 16:29:11    收藏:0  评论:0  赞:0  阅读:375
Eggs Dropping puzzle(2 eggs, 100 floors)
题目如下:You are given two eggs, and access to a 100-storey building. Both eggs are identical. The aim is to find out the highest floor from which an egg will not break when dropped out of a window from th...
分类:其他   时间:2015-03-30 16:28:51    收藏:0  评论:0  赞:0  阅读:247
C++编解码URL
#pragma once #include #include #include using namespace std; class strCoding { public: strCoding(void); ~strCoding...
分类:编程语言   时间:2015-03-30 16:28:41    收藏:0  评论:0  赞:0  阅读:273
leetcode || 46、Permutations
problem: Given a collection of numbers, return all possible permutations. For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,...
分类:其他   时间:2015-03-30 16:28:31    收藏:0  评论:0  赞:0  阅读:133
C++11之线程
设计到网络请求的地方一般都需要用到线程,C++11标准中增加了thread,下面是最简单的一个线程使用示例。 #include #include void thread_task() { std::cout << "thread task" << std::endl; } int main() { std::thread t(thread_task); ...
分类:编程语言   时间:2015-03-30 16:28:21    收藏:0  评论:0  赞:0  阅读:292
iOS判断NSString 只含有数字
//判断是否为整形: - (BOOL)isPureInt:(NSString*)string{     NSScanner* scan = [NSScanner scannerWithString:string];     int val;     return[scan scanInt:&val] && [scan isAtEnd]; } //判断是否为浮点...
分类:移动平台   时间:2015-03-30 16:28:11    收藏:0  评论:0  赞:0  阅读:376
阿里巴巴笔试题求最小三元组距离
已知三个升序整数数组a[l], b[m]和c[n]。请在三个数组中各找一个元素,是的组成的三元组距离最小。三元组的距离定义是:假设a[i]、b[j]和c[k]是一个三元组,那么距离为: Distance = max(|a[ I ] – b[ j ]|, |a[ I ] – c[ k ]|, |b[ j ] – c[ k ]|) 请设计一个求最小三元组距离的最优算法,并分析时间复杂度。...
分类:其他   时间:2015-03-30 16:28:01    收藏:0  评论:0  赞:0  阅读:272
Android系统自带录屏(动态截屏)功能
?? Android系统(Android 4.4 或以上)自带有录屏(动态截屏)功能,基于命令行。 具体方法是: adb shell screenrecord /sdcard/myrecord.mp4 这段命令在控制台执行后,Android系统将立即对设备的屏幕录制屏幕的视频。adb shell screenrecord 是执行录屏;sdcard/myrecord.mp4 是视频文件存放的...
分类:移动平台   时间:2015-03-30 16:27:51    收藏:0  评论:0  赞:0  阅读:460
简单编程 (二十七)创建窗体下拉列表
创建一个窗体,上面有两个下拉列表,一个为学院下拉列表,一个为专业下拉列表, 要求用户选择某个院系以后,专业下拉列表中的选项相应进行更新。 软件学院:软件开发,软件测试,网络工程 外语学院:英语,日语,法语 管理学院:工商管理,会计,市场营销import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLa...
分类:Windows开发   时间:2015-03-30 16:27:41    收藏:0  评论:0  赞:0  阅读:263
ios字符串的判断
1.范围的作用,看看一下结构体: [plain] view plaincopy typedef struct _NSRange { unsigned int location; unsigned int length; }N...
分类:移动平台   时间:2015-03-30 16:27:31    收藏:0  评论:0  赞:0  阅读:199
自定义的常用文件与目录操作函数库
自定义的常用文件与目录操作函数库,在win和linux平台做了跨平台的处理。(跨平台的处理可以作为参考比较。在win下目录的符号可以是\或者/,但是在linux下只能是/。)  下面给出的是源文件,实现接口函数的代码。每个接口函数都有很详细的功能说明。 /* 判断文件或目录是否存在 * 在操作系统中,目录也是一个文件,如果要判断一个目录是否存在则应当使用DirectoryExists,...
分类:其他   时间:2015-03-30 16:27:21    收藏:0  评论:0  赞:0  阅读:145
2015浙工大校赛- Problem I: no2(概率题,贝叶斯公式)
题目链接:http://acm.zjut.edu.cn/onlinejudge/problem.php?cid=1101&pid=8 题面: Problem I: no2 Time Limit: 1 Sec  Memory Limit: 32 MB Submit: 342  Solved: 23 [Submit][Status][Web Board] Descrip...
分类:其他   时间:2015-03-30 16:27:11    收藏:0  评论:0  赞:0  阅读:144
Substring with Concatenation of All Words--LeetCode
题目: You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and w...
分类:其他   时间:2015-03-30 16:26:51    收藏:0  评论:0  赞:0  阅读:171
Discuz X3.1微信打通版,发布回复时出现提示:您的请求来路不正确或表单验证串不符,无法提交问题的解决
Discuz X3.1微信打通后,手机上发布回复时出现提示:“您的请求来路不正确或表单验证串不符,无法提交”问题的解决:找到网站目录下\source\class\helper\helper_form.php:在此行下面增加红色文字所标注部分即可。 if($allowget || ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_GET['for...
分类:微信   时间:2015-03-30 16:26:41    收藏:0  评论:0  赞:0  阅读:957
简单编程 (二十八)窗体的创建设计如下GUI界面
设计如下GUI界面:(当用户点击“完成”按钮后,把姓名、性别、兴趣等信息显示在文本区域中,点击“取消”按钮后,所有组件回复到初始状态)import java.awt.Button; import java.awt.Container; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout;...
分类:Windows开发   时间:2015-03-30 16:26:31    收藏:0  评论:0  赞:0  阅读:236
HDU 5195 DZY Loves Topological Sorting (拓扑排序+线段树)
题目地址:HDU 5195 简直受不了了。。BC第二题都开始线段树+拓扑排序了。。。 这题很容易想到拓扑排序过程中贪心,但是贪心容易TLE,所以需要用数据结构去维护,我用的是线段树维护。每次找入度小于等于k的编号最大的点,这样就可以保证字典序一定是最大的。 代码如下:#include #include #include #inclu...
分类:编程语言   时间:2015-03-30 16:26:02    收藏:0  评论:0  赞:0  阅读:335
[线段树] hdu5195 DZY Loves Topological Sorting
题意: 给一张拓扑排序图,最多删除K条边之后。 输出最大字典序的拓扑排序。 思路: 用线段树处理,节点存每个点的入度。 每次提取入度小于等于k的并且最大数字的点。 然后更新k和这个点已经所连的点的入度,并标记这个取出的点入度为无穷大。 重复操作n次。 代码: #include"cstdio" #include"cstring" #include"cmath" #include"c...
分类:其他   时间:2015-03-30 16:25:51    收藏:0  评论:0  赞:0  阅读:242
2067条   上一页 1 ... 49 50 51 52 53 ... 104 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!