关于作者

姓名:

性别:男

出生日期:1983-10-20

地区:Shanghai

联系电话:

QQ:27080322婚否:未婚
用户名:gisman
笔名:gisman
地区: Shanghai
行业:其他

日历  

快速登录

+ 用户名:
+ 密 码:

在线留言



友情链接

访问统计:
文章个数:48
评论个数:19
留言条数:0




Powered by BlogDriver 2.1

gisman的博客

 

关于GIS的读书笔记,随想等,欢迎讨论。

文章

本搏客不再更新
本搏客停止更新,谢谢关注!

- 作者: gisman 2008年05月1日, 星期四 18:37  回复(0) |  引用(0) 加入博采

How to execute Oracle PL SQl
sample
put this in a file, for example, test.sql.

DECLARE
BEGIN
DBMS_OUTPUT.PUT_LINE('begin!');
END;

then in sql.

SQL> @filename
      >/
Note: Type a slash!!
then it executes.

for DBMS_OUTPUT.PUT_LINE('in loop'), if it doesn't out put the string, pls type:
SQL> set server_output on

then  it should work.

- 作者: gisman 2007年08月1日, 星期三 20:05  回复(0) |  引用(1) 加入博采

Oracle Sql Commmands

select table_name from user_tables; //list all tables belonging to the user
select sdo_version from dual;//get oracle spatial version

select table_name from user_tables where table_name like 'TB%';//

select distinct data_type from user_tab_columns;//get datatype that used in DB.

select count(coord_dimension) from tb_dictionary where coord_dimension=3;

select distinct index_name from user_indexes where index_name like 'LINE3%';

select * from user_indexes where index_name like 'LINE3D_C1';

select * from user_ind_columns where table_name='LINE3D_GEO';

- 作者: gisman 2007年07月31日, 星期二 09:36  回复(0) |  引用(1) 加入博采

ORA-00911 wired problem
when you continue to get an error, ORA-00911 : invalid character.  and you are sure the same sql works in sql plus, please get rid of the semi-colon from the end of the SQL statement and it should work fine.

- 作者: gisman 2007年07月5日, 星期四 19:13  回复(0) |  引用(1) 加入博采

Head First Design Paterns Notes 1
摘要:The book was written by Eric Freeman and Elisabeth Freeman. A very famous book in design pattern. I begin reading this book recently, and I plan to post some notes which I valued very much in my later development. 查看全文

- 作者: gisman 2007年06月27日, 星期三 18:10  回复(0) |  引用(1) 加入博采

Javascript Memory clear up
a site introduce the memory management for javascript.
http://jibbering.com/faq/faq_notes/closures.html

- 作者: gisman 2007年06月25日, 星期一 18:08  回复(0) |  引用(1) 加入博采

hexidecimal javascript
摘要:javascript iframe virus 查看全文

- 作者: gisman 2007年06月20日, 星期三 13:39  回复(0) |  引用(1) 加入博采

GetExactPositionForCursorClick

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
    <script type ="text/javascript" >
    function OnMouseMove(e)
    {
  var moveDiv =document.getElementById ("MoveDiv");
  moveDiv.style.left=e.clientX+'px';
  moveDiv.style.top=e.clientY+'px';
  window.status ="clientX:"+e.clientX+" clientY:"+e.clientY;
  
  var pos={x:e.clientX,y:e.clientY};
  var point=getRltPos(pos,moveDiv);
  moveDiv.style.left=point.x+'px';
  moveDiv.style.top=point.y+'px';
//  moveDiv.style.left=e.layerX+"px";
//  moveDiv.style.top=e.layerY+"px";
    }

//initial value of pos={x:0;y:0}
//absolute postion that you want element to display, uses window as reference
//html element that want to set it's position.
function getRltPos(pos,obj)
 {
 if (obj!=null&&pos!=null)
 {
  //we need to caculate all left and top length of parent element, and subtract this value.
  if(obj.parentNode!=null)
  {
   var parentObj=obj.parentNode;
   if(parentObj.tagName=="HTML")
   {
    return pos;
   }
   else
   {
    var styl=parentObj.style;
    if(styl.left!=""&&styl.position=="absolute")
     pos.x-=parseInt(styl.left);
    if(styl.top!=""&& styl.position=="absolute")
     pos.y-=parseInt(styl.top);
    if(parentObj.parentNode!=null)
     return getRltPos(pos,parentObj.parentNode);
   }
  }
 }
 else
  return null;
}

    </script>
</head>
<body    onclick="OnMouseMove(event);" style ="background-color :Green ;">
<div id="OuterDiv" style="position :absolute ;   background-color:  Blue ; left:60px; top:60px; width: 522px; height: 411px; z-index :10;">
<div id="InnerDiv" style="position :absolute ;   background-color: Fuchsia; left:30px; top:30px; width: 222px; height: 211px; z-index :20;"></div>
<div id="MoveDiv"  style="position :absolute ; background-color:Red ; height :70px; width: 70px; z-index :1000;" ></div>

</div>

</body>
</html>

- 作者: gisman 2007年05月23日, 星期三 17:12  回复(0) |  引用(1) 加入博采

Sample that roll down automatically
摘要:this sample shows you how to make an automatically roll down div :) 查看全文

- 作者: gisman 2007年04月17日, 星期二 18:47  回复(0) |  引用(1) 加入博采

FAQ and Resource for Linux
摘要:FAQ of Linux 查看全文

- 作者: gisman 2007年02月4日, 星期日 13:44  回复(0) |  引用(1) 加入博采