參考API
http://www.qgis.org/api/
取得圖上的範圍坐標
qgis.utils.iface.mapCanvas().extent().toString()
resolution
qgis.utils.iface.mapCanvas().mapUnitsPerPixel()
Featured Posts
星期五, 1月 21, 2011
星期五, 5月 21, 2010
FireFox 更新至3.6 後滑鼠右鍵失效
原先使用event.stopPropagation() 可防止在FireFox 頁面上點擊右鍵時出現預設的右鍵選單,
但當FireFox 更新到3.6.3版之後, 發現點擊右鍵仍會出現選單
上網查了一些資料以及經過一番測試後, 加上event.preventDefault() 即可解決
參考資源
但當FireFox 更新到3.6.3版之後, 發現點擊右鍵仍會出現選單
上網查了一些資料以及經過一番測試後, 加上event.preventDefault() 即可解決
參考資源
星期四, 4月 01, 2010
Windows 7 無法開啟localhost
以系統管理員的身分開啟記事本
修改C:\Windows\System32\drivers\etc 資料夾下的hosts 檔案
將
# 127.0.0.1 localhost
這一行的註解拿掉即可
修改C:\Windows\System32\drivers\etc 資料夾下的hosts 檔案
將
# 127.0.0.1 localhost
這一行的註解拿掉即可
星期三, 12月 23, 2009
GeoCoding HttpWebRequest
string url = "http://geowebgaej.appspot.com/webService/GeoCoding";
string data = "TestAccount {0} ";
string postData = string.Format(data, TextBox1.Text);
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url);
myHttpWebRequest.AllowWriteStreamBuffering = false;
myHttpWebRequest.Method = "POST";
UTF8Encoding encjavascript:void(0)odedData = new UTF8Encoding();
byte[] byteArray = encodedData.GetBytes(postData);
myHttpWebRequest.ContentType = "application/x-www-form-urlencoded";
myHttpWebRequest.ContentLength = byteArray.Length;
Stream newStream = myHttpWebRequest.GetRequestStream();
newStream.Write(byteArray, 0, byteArray.Length);
newStream.Close();
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
StreamReader sr = new StreamReader(myHttpWebResponse.GetResponseStream(), System.Text.Encoding.UTF8);
TextBox2.Text = sr.ReadToEnd();
sr.Close();
string data = "
string postData = string.Format(data, TextBox1.Text);
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url);
myHttpWebRequest.AllowWriteStreamBuffering = false;
myHttpWebRequest.Method = "POST";
UTF8Encoding encjavascript:void(0)odedData = new UTF8Encoding();
byte[] byteArray = encodedData.GetBytes(postData);
myHttpWebRequest.ContentType = "application/x-www-form-urlencoded";
myHttpWebRequest.ContentLength = byteArray.Length;
Stream newStream = myHttpWebRequest.GetRequestStream();
newStream.Write(byteArray, 0, byteArray.Length);
newStream.Close();
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
StreamReader sr = new StreamReader(myHttpWebResponse.GetResponseStream(), System.Text.Encoding.UTF8);
TextBox2.Text = sr.ReadToEnd();
sr.Close();
星期三, 7月 01, 2009
Virtual PC 安裝 Ubuntu 9 server
使用Virtual PC 2007 安裝 Ubuntu 時,一開始就出現問題 [end trace 4eaa2a86a8e2da22],
解決的方式如下(我安裝的是Ubuntu server 9.04 版本):
在設定畫面下按F6,然後直接按下Esc,這時游標會直接focus在畫面下方的設定參數上,將"quiet splash --"字串刪除,並輸入"vga=791 noreplace-paravirt"替代,按下Enter鍵開始安裝。
原始參考資料:Installing Ubuntu 9.04 on Microsoft Virtual PC 2007 SP1
解決的方式如下(我安裝的是Ubuntu server 9.04 版本):
在設定畫面下按F6,然後直接按下Esc,這時游標會直接focus在畫面下方的設定參數上,將"quiet splash --"字串刪除,並輸入"vga=791 noreplace-paravirt"替代,按下Enter鍵開始安裝。
標籤:
Hadoop,
Ubuntu,
Virtual PC
星期一, 5月 19, 2008
login
if (HttpContext.Current.User.Identity.IsAuthenticated) { loginLab11.Visible = true; UCO.Users_UCO uco = new UCO.Users_UCO(); if(uco.IsManager(HttpContext.Current.User.Identity.Name)) { Label1.Visible = true; Label2.Visible = true; lkbManageSystem.Visible = true; lkbRegister.Visible = false; lkbLogin.Visible = false; Label3.Visible = false; } else { Label1.Visible = false; Label2.Visible = false; lkbManageSystem.Visible = false; lkbRegister.Visible = false; lkbLogin.Visible = false; Label3.Visible = false; } } else { //Response.Write("abc"); lkbRegister.Visible = true; lkbLogin.Visible = true; Label3.Visible = true; loginLab11.Visible = false; Label1.Visible = false; Label2.Visible = false; lkbManageSystem.Visible = false; }
星期五, 1月 11, 2008
創意公用授權條款
創意公用授權條款,它主要提供了幾個不同的授權選項讓創作者選擇:
- 是否需要提及原作者 (Attribution) ?
- 是否不允許商業使用 (Noncommercial) ?
- 是否不允許衍生著作 (No Derivative Works) ?
- 衍生著作是否需要使用一模一樣的授權條款 (Share Alike) ?
再經過排列組合之後,總共就產生了 11 種不同的授權條款。
訂閱:
文章 (Atom)