This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, we encountered an internal error. | |
Details | |
I/O error on GET request for "http://connectapi.garmin.com/activity-service/activity/1008825353":Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out | |
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:499) | |
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:447) | |
org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:215) | |
com.garmin.connect.oauth.impl.DefaultOauthRestClientImpl.get(DefaultOauthRestClientImpl.java:60) | |
com.garmin.web.DashboardController.getActivityResponse(DashboardController.java:253) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why did we monkey patch PgSearch::Document? | |
After reseraching potential solutions it was obvious our best course of action was to use Postgresql's built in full text search indexing to accomodate BlueSky's search needs. After coming to this decision we had to make the decision would we rather build our own custom solution, or use one of several gems available. While I'm typically a fan of custom builds when possible, after reviewing some of the source of two gems (pg_search and textacular) it was easy to do a cost benefit analysis and decide that using a gem in this case was the best course of action. | |
Once the decision had been made to use a gem the question of which gem was the next in line. After doing some research pg_search was the winner because of the internationalization and more complex requirements we like the additional flexability and features pg_search provides (many of which are outlined here https://github.com/Casecommons/pg_search#searching-using-different-search-features.) | |
Using pg_search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
David-Ballards-MacBook-Pro:source britton$ sudo brew install -v io | |
/usr/local/bin/git | |
==> Cloning git://github.com/stevedekorte/io.git | |
Updating /Library/Caches/Homebrew/io--git | |
git fetch git://github.com/stevedekorte/io.git | |
From git://github.com/stevedekorte/io | |
* branch HEAD -> FETCH_HEAD | |
git checkout-index -a -f --prefix=/private/tmp/homebrew-io-HEAD-YXtk/ | |
==> cmake .. -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/io/HEAD' -DCMAKE_BUILD_TYPE=None -Wno-dev | |
cmake .. -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/io/HEAD' -DCMAKE_BUILD_TYPE=None -Wno-dev |