現象:使用 Code::Blocks 編譯產生的執行檔,移到別部電腦上執行時,可能出現 "libstdc++-6.dll not found" 的訊息。
解法方法:在 Code::Blocks 的編譯選項中,加入 "-static-libgcc" 與 "-static-libstdc++" 兩個選項後,再重新編譯產生新的執行檔後,或可解決此一問題(如下圖)。
2014年8月6日 星期三
2014年3月4日 星期二
2014年1月19日 星期日
解決 Code::Blocks 的中文亂碼問題
資料來源:http://t17.techbang.com/topics/10258
步驟一:將編輯器的中文編碼設定為 "UTF-8",如下圖。
步驟二:設定 console 輸出的中文編碼為 "BIG-5",其指令內容為 "-fexec-charset=BIG-5",如下圖。
步驟一:將編輯器的中文編碼設定為 "UTF-8",如下圖。
步驟二:設定 console 輸出的中文編碼為 "BIG-5",其指令內容為 "-fexec-charset=BIG-5",如下圖。
2013年12月18日 星期三
如何讓 Moodle 1.9.5 在 IE11、Chrome 等兩個瀏覽器中仍能看到 HTML Editor 的解決方法
IE Version 11:
主選單 --> 工具 --> 相容性檢視設定 --> "將 Moodle 1.9.5 所在的網域加入 [相容性檢視] 的網站"。
Chrome:
此方法引用自:http://lewiscarr.co.uk/2010/08/enable-the-moodle-wysiwyg-editor-on-chrome-and-safari/- 修改 lib/moodlelib.php,將
- 修改 lib/editor/htmlarea/htmlarea.php,將
HTMLArea.checkSupportedBrowser = function() { if (HTMLArea.is_gecko) { if (navigator.productSub < 20021201) { alert("You need at least Mozilla-1.3 Alpha.\n" + "Sorry, your Gecko is not supported."); return false; } if (navigator.productSub < 20030210) { alert("Mozilla < 1.3 Beta is not supported!\n" + "I'll try, though, but it might not work."); } } if(HTMLArea.is_safari) { return false; } return HTMLArea.is_gecko || HTMLArea.is_ie; };修改為:
HTMLArea.checkSupportedBrowser = function() { if (HTMLArea.is_gecko) { if (navigator.productSub < 20021201) { alert("You need at least Mozilla-1.3 Alpha.\n" + "Sorry, your Gecko is not supported."); return false; } if (navigator.productSub < 20030210) { //alert("Mozilla < 1.3 Beta is not supported!\n" + // "I'll try, though, but it might not work."); return 'HTMLArea.is_gecko'; } } if(HTMLArea.is_safari) { //return false; return 'HTMLArea.is_gecko'; } return HTMLArea.is_gecko || HTMLArea.is_ie; };
function can_use_html_editor() {
global $USER, $CFG;
if (!empty($USER->htmleditor) and !empty($CFG->htmleditor)) {
if (check_browser_version('MSIE', 5.5)) {
return 'MSIE';
} else if (check_browser_version('Gecko', 20030516)) {
return 'Gecko';
}
}
return false;
}
修改為: function can_use_html_editor() {
global $USER, $CFG;
if (!empty($USER->htmleditor) and !empty($CFG->htmleditor)) {
if (check_browser_version('MSIE', 5.5)) {
return 'MSIE';
} else if (check_browser_version('Gecko', 20030516)) {
return 'Gecko';
} else {
return 1; //Pall's Safari/Chrome editor hack
}
}
return false;
}
2013年11月12日 星期二
GIMP 選單文字字型太小的解答
GIMP 是一套 Open Source 的影像處理軟體,功能強大,又可免費取得。
安裝完畢,開始執行後,若覺得選單的字型不夠美觀 (通常是字型大小的設定問題) ,可以使用下列方式修改之。
安裝完畢,開始執行後,若覺得選單的字型不夠美觀 (通常是字型大小的設定問題) ,可以使用下列方式修改之。
- 變更選單字型大小:(此方法引用自:http://blog.xuite.net/armrol/chu/29373505)
用記事本開啟 "C:\Program Files\GIMP 2\share\gimp\2.0\themes\Default\gtkrc",
然後加入下列敘述,
style "user-font"
{
font_name="MingLiU 10"
}
widget_class "*" style "user-font"
(以下為 2014/01/19 修正:在 GIMP 2.8.10 版中,可參考
"C:\Program Files\GIMP 2\share\gimp\2.0\themes\Small\gtkrc"
檔案中的描述,將
font_name="MingLiU 10"
複製到
"C:\Program Files\GIMP 2\share\gimp\2.0\themes\Default\gtkrc"
中的相對位置即可。)
也就是說在 gtkrc 檔案中,在 style "gimp-default-style" { } 的眾多設定中,
加入一行:
font_name="MingLiu 10"
就對了。 - 變更工具箱內文字的大小:
用記事本開啟 "C:\Program Files\GIMP 2\share\gimp\2.0\themes\Default\gtkrc",
修改以下幾行內的 0.8333 為 1.0001,
GimpDock::font-scale = 0.8333
GimpRuler::font-scale = 0.8333
GimpUnitComboBox::label-scale = 0.8333
GimpScaleComboBox::label-scale = 0.8333
訂閱:
文章 (Atom)








