Posts

Front-End 20171122

一點筆記 from Modern Web and App Programming HTML5 HTML5 之後可以直接進行表單元件的驗証了 i.g., input type="email" required  CSS、Bootstrap v4 根本直接掛 bootstrap就好了 CSS3 新元素 display:flex

Front-End 101

因緣際會下決定重新學習網頁前端設計。 打算學習的方向是 HTML5 、CSS 3、Bootstrap、Javascript、React、React Navtive,重點是要熟悉 JS。 現在的網頁和八年前剛畢業所學的已經完全是另一個生態系了。 也只好從頭來過。好險很多概念基本上不變的。 目前打算首先從這篇開始 清大資工系教授的 Modern Web and App Programming https://nthu-datalab.github.io/webapp/index.html 免費 接著是 Udemy - The Complete JavaScript Course: Build a Real-World Project https://www.udemy.com/the-complete-javascript-course/ NTD $300 Udemy - JavaScript 全攻略:克服 JS 的奇怪部分 https://www.udemy.com/javascriptjs/ NTD $300 之後會在這裡將學習時間做個記錄。 https://time.graphics/line/d4720b9777f9dbb4bdbd1981f7c4fdd9

Codeigniter 上傳縮圖 檔案沒出來但處理為 TRUE

$CI->load->library('image_lib',$img_resize_config); 照上面寫的話, Codeigniter 縮圖只會處理一次 要處理多張的話 要拆開寫如下 $CI->load->library('image_lib' ); $CI->load->initialize($img_resize_config); 但是我不管怎麼試就是縮圖出不來, 而且 $CI->image_lib->resize(); 一直都是正確的 TURE 值 後來才發現問題在第二行,改成如下搞定 $CI-> image_lib ->initialize($img_resize_config); 完整的縮圖  helper function 如下 function thumbMaker($data = array()){ $CI =& get_instance(); $img_resize_config['image_library'] = 'gd2'; $img_resize_config['source_image'] = $data['upload_data']['full_path']; $img_resize_config['new_image'] = './pimage/1111'.'002.jpg'; $img_resize_config['create_thumb'] = TRUE; $img_resize_config['maintain_ratio'] = TRUE; $img_resize_config['width'] = 100; $img_resize_config['height'] = 100; $CI->load->library("image_lib"); $CI-> image_lib ->in...

[Codeiginter] 首頁可開,其他項目 404 error

原因: http://localhost 可開,但將檔案移至 http://localhost/new 則只能開啟首頁,其他項目 404 error 主要是 .htaccess 檔路徑設定問題,改為以下紅字可解決     RewriteBase / new     RewriteRule ^(.*)$ / new/ index.php?/$1 [L]

[Codeiginter] Your system folder path does not appear to be set correctly

Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php 在安裝 Codeigniter 時,不知道為什麼出現這個問題,檢查後 解決方法是:確定 system 資料夾有正確上傳並上傳到與 index.php 同位置。不知是主機問題還是 filezilla 的問題,system 資料夾就是會一直 missed 掉。

Ping Bot列表

Ping List: Yahoo http://api.my.yahoo.com/rss/ping?u= Google http://blogsearch.google.com/ping?url= Blog Ping List: Yahoo http://tw.search.yahoo.com/free/request Windows Live http://search.msn.com.tw/docs/submit.aspx?url= Google http://www.google.com/addurl?q= Static Ping Site: http://pingomatic.com/ http://pingoat.com/

在SugarCRM環境中 install 安裝 KnowledgeTree

原本SugarCRM的打包版就已經安裝好Apache、PHP、MySQL了,使用iNETDocs必須要再安裝KnowledgeTree,但KnowledgeTree的Sources版安裝方式實在是非常的不友善。 引述KnowledgeTree Wiki裡的 KnowledgeTree 3.5.* - Performing a Source Only Install 引述 KnowledgeTree 知識管理平台 - Boaz-momo's Weblog 先至 SourceForge Download 最新版本的 KnowledgeTree Source版,我抓到的版本是3.5.4a,在SourceForge裡的KnowledgeTree不是正式版也不是試用版,是完全免費的Community版本。 解壓縮到SugarCRM內的htdocs資料夾下,我的路徑為C:\Program Files\sugarcrm\htdocs\kt 先按照官方wiki說的run一次setup看看。 http://localhost/kt/setup/ 結果跳出 500 Internal Server Error 的訊息。 根據apache裡的error.log找到的結果如下 [Fri Jan 09 16:56:45 2009] [alert] [client 127.0.0.1] C:/Program Files/sugarcrm/htdocs/kt/.htaccess: Invalid command 'ExpiresActive' , perhaps mis-spelled or defined by a module not included in the server configuration 所以去KnowledgeTree的目錄裡找到.htaccess檔,將 ExpiresActive 屬性註解掉,包括下列一排的 ExpiresByType 也一併註解掉。 再run一次setup看看。 http://localhost/kt/setup/ 我的狀況是,跳到 404 Not Found 。 此時要去knowledgeTree裡找到config資料夾內的config.ini,我的路徑是C:\Program Files\sugarcrm\htdocs\k...