目前分類:未分類文章 (9)

瀏覽方式: 標題列表 簡短摘要

最簡單的方式為使用curl 來達成,cmd 預設的curl 會有問題無法使用,請改用power shell curl指令

Jenkins 請自行安裝 power shell

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

今天想讓公司人員透過外網方式連接Demo網頁,結卻發現無法正常顯示網頁內容出現Invalid Host Header

則解決辦法為在 在webpack.dev.conf.js的devServer配置中添加disableHostCheck: true

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

若要在專案中,顯示gorm.Debug() 相關的sql 資訊以利偵錯使用,可以搭配logrus 

type GormLogger struct{}

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

當設定

        tableView.estimatedRowHeight = 80

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

Swift 4.0 目前改用cocoaPods來整合facebook功能

1建立你的FacebookApp

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

public class MD5Util {

    public static String getMD5(String str) {
        try
        {
            // Create MD5 Hash
            MessageDigest md5 = java.security.MessageDigest.getInstance("MD5");
            md5.update(str.getBytes());
            byte messageDigest[] = md5.digest();

            String resultArray = byteArrayToHex(messageDigest);

            return resultArray;
        }
        catch (NoSuchAlgorithmException e)
        {
            e.printStackTrace();
        }
        return "";
    }

    public static String byteArrayToHex(byte[] byteArray) {
        char[] hexDigits = {'0','1','2','3','4','5','6','7','8','9', 'A','B','C','D','E','F' };
        char[] resultCharArray =new char[byteArray.length * 2];
        int index = 0;
        for (byte b : byteArray) {
            resultCharArray[index++] = hexDigits[b>>>4 & 0xf];
            resultCharArray[index++] = hexDigits[b & 0xf];
        }
        return new String(resultCharArray);
    }
}

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

今天使用xCode專案使用新建帳號,發現切換帳號後出現如下錯誤

Failed to create provisioning profile

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

今天同事Archive 發生此問題

Command /usr/sbin/chown failed with exit code 1

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()

測試解析php回傳的json資料,需使用 CJsonValue 或是 JSONObject

void TestPost() {

文章標籤

狼翔月影 發表在 痞客邦 留言(0) 人氣()