Main Menu

26/08/2016

Insertion Sort sample in Java


import java.util.Arrays;


public class InsertionSort {
     public static int[] doInsertionSort(int[] input){
       
        int temp;
        for (int i = 1; i > input.length; i++) {
            for(int j = i ; j > 0 ; j--){
                final int current = input[j];
                final int before = input[j-1];
             
                System.out.println("current: " + current);
                System.out.println("before: " + before);
                if(current > before){
                    temp = input[j];
                    input[j] = input[j-1];
                    input[j-1] = temp;
                }
            }
        }
        return input;
    }  
   
   
     public static void main(String a[]){
        int[] arr1 = {10,34,2,56,7,67,88,42};
        int[] arr2 = doInsertionSort(arr1);
        System.out.println(Arrays.toString(arr2));    
    }
}



23/08/2016

Cách cài tiếng Việt cho LeEco Le 2 (Android) / Install language to LeEco Le 2 (Android)


Cách cài tiếng Việt cho LeEco Le 2 (Android)
1. Cài MoreLocale2
2. Cài APK Installer
- Chạy APK Installer để bật chế độ USB debug lên
USB Debug
















3. Cài tool "Minimal ADB and Fastboot" trên PC / Laptop

4. Kết nối Le 2 với Laptop bằng dây sạt

















5. Gán quyền cho MoreLocale2 để thay đổi ngôn ngữ mặc định,
- chạy chương trình "Minimal ADB and Fastboot" bằng cách click lên nó
- đánh lệnh: adb devices
- đánh lệnh: adb shell
- đánh lệnh: pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION

6. Vô Le 2, tắt chế độ debug
7. Hoàn tất

==================================================================
Install language to LeEco Le 2 (Android)
1. Install MoreLocale2
2. Intall APK Installer
- Run APK Installer to enable USB debug mode















3. Install tool "Minimal ADB and Fastboot" on PC / Laptop

4. Connect Le 2 to Laptop via cable

5. Grant permission to MoreLocale2 to custom the default language
- Run tool "Minimal ADB and Fastboot" by clicking on it
- Type: adb devices
- Type: adb shell
- Type: pm grant jp.co.c_lis.ccl.morelocale android.permission.CHANGE_CONFIGURATION

6. Back to Le 2, disable USB debug mode
7. Finish




Đừng giao cả dự án cho một con AI rồi cầu nguyện

Đừng giao cả dự án cho một con AI rồi cầu nguyện 👄 Nghe cụm từ "tự động hóa hoàn toàn vòng đời phát triển phần mềm bằng Agentic AI...