reymont的博客
reymont · 共 73 篇文章
oracle8i 9i 10g中ig的意思
今天看到这个帖子蛮有意思的 I is the 9th letter of the English alphabet G is the 7th letter of the English alphabet. I就是英语字母中第9个字母 G就是英语字母中第7个字母 它们的存在只是一个标签,也就一个名字而已 但是有人不甘心,硬是要说出个缘由来 对于I http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76962/ch1.htm#39704 对于G http://download.oracle.com/docs/cd/…
2010-09-07 11:12 · 评论(0)
jquery 表单 清空
做了个复杂查询的页面,字段太多了,填了一次,想清空挺麻烦的 $('#myform')[0].reset(); 虽然reset方法可以做到一部分,但是如果你有个元素是这样的 <input name="percent" value="50"/> 那么点击reset只会还原成50 于是乎,有了以下方法,网上浏览过来, $(':input','#myform') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); It is using the :inpu…
2010-09-06 16:28 · 评论(7)
oracle pl/sql Nested Table
看了一下 PL/SQL User's Guide and Reference,发现nested table真的很不错 http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm CREATE TYPE CourseList AS TABLE OF VARCHAR2(10) -- define type / CREATE TYPE Student AS OBJECT ( -- create object id_num INTEGER(4), name VARCHAR2(25), address VARC…
2010-09-06 14:16 · 评论(0)
jquery.autocomplete IE6 下拉框遮住
当个笔记 解决jquery.autocomplete在IE6下被下拉框遮住的问题 http://iove.net/archives/1512.html 稍微补充一下, 在使用的时候会出现一个层<div class='ac_caption'>" + options.caption + "</div> 会让你的autocomplete中显示undefined 不要担心,那只是 涂雅 想的标题,挺佩服他的 element = $("<div><iframe style='position: absolute; z-index: -1; width: 100%;"+ "height: 100%; t…
2010-09-06 10:25 · 评论(0)
jquery autocomplete key value pair
autocomplete是一个强大的组件 这里是下载的地方 http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ 强大但并无完善,SO,正如这位仁兄写的 Unobtrusive jQuery autocomplete plugin with json key value support http://www.codeassembly.com/Unobtrusive-jQuery-autocomplete-plugin-with-json-key-value-support/ 提供了键值对的功能
2010-09-06 09:24 · 评论(0)
firebug 调试小技巧
firebug真的很好很强大, 以前一直使用alert()调试,忽然发现firebug有个console.log的东东 :) :) :) :) :) Your new friend, console.log The easiest way to write to the Firebug console looks like this: console.log("hello world") You can pass as many arguments as you want and they will be joined together in a row, like console.log(…
2010-09-03 17:39 · 评论(0)
jquery ui dialog ie 显示不正确。
用到jquery的dialog时, 发现ie下老是有问题 这不弹出的页面,本来设置750px的,结果只有100px 于是乎,针对ie重新设置一下height $(this).dialog("open"); if ($.browser.msie) { $("#divDialog").css("height", 750); }
2010-09-01 09:51 · 评论(0)
itext PdfPTable width
PdfPTable 生的表格默认是---居中 80% (ˇˍˇ) 想~修改一下他的宽度 查查API setWidthPercentage(float widthPercentage) 满足需要 package com.dcb1.barge.pdf; import java.awt.Color; import java.io.FileOutputStream; import java.io.IOException; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lo…
2010-08-31 10:14 · 评论(0)
Oracle PRAGMA EXCEPTION_INIT
看书看到pragma exception_init(e_integrity, -2291); 感到很难以理解 翻了一下oracle PLSQL_User_Guide_and_Reference http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/07_errs.htm#917 原来有些oracle error是没有名字的,这些error可以通过pragma来在编译的时候将名字和具体错误链接 在PL/SQL中 pragma exception_init告诉编译器e_integrity是和oracle error…
2010-08-31 09:53 · 评论(0)
turn on AUTOCOMMIT with toad
Options -> Oracle -> Transactions -> Commit after every statement. 在操作数据库的时候,忘了commit闹了一些笑话 设置了一下toad这样就不用担心了 :)
2010-08-30 13:20 · 评论(0)
itext基本编辑单元
在itext的com.lowagie.text包中有Chunk,Phrase,Paragraph这三种text编辑单元 其中Chunk是最小的单元 也就是说Paragraph可以包含多个Phrase,Phrase可以包含多个Chunk 下面是Chunk的例子 public class Chunk_Example { public Chunk_Example() throws Exception{ Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream("chunk_exa…
2010-08-30 10:11 · 评论(0)
itext中文问题
因为项目需要生成PDF,小用了一下ITEXT 发现无法输出中文,研究了一下 Font FontChinese = null; BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); FontChinese = new Font(bfChinese, 12, Font.NORMAL); 看到STSong-Light挺奇怪的的, 原来STSong-Light,AdobeSongStd-Light-Acro,及STSongStd-Light-Acro三种简体中文…
2010-08-30 09:37 · PDF · 评论(0)
oracle SET SERVEROUTPUT ON with Toad
以前一直使用hibernate,差不多把SQL丢光了 现在刚好有个项目,好好的学习一把ORACLE 使用ORACLE的PL/SQL工具真的不好用 这不用上了TOAD (PS:以前也用TOAD,不过就是简单修改一下字段) 使用不久发现无法使用 SET SERVEROUTPUT ON GG了一下 glogin.sql is a script run automatically by SQL Plus; as far as I'm aware Toad does not run this script. In Toad there is a "DBMS Output" pane at the bo…
2010-08-27 18:45 · 评论(0)