Chuyển đến nội dung chính

Bài đăng

Lỗi Tiếng Việt khi thêm dữ liệu trong SQLServer - Wrong encoding when insert utf8 string into SQLServer

UPDATE t SET t.city_name = 'Long Hoàng Giang' FROM user t WHERE t.city_name = 'Long Hoang Giang'; Then when you select the result will like this 'Long Ho?ng Giang'. Solution: Add N character before string which you want to insert or update This bellow is correct query: UPDATE t SET t.city_name = N'Nghệ An' FROM branch_atm_trans t WHERE t.city_name = N'Nghệ an';

[Maven] How to generate java project from maven archetype

Search maven archetype from this maven reposiroty: https://maven-repository.com/ Create new bat file generate_maven_project.cmd. Then paste this code: @echo off echo -------------- PROJECT ------------------------ set /p "groupId=Enter your project package: " set /p "artifactId=Enter project artifactId: " set /p "version=Enter project version: " echo -------------- ARCHETYPE ------------------------ set /p "archetypeGroupId=Enter archetypeGroupId: " set /p "archetypeArtifactId=Enter archetypeArtifactId: " set /p "archetypeVersion=Enter archetypeVersion: " echo Start generate project .... pushd "%~dp0" mvn archetype:generate -DinteractiveMode=false -DgroupId=%groupId% -DartifactId=%artifactId% -Dversion=%version% -DarchetypeGroupId=%archetypeGroupId% -DarchetypeArtifactId=%archetypeArtifactId% -DarchetypeVersion=%archetypeVersion% pause Now run file generate_maven_project.cmd by double click in this file....

[Solved] Adobe Premiere Pro CC 2015 has stopped on Windows 10 x64 (card AMD)

First you can check yours graphic card fully support Adobe Premiere Pro CC 2015 at here: http://blogs.adobe.com/premierepro/2013/05/improved-gpu-support-in-adobe-premiere-pro-cc.html If you open "Configure Switchable Graphics", you'll see the adobe premiere pro.exe has been locked. By default, it only run on Intel graphics, so you cant change or unlock this. To make your Adobe Premiere Pro CC 2015 run on AMD Graphics card, just rename file Adobe Premiere Pro.exe into Adobe Premiere Pro CC.exe After rename, run application again, and open Configure Switchable Graphics and choose High Performance. See this thread for more information: https://community.amd.com/thread/167905

Tạo SVN Server & import project lên svn

Hướng dẫn tạo svn repository, cấu hình apache & đẩy dự án lên SVN Đối với một vài dự án nhỏ bạn không được cấp svn, bạn không thể sử dụng những dịch vụ svn cung cấp miễn phí: Google code, bitbucket,... lúc đó điều đầu tiên nảy sinh trong đầu các bạn là cài đặt svn server trên máy mình để tiện sử dụng. Điều kiện, máy bạn cần cài đặt apache & svn - Trên Windows: các bạn có thể cài Xampp, wampserver hoặc apache riêng & TortoiseSVN - Trên Mac OSX: apache & svn đã có mặc định Ở đây mình hướng dẫn sử dụng trên hệ điều hành MacOSX ( do mình sử dụng máy Mac) Bước 1 . Tạo thư mục SVN. Để có thể add nhiều project vào svn, các bạn nên tạo một thư mục cha ví dụ: svn. Ở đây mình tạo thư mục svn với đường dẫn /Data/svn Bước 2 . Tạo file /Data/svn/.svn-policy-file [groups] team1 = longhoanggiang, giangnh [/] * = [symfony2jobeet:/] @team1 = rw ngongocquynh = r * =   Dấu * ở đây có nghĩa là tất cả anonymous user (ẩn danh) sẽ chỉ có quyền đọc (read). User l...

Convert Office to PDF Tools

Windows: OfficeToPDF ( download here ). OfficeToPDF is easy to use, but you need to install Office 2010 above.  Open command line and type: OfficeToPDF [source_file] [target_file] Example: OfficeToPDF C:/abc.doc C:/abc.pdf Cross OS: (Need to install OpenOffice or LibreOffice) JODConverter UNOCONV If you run unoconv on windows, you need to set path enviroment. In the folder which you installed OpenOffice (ex: C:\Program Files (x86)\OpenOffice 4\program) Press shift and right click to open command line here. Type: python.exe to open python in command line. As you see, you has the path URE_BOOTSTRAP and UNO_PATH. Now open System Path and add two variable with the value you get in the command line. Now, you can convert using unoconv by typing: python unoconv -f pdf [source_file] The pdf file output also in the same directory with the source file

How to Disable Ads in uTorrent - Loại bỏ quảng cáo trong uTorrent

uTorrent là một chương trình tuyệt vời, nhưng đôi lúc bạn sẽ cảm thấy bị làm phiền vì những quảng cáo hiển thị dày đặc trên chương trình. Để tắt quảng cáo trong uTorrent bạn sẽ nghĩ đến chặn các IP trong file hosts, nhưng ngay trong tùy chọn của uTorrent cũng đã cho phép bạn tắt các quảng cáo đi. Đầu tiên các bạn vào mục Preferences trong uTorrent, sau đó bạn vào mục Advanced Hình 1. Vào tùy chọn Preferences. Bạn tắt các tùy chọn này đi: offers.left_rail_offer_enabled/left_rail_offer  gui.show_plus_upsell offers.sponsored_torrent_offer_enabled/sponsored_torrent_offer_enabled bt.enable_pulse gui.show_notorrents_node offers.content_offer_autoexec  Sau đó bạn tắt chương trình uTorrent đi & bật lại. Bạn sẽ thấy quảng cáo đã biến mất trên chương trình uTorrent.