<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Liddle Fang on Medium]]></title>
        <description><![CDATA[Stories by Liddle Fang on Medium]]></description>
        <link>https://medium.com/@fanghuaian?source=rss-1b490a25a360------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VmWpX7L0BOgpdOC1.jpeg</url>
            <title>Stories by Liddle Fang on Medium</title>
            <link>https://medium.com/@fanghuaian?source=rss-1b490a25a360------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 21:09:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fanghuaian/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[更換 SQL Server Management Studio 編輯器背景顏色]]></title>
            <link>https://fanghuaian.medium.com/%E6%9B%B4%E6%8F%9B-sql-server-management-studio-%E7%B7%A8%E8%BC%AF%E5%99%A8%E8%83%8C%E6%99%AF%E9%A1%8F%E8%89%B2-155a00a4a5a2?source=rss-1b490a25a360------2</link>
            <guid isPermaLink="false">https://medium.com/p/155a00a4a5a2</guid>
            <category><![CDATA[editorbackgroundcolor]]></category>
            <category><![CDATA[sql-server-ssms]]></category>
            <dc:creator><![CDATA[Liddle Fang]]></dc:creator>
            <pubDate>Mon, 11 Jan 2021 06:56:30 GMT</pubDate>
            <atom:updated>2021-01-11T06:56:30.509Z</atom:updated>
            <content:encoded><![CDATA[<p>小功能，筆記之避免忘記</p><p>與 Visual Studio 的設定一致。<br>開啟 SSMS 後，在「工具」下，選取「選項」。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*VAu4mGXumHQnmbvjfvUyLQ.jpeg" /><figcaption>選項</figcaption></figure><p>這時會出現與 Visual Studio 相同設計的對話框。<br>選取「字型和色彩」</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*2-aEbV0nxDVOk452dt1_LA.jpeg" /><figcaption>SMSS 的環境設定</figcaption></figure><p>選中「純文字」後，除了更改「字型」與「大小」外，<br>在「項目背景」按下「自定」選取舒適的背景顏色。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GOU_B528jcwOPqnYrGbV5w.jpeg" /><figcaption>同樣的色彩選取對話框</figcaption></figure><p>出現設定效果。<br>如果登入 Visual Studio 時，是使用微軟帳號，還可以在多台電腦上通用此設定。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lo7NuZTOFC-KJ4qALIMRdQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=155a00a4a5a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Xamarin.iOS  I18N with Storyboard]]></title>
            <link>https://fanghuaian.medium.com/xamarin-ios-i18n-with-storyboard-fb67c29fd1ac?source=rss-1b490a25a360------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb67c29fd1ac</guid>
            <category><![CDATA[i18n]]></category>
            <category><![CDATA[xamarin-ios]]></category>
            <category><![CDATA[storyboard]]></category>
            <dc:creator><![CDATA[Liddle Fang]]></dc:creator>
            <pubDate>Mon, 21 Dec 2020 07:17:58 GMT</pubDate>
            <atom:updated>2020-12-21T07:39:43.014Z</atom:updated>
            <content:encoded><![CDATA[<h3>Xamarin.iOS I18N with Storyboard</h3><p>It’s easy to use Xcode for I18N.<br>But if you need to use Xamarin.iOS for I18N project with storyboard. Maybe you have to do more things.</p><p><a href="https://github.com/FangHuaiAn/Xamarin.iOS.I18N">Github</a></p><ol><li>Edit project files with Xcode</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*syX_KWbLAy8AbvT-2fFgYQ.png" /><figcaption>1. Open Storyboard with Xcode.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b3f_ZTkO_WfAwCvMBwPgNQ.png" /><figcaption>2. “Localize …” Main.storyboard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_hKJYkHzBslqNevBFdOSA.png" /><figcaption>3. Xcode create English lproj ( Language Project, You can find Xcode project files in the “Obj” directory. )</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBgzJ733UOSTuY3ibEiL7Q.png" /><figcaption>4. Select Project file to change “Info”</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_TuJTbNStBC6cHdNxQKtbA.png" /><figcaption>5. Add language you want to support</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GybTvaTpbdkeIMOd9hL9DQ.png" /><figcaption>6. Select storyboard.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*cRwqkeoh3snzK3iLN82DeQ.png" /><figcaption>7. Delete Main.storyboard</figcaption></figure><p>2. Edit difference storyboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8FOGHWRtxf44dn98JzzmDw.png" /><figcaption>Indonesia</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xS9ufYQvAAWJVh1tMxlDYQ.png" /><figcaption>Thai</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urQFX7G7YZbn_wWB6NqnXw.png" /><figcaption>Chinese</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nf_e1PGmcl3WMwZ5VFysQ.png" /><figcaption>English</figcaption></figure><p>3. Test in the simulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*sOGnXMvEp7dS9iSrsUd8uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*eMmdviybk4dFGuwJvLAhJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*0O568nq95tC8G2ixOFLyPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*QPq3bbyabpaETmGVCOqXeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*5fixwUG_5a1hbo82yc_g0g.png" /></figure><p>4. If you open storyboard in Resources folder and show the message. Don’t worry about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*w425OVDXkPTuaJSJhAoNIw.png" /><figcaption>Open Main.storyboard in the lproj folder.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*rzm0ig_zhgOL5M-RF7_7Vw.png" /><figcaption>forget this message.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb67c29fd1ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift 使用 Alamorefire 5 與 ASP.NET Core 3 Web API 合作影像上傳作業]]></title>
            <link>https://fanghuaian.medium.com/swift-%E4%BD%BF%E7%94%A8-alamorefire-5-%E8%88%87-asp-net-core-3-web-api-%E5%90%88%E4%BD%9C%E5%BD%B1%E5%83%8F%E4%B8%8A%E5%82%B3%E4%BD%9C%E6%A5%AD-7ff545d49ee3?source=rss-1b490a25a360------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ff545d49ee3</guid>
            <category><![CDATA[upload]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[uiimage]]></category>
            <dc:creator><![CDATA[Liddle Fang]]></dc:creator>
            <pubDate>Wed, 10 Jun 2020 12:55:34 GMT</pubDate>
            <atom:updated>2020-06-10T12:55:34.082Z</atom:updated>
            <content:encoded><![CDATA[<p>記錄使用 ASP.NET Core 3 Web API 與 Alamorefire 5 合作上傳 UIImage 作業的順序。</p><p>ASP.NET Core 3 Web API 部分。新增一個 UploadApiController 負責上傳作業。只放一個 Action</p><pre>[Route(“api/[controller]”)]<br>[ApiController]<br>public class UploadApiController : ControllerBase<br>{</pre><pre>   [HttpPost(“UploadImage”)]<br>   public async Task&lt;string&gt; UploadFile([FromForm] IFormFile file)<br>   {<br>      string uniqueFileName = null;<br>      <br>      if ( file != null)<br>      {<br>         try{<br>            string uploadsFolder = <br>Path.Combine( Directory.GetCurrentDirectory(),”wwwroot&quot;, &quot;file path&quot; );<br>            uniqueFileName = DateTime.Now.ToString(“yyyyMMddHHmmssf”) + &quot;.jpg&quot;;</pre><pre>            string filePath = Path.Combine(uploadsFolder, uniqueFileName);</pre><pre>            using (var fileStream = new FileStream(filePath, FileMode.Create))<br>            {<br>               await file.CopyToAsync(fileStream);<br>            }</pre><pre>            return $&quot;img/{ uniqueFileName }&quot;;</pre><pre>         }<br>         catch(Exception ex){<br>            return ex.Message;<br>         }<br>      }<br>      else{<br>         return $”file is null.”;<br>      }<br>   }<br>}</pre><p>在 Swift 檔案內，直接呼叫 Alamorefire</p><pre>override func viewDidLoad() {<br>   super.viewDidLoad()</pre><pre>   // load image to UIImage object<br>   let image : UIImage = UIImage.init(named: “rocket.jpg”)!</pre><pre>   // call function to upload image<br>   postImage(image: image, parameters: [“platform” : “iOS”])</pre><pre>}</pre><pre>func postImage(image : UIImage, parameters : Dictionary&lt;String, String&gt;){</pre><pre>   // add headers<br>   let headers: HTTPHeaders = [<br>      “Content-type”: “multipart/form-data”<br>   ]</pre><pre>   // use Alamofire to upload file<br>   AF.upload( multipartFormData: {<br>      formData<br>      in<br>      // append parameters<br>      for (key, value) in parameters {<br>         formData.append( value.data(using: String.Encoding.utf8)!, withName: key)<br>      }</pre><pre>      // append data<br>      formData.append(<br>         image.jpegData(compressionQuality: 0.8)!<br>         , withName: “file” // note : asp.net core 3 need a parameter name to naming binary data<br>         , fileName: “file.jpeg”<br>         , mimeType: “image/jpeg”)<br>      },<br>      to: “https://website url/api/UploadApi/UploadImage&quot;,<br>      method: .post ,<br>      headers: headers)<br>      <br>      .response<br>      {<br>         response<br>         in<br>         let message : String = String( decoding: response.data!, as: UTF8.self)<br>         print(message)<br>      }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ff545d49ee3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My development flow with Xamarin]]></title>
            <link>https://fanghuaian.medium.com/my-development-flow-with-xamarin-18d4f3985257?source=rss-1b490a25a360------2</link>
            <guid isPermaLink="false">https://medium.com/p/18d4f3985257</guid>
            <dc:creator><![CDATA[Liddle Fang]]></dc:creator>
            <pubDate>Fri, 15 Apr 2016 06:38:04 GMT</pubDate>
            <atom:updated>2016-04-15T06:38:04.994Z</atom:updated>
            <content:encoded><![CDATA[<p>My development flow with Xamarin</p><p>(1) Create project with Xamarin Studio</p><p>(2) Open main.storyboard with Xcode</p><p>(3) Create class in Xcode and connect with ui controls.</p><p>(4) Close Xcode and write C# code in Xamarin Studio</p><p>The designer in the Xamarin Studio is too slow to use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18d4f3985257" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>