<?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 Helen L on Medium]]></title>
        <description><![CDATA[Stories by Helen L on Medium]]></description>
        <link>https://medium.com/@helennnsays?source=rss-9890a26ac698------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*W6ucJHzDFCkF7xBzB0WvXQ.png</url>
            <title>Stories by Helen L on Medium</title>
            <link>https://medium.com/@helennnsays?source=rss-9890a26ac698------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:33:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@helennnsays/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[Why, when, and how to use the Google Map API]]></title>
            <link>https://medium.com/@helennnsays/why-when-and-how-to-use-the-google-map-api-f5dfa35986dc?source=rss-9890a26ac698------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5dfa35986dc</guid>
            <dc:creator><![CDATA[Helen L]]></dc:creator>
            <pubDate>Wed, 21 Jan 2015 09:41:09 GMT</pubDate>
            <atom:updated>2015-02-05T20:11:19.674Z</atom:updated>
            <content:encoded><![CDATA[<h4>What are the primary benefits does the Google Map API offer?</h4><p>Google Map’s API is a robust tool that can be used to create a custom map, a searchable map, check-in functions, display live data synching with location, plan routes, or create a mashup just to name a few.</p><p>Google Map’s APIs are very powerful, but what is even more powerful is the mashup of more than one API. This is actually very cool, and probably the best discovery I have found for what initially began as a mini-project. Now, I am thinking of utilizing Google Map’s API for an app that no one else has thought of. For example, one cool mashup idea a programmer came up with blends Google Maps and Craigslist computer gig listings.</p><p>Google map’s APIs offer the following suite:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*kgBulFM5fWjtL0oWC9dQ7Q.png" /><figcaption>Source: <a href="https://developers.google.com/maps/">https://developers.google.com/maps/</a></figcaption></figure><p>In addition, Programmable Web has thousands of API’s you can look up, and cool mashup ideas that may inspire you to create your very own.</p><p><a href="http://www.programmableweb.com/">http://www.programmableweb.com/</a></p><h4>What are the capabilities of Google Places API search refinements?</h4><p>I was curious on how to create a map applying filters to locate nearby restaurants, clothing shops, and cafes to explore. I thought I would have to create a mashup with a different API, let’s say Starbuck’s location API which I found out is actually private.</p><p>I was pleasantly surprised that Google Places API allows web and mobile app developers to do customize their search by: (i) apply a keyword search and/or filters; and (ii) rank by distance and popularity.</p><h4>Keyword Search</h4><p>Keyword search offers filtering with over 100 different types, including popular venues such as a restaurant, clothing_store, or bar, and even religious establishments such as a synagogue, mosque or church. Even so, there are an infinite range of specific requirements that your user may need.</p><p>Keyword search will search places based on the user’s input text string. Results are then matched with Google’s business including country specific categories, cuisine and Google review content.</p><p>Source: <a href="http://googlegeodevelopers.blogspot.co.uk/2012/05/google-places-api-search-refinements-as.html">http://googlegeodevelopers.blogspot.co.uk/2012/05/google-places-api-search-refinements-as.html</a></p><h4>Now what filters am I able to use?</h4><p>Do I want indulge in shopping, sip on a latte, or drink a glass of wine? Oh shoot, I need an accountant, tax season is coming up. Well good news, the geniuses at Google are one step ahead of us, and created types filter with you in mind. I added cafe to the code sample to locate nearby pastry and coffee shops.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*f7DqsSYXVQkdtj0v2DVvWA.png" /><figcaption>Add the filter type you would like</figcaption></figure><p>Source: <a href="https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290">https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290</a></p><h4>Filter Types</h4><p>You can use the following values in the types filter for place <a href="https://developers.google.com/places/documentation/search">searches</a> and when <a href="https://developers.google.com/places/documentation/actions#PlaceReportRequests">adding</a> a place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*tstV88LfyEctIX01lyF0pA.png" /><figcaption>A few of the Google API types you can filter</figcaption></figure><p>Source: <a href="https://developers.google.com/places/documentation/supported_types">https://developers.google.com/places/documentation/supported_types</a></p><h4>Rank by Distance and Prominence</h4><p>Google Places API utilizes the same ranking algorithm as Google Maps which prioritizes spots that are popular. This is useful for check-in and discovery apps, as these spots are the most likely to be frequented. However, there are still cases such as a gas station or bank, where the closest location would be ideal and applying the rank by distance would be most helpful. You can rank by both <em>prominence and distance</em>.</p><p>See an example at the bottom of this blog:</p><p><a href="http://googlegeodevelopers.blogspot.co.uk/2012/05/google-places-api-search-refinements-as.html">http://googlegeodevelopers.blogspot.co.uk/2012/05/google-places-api-search-refinements-as.html</a></p><h4>So utilizing this code example, I customized the city, zoom level, and added an additional filter type</h4><p>Code example: <a href="https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290">https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290</a></p><p>How does one find the latitude and longitude of a location? Simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*uUV1Z-x19YRsEzI_mBUlaw.png" /><figcaption>Find your exact location</figcaption></figure><p>I personally love London, so I found the latitude and longitude by simply typing up London, United Kingdom and right clicked “what’s here” on the Royal Opera House.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97lFjP4PY5jxxgVWm78Pbg.png" /><figcaption>Right click on point and click again on what’s here for coordinates</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*O28471wiUPFdGsO1Ira_UQ.png" /><figcaption>Tada! Exact coordinates retrieved</figcaption></figure><p>I plugged in the coordinates within the code to change the city to London and changed the zoom from 12 to 8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*0omciihF-l8l9MOvENTGeA.png" /><figcaption>Change the latitude and longitude to plot the location you would like</figcaption></figure><p>Source: <a href="https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290">https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290</a></p><h4>Now keep in mind, you can also write code so that the user is detected using the W3 Geolocation standard.</h4><p>Here is more info: <a href="https://developers.google.com/maps/articles/geolocation">https://developers.google.com/maps/articles/geolocation</a></p><h4>Now… Go make your own!</h4><h4>Here are some resources to customize your very own map with pinpoints:</h4><ol><li>Custom-made map to pinpoint one location or a number of locations.</li></ol><p>(i) Here are a few examples <em>with</em> a tutorial: <a href="http://webdesign.tutsplus.com/tutorials/getting-creative-with-the-google-maps-api--webdesign-13380">http://webdesign.tutsplus.com/tutorials/getting-creative-with-the-google-maps-api--webdesign-13380</a></p><p>(ii) “Google Maps API v3 tutorial — how to make a simple custom map”</p><p><a href="http://www.creare.co.uk/local-business-map-google-maps-api">http://www.creare.co.uk/local-business-map-google-maps-api</a></p><h4>Here are a few excellent tutorials to create a custom search on the map:</h4><p>(i) <a href="https://www.youtube.com/watch?v=keO6egndYrE">https://www.youtube.com/watch?v=keO6egndYrE</a></p><p>(ii) <a href="http://www.script-tutorials.com/google-places-api-practice/">http://www.script-tutorials.com/google-places-api-practice/</a></p><p>(iii) <a href="https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290">https://code.google.com/p/gmaps-samples-v3/source/browse/trunk/places/2012-may-hangout/search.html?r=290</a></p><h4>The official Google Map API docs:</h4><p><a href="https://developers.google.com/places/documentation/index">https://developers.google.com/places/documentation/index</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5dfa35986dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Twitter Bootstrap and/or CSS isn’t showing up, now what? I have the solution.]]></title>
            <link>https://medium.com/@helennnsays/twitter-bootstrap-and-or-css-isnt-showing-up-now-what-i-have-the-solution-3eb4aeaa2efa?source=rss-9890a26ac698------2</link>
            <guid isPermaLink="false">https://medium.com/p/3eb4aeaa2efa</guid>
            <dc:creator><![CDATA[Helen L]]></dc:creator>
            <pubDate>Mon, 19 Jan 2015 01:21:31 GMT</pubDate>
            <atom:updated>2015-01-22T21:54:36.236Z</atom:updated>
            <content:encoded><![CDATA[<h3>Twitter Bootstrap and/or CSS isn’t showing up once I’ve deployed my Rails app to Heroku. Now what? I have the solution.</h3><p>It is a simple solution. You have two options.</p><h4>First Solution</h4><ol><li>OPTIONAL: use this line on production.rb file. This line is optional, if it works just using step 2 then drop this and keep it as false. A friend of mine, a computer engineer from University of Waterloo, told me having a production environment compile assets is not best practice, and you can begin from step 1.</li></ol><pre>config.assets.compile = true</pre><p>2. Type the following in your terminal:</p><p><strong>rake assets:precompile</strong></p><p>3)If you’re using Twitter Bootstrap type, double check that your Gemfile has the following:</p><p><strong>gem ‘bootstrap-sass’, ‘~&gt; 3.3.1&#39;</strong></p><p>Bundle.</p><p>4)</p><p>Push changes to Github, then push to Heroku.</p><p>It should work now!</p><h4>Second Solution</h4><p>You can also try installing the Rails 12 Factor gem.</p><p>In your Gemfile add:</p><pre>gem &#39;rails_12factor&#39;, group: :production</pre><p>Then run:</p><pre>$ bundle install</pre><p>Source: <a href="https://github.com/heroku/rails_12factor">https://github.com/heroku/rails_12factor</a></p><p>Note: if this doesn’t work, or if I’m wrong about a line here please email me at helen.f.lam100@gmail.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3eb4aeaa2efa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to change your Rails app database from SQLite to PostgreSQL before deploying to Heroku!]]></title>
            <link>https://medium.com/@helennnsays/how-to-change-your-rails-app-database-from-sqlite-to-postgresql-before-deploying-to-heroku-ae2acc25c7ac?source=rss-9890a26ac698------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae2acc25c7ac</guid>
            <dc:creator><![CDATA[Helen L]]></dc:creator>
            <pubDate>Mon, 19 Jan 2015 01:05:35 GMT</pubDate>
            <atom:updated>2015-01-22T21:56:41.026Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to change your Rails app database from SQLite to PostgreSQL before deploying to Heroku</h3><p>Hello! Here is a quick tidbit on how to change your Rails app from SQlite to PostgreSQL. Heroku allows you to deploy a few apps, before charging you. Unverified accounts can create at most 5 apps. If you just want to share your app with a few friends, I highly recommend deploying to Heroku for mini projects. Verified accounts can create no more than 100 applications. See more here: <a href="https://devcenter.heroku.com/articles/limits">https://devcenter.heroku.com/articles/limits</a>.</p><p>So if you accidentally began your Rails app without specifying using the PostgreSQL database, you can not deploy to Heroku by migrating your database from SQlite to PostgreSQL. Remember: Rails’ default database uses SQlite.</p><ol><li>To deploy correctly, you will have to just make a few quick changes to your database.yml file. Here is what I fixed on my database.yml file:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nx9UrTpQN9CfFQ6cVjHxaw.png" /><figcaption>My database.yml file</figcaption></figure><p>2. Add this line to your Gemfile. This line is very important, as gem ‘sqlite3&#39; is still used for the development and test, but not for the production. I was stuck on this one part for a few hours, until a senior developer helped me debug. This is not available on Stack Overflow. They just tell you to add the gem ‘sqlite3&#39;.</p><p>Source: <a href="http://stackoverflow.com/questions/6710654/how-do-you-easily-change-from-sqlite-to-postgresql-in-rails">http://stackoverflow.com/questions/6710654/how-do-you-easily-change-from-sqlite-to-postgresql-in-rails</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUHRFdFANq714yuNqTZNJg.png" /></figure><p>3. Type “bundle” in your terminal. Always remember to bundle after making changes to your Gemfile. Stop Rails server.</p><p>4. I created a Reddit clone just for the sake of learning, so I just dropped my database and recreated it. First I stopped the rails server, then typed in this line:</p><pre>rake db:drop db:create db:migrate</pre><p>But if you’re working on an app you will actually be using and want to preserve your database, then you can follow Stack Overflow’s instructions on migrating the database. <strong>Start the taps server on the sqlite database</strong></p><pre>$ taps server sqlite://db/development.sqlite3 user password</pre><p><strong>Migrate the data</strong></p><pre>$ taps pull postgres://f3@localhost/f3_development <a href="http://user:password@localhost:5000/">http://user:password@localhost:5000</a></pre><p><strong>Restart the Rails webserver</strong></p><pre>$ rails s</pre><p><strong>Cleanup the Gemfile</strong></p><pre>#gem ‘sqlite3&#39;<br>gem ‘pg’<br>#gem ‘taps’<br>$ bundle</pre><p>Source: <a href="http://stackoverflow.com/questions/6710654/how-do-you-easily-change-from-sqlite-to-postgresql-in-rails">http://stackoverflow.com/questions/6710654/how-do-you-easily-change-from-sqlite-to-postgresql-in-rails</a></p><p>5. Commit and push to GitHub. If you have multiple files, write “git add .”</p><p>6. Login to Heroku.</p><p>Run this command:</p><p><em>heroku rake db:migrate</em></p><p>Then push!</p><p><em>git push heroku master</em></p><p>Word of advice: in the future, <strong>do not</strong> use a different database in your development/test, mimic your production environment as you develop. Remember to begin your app with the same database as the one you will need to deploy. I created an app for fun on Rails to deploy to Heroku. If I were working for a company and accidentally started an app using the wrong database; you could potentially run into serious problems and it may not be such a quick fix. Even this quick fix caused me 24 hours of agony.</p><p>Well… That’s it for tonight folks. Thanks for reading! Email me at helen.f.lam100@gmail.com if you’d like to help me improve my post. Serious and respectful emails only. Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae2acc25c7ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>