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

Bài đăng

Xcode 8 support devices ios 7

Tải XCode 5.1.1 về, copy 2 folder 7.0 & 7.1 trong thư mục /Volumes/Xcode/ Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport sang thư mục DeviceSupport của phiên bản XCode 8 (hiện tại) Mở file SDKSetting.plist trong thư mục /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk Thêm giá trị 7.0 & 7.1 vào key Root->DefaultProperties->DEPLOYMENT_TARGET_SUGGESTED_VALUE Thoát XCode & khởi động lại XCode

Tạo đĩa cứu hộ DLCD chuẩn UEFI

Chạy CMD dưới quyền quản trị (admin), nếu như bạn đang sử dụng Windows 8 trở lên thì nhấn tổ hợp phím “Windows + X” và chọn “Command Prompt (Admin)” Cửa sổ “Command Prompt” hiện ra bạn gõ lệnh  DISKPART  > gõ tiếp lệnh  LIST DISK  để nó liệt kê ra toàn bộ ổ cứng của bạn. Tạo usb chuẩn UEFI chứa bộ cài Windows Ví dụ như trong hình thì Disk 1 là USB và Disk 0 sẽ là ổ cứng, bạn nhìn vào dung lượng (Size) để biết được chính xác đâu là Disk của usb nhé. + Sau khi bạn đã biết được chính xác đâu là DISK của USB thì gõ tiếp lệnh  SELECT DISK   x  (x là số DISK của USB). Ví dụ như trong hình trên, mình sẽ gõ chính xác dòng lệnh như sau:  SELECT DISK 1 Các bạn làm theo chính xác các lệnh sau: CLEAN – Lệnh này sẽ xóa sạch dữ liệu trên ổ bạn đã chọn (ơ đây là USB). CON GPT – Lệnh này sẽ chuyển sang định dạng GPT. CREATE PARTITION PRIMARY – Lệnh này sẽ tạo Partion cho toàn bộ ổ đĩa mà bạn đã lựa chọn. FORMAT QUICK...

Tạo USB cài win chuẩn UEFI

Hướng dẫn tạo USB UEFI Để tạo USB UEFI chứa bộ cài đặt Windows thì có 2 cách đó là: Làm thủ công hoặc làm bằng phần mềm. Cách 1: Làm thủ công (khuyến khích) Chạy CMD dưới quyền quản trị (admin), nếu như bạn đang sử dụng Windows 8 trở lên thì nhấn tổ hợp phím “Windows + X” và chọn “Command Prompt (Admin)” Cửa sổ “Command Prompt” hiện ra bạn gõ lệnh  DISKPART  > gõ tiếp lệnh  LIST DISK  để nó liệt kê ra toàn bộ ổ cứng của bạn. Tạo usb chuẩn UEFI chứa bộ cài Windows Ví dụ như trong hình thì Disk 1 là USB và Disk 0 sẽ là ổ cứng, bạn nhìn vào dung lượng (Size) để biết được chính xác đâu là Disk của usb nhé. + Sau khi bạn đã biết được chính xác đâu là DISK của USB thì gõ tiếp lệnh  SELECT DISK   x  (x là số DISK của USB). Ví dụ như trong hình trên, mình sẽ gõ chính xác dòng lệnh như sau:  SELECT DISK 1 Các bạn làm theo chính xác các lệnh sau: CLEAN – Lệnh này sẽ xóa sạch dữ liệu trên ổ bạn đã chọn (ơ đây...

Unprotect Excel without password yourself - Gỡ bảo vệ tệp tin excel không cần mật khẩu

Unprotect Excel without password yourself - Gỡ bảo vệ tệp tin excel không cần mật khẩu If you want to unprotect excel sheet without password, please follow this step bellow. Step 1, create a macro to break pass: open protected sheet in excel, then click in VIEW tab and click in Macros button in Ribbon menu Step 2: Create new macro Step 3: Paste macros Step 4: Run macros and protected sheet will be unprotected This is macros you need: Sub PasswordBreaker() 'Breaks worksheet password protection. Dim i As Integer, j As Integer, k As Integer Dim l As Integer, m As Integer, n As Integer Dim i1 As Integer, i2 As Integer, i3 As Integer Dim i4 As Integer, i5 As Integer, i6 As Integer On Error Resume Next For i = 65 To 66: For j = 65 To 66: For k = 65 To 66 For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66 For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66 For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126 ActiveSheet.Unprotect Chr(i) & Chr(j) ...

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....