<?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 Minami Munakata on Medium]]></title>
        <description><![CDATA[Stories by Minami Munakata on Medium]]></description>
        <link>https://medium.com/@minamimunakata?source=rss-750e28045fd0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*INxKdDehOAvWMRwV</url>
            <title>Stories by Minami Munakata on Medium</title>
            <link>https://medium.com/@minamimunakata?source=rss-750e28045fd0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:37:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@minamimunakata/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[How to Set Up Gemini CLI with Vertex AI]]></title>
            <link>https://medium.com/@minamimunakata/how-to-set-up-gemini-cli-with-vertex-ai-fcbe26207271?source=rss-750e28045fd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcbe26207271</guid>
            <category><![CDATA[vertex-ai]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[gemini-cli]]></category>
            <dc:creator><![CDATA[Minami Munakata]]></dc:creator>
            <pubDate>Mon, 30 Jun 2025 02:39:08 GMT</pubDate>
            <atom:updated>2025-06-30T02:39:08.401Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This post serves as a personal note on how I set up the <strong>Gemini CLI</strong> using <strong>Vertex AI</strong>. I followed the official Getting Started guide during the process.</p><ul><li><strong>Official documentation:</strong> <a href="https://github.com/google-gemini/gemini-cli/blob/main/README.md">README.md</a></li></ul><h3>1. Prerequisites</h3><p>As the title suggests, this guide focuses on how to get started with Gemini CLI on <strong>Vertex AI</strong>.</p><p>There are two ways to use Vertex AI:</p><ul><li>Standard <strong>Vertex AI</strong></li><li><strong>Vertex AI in Express Mode</strong></li></ul><p><strong>Express Mode</strong> lets you quickly try out Vertex AI features without fully setting up a Google Cloud project. With just an API key, you can access some features of Vertex AI Studio and Gemini APIs. On the other hand, standard Vertex AI requires setting up a Google Cloud project.</p><p>In this guide, I chose to use <strong>standard Vertex AI</strong>, not Express Mode. (Note that Express Mode has its own <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview#eligibility">eligibility requirements</a>.)</p><ul><li><strong>Why I chose Vertex AI:</strong><br> According to the <a href="https://github.com/google-gemini/gemini-cli/blob/main/docs/tos-privacy.md">Terms of Service and Privacy Notice</a>, when using a personal Google account, your prompts and code might be used to improve Google’s model quality. In contrast, when using Vertex AI, input data is explicitly <strong>not</strong> used for model training. That’s why I decided to go with Vertex AI.</li></ul><h3>2. Preparing Vertex AI for Gemini CLI</h3><h3>Enable Vertex AI</h3><p>You’ll need to create a Google Cloud Project and <a href="https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com">enable Vertex AI</a>.<br> If you’re new to Google Cloud setup, refer to <a href="https://cloud.google.com/vertex-ai/docs/start/cloud-environment">this guide</a>.</p><h3>Set environment variables</h3><p>Set the following environment variables in your terminal:</p><pre>export GOOGLE_CLOUD_PROJECT=&quot;YOUR_PROJECT_ID&quot;<br>export GOOGLE_CLOUD_LOCATION=&quot;YOUR_PROJECT_LOCATION&quot; # e.g., us-central1<br>export GOOGLE_GENAI_USE_VERTEXAI=true</pre><p>Note: These settings reset each session. For convenience, add them to your .zshrc or .bash_profile for persistence.</p><h3>Set Application Default Credentials (ADC)</h3><p>Run:</p><pre>gcloud auth application-default login</pre><p>(Make sure you have the <a href="https://cloud.google.com/sdk/docs/install">Google Cloud CLI</a> installed.)</p><p>If ADC is not set, you’ll see an error like:</p><pre>[API Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.]</pre><h3>3. Installing Gemini CLI</h3><p>To use gemini globally, install it with npm:</p><pre>npm install -g @google/gemini-cli</pre><p>After installation, you can launch the CLI with:</p><pre>gemini</pre><h3>4. Choose authentication method</h3><p>When you run gemini for the first time, you&#39;ll be prompted to select an authentication method.<br> Select <strong>Vertex AI authentication</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b3IwlcTEIfKCc74_.png" /></figure><p>(Note: In this screenshot, there’s a warning because I missed setting some environment variables.)</p><p>✅ That’s it! Your Gemini CLI setup with Vertex AI is ready to use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcbe26207271" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CollapsingToolbar with Jetpack Compose]]></title>
            <link>https://medium.com/@minamimunakata/collapsingtoolbar-with-jetpack-compose-7783a0248755?source=rss-750e28045fd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7783a0248755</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Minami Munakata]]></dc:creator>
            <pubDate>Tue, 31 Jan 2023 14:41:09 GMT</pubDate>
            <atom:updated>2023-02-01T05:47:17.544Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kOnZXjxIAghR3nol" /><figcaption>Photo by <a href="https://unsplash.com/@grabster?utm_source=medium&amp;utm_medium=referral">Grabster</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I have implemented CollapsingToolbar which has an enterAlways-like behavior with Jetpack Compose. Unfortunately, there is not enough information to create TopAppBar which expands and collapses when scrolling like a CoordinatorLayout of Android View, so, I would like to share how I have achieved it with Jetpack Compose.</p><p>Beforehand, if your project works with <a href="https://m3.material.io/">Material Design 3</a>, it would be nice to try to play around with <a href="https://developer.android.com/reference/kotlin/androidx/compose/material3/TopAppBarScrollBehavior">TopAppBarScrollBehavior</a>.</p><p>This article is for those who don’t introduce Material Design 3 into their project. Let’s get started!</p><p>First of all, if you know the height of your TopAppBar or your custom component which contains TopAppBar and other layouts to be collapsed, you can just copy and paste sample codes from <a href="https://developer.android.com/reference/kotlin/androidx/compose/ui/input/nestedscroll/package-summary#(androidx.compose.ui.Modifier).nestedScroll(androidx.compose.ui.input.nestedscroll.NestedScrollConnection,androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher)">Android Developers</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e30fe135d692e5befca3e4986924da52/href">https://medium.com/media/e30fe135d692e5befca3e4986924da52/href</a></iframe><p>However, there is a problem. Let’s say you want a collapsible component that has not only TopAppBar but also an image, but you don’t know the exact size of the image until you fetch the data from a server. You have to get the height of that collapsible component at some point to calculate the portion of the offset.</p><p>In that case, you can get the layout information like its size by <a href="https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/OnGloballyPositionedModifier">Modifier.onGloballyPositioned</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7c8b39a0cd8310d3efe76eb79c096c8/href">https://medium.com/media/d7c8b39a0cd8310d3efe76eb79c096c8/href</a></iframe><p>To make it reusable, let’s create your custom state to manage variables. I would name it CollapsibleState.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d527dc18bf8ca6954bd09cc42674038/href">https://medium.com/media/2d527dc18bf8ca6954bd09cc42674038/href</a></iframe><p>Let’s create a function that returns a default CollapsibleState and remembers it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/47f2a0f8969daab661a645ef0c949139/href">https://medium.com/media/47f2a0f8969daab661a645ef0c949139/href</a></iframe><p>Wait a minute. Why don’t you use rememberSaveable instead of the remember function? Using a rememberSaveable function makes it a lifecycle-aware UI. The stored value will survive when a user rotates a screen. But if you just replace a rememberSaveable function here instead of the remember function, it will occur an error which says:</p><pre>java.lang.IllegalArgumentException: CollapsibleState cannot be saved using the current SaveableStateRegistry. The default implementation only supports types which can be stored inside the Bundle. Please consider implementing a custom Saver for this class and pass it to rememberSaveable().</pre><p>As it claims, the state should be a type that can be stored inside the Bundle. To do so, we have to create a custom saver object. You can create it by using mapSaver or listSaver. You can find details <a href="https://developer.android.com/jetpack/compose/state#restore-ui-state">here</a>.</p><p>I created a companion object function inside the CollapsibleState class that provides a custom Saver object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3b9af6b3d08a7e2a4eec861851b2233/href">https://medium.com/media/a3b9af6b3d08a7e2a4eec861851b2233/href</a></iframe><p>Now, you can remember the state by using rememberSaveable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/184f9adf153c5c8bf2bf59aa56c757ed/href">https://medium.com/media/184f9adf153c5c8bf2bf59aa56c757ed/href</a></iframe><p>You are almost there! Now we have everything we need to create a custom Android-View-CollapsingToolbar-like layout.</p><p>I named it CollapsibleScaffold which is a container that has a CollapsingToolbar. You can also set whatever you want to collapse along with CollapsingToolbar. CollapsibleScaffold holds contents as LazyColumn.</p><p>See how I have implemented CollapsibleScaffold. (Actually, it might not be the best name since it is not the scaffold. Who cares. It’s just a demo.)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6fc491e4ae23de69bfdef50ea8fd44ec/href">https://medium.com/media/6fc491e4ae23de69bfdef50ea8fd44ec/href</a></iframe><p>As you see, it takes collapsibleAppBar composable lambda (collapsibleAppBar: @Composable CollapsibleScope.() -&gt; Unit).</p><p>CollapsibleScope is a custom scope and this is how it works.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c85f702360d4b7b770be79b58df216b/href">https://medium.com/media/2c85f702360d4b7b770be79b58df216b/href</a></iframe><p>Now you can hoist collapsibleAppBar , and you can pass your custom modifier extension by taking CollapsibleScope so that you can decorate collapsibleAppBar from outside of CollapsibleScaffold.</p><p>Voila! See it shows you expanding-collapsing behavior like enterAlways.</p><figure><img alt="Demo" src="https://cdn-images-1.medium.com/max/216/1*wd6ndfUPtuyobPsA6DdCww.gif" /></figure><p>You can check the whole code on GitHub.</p><p><a href="https://github.com/MinamiMunakata/CollapsibleScaffold/blob/main/app/src/main/java/com/example/collapsiblescaffold/compose/CollapsibleScaffold.kt">CollapsibleScaffold/CollapsibleScaffold.kt at main · MinamiMunakata/CollapsibleScaffold</a></p><p>As a newbie to Jetpack Compose, I have faced many problems to implement this CollapsingToolbar. However, I also have found a lot of tips from android developers. I would like to say thank you to them.</p><p>Also, I hope my sample code would help someone.</p><p>Have a happy coding day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7783a0248755" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install the Java Development Kit (JDK) for Mac]]></title>
            <link>https://medium.com/@minamimunakata/how-to-install-the-java-development-kit-jdk-for-mac-441ec7864a88?source=rss-750e28045fd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/441ec7864a88</guid>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[jdk]]></category>
            <dc:creator><![CDATA[Minami Munakata]]></dc:creator>
            <pubDate>Mon, 11 Nov 2019 08:03:26 GMT</pubDate>
            <atom:updated>2019-11-11T08:03:26.359Z</atom:updated>
            <content:encoded><![CDATA[<h3>Uninstall any older versions of Java SDK.</h3><p>Open your terminal and see if you have the latest version of SDK.</p><pre>java -version</pre><p>If you find the older one, navigate to /Library/Java/JavaVirtualMachines .</p><p>Remove the directory whose name matches the following format:</p><p>~/JavaVirtualMachines/jdk[major].[minor].[macro]_[update].jdk</p><p>For example, to uninstall the JDK 8u6:</p><pre>sudo rm -rf jdk1.8.0_06.jdk</pre><h3>Download Java SDK</h3><p>Download the JDK .dmg file here: <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a></p><h3>Install the SDK for Mac</h3><ol><li>Double click the .dmg file.</li><li>Double click the package icon to launch the Install app.</li><li>Click <strong>Continue</strong>.</li><li>Click <strong>Install</strong>.</li><li>Enter the administrator user name and password and click <strong>Install Software</strong>.</li><li>After the software is installed, delete the .dmg file so that you can save disk space.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=441ec7864a88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Insensitive Tab Completion in Terminal on OSX]]></title>
            <link>https://medium.com/@minamimunakata/case-insensitive-tab-completion-in-terminal-on-osx-27d75aeb7464?source=rss-750e28045fd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/27d75aeb7464</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Minami Munakata]]></dc:creator>
            <pubDate>Sun, 07 Apr 2019 19:42:50 GMT</pubDate>
            <atom:updated>2019-04-07T19:42:50.379Z</atom:updated>
            <content:encoded><![CDATA[<p>Note to self: Run a code below and reopen it to try.</p><pre>echo “set completion-ignore-case On” &gt;&gt; ~/.inputrc</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27d75aeb7464" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Store Images for Use in README.md on GitHub]]></title>
            <link>https://medium.com/@minamimunakata/how-to-store-images-for-use-in-readme-md-on-github-9fb54256e951?source=rss-750e28045fd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fb54256e951</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Minami Munakata]]></dc:creator>
            <pubDate>Sun, 14 Oct 2018 00:34:50 GMT</pubDate>
            <atom:updated>2018-10-14T00:34:50.161Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you want to show screenshots or GIFs in master’s README.md as a demo for your project but don’t know where to store them?</p><p>Let’s create a new branch in your repository to store images so that you can avoid them being in the master working tree.</p><h3>Create a New Branch</h3><p>Inside your repository, run the commands below and create a new branch named media. (You can name it whatever you want.)</p><pre>$ git checkout --orphan media</pre><p>This command create and switch a new branch ‘media’. Creating a new branch by using --orphan allows you to start a new history totally disconnected from all the prior commits in the other branches. It means the first commit on the new branch will not have parents and will be the root of a new history.</p><p>NOTE: You can also create a new branch by using $ git branch media and then switch by using $ git checkout media. In this case, the new branch media has the logs of prior commits.</p><h3>Remove All Files From the New Branch</h3><p>Let’s remove all files from the working tree since we don’t want to store any files but images in the branch.</p><p>NOTE: Make sure that you are in the branch media before you run this command, otherwise everything that the working tree knows will be deleted. We want to clean up only media branch.</p><pre>$ git rm -rf .</pre><h3>Store Images into the Directory</h3><pre>$ cp /path/to/the/image/XXXX.png .</pre><h3>Add, Commit, and Push Images</h3><pre>$ git add .<br>$ git commit -m &quot;add XXXX.png into media branch&quot;<br>$ git push origin media:media</pre><p>NOTE: Assuming you have the README.md file on the master branch, do not forget to switch back to the master branch.</p><pre>$ git checkout master</pre><h3>Use the Images in README.md</h3><p>Now, It’s Time to Use them in README files.</p><p>Open your favorite editor and write codes to show them.</p><p>Try examples below to define image paths in README files.</p><pre>![alt text](https://github.com/YOUR_ACCOUNT_NAME/REPOSITORY_NAME/blob/media/XXXX.png)</pre><p><a href="https://help.github.com/articles/about-readmes/">GitHub</a> recommend that you use <strong>relative links</strong> with the ?raw=true instead of the absolute paths to ensure forked repo works correctly.</p><pre>![alt text](../media/XXXX.png?raw=true)</pre><h3>Update Your Remote Repo</h3><pre>$ git add --all<br>$ git commit -m &quot;add XXXX.png to README.md&quot;<br>$ git push origin master</pre><p>That’s all!!</p><p>These steps let you stored the images in the media branch and use them in README file in the master branch.</p><h3>References:</h3><ul><li>GitHubでREADMEにgif画像を表示する簡単な方法 <a href="https://qiita.com/takuya-ki/items/13e445096752b8181de7">https://qiita.com/takuya-ki/items/13e445096752b8181de7</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fb54256e951" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to take a screenshot on Android with ADB on Windows PC]]></title>
            <link>https://medium.com/@minamimunakata/how-to-take-a-screenshot-on-android-with-adb-on-windows-pc-d52f7603b1d2?source=rss-750e28045fd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d52f7603b1d2</guid>
            <category><![CDATA[adb]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Minami Munakata]]></dc:creator>
            <pubDate>Tue, 11 Sep 2018 02:18:24 GMT</pubDate>
            <atom:updated>2018-09-11T02:18:24.594Z</atom:updated>
            <content:encoded><![CDATA[<h4>Capture a screenshot without using the emulator.</h4><h3><strong>Set up the Android Debug Bridge:</strong></h3><ol><li>Download Android SDK Platform-Tools.<br><a href="https://developer.android.com/studio/releases/platform-tools">https://developer.android.com/studio/releases/platform-tools</a></li><li>Open Advanced System Settings on Windows.<br>(Open the start menu -&gt; type “ Advanced System Settings” -&gt; Select “View advanced system settings”)</li><li>Select the “Advanced” tab and click the “Environment Variables” button.</li><li>Double click on the Path variable under “System variable”.</li><li>Click “New” button.</li><li>Add the following to the end of the Variable value field.<br>Note: Don’t forget to replace the {USER_NAME} to your system username.</li></ol><pre>C:\Users\{USER_NAME}\AppData\Local\Android\sdk\platform-tools</pre><h3><strong>Capture a screenshot on Android device and save it to your PC using ADB:</strong></h3><ol><li>Open Command Prompt and run the following commands.</li></ol><pre>#Create a temporary folder to save a screenshot.<br>mkdir tmp</pre><pre>#Capture a screenshot and save to /sdcard/screen.png on your Android divice.<br>adb shell screencap -p /sdcard/screen.png<br><br>#Grab the screenshot from /sdcard/screen.png to /tmp/screen.png on your PC.<br>adb pull /sdcard/screen.png /tmp/screen.png<br><br>#Delete /sdcard/screen.png<br>adb shell rm /sdcard/screen.png<br><br>#open the screenshot on your PC. <br>open /tmp/screen.png</pre><h3>References:</h3><ul><li>MacでAndroid開発中に手軽にスクリーンショットを撮る <a href="https://qiita.com/masaibar/items/f1bdaecbbc7fbe4c98da">https://qiita.com/masaibar/items/f1bdaecbbc7fbe4c98da</a> #Qiita</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d52f7603b1d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>