ITeye博客

genius

genius · 共 46 篇文章

C++

Log4c 实现配置文件动态参数。 string rootPath = StringUtil::getProjectPath(); string path = rootPath+"config/log4j/log4cxx.properties"; FileInputStreamPtr propFile = new FileInputStream(path); helpers::Properties props; props.load(propFile); vector<LogString> keys =props.propertyNames(); for (vector<LogString>…

2020-06-19 23:57 · C语言 · 评论(0)

MAC修改工具

MAC 修改小工具,很好用。

2018-06-07 10:28 · 开发工具 · 评论(0)

VisoStudio2010 VS10-KB2251084-x86 补丁

附件中 VisoStudo2010 KB2251084 补丁下载

2018-02-23 13:05 · 应用 · 开发工具 · 评论(0)

万年历的星期算法.

中秋节到啦,送给大家一个《万年星期历公式 》 该公式是根据公历的基本性质编制的,年份不限,准确率为100%, 公式如下: (年+年/4+年/400-年/100+月日天数-1)/7=XX……余星期几。 其中: (年+年/4+年/400-年/100)/7=XX……余数为该年1月1日星期数。 注:分数商均取整数; 月日天数: 平年 ——润年 一月为: 0+日数, 0+日数, 二月为: 3+日数, 3+日数, 三月为: 3+日数, 4+日数, 四月为: 6+日数, 0+日数, 五月为: 1+日数, 2+日数, 六月为: 4+日数, 5+日数, 七月为: 6+日数, 0+日数, 八月为: 2+日数, …

2014-06-16 18:02 · 算法 · 评论(0)

正则表达式按条件分组

有一个字符串:A63=[174001,1级],B63=[174001, 2级],C63=[174001, 3级]。 我要对这个字符串中分号进行分组,但是在中括号里面的除外. 示例代码如下 : String temp="A63=[174001,1级],B63=[174001, 2级],C63=[174001, 3级]"; String arg[]=temp.split("(?<![^\\[(.+?)\\]])(,)"); for(String aaa:arg){ System.out.println(aaa); }

2012-08-23 12:29 · JAVA · 评论(0)

Converting text to numbers

A table is created ... create table safe_to_number_t ( txt varchar2(10) ); ... and filled with text of which some can be converted to numbers: insert into safe_to_number_t values ('1.0' ); insert into safe_to_number_t values ('1' ); insert into safe_to_number_t values ('22.9' ); insert into safe_to…

2011-10-12 15:51 · PLSQL · 评论(0)

解决JDeveloper 启动找不到 jvm.dll

我们在启动JDeveloper 的时候总是碰到: Unable to create an instance of the Java Virtual Machine,解决方法如下: 到 installation_directoy\Middleware\JDeveloper\jdev\bin 文件夹下面,打开jdev.conf文件,里面有一行代码如下: AddVMOption -XX:MaxPermSize=256M",在下面加一行新的代码如下: AddVMOption -Xmx256M

2011-09-07 18:16 · ADF · 评论(0)

SQL sentence

select d.id as ValueId, d.domain_code as DomainCode, ls.value_type as ValueType, case when v.key_code is null then d.domain_code when length(v.key_code)>0 then ls.key_code end as KeyCode , case when v.row_key is null then '1' when length(v.row_key)>0 then v.row_key end as RowKey, v.value as value, …

2011-09-05 18:13 · PLSQL · 评论(0)

递归实现的 ADF Dynamic tree

一个基于扩展: ChildPropertyTreeModel ,用递归实现的动态树. 自己花了点时间搞了个demo, 希望对后来学习的人有点帮助。 这里做一些内容的介绍: 1: 递归实现:parentId: 树的根节点: treeNode: 当前节点的父节点,如果不是父节点,就以treeNode最后加入的节点为父节点。 以下是代码: public void generateTree(int parentId , TreeNode treeNode){ while(voi.hasNext()){ Row row = voi.next(); int pId= ((Number)row.getAt…

2011-06-21 10:23 · ADF · 评论(0)

ADF 安全验证机制

At runtime, the following security sequence is performed for ADF Security protected applications: 1. A user requests an ADF bound ADF Faces page or bounded task flow. 2. The ADF Security layer in ADF checks whether security is enabled for the ADF application configuration. 3. If security is enabled…

2011-06-15 09:42 · ADF · 评论(0)

Phases in ADF Lifecycle

ADF Lifecycle has 9 phases as follows: 1: Initialize Context: In this phase value of associated request, binding container and lifecycle are set. 2: Prepare Model: In this phase model is prepared and initialized. In this phase page parameters are set and methods in the executable section of the pag…

2011-06-01 12:23 · ADF · 评论(0)

ADF 转向

Sometimes you want to perofrm some validations and based on the result, forward to other ADF pages. You can follow one of these following approches. Approach I /* Forward to page "myPage.jspx" */ FacesContext fc = FacesContext.getCurrentInstance(); UIViewRoot viewRoot = fc.getApplication().getViewH…

2011-05-22 15:02 · ADF · 评论(0)

JAAS 术语

Users A user, or enterprise user, is an end-user accessing a service. User information is stored in the domain identity store, typically instantiated by the WebLogic Server DefaultAuthenticator. An authenticated user is a user whose credentials have been validated. An anonymous user is a user whose…

2011-05-16 14:30 · JAVA · 评论(0)

JNA 闪烁 JFrame

下面是代码,附件是二个jar文件 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * NewJFrame.java * * Created on 2010-12-16, 6:55:38 */ package jna; import com.sun.jna.Native; import com.sun.jna.platform.win32.User32; import com.sun.jna.platform.win32.WinDef.HWND…

2010-12-16 16:48 · JAVA · 评论(1)

Array ArrayList LinkList Vector 执行速度比较

类型 java 数组 ArrayList LinkedList Vector 随机访问操作(get) 16 23 63 31 迭代操作(Iterate) 31 47 33 48 插入操作(insert) 不适用 1610 31 1625 删除操作(delete) 不适用 6625 16 6750

2010-09-26 21:11 · JAVA · 评论(0)