-
Camping 露營 – 位在山崩土石流危險區的露營區名單
Taiwan.net.tw 查詢連結: https://www.taiwan.net.tw/m1.aspx?q=露營&sNo=0030345 Read more
-
簡單取得 Android 手機唯一識別碼 Hardware Id ( Not Advertising ID 非廣告ID )
@SuppressLint(“HardwareIds”) private fun getHardwareId() : String { var output = Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID) if(output == “”) { val pref = this.getSharedPreferences(“HardwareIds”, Context.MODE_PRIVATE) output = pref.getString(“hardware_id”,””).orEmpty() if(output == “”) { output =… Read more
-
Android Studio : Error LiveLiteralKt Not found!
Fixed by remove character ‘\’ in gradler-wrapper.properties Read more
-
Unity – 程式控制物件時動作時,用Ray前記得要同步一下
Vector3 norVector3 = new(); Physics.SyncTransforms(); if (Physics.Raycast(camRay, out RaycastHit raycastHit, 10) && raycastHit.transform.name.Equals(targetGameObjectName)) { norVector3 = new((float)Math.Round(raycastHit.point.x, 2), (float)Math.Round(raycastHit.point.y, 2), (float)Math.Round(raycastHit.point.z, 2)); output = GetPositionName(norVector3); } Read more
-
Aras Innovator – 檔案下載記錄
檔案的下載動作是透過 ItemType:Vault 來運行。 檔案 ItemType:File 與 ItemType:Vault 是透過 ItemType:Locate 關聯。 因此,當使用者有下載檔案動作時,便會觸發 ItemType:Vault 和 ItemType:Locate 的 [Get] 動作。故我們可以藉由在 ItemType:Locate 的 Server Method : OnAfterGet,實作檔案下載記錄。透過 source_id 取得包含檔案名稱等檔案資訊、透過呼叫 Innovator.getUserID() 取得下載人的資料。 Aras.Server.Security.Identity plmIdentity =… Read more
-
Aras Innovator – Method臨時提升權限及使用時機
當Method需要用到SQL指令時,需透過臨時提升權限的方式來執行。而其他情境則幾乎不適用!即使臨時提升權限,仍無法以目標Identity的權限對ItemType做異動。 Aras.Server.Security.Identity plmIdentity = Aras.Server.Security.Identity.GetByName(“Innovator Admin”);bool PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(plmIdentity);Innovator inno = this.getInnovator(); string sqlCmd = “UPDATE Document SET ineffective_date=GETUTCDATE() WHERE ID=’”+this.getID()+”‘”;inno.applySQL(sqlCmd); if (PermissionWasSet == true)Aras.Server.Security.Permissions.RevokeIdentity(plmIdentity); return this; Read more
-
Blender – 物件輸出前注意事項:破圖修正、Transform歸零、中心原點校正 和 匯出包含材質Materials貼圖Textures的 FBX(.fbx) 檔案
Blender 建模完成後,務必確認物件 面 的方向(法線)是否正確,以避免動畫或匯出給其他如Unity等程式時,發生破圖現象。 在匯出成FBX(.fbx)部分,建議以物件為單位個別匯出,方便管理使用。 輸出成FBX前記得要將位置、縮放等Transform設定歸零。[Ctrl] + [A] –> 全部套用 原點校正(物件旋轉的中心點):點選物件–>右鍵選單 –>設定原點 –> 依需要選擇適合的原點 另外,物件上面材質的[基礎顏色],多重色彩或紋理等疊加的設定,有很大的概率無法隨之匯出。故強烈建議用圖片貼圖取代之,如[基礎顏色]使用[影像紋理],在[Texture Paint]模式下編輯等。 Reference By: https://docs.blender.org/manual/en/latest/modeling/meshes/editing/mesh/normals.html Read more
Welcome to my blog!
I’m Amy, a minimalist and simple living enthusiast who has dedicated her life to living with less and finding joy in the simple things. Through this blog, I aim to share my expertise, insights, and experiences. Join me on this journey as we explore the world of slow, purposeful living together!
Find us on:
Join the fun!
Stay updated with our latest recipes and other news by joining our newsletter.
