download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| <div class="well"> | |
| <button class="btn btn-info share-btn">Share</button> | |
| </div> | |
| <script type="text/javascript"> | |
| function fb_share() { | |
| FB.ui( { | |
| method: 'feed', | |
| name: "Search Google", | |
| link: "https://www.google.com", |
| ### Solr Install ### | |
| Install pysolr and django-haystack and set up django-haystack. Setup for haystack is pretty straight forward: | |
| https://django-haystack.readthedocs.org/en/v1.2.7/tutorial.html | |
| Make sure you follow the haystack instructions for the correct version of haystack that you installed, | |
| as some of the setting variables are different depending on the version. | |
| # SSH into the server that you want to install Solr on |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
While I was configuring Ruby on Rails in a Red Hat (CentOS) with RVM I found a problem with the library libffi-devel because the package wasn't available via yum install, after search for a couple of days I found this solution.
/etc/yum.repos.d/rpmforge.repo, you need to be an admin
| #!/bin/sh | |
| wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.24-osx10.9-x86_64.tar.gz | |
| tar xfvz mysql-5.6* | |
| echo "stopping mamp" | |
| sudo /Applications/MAMP/bin/stop.sh | |
| sudo killall httpd mysqld | |
| echo "creating backup" |
| <?php | |
| // Put your device token here (without spaces): | |
| $deviceToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
| // Put your private key's passphrase here: | |
| $passphrase = 'xxxxxxx'; | |
| // Put your alert message here: | |
| $message = 'A push notification has been sent!'; |
| #!/bin/bash | |
| # copy this file to /usr/sbin | |
| # if you have other hosts entries that you would not like to lose, make sure they get added to the hosts.mamp.bak file | |
| cat /etc/hosts.mamp.bak > /etc/hosts | |
| echo 'clean!' |