<?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 Aung Myo Oo on Medium]]></title>
        <description><![CDATA[Stories by Aung Myo Oo on Medium]]></description>
        <link>https://medium.com/@dev-aungmyooo2015?source=rss-7e7eb6b759c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Sm39DqM80swA5ZKAWqGx6Q.png</url>
            <title>Stories by Aung Myo Oo on Medium</title>
            <link>https://medium.com/@dev-aungmyooo2015?source=rss-7e7eb6b759c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:03:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dev-aungmyooo2015/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[Rest api tips & tricks]]></title>
            <link>https://dev-aungmyooo2015.medium.com/rest-api-tips-tricks-64fdaa0c714d?source=rss-7e7eb6b759c------2</link>
            <guid isPermaLink="false">https://medium.com/p/64fdaa0c714d</guid>
            <dc:creator><![CDATA[Aung Myo Oo]]></dc:creator>
            <pubDate>Mon, 05 Apr 2021 12:40:35 GMT</pubDate>
            <atom:updated>2021-04-05T12:40:35.984Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WcHDuey8PVP8jxVH.png" /></figure><h3>Handle errors gracefully and return standard error codes</h3><ul><li>400 Bad Request — This means that client-side input fails validation.</li><li>401 Unauthorized — This means the user isn’t not authorized to access a resource. It usually returns when the user isn’t authenticated.</li><li>403 Forbidden — This means the user is authenticated, but it’s not allowed to access a resource.</li><li>404 Not Found — This indicates that a resource is not found.</li><li>500 Internal server error — This is a generic server error. It probably shouldn’t be thrown explicitly.</li><li>502 Bad Gateway — This indicates an invalid response from an upstream server. 503 Service Unavailable — This indicates that something unexpected happened on server side (It can be anything like server overload, some parts of the system failed, etc.).</li></ul><h3>Versioning our APIs</h3><p>Versioning is usually done with /v1/, /v2/, etc. added at the start of the API path.</p><h3>RESTful Resource Naming Conventions</h3><p>Example: /users/{id} instead of /getUser</p><p>Example: /users (typical resource) or /users/{id}/address (singleton resource)</p><p>Example: /users/{id}/address clearly falls under the /users/{id} resource which falls under the /users collection.</p><p>Example: /users/{id1},{id2} to access multiple user resources</p><p>Example: /users?location=USA to find all users living in the United States</p><p>Example: /users/{id}/pending-orders instead of /users/{id}/Pending_Orders</p><p>Example: /users/{id}/card-number instead of /users/{id}/pan</p><p>Example: /users/{id}/phone-number instead of /users/{id}/tel-no</p><p>Example: /users/{id}/pending-orders instead of /users/{id}/pending-orders.xml</p><p>Example: /users/{id}/pending-orders instead of /users/{id}/pending-orders/</p><p><em>Originally published at </em><a href="https://gist.github.com/aungmyooo2k17/d272d2f479bc549f58129506ae67979f"><em>http://github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64fdaa0c714d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Auto Deployment of Laravel app with docker using Github Action]]></title>
            <link>https://dev-aungmyooo2015.medium.com/auto-deployment-of-laravel-app-with-docker-using-github-action-b2033815ba93?source=rss-7e7eb6b759c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2033815ba93</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Aung Myo Oo]]></dc:creator>
            <pubDate>Thu, 11 Mar 2021 09:39:18 GMT</pubDate>
            <atom:updated>2021-03-11T09:39:18.402Z</atom:updated>
            <content:encoded><![CDATA[<p>First step <br>Add your ssh_key, ssh_host, ssh_username in secret of your repository</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*QwV8biwMYx4WLEddC8LAWQ.png" /></figure><p>Then, go to action tab</p><p>New Workflow -&gt; <a href="https://github.com/Union-Export-Import/Re-Union/new/development?filename=.github%2Fworkflows%2Fmain.yml&amp;workflow_template=blank">set up a workflow yourself</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K3ge-UUWaXXYOOqwsIEZwQ.png" /></figure><pre>name: Build &amp; Deploy</pre><pre>on:</pre><pre>push:</pre><pre>branches: [development]</pre><pre>jobs:</pre><pre>deploy:</pre><pre>runs-on: ubuntu-latest</pre><pre>steps:</pre><pre>- name: Deploy Laravel app</pre><pre>uses: appleboy/ssh-action@v0.1.2</pre><pre>with:</pre><pre>host: ${{secrets.SSH_HOST}} # IP address of the server you wish to ssh into</pre><pre>key: ${{secrets.SSH_KEY}} # Private or public key of the server</pre><pre>username: ${{ secrets.SSH_USERNAME }} # User of the server you want to ssh into</pre><pre>script: |</pre><pre>cd your_laravel_app/</pre><pre>git checkout .</pre><pre>git pull origin development</pre><pre>cd</pre><pre>docker-compose exec -T app php artisan config:clear</pre><pre>docker-compose exec -T app composer install</pre><pre>docker-compose exec -T app php artisan migrate</pre><p>That’s it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2033815ba93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adjusting Screen brightness in Linux]]></title>
            <link>https://dev-aungmyooo2015.medium.com/adjusting-screen-brightness-in-linux-7a6037a682c9?source=rss-7e7eb6b759c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a6037a682c9</guid>
            <category><![CDATA[shell-script]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[screen-brightness]]></category>
            <dc:creator><![CDATA[Aung Myo Oo]]></dc:creator>
            <pubDate>Fri, 13 Nov 2020 04:58:19 GMT</pubDate>
            <atom:updated>2020-11-13T04:58:19.753Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TcwdYTSiAaS4RrqM-fqsmQ.png" /></figure><p>Let’s write shell script to adjust screen brightness.</p><blockquote>#!/bin/bash<br># Bash script to control the monitor brightness<br>brightness_level=$1<br>screenname=$(xrandr | grep “ connected” | cut -f1 -d” “)<br>xrandr — output $screenname — brightness $brightness_level;</blockquote><p>and save with your-name.sh <br>In this case we are using $1 as parameter for brightness level as we want to adjust.</p><p>So, at last we can run that .sh file as</p><blockquote>sh your-name.sh 0.4</blockquote><p>Brightness level range is 0 to 1.</p><p>That’s all thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a6037a682c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gentle Introduction To Android Studio File Structure]]></title>
            <link>https://dev-aungmyooo2015.medium.com/gentle-introduction-to-android-studio-file-structure-5e3e8bfd8c48?source=rss-7e7eb6b759c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e3e8bfd8c48</guid>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Aung Myo Oo]]></dc:creator>
            <pubDate>Tue, 29 Jan 2019 10:23:01 GMT</pubDate>
            <atom:updated>2019-01-29T10:23:01.572Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*vij8nikgilugpB0W.png" /></figure><p><strong>1. AndroidManifest</strong></p><ul><li>It is a declaration file.</li><li>Here only Which activity should start first, that has been declared.</li><li>It declares which permissions the application must have.</li><li>It also declares the permissions that others are required to have in order to interact.</li><li>It declares the minimum level of the Android API.</li><li>It lists the libraries that the application must be linked.</li><li>All the component should declared here.</li><li>The components are activities, services, broadcast receivers, and content providers.</li></ul><p><strong>2. Java</strong> eg, like hello world program to test and all of your android function are write on this java package file</p><blockquote><em>Hello World</em></blockquote><p><strong>3. Drawable</strong> Drawable is something which can be drawn. E.g. layout, vector image (line, circle), font, image and so on.</p><p><strong>4. Layout</strong> The layout defines the visual structure for your app. Android uses this structure to display the view elements on the screen. The most common are linear, relative and grid layouts but a combination is also possible.</p><p><strong>5. minmap</strong> The mipmap folders are for placing your app/launcher icons (which are shown on the homescreen) in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.</p><blockquote><em>Itís best practice to place your app icons in </em><strong><em>mipmap-</em></strong><em> folders (not the drawable- folders) because they are used at resolutions different from the deviceís current density.</em></blockquote><p>When referencing the <strong>mipmap-</strong> folders ensure you are using the following reference:</p><pre>android:icon=&quot;@minmap/ic_luncher&quot;</pre><p>The reason they use a different density is that some launchers actually display the icons larger than they were intended. Because of this, they use the next size up.</p><p><strong>6. color.xml</strong> The <em>colors.xml</em> is an XML file which is used to store the colors for the resources.</p><p><strong>7. Stirng.xml</strong> One of the most important as well as widely used values file is the strings.xml due to its applicability in the Android project. Basic function of the strings.xml is to define the strings in one file so that it is easy to use same string in different positions in the android project plus it makes the project looks less messy.</p><p><strong>8. Styles.xml</strong> Another important file in the values folder is the <em>styles.xml</em> where all the themes of the Android project are defined. The base theme is given by default having the option to customize or make changes to the customized theme as well. Every theme has a parent attribute which defines the base of the theme. There are a lot of options to choose from depending on the need of the Android project.</p><p><strong>9. build.gradle(Module App)</strong></p><ol><li>android settings</li></ol><p>i. compileSdkVersion</p><p>ii. buildToolsVersion</p><p>2. defaultConfig and productFlavors</p><p>i. manifest properties such as applicationId, minSdkVersion, targetSdkVersion, and test information</p><p>3. buildTypes</p><p>i. build properties such as debuggable, ProGuard enabling, debug signing, version name suffix and testinformation</p><p>4. dependencies</p><p><em>Originally published at </em><a href="https://gist.github.com/aungmyooo2k17/15091bb84530f7cfa5bec32a6e4e1b76"><em>gist.github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e3e8bfd8c48" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>