<?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 Sarath@Tech on Medium]]></title>
        <description><![CDATA[Stories by Sarath@Tech on Medium]]></description>
        <link>https://medium.com/@sarathuch?source=rss-288c8e7473f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VZjOfJiNEExi_YaeIU3z1w.jpeg</url>
            <title>Stories by Sarath@Tech on Medium</title>
            <link>https://medium.com/@sarathuch?source=rss-288c8e7473f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:40:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sarathuch/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[Product Managers: Are You Really the CEO of Your Product?]]></title>
            <link>https://medium.com/@sarathuch/product-managers-are-you-really-the-ceo-of-your-product-bf2b9a9d3b6a?source=rss-288c8e7473f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf2b9a9d3b6a</guid>
            <dc:creator><![CDATA[Sarath@Tech]]></dc:creator>
            <pubDate>Sat, 26 Aug 2023 16:41:52 GMT</pubDate>
            <atom:updated>2023-08-26T16:41:52.381Z</atom:updated>
            <content:encoded><![CDATA[<p>As a product manager and experienced startup founder myself, I am so blessed to work with many great people in the industry from e-commerce to O2O, last-mile logistics, on-demand service, and lately in FinTech. I used to hear from some colleagues who constantly proclaimed and thought they were the CEO of their product, but through their daily work and actions, I believe that makes them confused.</p><p>They choose to sit in the office, writing dictation on confluence which they call PRD, have some calls with indirect target users, or execute based on their assumptions and the roadmap they had defined earlier in the year. Rather than thinking of building a minimal viable product; instead, they defined subsets of features and functionalities that are good to have rather than must-haves in each sprint planning. Some product features are built ready to find problems. The worst thing, each product feature is released without proper KPIs &amp; and measurement of success looks like.</p><p>But being the CEO of a product is more than just building it. It’s about having a deep understanding of the problem you’re trying to solve, finding the strong value proposition behind your product, and communicating and empathizing with your target users on a daily basis. Understanding CaC or GTM is also important to consider because it helps them understand and balance their decision.</p><p>It’s also about being willing to fail. Trial and error is essential to product development, but you need to be willing to learn from your mistakes and iterate quickly.</p><p>If you’re not willing to do all of these things, then you’re not really the CEO of your product. You’re just a builder.</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=product&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7101238881030701056">#product</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=leandevelopment&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7101238881030701056">#leandevelopment</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=productmanagement&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7101238881030701056">#productmanagement</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=mvp&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7101238881030701056">#mvp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf2b9a9d3b6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rename Column in Laravel 4.2 / 5.0]]></title>
            <link>https://medium.com/@sarathuch/rename-column-in-laravel-4-2-5-0-fa1646367ca1?source=rss-288c8e7473f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa1646367ca1</guid>
            <dc:creator><![CDATA[Sarath@Tech]]></dc:creator>
            <pubDate>Wed, 25 Feb 2015 04:41:59 GMT</pubDate>
            <atom:updated>2023-09-22T06:23:34.620Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*jW--g60BQY30x5Nr_myUOg.png" /></figure><p>This morning, I tried to rename the column name in a schema via the Laravel Migration command because that column did not make sense to its purpose. I named it as data_type, but in reality, that field is used to store user roles instead.</p><p>I started with a basic command below to generate a migration file in Migration dir:</p><pre>$ php artisan migrate:make rename_data_type_column</pre><p>In the migration file, I wrote this code and something surprised me! I will tell you after the code below.</p><pre>public function up() { <br>  Schema::table(‘words’, function(Blueprint $table) { <br>    $table-&gt;renameColumn(‘data_type’, ‘user_role’);<br>  });<br>}</pre><p>In that code, it commands the engine to rename the existing field <strong>data_type</strong> to the new field, <strong>user_role.</strong></p><p>Unfortunately in Laravel 4.2 or v.5, it doesn’t work well. There will be errors after running a command line</p><pre>php artisan migrate</pre><p><em>Class ‘Doctrine\DBAL\Driver\PDOMySql\Driver’</em> that error caused by the Laravel can not find the Doctrine library in the framework.</p><p><strong>What is Doctrine?</strong><br>Doctrine is the Object Relational Mapper(ORM) which sits on the top of the PHP Database Abstraction Layer. It offers many great methods for interacting with Databases from the PHP code without working directly on SQL queries. In Laravel Object Relational Mapping is widely used for migrating schemas.</p><p>Therefore, you need to add the Doctrine lib —<strong>“doctrine/dbal”: “~2.3&quot; </strong>on the <strong>require</strong> block in <strong>composer.json</strong></p><pre>“require”: { “laravel/framework”: “4.2.*”, “laravelbook/ardent”: “dev-master”, “cartalyst/sentry”: “2.1.*”, “way/database”: “dev-master”, “doctrine/dbal”: “~2.3&quot;<br>},</pre><p>Finally, just switch back to your terminal and type: <strong>composer update </strong>which will tell the composer to retrieve the new suggested library from the Doctrine Repository.</p><p>Alright, you can retry the migration command again</p><pre>php artisan migration</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa1646367ca1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Problem with UTF-8 to Khmer Unicode]]></title>
            <link>https://medium.com/@sarathuch/problem-with-utf-8-to-khmer-unicode-c339829f3735?source=rss-288c8e7473f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c339829f3735</guid>
            <dc:creator><![CDATA[Sarath@Tech]]></dc:creator>
            <pubDate>Sun, 22 Feb 2015 06:38:34 GMT</pubDate>
            <atom:updated>2023-09-22T06:13:50.486Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*kG04UUfjZm9EsIYybUdAZQ.png" /></figure><h3>Problem with Inserting Khmer characters UTF-8 format to MySQL DB</h3><p>Improved blog post paragraph:</p><p>I recently spent almost two hours trying to insert Khmer characters (which are in UTF-8 format) into the word table on the MySQL server. I wrote exception handling to catch when insertion failed, but it was always true. I checked the schema field, the code, and the HTML meta tag, but I couldn’t find the solution.</p><p>Finally, I talked to my friend Rithy, and he helped me figure it out. The problem is that MySQL doesn’t support inserting UTF-8 directly into a table. I needed to encode the text into Unicode format before inserting it.</p><p>Here’s how I did it. The snippet code is in Laravel V4.2.</p><h4>Update method:</h4><pre>$record = Input::all();<br>$record[‘wrong_word’] = utf8_encode($record[‘wrong_word’]);<br>$record[‘right_word’] = utf8_encode($record[‘right_word’]);</pre><p>Look at the code above. Firstly I retrieve all the values which passes through HTTP and assign to an array variable, $record.</p><p>Then I started encoding each element from UTF-8 to Unicode format. Finally, I assigned the its value to the source variable.</p><p>Bingo! We did it. After that you can save that record into DB as normal.</p><h4>Retrieve Data to Edit</h4><pre>$record = Word::find($id);<br>$record[‘rw’] = utf8_decode( $record[‘rw’] );<br>$record[‘ww’] = utf8_decode( $record[‘ww’] );</pre><p>Firstly, I find record by injecting ID into the method find. It will return the record in array object. After that, we just only need to decode from Unicode format to UTF-8 which is fully support on the web browser.</p><p>That’s all!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c339829f3735" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>