Scope & global variables using the window object

By | Development, Javascript | No Comments

There are many instances were you might like to define global variables, that can be used anywhere.

This does not work:

This works:

In case of the first $.geScript function(){…} the my_variable is only availble within the scope of the function. In the second the variable is assigned to the window object and can be used within.

cubicFUSION goes live :)

By | cubicFUSION, Development | No Comments

cubicFUSION is a collection of past & present internal projects. Some of these are in early stages, are archived ideas or have not been completed yet.

I am currently doing a big cleanup of my toolset and will share some of the stuff that I have build over the years.

Some of these might be useful, inspiration or just an archive of broken ideas ;)

Cheers
Alex

Git Auto Deployment with PHP

By | Development, Hosting, PHP | No Comments

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/

PHP BroadwayAPI – playlists and EPG for OpenELEC / XBMC / Kodi

By | PHP | No Comments

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

The process and challenges of building a virtual competition for the tournament in Brazil

By | Alex, General | No Comments

Over the past months I have been building a virtual competition, for one of my clients, for the tournament 2014 in Brazil.

  1. Full integration and signup to the game through Facebook
  2. Multi-language setup
  3. Choose your own team of players from the 32 competing countries, with countries only represented once in your team.
  4. Update your team until the start of the tournament
  5. During the tournament your team scores according to real data coming in from a sport result data provider. Team scores are calculated by a fixed rule set.
  6. You have 3 substitutes that you can deploy during the tournament to optimize your team or replace players that have been eliminated
  7. You play for a specific country or you can join or create a group to compete against each other with friends.
  8. Team ranking is provided on country and group level.
  9. Social sharing, invites and posting to Facebook

The project had its challenges and I plan to dive into some of those areas in the future, as soon as the tournament is over ;)

Cheers
Alex

twitter.com/portalzine