Bài đăng

Hướng dẫn cài đặt WordPress trên Localhost, nguồn http://visaonho.com/

Hình ảnh
Trong bài viết này visaonho xin hướng dẫn các bạn cài đặt WordPress trên localhost (Windows) để test hay học tập. Trước tiên bạn tải phiên bản WordPress mới nhất  tại đây  hoặc  tại đây Sau khi download xong bạn để đấy và tiến hành làm theo các bước sau 1. Tạo localhost để chạy wordpress Trong bài này mình sử dụng XAMPP để tạo localhost, các bạn xem hướng dẫn cài đặt và cách sử dụng trong bài này. Tạo localhost trên Windows với XAMPP Sau khi đã tạo xong localhost bạn giải nén wordpress vào thư mục  \xampp\htdocs 2. Tạo database cho wordpress Truy cập vào  http://localhost/phpmyadmin/  (lưu ý là đã khởi động chương trình XAMPP) Vào tab Database, phần Create database gõ tên database mà bạn muốn tạo vào, ô bên cạnh chọn utf8_unicode_ci, click vào Create để tạo database. Các database hiện có sẽ hiển thị ở cột bên trái. phpMyadmin của XAMPP có user mặc định là root, không có password 3. Cấu hình file wp-config.php Vào thư mục chính của wordpress tìm file wp-config

The specified password for user account ‘root’ is not valid, or failed to connect to the database server.

While installing WordPress 3.4 via Web Platform Installer 4.0 on IIS 7, at some point the Web Platform Installer asks for MySQL ‘root’ user password. There you might get this error: “The specified password for user account ‘root’ is not valid, or failed to connect to the database server”. That happens even if you enter the correct password. Here is how to fix it: In the Windows registry, delete the mysql_pwd reg key under HKCU\Software\Microsoft\WebPlatformInstaller Download and install the latest  MySql .NET Connector (32 bit) . At the time of  writing, the latest version of MySql .NET Connector was 6.6.4.

WordPress - How to Manually Install on IIS Windows Server

Cấu hình IIS trên winserver 2008 để chạy web .net và php

Mình tham khảo video này, mình sẽ viết 1 bài hướng dẫn chi tiết hơn.

CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\62d43c41\27d749ca\App_Code.7lodcznm.dll' – 'Access denied.'

Could not write to output file: 'Access is denied. ' Description   After installation of CMN free busy connector when attempting to open the EWS or autodiscover website the following error is seen in the web browser: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\ews\08abe623\f97edc69\App_global.asax.6hb5q8sv.dll' -- 'Access is denied. Permissions to the c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET folder and they are correct. Also, uninstalled/re-installed CMN Free Busy and  .NET  Frameworkand  registered .NET Framework for IIS Cause   Permissions issue Resolution   Follow below steps: 1- Right click the %Temp% folder (mine is C:\WINDOWS\Temp) and select Sharing and Security. 2- Select the Sharing tab and Make sure that the folder is shared. 3- Select the Security tab and take a look at the list of “Group or user names:” NETWORK SERVICE should be in the list.

Vertical Centering With CSS nguồn http://www.vertical-align.com/

Hình ảnh
There are a few ways to center vertically. In terms of block level elements, the methods are quirky. Inline elements are much simpler to center: If you know the height of your containing div, and the height of your inner centered div,  or, if you the height of your inner div does not matter, then vertical aligning is simple.  However, if you are vertically centering anything that is variable, such as text, vertical centering is more complex and require hacks. The HTML used in our examples: <div id="containingBlock"> <div> <p>This sentence will change in each example</p> </div> </div> Note: I will post an entry on vertical centering of text soon Mathematical Method for known heights: When you know the height of the containing element, and the height of the element being vertically centered, simply use math to figure out the height of the margins on the inner element. #containingBlock {display: block; height: 200px;} #contain

11 công cụ hữu ích cho bạn làm Responsive Web Design- nguồn www.vnwebmaster.com

Hình ảnh
Tạo ra một giao diện web đã khó, làm cho giao diện của mình có khả năng tương thích với những kích thước màn hình khác nhau(thường được gọi là  web responsive design ) lại càng khó khăn hơn, kiểm tra trên các kích cỡ màn hình phổ biến như smart phone, tablet. laptop, desktop... cũng không phải chuyện dễ dàng. Bạn sẽ có nhiều cách tiếp cận với web responsive khác nhau, tuy nhiên một trong những cách tiếp cận đơn giản và dễ dàng nhất là sử dụng những công cụ, phần mềm, đoạn mã được cộng đồng phát triển và chia sẻ để tiếp cận responsive web design . Phương pháp này giúp tiết kiệm được rất nhiều thời gian và công sức của bạn. Tuy nhiên, một vấn đề phát sinh nữa là có hằng hà sa số những công cụ như vậy và công cụ nào là tốt nhất ? Trong bài viết này tôi cố gắng tổng kết lại những công cụ phát triển  responsive web design  phổ biến và cần thiết nhất cho bạn mà theo tôi là hữu ích nhất. Tôi cũng hi vọng danh sách này có ích cho bạn. Xem thêm 7 lời khuyên hữu ích (Responsive Design: 7 l

Media CSS3

/* Smartphones (portrait and landscape) ----------- */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Styles */ } /* Smartphones (landscape) ----------- */ @media only screen and (min-width : 321px) { /* Styles */ } /* Smartphones (portrait) ----------- */ @media only screen and (max-width : 320px) { /* Styles */ } /* iPads (portrait and landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) { /* Styles */ } /* iPads (landscape) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) { /* Styles */ } /* iPads (portrait) ----------- */ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) { /* Styles */ } /* Desktops and laptops ----------- */ @media only screen and (min-width : 1224px) { /* Styles */ } /* Large screens ---