Skip to content

Zeroplex 生活隨筆

軟體開發、伺服器和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

標籤: 資訊學習

焚風

Posted on 2008 年 9 月 14 日2021 年 3 月 12 日 By 日落 在〈焚風〉中尚無留言

剛看到新聞報導,台東因為焚風的關係,氣溫高達 36 度。還在想說為什麼會有焚風,看到衛星雲圖才知道台東真的蠻慘的,颱風現在偏北再加上逆時針的風向,難怪會出現焚風。

當風吹向山脈,空氣會隨著山壁越爬越高,溫度也會跟著下降;到了山脈的另一面,空氣高度會隨著山壁下降,空氣便會上升。

原本應該是在迎風坡下降幾度,在背風坡就應該上升幾度,但是空氣上升時,水氣會因為氣溫下降而凝結成水滴落下,過了山峰以後,空氣就變的很乾燥,所以氣溫上升時缺乏水器調節溫度,所以溫度會上升的特別快。假設溫度是 30 度,過了中央山脈以後就可能會變成 40 度,這就是焚風 0.0

參考資料:
http://zh.wikipedia.org/wiki/%E7%84%9A%E9%A2%A8

Tags:資訊學習

Clean DNS Cache in Windows

Posted on 2008 年 9 月 10 日2021 年 3 月 12 日 By 日落 在〈Clean DNS Cache in Windows〉中尚無留言

clean DNS cache:

ipconfig /flushdns

restart DNS cache service:

net stop dnscache
net start dnscache
Tags:資訊學習

Gallery2 ImageMagick 設定錯誤

Posted on 2008 年 9 月 6 日2021 年 3 月 12 日 By 日落 在〈Gallery2 ImageMagick 設定錯誤〉中有 2 則留言

Error message:

Executing: cmd /c " "D:Program FilesImageMagickconvert.exe"  "-size"
"200x200"  "-geometry"  "200x200"
"C:AppServwwwgallerymodulesimagemagickdatatest.gif"
"C:AppServwwwgalleryg2datatmpimgFA3.tmp"  2>
"C:AppServwwwgalleryg2datatmpg2dFA4.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:AppServwwwgalleryg2datatmpg2dFA4.tmp)
filesize(C:AppServwwwgalleryg2datatmpg2dFA4.tmp)
fopen(C:AppServwwwgalleryg2datatmpg2dFA4.tmp, r, 0)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fgets(Resource id #98, 4096)
feof(Resource id #98)
fclose(Resource id #98)
unlink(C:AppServwwwgalleryg2datatmpg2dFA4.tmp)
Regular Output:
Error Output:
convert.exe: no encode delegate for this image format
`C:AppServwwwgalleryg2datatmpimgFA3.tmp'.

原因是新版的 ImageMagick 無法辨識 *.tmp 的檔案格式,所以找不到正確的編碼器轉檔。只好等 g2-module-imagemagick 更新…….。

參考網頁:
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=11778&p=38445

Tags:生活雜記, 資訊學習

Disable PHP register_globals

Posted on 2008 年 8 月 14 日2021 年 3 月 12 日 By 日落 在〈Disable PHP register_globals〉中尚無留言

Code for disable PHP register_globals in PHPWind forum:

if(ini_get('register_globals')){
   foreach($GLOBALS as $key=>$val){
      if(!in_array($key,array('GLOBALS','_POST','_GET','_COOKIE','_SERVER','_FILES','wind_in'))){
         ${$key}='';
      }
   }
}
Tags:PHP, 程式設計, 資訊學習

SQL Injection Note

Posted on 2008 年 8 月 14 日2021 年 3 月 12 日 By 日落 在〈SQL Injection Note〉中尚無留言

Code from PHPWind forum in global.php:

set_magic_quotes_runtime(0);

if(!get_magic_quotes_gpc()){
	Add_S($_POST);
	Add_S($_GET);
	Add_S($_COOKIE);
}
Add_S($_FILES);

function Add_S(&$array){
	foreach($array as $key=>$value){
		if(!is_array($value)){
			$array[$key]=addslashes($value);
		}else{
			Add_S($array[$key]);
		}
	}
}
Tags:PHP, 程式設計, 資訊學習

文章分頁

上一頁 1 ... 27 28 29 ... 53 下一頁

其他

關於我  (About me)

  文章 RSS Feed

  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows WordPress XD 作業系統 分享 好站推薦 專題 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.