How to include Google Analytics in your web app

Screen Shot 2013-06-21 at 5.07.18 PMYou can easily add google analytics data in your custom app by using the ga-ez-dash library

This library is super easy to use and quick to install. I am not going to go into much details and the code is quite self explanatory.

All applications that use the Google Analytics API must be registered through the Google APIs Console. When you register in the console, you will create a new project and configure the settings to work with this library. Once configured, the console will provide you with a few values that you need in the configuration step.

Upload the library to a folder in your document root.

Continue reading “How to include Google Analytics in your web app”

Dynamic WordPress Slideshow without plugin

wordpressWith the addition of the Menu’s feature in wordpress it allowed us to use pages for a little more than its obvious purpose.. A Simple example for this is to create a front end slideshow without having to add a special plugin or tons of code that make everything seem super complicated. All you would have to do is browse to the page, click on add media, upload the photos to the page and thats it.

Most of the cases they use either custom post types or they pull it from the blog via a specific category. But this can be a hassle if all you want is generic images rotating.

So here is how to do it..

Continue reading “Dynamic WordPress Slideshow without plugin”

The Dev Box – 13 June 2013

devboxIn this Issue of the dev box we take a look at the tech fails of hollywood. We see how to use shortcodes in WordPress theme files. There are some wordpress hacks and snippets to fight spam. Tutorial on optimizing for retina displays and also some inspiration on the use of textures. Enjoy!

Other link blogs I follow:

Dirk Strauss – The Daily Six Pack

Javascript problem with WP Super Cache

Recently had a case where Tweet Blender didnt work correctly alongside WP Super Cache.

Tweet Blender showed the Tweets that was cached along with the page so in effect 3 weeks later you still have tweets from 3 weeks back showing.

The workaround was quite easy, All you have to do is refresh the tweet blender box as soon as the page is done loading.

Continue reading “Javascript problem with WP Super Cache”

Return Random Records in MySQL

One of the most handy functions in programming is the ability to display random records. Luckily in SQL this is very easy.
This is usefull when you want to display random products, random images, etc..
So in your query you just add “ORDER BY RAND()”
So the Query will look like:

SELECT * FROM mytable ORDER BY RAND() LIMIT 10

easy 🙂

The Dev Box – 07 June 2013

devboxToday’s Dev Box Includes some usefull links. Principles of Design and David Kadavy’s Design for Hackers (Interview). Dirk Strauss gives us a review on Visual Guard. Learn how to create shapes in CSS3. A very handy and easy to install jQuery plugin to create a image zoom effect and a tutorial on using custom taxonomies in wordpress.

Thats it for now.

The Variable

Todays post is dedicated to The Variable.

The Variable

The Variable can speak so many languages, be so many things.

Without the Variable our life will be hard.
The Variable is patient.
The Variable is hard working
The Variable dont mind being called names.
The Variable can do maths.
The Variable can do so many other things.
The Variable never complains about being passed between classes ( can make him feel used )
The Variable has Character.
The Variable has a good Memory.
The Variable works well on its own, but is also a team player.
The Variable is a good leader of an array of other Variables.
The Variable NEVER gets tired!
The Variable goes out to make our life easy!
Thank you Variable for being my friend!