<?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 Jeongwhan Choi on Medium]]></title>
        <description><![CDATA[Stories by Jeongwhan Choi on Medium]]></description>
        <link>https://medium.com/@jeongwhanchoi?source=rss-753b7e3ec735------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YWw9M3V98KFSFSKoE0oEew.jpeg</url>
            <title>Stories by Jeongwhan Choi on Medium</title>
            <link>https://medium.com/@jeongwhanchoi?source=rss-753b7e3ec735------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:47:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeongwhanchoi/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[LT-OCF: Learnable-Time ODE-based Collaborative Filtering]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jeongwhanchoi.medium.com/lt-ocf-learnable-time-ode-based-collaborative-filtering-5ccac17da145?source=rss-753b7e3ec735------2"><img src="https://cdn-images-1.medium.com/max/792/1*Z-Bs6YAYGnfi4DWPL9_08w.png" width="792"></a></p><p class="medium-feed-snippet">From Traditional Collaborative Filtering to Linear GCNs based and ODE-based Collaborative Filtering</p><p class="medium-feed-link"><a href="https://jeongwhanchoi.medium.com/lt-ocf-learnable-time-ode-based-collaborative-filtering-5ccac17da145?source=rss-753b7e3ec735------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jeongwhanchoi.medium.com/lt-ocf-learnable-time-ode-based-collaborative-filtering-5ccac17da145?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ccac17da145</guid>
            <category><![CDATA[neural-ode]]></category>
            <category><![CDATA[collaborative-filtering]]></category>
            <category><![CDATA[recommender-systems]]></category>
            <category><![CDATA[graph-convolution-network]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Thu, 30 Sep 2021 10:57:19 GMT</pubDate>
            <atom:updated>2024-08-28T05:21:53.116Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Useful Tips for Writing a Paper on Overleaf]]></title>
            <link>https://jeongwhanchoi.medium.com/useful-tips-for-writing-a-paper-on-overleaf-9be0c6b33d9c?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/9be0c6b33d9c</guid>
            <category><![CDATA[latex]]></category>
            <category><![CDATA[overleaf]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Sun, 12 Sep 2021 16:47:47 GMT</pubDate>
            <atom:updated>2021-09-12T16:47:47.266Z</atom:updated>
            <content:encoded><![CDATA[<h4>From helpful highlighting tips when collaborating, to working with tables, and how to avoid mistakes.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYKhh8ZDgSFCZ3uhWEBWSQ.png" /></figure><p>There are barriers to entry to be familiar with LaTeX. It will take you quite a while to get used to LaTeX. If you’re a researcher or graduate student writing a paper, you’re probably collaborating on LaTeX editor Overleaf. I also used LaTeX to write my Curriculum Vitae or course assignments to get used to LaTeX.</p><p>I would like to share several tips that were useful to me as I got used to LaTeX and recently wrote a paper using Overleaf. Perhaps the tips I share are useful when collaborating, or those that can help you minimize mistakes!</p><h3>Useful Packages for Highlighting</h3><p>In Overleaf, there is a space to enter comments in the review function, but this function does not appear in the compiled pdf, so it is sometimes inconvenient.<br>This means that the highlighted text is not visible in the pdf, so time is spent trying to figure out where to edit it.</p><h4>Strikethrough using cancel</h4><p>If you use \usepackage{cancel} , you can check the parts that need to be modified a little more usefully when working together.</p><p>The <strong>cancel</strong> package provides the following four modes.</p><ul><li>\cancel{text to cancel} draws a diagonal slash through its argument</li><li>\bcancel{text to cancel} draws a backslash through its argument</li><li>\xcancel{text to cancel} draws an X mark</li><li>\cancelto{&lt;value&gt;}{&lt;expression&gt;} draws a diagonal arrow through the &lt;expression&gt; pointing to the &lt;value&gt;</li></ul><p>Note: When you use \cancelto , it works only in the math-mode. For example:</p><pre>\cancelto{$0$}{$x$}</pre><p>The below screenshot is the usage of the commands:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJ6-7qb7X7FrfVSBxXyfAQ.png" /></figure><pre>\begin{itemize}<br>    \item \verb+\cancel{canceled text}+ : \cancel{canceled text}<br>    \item \verb+\bcancel{b-canceled text}+ : \bcancel{b-canceled text}<br>    \item \verb+\xcancel{x-canceled text}+ : \xcancel{x-canceled text}<br>    \item \verb+\cancelto{&lt;value&gt;}{&lt;expression&gt;}+ : $\cancelto{value}{expression}$<br>\end{itemize}</pre><p>I prefer to use the \cancelto command to mark the text need to correct. Here, I do not introduce <strong>urlem</strong> package, because there are conflicts with the style required by some conferences.</p><h4>Highlight with xcolor</h4><p>The simplest manner to use colors in your LaTeX document is by importing the package xcolor. The <strong>xcolor</strong> package is more flexible and supports a larger number of color models so that I recommend it. Below is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ew1M8n26KCGFGXOWkqkePg.png" /></figure><pre>\begin{itemize}<br>    \item This is the \textcolor{Red}{text color with the red color}.<br>    \item This is the \colorbox{Apricot}{color box with the apricot color}.<br>    \item This is the \fcolorbox{SkyBlue}{GreenYellow}{greenyellow color box with the skyblue frame}.<br>\end{itemize}</pre><p>Note: If you want to use color names such as Apricot or SkyBlue, you need to declare the dvipsnames option. You can add option like this \usepackage[dvipsnames]{xcolor} .</p><h3>Useful Tips for Working with Tables</h3><p>The two tips I introduce will help you reduce your mistakes such as omitting an ampersand(&amp;) without knowing it or entering an incorrect value.</p><h4>Select Multiple Lines by Dragging in Tables</h4><p>Overleaf supports the feature to use multiple cursors by dragging. This feature is really useful for working with tables. Adding ampersands is quite cumbersome, especially if you need to add a column. In this case, you can use this function to add and avoid the mistake of accidentally omitting the ampersand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*zSVswmAocgOPpZ3DCQl3Zg.gif" /><figcaption>Drag and add ampersand</figcaption></figure><p>The above gif is the case of adding a new column. As above, you can drag the line you want while holding down the option(⌥) key.</p><pre>⌥ + {drag the line you want to insert}</pre><h4>Useful Shortcuts for Increasing/Decreasing Numeric Values</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*34Da2HZ5tzTZpkrvMewq9Q.gif" /><figcaption>Increase or decrease a numeric value using ⌘ + ⌥ + {↑/↓} shortcut</figcaption></figure><pre>⌘ + ⌥ + {↑/↓}</pre><p>When you want to change the value. use command+option+arrow key! This shortcut has a function to sequentially increment or decrement a numeric value. This is much more efficient than simply modifying numeric values with a keypad. For example, when you want to modify 19 to 22, you have to correct both the tens’ and the one’s place. In this process, a mistake in entering the wrong value may occur. Because there is a 3 next to the number 2. A way to reduce these typing mistakes with fewer keystrokes is the shortcut I introduce.</p><p>It will reduce the mistake of entering the wrong value. <em>Perhaps this tip is a valuable shortcut you don’t know where.</em></p><h3>Further reading</h3><p>For more information see:</p><ul><li><a href="http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf">The <strong>xcolor</strong> package documentation</a></li><li><a href="https://www.overleaf.com/learn/latex/Using_colours_in_LaTeX#Further_reading">Using colours in LaTeX</a></li><li><a href="https://www.overleaf.com/learn/latex/Tables">Tables</a></li></ul><h3>Reference</h3><p>Strikethrough in LaTeX, <a href="https://jansoehlke.com/2010/06/strikethrough-in-latex/">https://jansoehlke.com/2010/06/strikethrough-in-latex/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9be0c6b33d9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tap Gesture Recognizer Issues in XCode Tutorial]]></title>
            <link>https://jeongwhanchoi.medium.com/tap-gesture-recognizer-issues-in-xcode-tutorial-b2420cdb8a49?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2420cdb8a49</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift-programming]]></category>
            <category><![CDATA[gesture-recognizer]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Fri, 02 Nov 2018 17:28:32 GMT</pubDate>
            <atom:updated>2021-07-31T07:48:44.356Z</atom:updated>
            <content:encoded><![CDATA[<p>In the tutorial provided by <a href="https://developer.apple.com/library/archive/referencelibrary/GettingStarted/DevelopiOSAppsSwift/WorkWithViewControllers.html#//apple_ref/doc/uid/TP40015214-CH6-SW1">Developer Apple</a>, there is a process of opening the Photo Library of opening the Photo Library with Tap Gesutre Recognizer. But as you proceed, you will be blocked by several barriers. I will briefly introduce the solution for the issue.</p><h4>GestureRecognizer not responding to tap</h4><ul><li>In case Tap Gesture is not recognized in Simulator despite following the tutorial.</li></ul><p>This case occurs because the default value of User Interaction Enabled is set to false. In the Story Board, you need to select the User Interaction Enabled item in Interaction of the Attributes Inspector as shown in the screenshot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*2sMXbi5wOvZWLglcSq9nsw.png" /></figure><h4>Old Version in Tutorial</h4><p>In the Tutorial, it would have been introduced as follows. However, since it is an older Swift version, a warning will appear like below.</p><pre>func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {<br>        <br>        // The info dictionary may contain multiple representations of the image. You want to use the original.<br>        guard let selectedImage = info[UIImagePickerControllerOriginalImage] as? UIImage else {<br>            fatalError(&quot;Expected a dictionary containing an image, but was provided the following: \(info)&quot;)<br>        }<br><br>	...<br>}</pre><p>If you change the above code as follows, you can use it according to the latest Swift version.</p><pre>func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {<br><br>        // The info dictionary may contain multiple representations of the image. You want to use the original.<br>        guard let selectedImage = info[.originalImage] as? UIImage else {<br>            fatalError(&quot;Expected a dictionary containing an image, but was provided the following: \(info)&quot;)<br>        }<br><br>	...<br>}</pre><p>Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2420cdb8a49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing Java EE Application]]></title>
            <link>https://jeongwhanchoi.medium.com/developing-java-ee-application-99a0880ddb8e?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/99a0880ddb8e</guid>
            <category><![CDATA[jsp]]></category>
            <category><![CDATA[tomcat]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Thu, 20 Sep 2018 14:07:04 GMT</pubDate>
            <atom:updated>2018-09-20T14:07:04.449Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating a project</h3><ol><li>Click Create New Project on the Welcome screen, or select <strong>File | New | Project</strong>. The New Project wizard opens.</li></ol><p>2. In the left-hand pane, select Java Enterprise.</p><p>3. Specify the <a href="http://en.wikipedia.org/wiki/Java_Development_Kit">JDK</a> that you are going to use (the Project SDK field): select one from the list, click New and select the JDK installation folder, or click Download JDK.</p><p>4. Specify your application server. (We’ll use Tomcat Server.) If Tomcat is not defined in IntelliJ IDEA yet, click New to the right of the Application Server field and select Tomcat Server.</p><p>In the Tomcat Server dialog, specify the Tomcat Server installation directory.</p><p>5. Under Additional Libraries and Frameworks, select the Web Application checkbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-J0udCzgiu2HIz1FFzcUQ.png" /></figure><p>Click Next.</p><p>6. Specify the name for your new project</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*er7qu873T-ZivfgeP4Kqnw.png" /></figure><p>Click Finish and wait while IntelliJ IDEA is creating the project.</p><h3>Exploring the project structure</h3><p>When the project is created, you’ll see something similar to this in the Project tool window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYdIRq__VYI2o0L-6CRLRw.png" /></figure><ul><li>JavaEEHelloWorld is a module folder (which in this case coincides with the project folder). The .idea folder and the file JavaEEHelloWorld.iml contain configuration data for your project and module respectively. The folder src is for your Java source code. The folder web is for the web part of your application. At the moment this folder contains the deployment descriptor WEB-INF/web.xml and the file index.jsp intended as a starting page of your application.</li><li>External Libraries include your JDK and the JAR files for working with Tomcat.</li></ul><h3>Developing source code</h3><p>Our application will be a single JSP page application. Its only function will be to output the text <em>Hello, World!</em></p><ol><li>Open index.jsp for editing: select the file in the Project tool window and press ⌘↓.</li><li>Between &lt;body&gt; and &lt;/body&gt; type Hello, World!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0SGBpS5tPCyctC8gA44NbQ.png" /></figure><p>The code at this step is ready.</p><h3>Running the application</h3><p>In the upper-right part of the workspace, click ▶︎.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*-GmbebpyRbEFaAODxJLyYQ.png" /></figure><p>After that, the Run tool window opens. IntelliJ IDEA starts the server and deploys the artifact onto it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b85PXctq2oOHrZ9EDqF0-g.png" /></figure><p>Finally, your default web browser starts and you see the application output Hello, World! there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2T5RHZPbVUO3pn-AHWQEKw.png" /></figure><h3>Modifying the code and observing the changes</h3><ol><li>In index.jsp, change Hello, World! to Hello!.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-9nmwOjQGxZO5PFlaXJJA.png" /></figure><p>2. In the Run tool window, click Update button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*noNHG2rbzIMJkaQDoTQiXg.png" /></figure><p>3. In the Update dialog, select Update resources and click OK. (For more information, see <a href="https://www.jetbrains.com/help/idea/updating-applications-on-application-servers.html#update_options">Application update options</a>.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*zQ9vtNPL7lvVUC_R4UiCXw.png" /></figure><p>4. Switch to the web browser and reload the page to see the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sD0HUoxIfwsRgSOoR_qcOw.png" /></figure><p>See also, <a href="https://www.jetbrains.com/help/idea/updating-applications-on-application-servers.html">Updating Applications on Application Servers</a>.</p><h3>Exploring a run configuration</h3><p>When creating the project, we specified Tomcat as an application server. As a result, IntelliJ IDEA created a run configuration for Tomcat.</p><p>When we performed the Run command (▶︎), we started that run configuration. Now let’s take a look at the run configuration and see how its settings map onto the events that we’ve just observed.</p><ol><li>Click the run configuration selector and select <strong>Edit Configurations</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*yyXI4SkrB9gZV_CwE1oV3g.png" /></figure><p>The Run/Debug Configurations dialog opens and the settings for the Tomcat run configuration are shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z_Rvd3EjfKMgV4KNXUJYzA.png" /></figure><p>The Before launch task list (in the lower part of the dialog) specifies that the application code should be compiled and the corresponding artifact should be built prior to executing the run configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aQpGXCayNIhJwg2fOfAfsA.png" /></figure><p>2. Select the <strong>Startup/Connection</strong> tab to see how the server is started in the run, debug and code coverage modes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dtssv3ZLpiSXE3_98xWczg.png" /></figure><p>3. Select the <strong>Deployment</strong> tab to see which artifacts are deployed after the server is started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Mnyro7YP9c2DwFa4G7x3g.png" /></figure><p>4. Go back to the <strong>Server</strong> tab.</p><p>The settings under <strong>Open browser</strong> specify that after launch (i.e. after the server is started and the artifacts are deployed onto it) the default web browser should start and go to the specified URL (http://localhost:8080/servlet_test_war_exploded).</p><p>The settings to the right of On ‘Update’ action specify that on clicking the reload button in the Run tool window the Update dialog should be shown and the Update resources option should be used by default. (The <a href="https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application.html#update_resources">last used update option</a> becomes the default one).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ye2vusLHQJ1MwNk7pskf2g.png" /></figure><p>5. Click OK.</p><h3>Exploring an artifact configuration</h3><p>When creating the project, we indicated that we were going to develop a web application. As a result, IntelliJ IDEA, among other things, created a configuration for building a web application <a href="https://www.jetbrains.com/help/idea/working-with-artifacts.html">artifact</a>. Let’s have a look at this configuration.</p><ol><li>Open the Project Structure dialog: <strong>File | Project Structure</strong> or ⌘;.</li></ol><p>2. Under <strong>Project Settings</strong>, select <strong>Artifacts</strong>.</p><p>The available artifact configurations are shown in the pane to the right under + and –. (There’s only one configuration at the moment.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UmxSgRG2mP3sLAJdUP_FDg.png" /></figure><p>The artifact settings are shown in the right-hand part of the dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gz1GFXX_vzIn7qQeaFHlhw.png" /></figure><p><strong>Type</strong>. The artifact type is Web Application: Exploded. This is a decompressed web application archive (WAR), a directory structure that is ready for deployment onto a web server.</p><p><strong>Output directory</strong>. The artifact, when built, is placed into &lt;project_folder&gt;/out/artifacts/JavaEEHelloWorld_war_exploded.</p><p><strong>Output Layout</strong>. The artifact structure is shown in the left-hand pane of the Output Layout tab.</p><p>The &lt;output root&gt; corresponds to the output directory. Other elements have the following meanings:</p><ul><li><strong>‘JavaEEHelloWorld’ compile output</strong> represents compiled Java classes whose sources are located in the src directory. These are placed into WEB-INF/classes in the output directory.</li><li>‘Web’ facet resources represent the contents of the webdirectory.</li></ul><h3>Reference</h3><p><a href="https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application.html#explore_run_config">https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application.html#explore_run_config</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99a0880ddb8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Servlets]]></title>
            <link>https://jeongwhanchoi.medium.com/introduction-to-servlets-aff4abc76ed9?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/aff4abc76ed9</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[servlet]]></category>
            <category><![CDATA[tomcat]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Sat, 15 Sep 2018 10:42:25 GMT</pubDate>
            <atom:updated>2018-09-15T10:42:25.763Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Servlet Works</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*vq8xl2SDfG02iya2PLjk0Q.png" /></figure><p>So just imagine we have a client machine there and we have a server right, so when you talk about this website world, a client sends a request to the server expecting a page right again. You can even ask for anything on Internet but let’s say you’re asking for a page now. This page can be a static page(it can be a tenant page). When it’s a static, it’s means which is already made and when you say dynamic, it means it will be built at one time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*D5MBlrCd52UM6TN-l6fcLw.png" /></figure><p>So let’s say a client sends the request which goes your server you already have a file, so that, file goes to the client. We called a request on response finish, but let’s say if you are asking for a page which will be built as one time, so a client sends a request to this server, now the server says “hold ond I don’t have any page with this lengths”. So you have to make that page(have to build a page).</p><p>That request goes to a helper application on the server, now this helper application is also called as web container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*6DTWErQqndiBvSg1jSBvVg.png" /></figure><p>In this web container you will be having servlet. Servlet is basically a Java file which can take the request from the client on the Internet and it can process that request it can provide you a response in the format of HTML page. So this servlet will convert your request and it will process the information. It will send the HTML page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*A-exUB5FfJqAicNnn-9zOg.png" /></figure><p>Let me just go back once again: some client-side requests to the server on the server side since it is a dynamic request it will go to your web container like Apache Tomcat, GlassFish, JBoss or WebSphere. In fact all these other servers those are called as app servers but they also have a feature of web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YY6ROOHWKV9Ik7QmFO6uAA.png" /></figure><p>When request goes to your Tomcat, Tomcat says “Hold on, I got a request now but that request is for abc.html. I don&#39;t have any pages like abc.html&quot;. So we have to build that page, so that request goes to a servlet. HOLD ON! Servelet will be having a Java name.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13abe631dbb501148958cda590261b05/href">https://medium.com/media/13abe631dbb501148958cda590261b05/href</a></iframe><p>For example when you create Java classes let&#39;s say I want to add two numbers again a basic example is going to add two numbers. I will be having the servlet name as AddServlet that means when a request for abc.html, the page which should be getting called is your servlet. How can we do that? Inside your container, you have a special file which is called as a deployment descriptor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*COVN55UDGkmCHySfT4w15Q.png" /></figure><p>So you have a file which is the deployment decriptor in which you mentioned for which request, which server should be called.</p><p>I mean in your Tomcat server you have maybe 50 to 60 servlets, so every servlet will be mentioned. I mean every request will map with one servlet. It may happen that you have multiple requests trying to access the same servlet. Everythin need to be configured in a file which is called as the deployment descriptor and the file name is web.xml.</p><p>REPEAT</p><ol><li>When clients of the request which goes to the server says “OK! This is the another page. Let’s send a request to the web container”</li><li>Web container will check. “This request will be mapped by this servlet that can be done with the Helper web.xml file&quot;.</li></ol><p>So you can seem to affect xml files we have two tags we have servlet tag and we have servlet mapping tag.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0245167476018449cb32fd85989688e4/href">https://medium.com/media/0245167476018449cb32fd85989688e4/href</a></iframe><p>The servlet tag you have to mention the class name, and the servlet mapping tag you have to mention the url-pattern. This URL we need to call that particular servlet. But hold on, how do we get the servlet now?</p><p>When you want to create a servlet, we have to create a special class which extends HTTPServlet since we want to servlet features. This HTTPServlet will provide you all the features which you need.</p><p>All these feautres means it should be able to take the requested server, it should be processing the request, and it should be sending the response.</p><ol><li>Take the request</li><li>Process the information</li><li>Send the response</li></ol><p>That response will be in HTML format. That HTML page is a dynamic page goes from your server to your client machine in the format of response object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WvTvcb-74taFlHDaQ8J5g.png" /></figure><p>Let’s say we try to avoid XML. In the Servlet 3.0, we got a new feature which is called as annotation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*d7qNd1JCXiIzOFX5lacMTg.png" /></figure><p>So we can use annotations on your servlet so you don’t have to use XML file. You can do your mapping using annotations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aff4abc76ed9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Apache Tomcat on Mac OS X]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jeongwhanchoi.medium.com/how-to-install-apache-tomcat-on-mac-os-x-605b1cb55252?source=rss-753b7e3ec735------2"><img src="https://cdn-images-1.medium.com/max/1722/1*C8SH8xoqTiaGQ2iXbC0B7A.png" width="1722"></a></p><p class="medium-feed-snippet">Install Tomcat</p><p class="medium-feed-link"><a href="https://jeongwhanchoi.medium.com/how-to-install-apache-tomcat-on-mac-os-x-605b1cb55252?source=rss-753b7e3ec735------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jeongwhanchoi.medium.com/how-to-install-apache-tomcat-on-mac-os-x-605b1cb55252?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/605b1cb55252</guid>
            <category><![CDATA[apache-tomcat]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[tomcat]]></category>
            <category><![CDATA[installation]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Sat, 15 Sep 2018 07:52:48 GMT</pubDate>
            <atom:updated>2018-09-15T07:52:48.819Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Intro to Support Vector Machine]]></title>
            <link>https://jeongwhanchoi.medium.com/support-vector-machine-f33003908884?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/f33003908884</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[vladimir-vapnik]]></category>
            <category><![CDATA[support-vector-machine]]></category>
            <category><![CDATA[lagrange-multiplier]]></category>
            <category><![CDATA[svm]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Fri, 14 Sep 2018 11:40:05 GMT</pubDate>
            <atom:updated>2021-09-13T09:15:00.597Z</atom:updated>
            <content:encoded><![CDATA[<h3>Decision Boundary</h3><blockquote><strong>WHEN STUCK, SWITCH TO ANOTHER PERSPECTIVE</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCK3GS3TZKBpl02XeccA3Q.png" /></figure><h3>Support Vector Machine</h3><p>Early ’90s <a href="https://en.wikipedia.org/wiki/Vladimir_Vapnik">Vladimir Vapnik</a> introduced the ideas, <a href="https://en.wikipedia.org/wiki/Support_vector_machine">SVM(Support Vector Machine)</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*aHCvZsBo7g9se6shHuyKtQ.png" /></figure><ul><li>If we want to distinguish between ‘+’ and ‘-’ samples, how should we divide it?</li><li>If you draw a line and divide it, what line should it be?</li></ul><p>The easiest and most intuitive answer is probably the following line (dotted line) with some lines that use the widest distance between the ‘+’ and ‘-’ samples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*hv2ZJ9pjKj5yXP2svU578g.png" /></figure><p>The most intuitive way is putting in <strong>the widest street</strong> that separates the positive samples from the negative samples. Therefore to separate the fittest way is to find <em>the widest street approach(street is wide as possible)</em>.</p><p>SVM is the process of solving the above question. I will introduce how to set up and solve problems from this point of view.</p><h3>1. Decision Rule</h3><p>Let’s think about <em>“what should be the decision rule to decide the decision boundary?”</em></p><ul><li>The <em>w⃗</em> is perpendicular to the median line of the street.</li><li>The ​<em>u⃗</em> is an unknown sample which is left side or right side of the street.</li></ul><p>What we are wondering is whether the unknown sample, <em>u⃗</em> ​, belongs on the righ or left side of the street.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/92/1*ymBhvyLugh8ZrqeGvo9Njw.png" /></figure><p>One way we can do this is to make sure that the value is greater than the constant <em>c </em>after we used inner product of ​<em>w⃗</em> and <em>u⃗</em>​. In the range not exceeding the generality, it can be expressed as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*lrYxkoCTfPXAqqsJHNxi4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*8rUlZakhw9TK-NzRrvlFoA.png" /></figure><p>Logic is very simple. It is easy to understand that the inner product is to project <em>u⃗ </em>to <em>w⃗</em>​ in the above plot, and it is easy to think that the length is long and it goes to the right if it goes beyond the boundary and to the left if it is shorter.</p><p>Therefore, the above equation <strong>(1)</strong>​ becomes our <strong>decision rule</strong>. It is also the first tool we need to understand SVM, but there are still a lot of deficiencies. Yet, we have no idea what ​<em>w⃗</em> should be set in that formula or what <em>b</em>​ should be set. We but can only know that <em>w⃗</em> ​ is orthogonal to the median line of the street we want.</p><p>Unfortunately, such a ​<em>w⃗</em> could be drawn in a wide variety of ways, so the judgment I can make here is still lacking of constraints. So what we are going to do is to add several constraints to the formula so that we can compute <em>w⃗</em>​ and ​<em>b</em>​.</p><h3>2. Generalization</h3><h4>Design and add additional constraints</h4><p>Let’s say ​<em>x₊</em> is a positive(+) sample and <em>x₋</em>​ is a negative(-) sample.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*IFV8wljlaaRJsd_xPAUUDQ.png" /></figure><p>Dealing with two expressions is annoying. So we will design a variable here and generalize it to one expression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*lu8W_dFS7wIzbNKguogwmA.png" /></figure><p>Now let’s multiply this <em>yᵢ</em>​ by the formula above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*ei4DoO1sDpeiFGIn62meow.png" /></figure><h4>Generalization</h4><p>In other words, the result of the formula for two samples, ‘+’ and ‘-’, that will be on the boundary (gray lines; gutters).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*GrCthxOKXTiVnV1DtQWlSw.png" /></figure><h3>3. Width</h3><p>What we want to do is to set a line and to maximize the distance between the resulting ‘+’ and ‘-’ samples. Then we have to think about how we can create ‘street’.</p><h4>What’s the width of the street?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*x67eCm_L-zkjnlhAVM5cjg.png" /></figure><p>If I had a unit vector in that direction, then I could just dot the two together, that would be the width.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*cQlTSQGVdXX6-32PbysdEQ.png" /></figure><p>The equation ​<strong>(4)</strong> above is the third tool we need to understand SVM.</p><h4>Optimization techniques</h4><p>The goal of maximizing <strong>WIDTH</strong>​ can be described as follows:</p><ul><li>Quadratic Programing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*d_BnQS8k70rgz-ftuOJjOQ.png" /></figure><ul><li>Lagrange Multiplier Method (1802)</li></ul><p>We can maximize or minimize without thinking about the constraints anymore. In the below equation, the<em> α </em>is the Lagrange multiplier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*4CDpZcULkgKQrBG6srqp5w.png" /></figure><p>Differentiation perspective to ​<em>w⃗</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*ZcNZuzHzEBtg41WsWSJ5aw.png" /></figure><p>Set to zero:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*WQNcp_sgrY9khWOwIl34Jg.png" /></figure><p>It tells us that the <em>w⃗</em>​ is a linear sum of samples (all or some). The ​<em>w⃗</em> is going to be a linear some of these vectors(in the sample set, because for some <em>α</em>​ will be 0)</p><p>Differenciation perspective to ​<em>b</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*CYp9Eg-Mcj74UxphMA8qiw.png" /></figure><p>Set to zero:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*6GCH7IgtimarYZXj8FSa6A.png" /></figure><p>Now, using the equations we obtained here, we will plug in ​ for the equation <strong>(5) </strong>for <em>α</em>​ and simplify the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*iKVsPn1YH1hy_BF9b51udQ.png" /></figure><p>because the ​<em>∑ᵢαᵢyᵢ</em> is zero:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*BwXitm4chh0VZbB-FZwbUg.png" /></figure><p>bind the expression:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*2hzqjEwCisBRiDpJDQCzZA.png" /></figure><p>So now everything is over with maximization problem for ​<em>α</em>. By solving this problem and obtaining <em>α</em>​, ​ <em>w⃗ </em>can be obtained by using the equation <strong>(6)</strong>​ and then <em>b</em>​ can also be obtained through equation <strong>(3)</strong>​. Equation <strong>(3)</strong> ​ means that the value of ​ <em>α</em> is not zero, which means that the corresponding <em>x⃗</em>​ is the sample defining the boundary line. In SVM, these samples are called “support vector”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*NAGGo2inxu1ZrPRwM2xEzg.png" /></figure><p>I want to find what this maxization depends on with respect these sample vectors. What I’ve discovered is that the optimization depends only on the dot product of pairs of samples. So now, my decision rule with this expression for ​ <em>w⃗ </em>is going to be <em>w⃗</em> ​ plugged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*XudLDFjYqJ5U1KKRegFMaQ.png" /></figure><p>The decision rule depends only on the dot product of these sample.</p><p>For the last, the <strong><em>L</em></strong>​ equation has very good properties when it is expanded. For ​<em>α</em>, the first term is linear and the second term is quadratic, so any off-the-shelf algorithm can be used to solve <em>α</em> using the quadratic programming technique.</p><p>In other words, unlike neural networks, this SVM does not have to worry about falling into local minima at all. So the solution obtained with SVM is <strong>“theoretically guaranteed to be the best solution”</strong>.</p><p>Therefore, decision boundaries defined by support vectors are the most optimal boundaries, and when a new sample comes in with only the data that we have, we have found a decision rule that can best generalize.</p><h3>Reference</h3><ul><li><a href="https://www.youtube.com/watch?v=_PwhiWxHK8o">Patrick Winston’s MIT Lecture</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f33003908884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install tmux on OSX and Basics Commands for Beginners]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jeongwhanchoi.medium.com/install-tmux-on-osx-and-basics-commands-for-beginners-be22520fd95e?source=rss-753b7e3ec735------2"><img src="https://cdn-images-1.medium.com/max/1138/1*mxgTUJFR-MQOyzcgWiJdJw.png" width="1138"></a></p><p class="medium-feed-snippet">tmux is a Terminal MUltipleXer.</p><p class="medium-feed-link"><a href="https://jeongwhanchoi.medium.com/install-tmux-on-osx-and-basics-commands-for-beginners-be22520fd95e?source=rss-753b7e3ec735------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jeongwhanchoi.medium.com/install-tmux-on-osx-and-basics-commands-for-beginners-be22520fd95e?source=rss-753b7e3ec735------2</link>
            <guid isPermaLink="false">https://medium.com/p/be22520fd95e</guid>
            <category><![CDATA[tmux]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Jeongwhan Choi]]></dc:creator>
            <pubDate>Fri, 14 Sep 2018 05:58:24 GMT</pubDate>
            <atom:updated>2021-04-17T06:02:56.182Z</atom:updated>
        </item>
    </channel>
</rss>