<?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 Parsinta on Medium]]></title>
        <description><![CDATA[Stories by Parsinta on Medium]]></description>
        <link>https://medium.com/@parsinta?source=rss-20c5f83f0876------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bXp1HPnKW-asPP6r.jpg</url>
            <title>Stories by Parsinta on Medium</title>
            <link>https://medium.com/@parsinta?source=rss-20c5f83f0876------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 13:11:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parsinta/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[The way speech in minutes in PHP]]></title>
            <link>https://medium.com/@parsinta/the-way-speech-in-minutes-in-php-d366c8d5c0db?source=rss-20c5f83f0876------2</link>
            <guid isPermaLink="false">https://medium.com/p/d366c8d5c0db</guid>
            <category><![CDATA[speechinminutes]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[post]]></category>
            <dc:creator><![CDATA[Parsinta]]></dc:creator>
            <pubDate>Thu, 03 Jan 2019 01:36:11 GMT</pubDate>
            <atom:updated>2019-01-03T23:18:29.102Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NAk1pDvKRAP_ruaivtXNOw.jpeg" /></figure><p>If you see the top of image, it may help you out what actually I mean, look at the footer of the card, there’s time published and also the how long we spend the time to read a post.</p><p>First I need to tell you, if you visit <a href="http://www.speechinminutes.com/">http://www.speechinminutes.com/</a> it will show you the average time for any characters you fill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmAyH_-1IQwyNEkN5B4avQ.png" /><figcaption>Screenshot from the <a href="http://www.speechinminutes.com/">http://www.speechinminutes.com/</a></figcaption></figure><p>Now let’s hacking begin.</p><p>We know, if we wanna count a word in php was like <strong>str_word_count</strong> then, if we want to escaping the html tags, we can use <strong>strip_tags</strong>. So now, we think of 1 minute speech 130 words.<br>All we need to do is:</p><pre>&lt;?php</pre><pre>$count = str_word_count(strip_tags($post-&gt;body));<br>$d = $count / 130;</pre><p>Wait a minute, this is not the integer value, we actually want it to be converted, we can do <strong>ceil</strong> function of php to do so like this:</p><pre>intval(ceil($d));</pre><p>So the complete code will like this</p><pre>&lt;?php</pre><pre>$count = str_word_count(strip_tags($post-&gt;body));<br>$d = $count / 130;<br>$i = intval(ceil($d));<br>return $i;</pre><p>If you are using framework like laravel, you do it in your model like so.</p><pre>public function timeOfRead()<br>{<br> $count = str_word_count(strip_tags($this-&gt;body));<br> $d = $count / 130;<br> $i = intval(ceil($d));<br> return $i;<br>}</pre><p>Then when you want to show the time of read, you just call the function like <strong>$post-&gt;timeOfRead()</strong>.</p><p>Hope this can help you out and answer your question. I am Irsyad, See you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d366c8d5c0db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Install MySQL 5.7 in macOS]]></title>
            <link>https://medium.com/@parsinta/lets-install-mysql-5-7-in-macos-bf7e0849fe7a?source=rss-20c5f83f0876------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf7e0849fe7a</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[mysql57]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Parsinta]]></dc:creator>
            <pubDate>Thu, 03 Jan 2019 00:25:21 GMT</pubDate>
            <atom:updated>2019-01-05T23:50:38.233Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OheY102XSWJshgJEwWXb9A.jpeg" /></figure><p>In this tutorial, I will show you how exactly the way you install <strong>mysql 5.7</strong> in your <strong>macOS</strong>.</p><p>So the first thing you need to do is you have to make sure that brew has been installed in your machine. Otherwise you can do now like so</p><pre>/usr/bin/ruby -e “$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/master/install">https://raw.githubusercontent.com/Homebrew/install/master/install</a>)&quot;</pre><p>When you’ve installed, now we can continue to install the core that we are talking about.</p><p>Now let’s start to see the info of mysql we want by running up this command:</p><pre>brew info mysql@5.7</pre><p>I’ll expect the output like this <strong>mysql@5.7: stable 5.7.24 (bottled) [keg-only]</strong>. If so, now you can install the mysql itself by run this command:</p><pre>brew install mysql@5.7</pre><p>After you finish it, now we need to install the brew services by running this command:</p><pre>brew tap homebrew/services</pre><p>Then we can try to start mysql service by doing so:</p><pre>brew services start mysql@5.7</pre><p>Then please make sure that service has been ran.</p><pre>brew services list</pre><p>You’re done ? Yes if you’re fresh installed your new OS, but if you’re not, you need to link the brew to the mysql you’ve just installed, to do that. All you need to do is link it like so:</p><pre>brew link mysql@5.7 — force</pre><p>Now, you need to make sure that version is the same with you’ve just install, check this out with: <strong>mysql -V</strong>, at this time of writing, it will show you like this <strong>5.7.24</strong>.</p><p>By the default, brew will install you the mysql without a password credentials, but you can modify it by running this command:</p><pre>mysqladmin -u root password ‘your_secret_password’</pre><blockquote>Make sure you type the password with the single quote. But if you’re in local environment, just let it go(without password).</blockquote><p>Now you can manage your database by using anything you want, but I highly recommend you to use <a href="https://www.sequelpro.com/">SequelPro</a>.</p><p>That’s it for today! Happy hacking :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf7e0849fe7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>