I AM LISTENING TO
|
WHAT I LIKE
  • English
  • German


BLOG FILTER



1. September 2014

Git Auto Deployment with PHP

Doing Git / Bitbucket Deployment for most of my project these days. This is another compact solution, that should allow almost anyone to start using Git to distribute updates automatically.

Always nice to be able to go a step back fast ;)

Git Auto Deployment

His website is offline, but you can still reach it through the Web Archive: http://web.archive.org/web/20131209120053/http://wpcopilot.net/git-auto-deployment/

readmore

BroadwayAPI is a PHP class to extract / export channel playlists and EPG from the PCTV Broadway. These can be reused with OpenELEC, XBMC, Kodi  and the IPTV Simple PVR Client Addon.

I am using the setup on a local server to handle playlists and epg updates for multiple XBMC setups.

https://bitbucket.org/portalzine/cubicfusion-broadwayapi

This is a project in progress. More details soon…

Enjoy
Alex

readmore
23. May 2014

Kint – PHP debugger

kint

Debugging can be such a pain sometimes. Kint has saved my bacon more than once ;)

Kint

readmore

wpml-ready
WPML for WordPress is a powerful plugin to build a multi-language setup. But it still comes short in some areas, especially when it comes to a custom integration into plugins or when using custom post-types.

Normally this function should return the id of the linked translated content, but has not worked for me in some cases (especially when AJAX is involved).

A simple SELECT helps to get that id yourself :)

readmore

word_cloud_language
The GitHub repository from Saša Stamenković provides a nice list of all countries with names and ISO 3166-1 codes.

Available formats are:

  • Text
  • JSON
  • YAML
  • XML
  • HTML
    • Select
    • Flags
  • CSV
  • SQL
    • MySQL
    • PostgreSQL
    • SQLite
    • SQL Server
  • PHP

Github

readmore

Geolocation
Sometimes when personalizing or translating interfaces, IP geolocation is required.

Maxmind Geolite Free

Besides their subscription based products Maxmind also provides a free IP Geolocation database set. The set is offered under the Creative Commons Attribution-ShareAlike 3.0 Unported License. The free databases maps IPv4 + IPv6 addresses and is being updated once a month. GeoLite Free Downloadable Databases

IP2Location Lite

Another free set of data is provided by IP2location Lite. It is free for personal or commercial use with attribution required

readmore

The JSON spec allows integers, fractional numbers, strings, arrays, but when it comes to dates things are handled differently. There really is no date format in the JSON spec. Would be nice if every JSON date output would conform to ISO8601 :)

Some of these can easily be converted to a PHP timestamp using strtotime(), others require some more magic.

Here is a way to transform the .NET variant, something that has been haunting me in a current project ;)

Due to the wide usage of JSON as an exchange format, I really hope we will see a spec update in the future :)

readmore

The Google App Engine has no cURL support, which means that all REST calls need to be executed using file_get_contents.

As Parse REST calls need to be secure, you need to make sure that you send the request with a proper SSL context.

Short example of adding data using the Parse REST API from a Google App Engine application:

 

readmore

 

readmore

Shares only

 Shares & Likes

 

 

readmore