Blog Spot!


Installing Composer

We're assuming that this is a local project, so let's install an instance of Composer just for the current project. Navigate to your project directory and run this:

$ curl -sS https://getcomposer.org/installer | php

Keep in mind that piping any download directly to a script interpreter (sh, ruby, php, etc...) is a security risk, so do read the install code and ensure you're comfortable with it before running any command like this.

For convenience sake (if you prefer typing composer install over php composer.phar install, you can use this command to install a single copy of composer globally:

$ mv composer.phar /usr/local/bin/composer
$ chmod +x composer

You may need to run those with sudo depending on your file permissions.

Added on 11.Dec.2014
Tags: composer php

CI API - Articles API Endpoints for ci.donvercety.biz

Articles API functionality. You can take the articles from this website to yours. With this basic configs.

Access endpoints:

  • get all articles
http://ci.donvercety.biz/articles/json
  • get a specific article
http://ci.donvercety.biz/article/json/get/$id
  • use pagination ( give me 5 articles starting from 0 )
http://ci.donvercety.biz/articles/json/5/0
  • count articles ( useful for pagination )
http://ci.donvercety.biz/articles/json/count

Added on 11.Dec.2014
Tags: api articles ci donvercety website

How do I get PHP Errors to display?

error_reporting(E_ALL);
ini_set('display_errors', 1);

Added on 08.Dec.2014
Tags: php errors display

Sort and filter in Jekyll

Sort pages by title

Now without having to create a plugin you can easily apply a sort. Below is the snippet we used to sort pages by title.

{% assign sorted_pages = (site.pages | sort: 'title') %}
{% for page in sorted_pages %}
  <li class="cardmenu-item">
    <a href="{{ page.url }}">{{ page.title }}</a>
  </li>
{% endfor %}

Filter array by layout

When we render a specific index page we have a need to show pages by a specific layout or filter pages by layout.

{% assign tutorials = (site.pages | where: "layout" , "java") %}
{% for page in tutorials %}
     // do some work
{% endfor %}

Added on 03.Dec.2014
Tags: jekyll templateing

Geospatial Search with SOLR and Solarium

Sitepoint Article

Author: Published November 24, 2014
Lukas White

In a recent series of articles I looked in detail at Apache’s SOLR and Solarium.

To recap; SOLR is a search service with a raft of features – such as faceted search and result highlighting – which runs >as a web service. Solarium is a PHP library which allows you to integrate with SOLR – whether local or remote – >interacting with it as if it were a native component of your application. If you’re unfamiliar with either, then my >series is over here, and I’d urge you to take a look.

In this article, I’m going to look at another part of SOLR which warrants its own discussion; Geospatial search.

Read more at sitepoint.com

Added on 03.Dec.2014
Tags: php article

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top