Run the following command
$ update-locale LC_ALL="en_US.UTF-8"
If it failed, you will need to add the following to /var/lib/locales/supported.d/local file
en_US.UTF-8 UTF-8
| #!/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!' |
| <?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/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" |
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
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.
| ### 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 |
| <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", |
| Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna! | |
| ([一-龯]) | |
| Regex for matching Hirgana or Katakana | |
| ([ぁ-んァ-ン]) | |
| Regex for matching Non-Hirgana or Non-Katakana | |
| ([^ぁ-んァ-ン]) | |
| Regex for matching Hirgana or Katakana or basic punctuation (、。’) |
#Use Shopify pagination to trigger loadmore event
###Markup
{% paginate collection.products by 16 %}
<div class="products__collection">
<ul class="product collection__grid"">
{% for product in collection.products %}
{% assign prod_id = forloop.index | plus:paginate.current_offset %}
{% include 'product-grid-item' with prod_id %}