<?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 Omolara Adejuwon on Medium]]></title>
        <description><![CDATA[Stories by Omolara Adejuwon on Medium]]></description>
        <link>https://medium.com/@_larikraun?source=rss-bf87f3641b6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RSx8WV0VmCsHTg2h4j-mZw.jpeg</url>
            <title>Stories by Omolara Adejuwon on Medium</title>
            <link>https://medium.com/@_larikraun?source=rss-bf87f3641b6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 13 Nov 2026 21:36:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@_larikraun/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[Reformat Code in Xcode (8.2.1)]]></title>
            <link>https://medium.com/larikrauns-blog/reformat-code-in-xcode-8-2-1-4900f3e41ec5?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4900f3e41ec5</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Tue, 21 Mar 2017 14:17:15 GMT</pubDate>
            <atom:updated>2017-03-21T14:17:15.695Z</atom:updated>
            <content:encoded><![CDATA[<p>For someone who has been spoilt by IDEs like Android Studio and PHPStorm. Their basic key commands make development so much easier.</p><p>Currently, to the best of knowledge, many basic commands and key combinations that I use everyday are missing in Xcode. Speak of Duplicate Lines, Reformat code and many more.</p><p>Before now, to reformat code in Xcode, I would<em> </em><em>Select All, </em><em>Cut and </em><em>Paste</em>. It works to a reasonable level. But each time, I find myself using shift + alt + L to still perform the same operation.</p><p>Then, I decided to <em>kuku </em>create the Key combinations to save me the headache each time. This is how I did it.</p><ul><li>Open the /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist file.</li><li>Add the following lines and be sure not to break the tags. You can study this file more to understand what these tags mean.</li></ul><pre>&lt;key&gt;Customized&lt;/key&gt;<br>   &lt;dict&gt;<br>    &lt;key&gt;Reformat Code&lt;/key&gt;<br>    &lt;string&gt;selectAll:, copy:, paste:&lt;/string&gt;<br>  &lt;/dict&gt;</pre><p>Let me explain:</p><p>&lt;key&gt;Reformat Code&lt;/key&gt; means that the name of our key binding will be Reformat Code.</p><p>The string tags tells it what to do. So, I told it to Select All, Copy and Paste again. Just the same I would do it before.</p><ul><li>Restart your Xcode.</li></ul><p>In Preferences, select Key Bindings. Search for ‘Reformat Code’ — what we wrote as the key node up there. You can put combinations of keys you want. Just be sure it has no conflict with the existing ones.</p><p>By now, you are good to go.</p><p>If there are smarter ways of reformatting code, I will like to know.</p><p>If you have some other short commands you would like to add to your keybindings, it is just the same simple steps as this one.</p><p>Versions/A/Resources/IDETextKeyBindingSet.plist file.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4900f3e41ec5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/larikrauns-blog/reformat-code-in-xcode-8-2-1-4900f3e41ec5">Reformat Code in Xcode (8.2.1)</a> was originally published in <a href="https://medium.com/larikrauns-blog">Larikraun’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android and AWS Mobile SDK]]></title>
            <link>https://medium.com/@_larikraun/android-and-aws-mobile-sdk-96436314b4f9?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/96436314b4f9</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Fri, 03 Jun 2016 14:18:25 GMT</pubDate>
            <atom:updated>2017-02-11T18:32:49.360Z</atom:updated>
            <content:encoded><![CDATA[<p>Amazon Web Service (AWS) is an household name. So, this blog post is not about how much sense AWS makes. This is all about how you can use AWS Mobile SDK in your Android application. I feel it’s more convenient for me compared to using the REST APIs.</p><p>For this tutorial, I am going to demonstrate how to store and retrieve images from your Amazon s3 bucket using the SDK. This tutorial assumes you have an AWS account.</p><p>The first thing to do is to include the needed SDKs in your project. To achieve this, we add the following dependencies.</p><pre><br>dependencies {<br> compile ‘com.amazonaws:aws-android-sdk-core:2.+’ <br> compile ‘com.amazonaws:aws-android-sdk-s3:2.+’<br>}</pre><p>It is not encouraged to embed credentials in the application, we need to get an IDENTITY POOL ID using the Amazon Cognito Identity service. You can get that done by following the steps described in the <a href="http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/getting-started-store-retrieve-s3-transferutility.html">documentation</a>.</p><p>After this is done, we can gallantly continue to the Android implementation.</p><p>First, we update our manifest file to request for some permissions.</p><pre>&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;<br>&lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot;/&gt;</pre><p>You can insert the following snippet where you need to trigger the event that handles the connection to AmazonClient, creation and retrieval of buckets and objects.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07b58ce7d17ce840da6f764bca2d894a/href">https://medium.com/media/07b58ce7d17ce840da6f764bca2d894a/href</a></iframe><p><em>Be sure not to run the code on the main UI thread.</em></p><p>If you have done everything right, you should be happy with the results right now. Feel free to leave a comment if there is a need to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96436314b4f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android and AWS Mobile SDK]]></title>
            <link>https://medium.com/larikrauns-blog/android-and-aws-mobile-sdk-448d1a257ae1?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/448d1a257ae1</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Fri, 03 Jun 2016 14:18:25 GMT</pubDate>
            <atom:updated>2017-02-11T20:32:00.119Z</atom:updated>
            <content:encoded><![CDATA[<p>Amazon Web Service (AWS) is an household name. So, this blog post is not about how much sense AWS makes. This is all about how you can use AWS Mobile SDK in your Android application. I feel it’s more convenient for me compared to using the REST APIs.</p><p>For this tutorial, I am going to demonstrate how to store and retrieve images from your Amazon s3 bucket using the SDK. This tutorial assumes you have an AWS account.</p><p>The first thing to do is to include the needed SDKs in your project. To achieve this, we add the following dependencies.</p><pre>dependencies {<br>    compile &#39;com.amazonaws:aws-android-sdk-core:2.+&#39; <br>    compile &#39;com.amazonaws:aws-android-sdk-s3:2.+&#39;<br>}</pre><p>It is not encouraged to embed credentials in the application, we need to get an IDENTITY POOL ID using the Amazon Cognito Identity service. You can get that done by following the steps described in the <a href="http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/getting-started-store-retrieve-s3-transferutility.html">documentation</a>.</p><p>After this is done, we can gallantly continue to the Android implementation.</p><p>First, we update our manifest file to request for some permissions.</p><pre>&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;<br>&lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot;/&gt;</pre><p>You can insert the following snippet where you need to trigger the event that handles the connection to AmazonClient, creation and retrieval of buckets and objects.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07b58ce7d17ce840da6f764bca2d894a/href">https://medium.com/media/07b58ce7d17ce840da6f764bca2d894a/href</a></iframe><p>Be sure not to run the code on the main UI thread.</p><p>If you have done everything right, you should be happy with the results right now. Feel free to leave a comment if there is a need to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=448d1a257ae1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/larikrauns-blog/android-and-aws-mobile-sdk-448d1a257ae1">Android and AWS Mobile SDK</a> was originally published in <a href="https://medium.com/larikrauns-blog">Larikraun’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dead and Injured on IOS]]></title>
            <link>https://medium.com/@_larikraun/dead-and-injured-on-ios-45b5d2b59fd6?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/45b5d2b59fd6</guid>
            <category><![CDATA[wial]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Fri, 08 Apr 2016 12:21:36 GMT</pubDate>
            <atom:updated>2017-02-11T19:03:13.807Z</atom:updated>
            <content:encoded><![CDATA[<p>Who remembers the game “dead-and-injured”? I don’t remember what the real name is.</p><p>I have been playing the game with my colleague on paper and I decided to experiment it on IOS just to put everything I have been learning and reading into good use.</p><p><em>What in this life is dead-and-injured?</em></p><p>It is played between two players. Both players have their secret numbers. The secret numbers are picked by following these rules:</p><ul><li>The numbers have an agreed number of digits, usually four.</li><li>The digits of the number must be unique i.e no repetition</li></ul><p>Therefore, 3456 is VALID. 3436 is INVALID because 3 is repeated.</p><p>Player A tries to decode the player B’s secret number by using the player’s responses to guess the next set of digits. The response is in the format described below:</p><p>Situation Response When digits of the guessed number exactly match the digits of the secret number i.e the same positions Dead When digits of the guessed number exist in the secret number but the positions don’t match Injured</p><p>For example, my secret number is 5678.<br>The following guesses will give the corresponding responses.</p><p>Guess Response 1234 0 dead, 0 injured 4537 2 injured, 0 dead 5479 0 dead, 2 injured 5678 All dead</p><p>As simple as the game appears, it needs logic and reasoning to be able to crack the secret number in few steps.</p><p>You can find the demo of the IOS app in the video below. Source code can be made available on request.</p><p>Shout out to <a href="https://medium.com/u/d738dda9be4e">Adeyinka Adediji</a> (<a href="http://twitter.com/tdscientist">@tdscientist</a>). He worked on the UI while we both worked on the logic.</p><p>PS: I forgot to demo the part where the validation of the numbers was done.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fembed%2Fz1OZsH9IGVc%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttp%2Fwww.youtube.com%2Fwatch%3Fv%3Dz1OZsH9IGVc&amp;image=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttps%2Fi.ytimg.com%2Fvi%2Fz1OZsH9IGVc%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b26913b949676ea2da78fa07057e5005/href">https://medium.com/media/b26913b949676ea2da78fa07057e5005/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45b5d2b59fd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dead and Injured on IOS]]></title>
            <link>https://medium.com/larikrauns-blog/dead-and-injured-on-ios-3da8617ebef4?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3da8617ebef4</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[wial]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Fri, 08 Apr 2016 12:21:36 GMT</pubDate>
            <atom:updated>2017-02-11T20:32:18.312Z</atom:updated>
            <content:encoded><![CDATA[<p>Who remembers the game “dead-and-injured”? I don’t remember what the real name is.</p><p>I have been playing the game with my colleague on paper and I decided to experiment it on IOS just to put everything I have been learning and reading into good use.</p><p><em>What in this life is dead-and-injured?</em></p><p>It is played between two players. Both players have their secret numbers. The secret numbers are picked by following these rules:</p><ul><li>The numbers have an agreed number of digits, usually four.</li><li>The digits of the number must be unique i.e no repetition</li></ul><p>Therefore, 3456 is VALID. 3436 is INVALID because 3 is repeated.</p><p>Player A tries to decode the player B’s secret number by using the player’s responses to guess the next set of digits. The response is in the format described below:</p><p>Situation Response When digits of the guessed number exactly match the digits of the secret number i.e the same positions Dead When digits of the guessed number exist in the secret number but the positions don’t match Injured</p><p>For example, my secret number is 5678.<br>The following guesses will give the corresponding responses.</p><p>Guess Response 1234 0 dead, 0 injured 4537 2 injured, 0 dead 5479 0 dead, 2 injured 5678 All dead</p><p>As simple as the game appears, it needs logic and reasoning to be able to crack the secret number in few steps.</p><p>You can find the demo of the IOS app in the video below. Source code can be made available on request.</p><p>Shout out to <a href="https://medium.com/u/d738dda9be4e">Adeyinka Adediji</a> (<a href="http://twitter.com/tdscientist">@tdscientist</a>). He worked on the UI while we both worked on the logic.</p><p>PS: I forgot to demo the part where the validation of the numbers was done.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fembed%2Fz1OZsH9IGVc%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttp%2Fwww.youtube.com%2Fwatch%3Fv%3Dz1OZsH9IGVc&amp;image=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttps%2Fi.ytimg.com%2Fvi%2Fz1OZsH9IGVc%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b26913b949676ea2da78fa07057e5005/href">https://medium.com/media/b26913b949676ea2da78fa07057e5005/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3da8617ebef4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/larikrauns-blog/dead-and-injured-on-ios-3da8617ebef4">Dead and Injured on IOS</a> was originally published in <a href="https://medium.com/larikrauns-blog">Larikraun’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[onCreate() of My IOS Development Journey]]></title>
            <link>https://medium.com/@_larikraun/oncreate-of-my-ios-development-journey-22398c48235f?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/22398c48235f</guid>
            <category><![CDATA[wial]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Thu, 07 Apr 2016 19:39:42 GMT</pubDate>
            <atom:updated>2017-02-11T18:33:00.397Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey. I know it has been like forever. Life happened and I had to attend to its calls.</p><p>I started IOS development and it has been awesome, if you ask me. I will like to say that, for me, because of the android background I have, it is a different ball game entirely. Currently, if I have to choose between Android Development and IOS development, I will choose the former over and over again. Well, I can not say what will happen when I become so familiar with the IOS development more.</p><p>Ok!</p><p>As a newbie, I was writing a program that allows a user to input numbers from the console and then append the numbers to an array. I wrote the logic quick enough but I was stuck when the input was returning NIL. This made the program crash at that point. After few hours, I was able to realize that:</p><ul><li>Default data type from the console is a STRING.</li><li>Then a new line gets appended to each number entered.</li><li>When trying to convert the string (plus the newline) into an integer, it could not. So it thought it wise to use a NIL.</li></ul><p>The Error:</p><pre>fatal error: unexpectedly found nil while unwrapping an Optional value</pre><p>The temporary (or maybe permanent) solution is to trim the string like this:</p><pre>let inte = input().stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet())</pre><p>See complete snippet below:</p><pre>print(&quot;Enter ten numbers&quot;)<br>var arrLoop = [Int] ();<br>for(var i=0;i&lt;10;i++){<br>    print(&quot;Enter number &quot; , i)<br>    let inte = input().stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet())<br>    let myInt: Int? = Int(inte)<br>    print(&quot;value is \(myInt!)&quot;)<br>    arrLoop.append(myInt!)<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22398c48235f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solutions to Common Errors I Encountered in Sphinx]]></title>
            <link>https://medium.com/larikrauns-blog/solutions-to-common-errors-i-encountered-in-sphinx-3a6d5d446f85?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a6d5d446f85</guid>
            <category><![CDATA[wial]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[sphinx]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Mon, 18 Jan 2016 17:01:58 GMT</pubDate>
            <atom:updated>2017-02-11T20:32:06.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="error" src="https://cdn-images-1.medium.com/max/263/0*RuRHzYV0GzudTdrr.jpe" /></figure><p>In my less-than-a-week journey with sphinx, I have encountered some errors repeatedly. I always told myself that it’s fine.<br>Would you like to know these errors and how I solved them?</p><p>1.<br><strong>Error: FATAL: CreateService() failed: code=1073, error=The specified service already exists</strong>.<br> Reason: This happened when I wanted to rerun the SphinxSearch service.<br> Solution: Most times, there wont be any reason to restart this service but when you really need to, delete the service and run again.<br>To delete, run <strong>sc delete sphinxsearch</strong>.</p><p>2.<br><strong>Error: connection to 127.0.0.1:9312 failed (errno=10061, msg=No connection could be made because the target machine actively refused it.)</strong><br>Reason: This happens when searchd has not been executed<br>Solution: run <strong>searchd — config path/to/sphinx.conf</strong></p><p>3.<br><strong>Error: FATAL: no readable config file (looked in ./sphinx.conf)</strong><br>Reason: The configuration could not be read.<br>Solution: run <strong>searchd — config path/to/sphinx.conf</strong></p><p>When I encounter more errors or mor solutions, I will post here. Till then, you can share your errors with me too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a6d5d446f85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/larikrauns-blog/solutions-to-common-errors-i-encountered-in-sphinx-3a6d5d446f85">Solutions to Common Errors I Encountered in Sphinx</a> was originally published in <a href="https://medium.com/larikrauns-blog">Larikraun’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solutions to Common Errors I Encountered in Sphinx]]></title>
            <link>https://medium.com/@_larikraun/solutions-to-common-errors-i-encountered-in-sphinx-2c58be64d9fe?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c58be64d9fe</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[wial]]></category>
            <category><![CDATA[sphinx]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Mon, 18 Jan 2016 17:01:58 GMT</pubDate>
            <atom:updated>2017-02-11T20:05:08.176Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="error" src="https://cdn-images-1.medium.com/max/263/0*JPMAYTvDFoG2McJ3.jpe" /></figure><p>In my less-than-a-week journey with sphinx, I have encountered some errors repeatedly. I always told myself that it’s fine.<br>Would you like to know these errors and how I solved them?</p><p>1.<br><strong>Error: FATAL: CreateService() failed: code=1073, error=The specified service already exists</strong>.<br> Reason: This happened when I wanted to rerun the SphinxSearch service.<br> Solution: Most times, there wont be any reason to restart this service but when you really need to, delete the service and run again.<br>To delete, run <strong>sc delete sphinxsearch</strong>.</p><p>2.<br><strong>Error: connection to 127.0.0.1:9312 failed (errno=10061, msg=No connection could be made because the target machine actively refused it.)</strong><br>Reason: This happens when searchd has not been executed<br>Solution: run <strong>searchd — config path/to/sphinx.conf</strong></p><p>3.<br><strong>Error: FATAL: no readable config file (looked in ./sphinx.conf)</strong><br>Reason: The configuration could not be read.<br>Solution: run <strong>searchd — config path/to/sphinx.conf</strong></p><p>When I encounter more errors or mor solutions, I will post here. Till then, you can share your errors with me too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c58be64d9fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sphinx Search Using PHP on Windows]]></title>
            <link>https://medium.com/larikrauns-blog/sphinx-search-using-php-on-windows-226acb64523d?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/226acb64523d</guid>
            <category><![CDATA[wial]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[sphinx]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Fri, 15 Jan 2016 15:19:33 GMT</pubDate>
            <atom:updated>2017-02-11T20:32:04.452Z</atom:updated>
            <content:encoded><![CDATA[<p>There is this new thing I picked up. It is called SPHINX. Sphinx is an open source full text search server, designed from the ground up with performance, relevance (aka search quality), and integration simplicity in mind. You can check the features from <a href="http://sphinxsearch.com/about/sphinx/">their site</a>. I am not trying to promote sphinx but I can say boldly that it is very much easy to install.</p><p>Some other highlights are:</p><ul><li>Another interesting thing about sphinx is that it has been ported to some languages and this is where SphinxAPI comes in. SphinxAPI is a native library available for Java, PHP, Python, Perl, C, and other languages.</li><li>When you have decided that you want try sphinx out, download the latest release for your system specifications <a href="http://sphinxsearch.com/downloads/release/">here</a> and let us proceed with installation.</li></ul><p><strong>INSTALLATION</strong></p><ul><li>Extract the .zip file to a preferred folder. If you look through the contents of the folder, you will find an example.sql file and some other config files. These are to make testing, tour and usage easier.</li><li>To make our folder less dirty, we will create two new folders ourselves.</li><li>Create data and log folders. Index files will be saved in data while stuff will be logged into the log folder.</li></ul><p>Then open the <strong><em>sphinx.conf.in</em></strong> the find and replace <strong>@CONFDIR@</strong> to a preferred path (e.g C:/Sphinx) also check the database parameters. Edit the user to your user e.g root and supply the password.</p><p>From your command prompt, cd to the sphinx folder and run <br>bin\searchd --install --config path\to\sphinx\sphinx.conf.in --servicename SphinxSearch. <br>This command installs and starts the SphinxSearch service.<br>If you got this error FATAL: OpenSCManager() failed: code=5, error=Access is denied, then make sure your command prompt was run as an administrator.<br>Now that we have the success message, let&#39;s move on.</p><p><strong>DATABASE AND TABLES</strong><br>Create a test table in your database. This is the table that will be used in the example.sql included in the folder downloaded. You can open and view the queries in it.<br>Import the example.sql into your test database.</p><p><strong>INDEXING</strong><br>Now we will create our index files. How? Just by running another command on your cmd.<br>bin\indexer --config path\to\sphinx\sphinx.conf.in --all<br><strong>SEARCHING</strong><br>Create a php script in your C:/xampp/htdocs/folderName.<br>Copy and paste the snippet below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef4dbfec4a9554696ad9396db8d66796/href">https://medium.com/media/ef4dbfec4a9554696ad9396db8d66796/href</a></iframe><p>Run the script from the browser like this localhost/folderName/sphinxtest.php?q=test</p><p>That is it about installing and using sphinx.</p><p>You can tell that there are still many more things to do, right? There are still other tweaks that we need to include in our configuration file and script. But as I mentioned, I picked sphinx up about two days ago. Therefore, there is still so much for me to learn and share about sphinx. Till then, drop your comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=226acb64523d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/larikrauns-blog/sphinx-search-using-php-on-windows-226acb64523d">Sphinx Search Using PHP on Windows</a> was originally published in <a href="https://medium.com/larikrauns-blog">Larikraun’s Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sphinx Search Using PHP on Windows]]></title>
            <link>https://medium.com/@_larikraun/sphinx-search-using-php-on-windows-571af9745f3e?source=rss-bf87f3641b6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/571af9745f3e</guid>
            <category><![CDATA[search]]></category>
            <category><![CDATA[sphinx]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[wial]]></category>
            <dc:creator><![CDATA[Omolara Adejuwon]]></dc:creator>
            <pubDate>Fri, 15 Jan 2016 15:19:33 GMT</pubDate>
            <atom:updated>2017-02-11T18:56:08.036Z</atom:updated>
            <content:encoded><![CDATA[<p>There is this new thing I picked up. It is called SPHINX. Sphinx is an open source full text search server, designed from the ground up with performance, relevance (aka search quality), and integration simplicity in mind. You can check the features from <a href="http://sphinxsearch.com/about/sphinx/">their site</a>. I am not trying to promote sphinx but I can say boldly that it is very much easy to install.</p><p>Some other highlights are:</p><p>Another interesting thing about sphinx is that it has been ported to some languages and this is where SphinxAPI comes in. SphinxAPI is a native library available for Java, PHP, Python, Perl, C, and other languages.</p><p>When you have decided that you want try sphinx out, download the latest release for your system specifications <a href="http://sphinxsearch.com/downloads/release/">here</a> and let us proceed with installation.</p><p><strong>INSTALLATION</strong></p><ul><li>Extract the .zip file to a preferred folder. If you look through the contents of the folder, you will find an example.sql file and some other config files. These are to make testing, tour and usage easier.</li><li>To make our folder less dirty, we will create two new folders ourselves.</li><li>Create data and log folders. Index files will be saved in data while stuff will be logged into the log folder.</li></ul><p>Then open the sphinx.conf.in the find and replace @CONFDIR@ to a preferred path (e.g C:/Sphinx) also check the database parameters. Edit the user to your user e.g root and supply the password.</p><p>From your command prompt, cd to the sphinx folder and run <br>bin\searchd --install --config path\to\sphinx\sphinx.conf.in --servicename SphinxSearch. <br>This command installs and starts the SphinxSearch service.<br>If you got this error FATAL: OpenSCManager() failed: code=5, error=Access is denied, then make sure your command prompt was run as an administrator.<br>Now that we have the success message, let&#39;s move on.</p><p><strong>DATABASE AND TABLES</strong><br>Create a test table in your database. This is the table that will be used in the example.sql included in the folder downloaded. You can open and view the queries in it.<br>Import the example.sql into your test database.</p><p><strong>INDEXING</strong><br>Now we will create our index files. How? Just by running another command on your cmd.<br>bin\indexer --config path\to\sphinx\sphinx.conf.in --all<br><strong>SEARCHING</strong><br>Create a php script in your C:/xampp/htdocs/folderName.<br>Copy and paste the snippet below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef4dbfec4a9554696ad9396db8d66796/href">https://medium.com/media/ef4dbfec4a9554696ad9396db8d66796/href</a></iframe><p>Run the script from the browser like this localhost/folderName/sphinxtest.php?q=test</p><p>That is it about installing and using sphinx.</p><p>You can tell that there are still many more things to do, right? There are still other tweaks that we need to include in our configuration file and script. But as I mentioned, I picked sphinx up about two days ago. Therefore, there is still so much for me to learn and share about sphinx.</p><p>Till then, drop your comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=571af9745f3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>