What is CMS?
想安裝CMS來玩,如何開始?
在檢測網站時,發現某個需登入後的頁面,在取得網址後就可以進入修改,這表示後台門戶大開,大大影響資安與資料的外洩。
比如說Maintain這個資料夾,是需要透過登入認證後才可以存取。
所以在web.config必須加上
這個config檔可以放置在maintain目錄下,這樣權限只會限制在此目錄中。
如果是放在最外層的web.confg中,就會讓整個網站都受限制。
若放在最外層也可以改寫成
配合Forms驗證
當你網址是需要登入才可以使用,這裡就會幫你把程式導到登入頁面。
參考:
2.WebP and VP9
WebP是Google2010就提出的影像壓縮技術,在近期表現程度逐漸可以取代JPEG。
在會議中比較了現在WebP與JPEG圖檔的比較,相類似的影像品質,WebP容量比JPEG少30%。
再來就是視訊壓縮VP9的部分,硬是比H.264少60%,看來Google對視訊這塊很上心。
3.Google 推出 Chrome for Mobile 新 Beta 版,重點在於能夠為用戶壓縮數據用量,他們表示可以為用戶縮減數據用量 46%!
4.Google Play Music All Access
Google音樂平台,包月,目前僅美國開放。
5.Google Play Game Services: 主要就是和 Apple 的 Game Center 打對台。
6.Google+更新,正面迎擊FaceBook。
7.Google Map更新
8.Android Studio:Android 開發IDE
9.Google Wallet:電子錢包
10.Android 版 Google Now 的更新:
1.善用瀏覽器的開發者工具
2.jsPerf:
3.Object與Array該選哪一個?
4.使用Object技巧:
5.使用Array技巧:
6.優化javascript記憶體使用效率:
fuction HelloWorld()
{
var str = 'test';
alert(str);
}
7.JavaScript的Scope觀念:
8.使用window.setTimeout的注意事項
9.DOM快取
10.關於型別轉換
1.Hangouts
最近在Gmail中,發現原先發起視訊通話的圖示,換成了發起Hangouts。
原來這是google在這次新推出的傳訊軟體,整合了 Google Talk、Google+ messager 等等服務。
點擊之後,跳出了安裝視窗。
安裝完成後,點選加入。
便開啟了視訊通話的介面,就可以開始進行視訊通話。
如果有使用Android 系統的手機,在進行 Google Talk的更新後,結果發現App換了另外一個名稱也換了圖示。
進入後會驗證電話。
若有使用多個google帳號,會讓你挑選與那個帳戶建立關聯。
進入後通訊錄的畫面如下,可以找個朋友進行對話。
視訊通話:手機與網頁互相測試。
To Be Continue…
namespace MvcApplication1.Models
{
public class CustomerDataContext {
List<customer> GetAllCustomerData(){
List<customer> customers = new List<customer>();
SqlConnection conn = new SqlConnection("initial catalog=northwind; integrated security=SSPI");
SqlCommand cmd = new SqlCommand("SELECT * FROM Customers", conn);
conn.Open();
SqlDataReader reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
while (reader.Read())
{
Customer customer = new Customer();
for (int i = 0; i < reader.FieldCount; i++)
{
PropertyInfo property =
customer.GetType().GetProperty(reader.GetName(i));
property.SetValue(customer,
(reader.IsDBNull(i)) ? "[NULL]" : reader.GetValue(i), null);
}
customers.Add(customer);
}
reader.Close();
return customers;}
}
}
public ActionResult Customers(){
List<models.customer> customers = Models.CustomerDataContext.LoadCustomers();
return View(customers);
}