網誌

  • 2023走春

    國立台北藝術大學 校內停車方便但也不便宜,每小時60元。如果想省錢可以停在校門口下面的路邊停車格,但就是要走一小段上坡路 位在校內的惠蓀咖啡,有著能在樹下喝咖啡吃簡餐的舒適戶外環境 大都會公園 一大堆沿著河堤建造的特色溜滑梯是一大特色 Read more

  • 簡單取得 Android 手機唯一識別碼 Hardware Id ( Not Advertising ID 非廣告ID )

    With App Lifecycle 應用程式重裝前都不會改變 With Andoird OS Profile Lifecycle 作業系統Reset to factory前都不會改變 @SuppressLint(“HardwareIds”) private fun getHardwareId() : String { var output = Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID) if(output == “”) { val pref… Read more

  • Android Studio : Error LiveLiteralKt Not found!

    Fixed by remove character ‘\’ in gradler-wrapper.properties Read more

  • 防滑系統很重要

    凌晨大雨從機場回台北的高速公路上,直線加速超過鄰車時,車子頓了一下,防滑燈號閃了幾下….. 凎!好在有防滑、好在電瓶定期更換、好在老子命大、感謝天感謝地🤣🤣🤣🤣🤣🤣🤣 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等程式時,發生破圖現象。 設定 Layout 模式的層疊(Overlays)參數,勾選[幾何]內的[面](face)。這時有法線問題面便會呈現紅色,而沒有問題的則是呈現藍色。 點選要修正的物件,並按下[Tab]進入編輯模式。 將選擇模式切換到點、線、面中的面 點選要修正法線的面,按下[Shift]+[N]修正。 確認沒有紅色的面即可。 在匯出成FBX(.fbx)部分,建議以物件為單位個別匯出,方便管理使用。 輸出成FBX前記得要將位置、縮放等Transform設定歸零。[Ctrl] + [A] –> 全部套用 原點校正(物件旋轉的中心點):點選物件–>右鍵選單 –>設定原點 –> 依需要選擇適合的原點 另外,物件上面材質的[基礎顏色],多重色彩或紋理等疊加的設定,有很大的概率無法隨之匯出。故強烈建議用圖片貼圖取代之,如[基礎顏色]使用[影像紋理],在[Texture Paint]模式下編輯等。 點選要匯出的物件,[檔案]–>[匯出]–>[FBX(.fbx)] [路徑模式(Path)]選擇[複製(Copy)],並核選右側的按鈕以嵌入貼圖 勾選Limit to [所勾選的物件 Select object]… 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:

Stay updated with our latest recipes and other news by joining our newsletter.