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


BLOG FILTER



16. December 2015

Angular 2.0 Beta goes live

Angular reaches BETA status. Time to start playing with it … Perfect for the holidays :)

With NativeScript und React Native you will be able to build native Android- und iOS-Apps as well.

Tutorial / GitHub

Enjoy coding …

readmore
20. November 2015

My Javascript Stack

Some time ago I said: “My perfect framework, is a set of solid singular solutions that have proven themselves over the years. Working solo or together in harmony”.

Here is a list of some of my core components, that I use in combination or standalone.

CORE

LAYOUT

TEMPLATING

OBSERVABLES

ROUTER

STORAGE

DEPENDENCY MANAGER

  • RequireJS  – requirejs.org

    jQuery Tweak: If you have already loaded jQuery before RequireJS, you can not use define([“jquery”], …) in your module defines. Add this to your main RequireJS config before doing anything else …

    NOW you can live happily ever after :)

  • OR
  • Loadrunner – github.com/danwrong/loadrunner

This is basically the core stack that I use to build out ideas :) While Angular is always an option, the above satisfies most of all needs and is often far slimmer. The rest depends on how you organize your code yourself, but at least you are not forced into fixed structures ;)

readmore

Hybridauth enables developers to easily build social applications and tools to engage websites visitors and customers on a social level by implementing social sign-in, social sharing, users profiles, friends list, activities stream, status updates and more.

The main goal of Hybridauth is to act as an abstract API between your application and various social apis and identities providers such as Facebook, Twitter and Google.”

Hybridauth 2.x was the best option for nicely aggregated social logins so far, but some of the social “Providers” are outdated or no longer working. Version 3.0 is still in development, but providing a complete rewrite.

Hybridauth 3.0 Remake @ Github

For Facebook , Twitter and Google+ I still use my own little wrappers, but if you want more this is the way to go in the future :)

Enjoy coding …

readmore
18. November 2015

PHP & API Documentation

Currently refreshing my list of options to document projects and APIs.

I will use this page to keep a list of possible tools & solutions.

PHP DOCUMENTATION

  1. PHPDocumentor
  2. phpDox – The PHP Documentation Generator
  3. Sami: an API documentation generator
  4. apigen (PHP 5.4+)
  5. Doxygen
  6. Dexy

API DOCUMENTATION

  1. JSDoc
  2. API Blueprint
  3. Swagger.io
  4. apiary – API Design Stack
  5. APIDOC – RESTful web APIs
  6. ESDoc – JavaScript(ES6)
  7. doxx – Generic, template based, HTML output for Dox documentation generator
  8. documentation.js – raw documentation as JSON, beautiful, customizable HTML, or Markdown that fits perfectly into an API.md or README.md

Enjoy coding …

readmore

Really cool interface to test and debug Regex. The website also includes a nice regex library.

regex101.com

 

readmore

E-Learning platform for Thailand

 

  1. WPLMS (Learning Management System) setup / tweaks / fixes
  2. WooCommerce tweaks / fixes / optimization
  3. Language setup / localization cleanup / changes
  4. Optimization
  5. BuddyPress tweaks / changes / addons
  6. Custom Teacher commission dashboard (MyCred integration / teacher payout)
  7. Messaging changes and tweaks

 

AjarnOnline

readmore

“WP-CLI is a set of command-line tools for managing WordPress installations”

 

WP-CLI

readmore

Using WordPress as a headless system, is nothing new. You can easily build out your own REST API or use the long available HTTP REST API 1.0+ for WordPress.

But with the new HTTP REST API 2.0+ its getting really easy to build out your own REST API Namespace and assign routes for all your JSON needs.

The new REST API will make its appearance in WordPress 4.4, but you can start now by adding the plugin to your system. When the plugin detects 4.4+ it will only load functionality not already present in the core.

A ROUTE

A route tells the API to respond to a given request with a specific function (endpoint). This adds the permalink structure to WordPress so that your functionality can be accessed via an url like this: http://yourdoman.com/wp-json/yourplugin/v1/myfunction/your_parameter 

THE ENDPOINT

The Endpoint is the callback handled by the route. Each endpoint can have additional parameters attached:

  1. custom permissions
  2. default values
  3. sanitization callback
  4. validation callback
  5. field requirements and more

RETURN VALUE

The return values from the endpoint are converted into JSON. You can use the WP_REST_Response object , this wraps normal body data and allows you to return a custom status code.

Really powerful stuff, that makes it easy to detach WordPress and the actual client using the data provided by it.

You can read more about it here.

Enjoy coding …

readmore

Excel needs to know that you are using non-ASCII characters in your CSV or it will not display them correctly :)

Add the BOM(Byte Order Mark) to the first line, notifying Excel that you are offering a UTF-8 encoded file.

Enjoy coding …

readmore

I am currently working on a WPLMS enhancement for a customer, that allows to simplify the payout of instructor commissions. The whole system runs on the MyCred Points System and students pay for courses with Points. The problem is how to easily payout the instructor commissions via PayPal.

There is currently no addon for MyCred available that does that magic, so I build one myself.

At the moment the payment process via PayPal is completely manual, due to budget constraints. I am basically generating a custom “Send Money” link that prefills the PayPal email and amount to send.

The interface itself handles the payout sessions, tracks the instructor balance, paid and unpaid points.

Here some images to illustrate the admin dashboard:

wplms_points_payout

This list the instructors and their point balance and allows to start the payment process.

wplms_points_payout2

Payout sessions make sure, that only one session can be started per instructor, as the instructor could earn new points during the process. The points converted can be changed, allowing you to payout a fixed amount of points.

Its a 3 step process. Login at PayPal. Open the “Send money” dialog and send money to instructor. Confirm that you manually send the money and than register the payment and payout points in the system.

wplms_points_payout3

The session can be cancelled at any point. You can also leave the session open and continue at a later point.

wplms_points_payout4

On the frontend I added an interface to the BuddyPress Profile, that allows the instructor to track his payouts and balance.

wplms_points_payout5

The whole setup could be updated using PayPal Adaptive Payments, to make the whole process completely automated. Something to consider for the future :) Pretty happy with the manual process so far and it will be a great help for my customer to keep track of the commission payouts.

The whole setup is currently targeted for WPLMS, but can easily be adapted to other setups using the MyCred Points System.

Enjoy coding …

 

 

readmore