Showing posts with label google. Show all posts
Showing posts with label google. Show all posts

Continuous Integration with Gitlab, Selenium and Google Cloud SDK

As development tools have improved, we have started to see Continuous Integration workflows which allow code to be stored, tested and deployed easily. This post is going to look at one of the most popular open-source platforms for developers: Gitlab.

A/B Tests using Google Analytics, Content Experiments and JavaScript

When creating templates on high-end websites, it's useful to know how well the template was performing before and how that performance changed after updating. This can be achieved using Google Analytics (bounce rate, session duration and goals).

But what happens when the performance drops drastically and you want to go back to the original? How can you do this without risking losing sales or traffic? A/B tests allow you to test multiple variations of the template and measure which performs better.

Here we will look how to do it using free Google tools.

Google Calendar - Interesting Calendars


I have just found a great feature of gCal called 'Interesting Calendars'.

1) Go to: https://www.google.com/calendar/render?tab=mc
2) In the bottom left, click the arrow on 'Other Calendars' > 'Browse Interesting Calendars' or go to 'Settings', then 'Calendars' then 'Browse Interesting Calendars'
3) Choose a category e.g. 'Soccer' > 'England' > 'English Premier League' and choose your team.

Pretty useful!

Google mod pagespeed

If you are looking to increase the speed and performance of your website, Google have just release an Apache server module which improves page loading times by changing the way resources are delivered.

I haven't given it a try yet but people are reporting pages loading at almost twice the speed! That will make a big difference to your audience and definitely worth installing:
https://developers.google.com/speed/pagespeed/mod

Web Fonts Vs Commercial Fonts

This is a great site showing some similar web and commercial fonts

Can you tell the difference?

findfont02

http://www.webdesignshock.com/web-fonts

Google Frontend Coding Standards


These two links are very useful summaries of some of the best practices in frontend coding.

Html & Css: http://google-styleguide.googlecode.com/svn/trunk/htmlcssguide.xml
JavaScript: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml

Controlling multiple YouTube Players at once

I'm constantly using the YouTube Player API to embed videos on sites with special functionality such as hidden controls, looping or synching to live feeds.

Howver one function always seemed to be elusivein the API. This was the ability to control all of the players on a page, regardless of whether they have been embeded using JavaScript on not.

I made a little helper function which stops all youtube players it can find on the current page:

function players(func, args) {
var iframes = document.getElementsByTagName('iframe');
for (var i=0; i<iframes.length; ++i) {
if (iframes[i]) {
var src = iframes[i].getAttribute('src');
if (src) {
if (src.indexOf('youtube.com/embed') != -1) {
iframes[i].contentWindow.postMessage(JSON.stringify({'event': 'command','func': func,'args': args || []}), "*");
}
}
}
}
}

// example usage
players('stopVideo');
This search for all iframes with youtube embeds. It then posts a message with the value you want:
https://developers.google.com/youtube/js_api_reference#Functions

Private over-sharing will improve your life


I have shared my life and my digital content online for many years now. Usually with family and friends, but increasingly more and more my information is shared publicly (Last.fm, Instagram & Strava are just a few examples). Naturally this increased open content sharing asks questions such as: is this information being stored safely? can people see where I am and stalk me? what could happen to my information in the future?


Privacy groups will often warn you against uploading your information and revealing your location. There are many risks to this and they are all obvious! Services online such as Facebook & Google+ encourage you to share more, because the volume of data is valuable and can help them know more about you. These arguments sit at the two extremes of the debate about content online.


I believe that there is a really important middle-ground to this argument which is not really being championed. You can and should record and store all of your information online but... only behind private closed settings. I have coined this technique as 'private over-sharing' as you are sharing more information than you currently think you should (e.g. photo of what you're eating, who needs to share that?), but you are sharing it only with yourself. Maybe this could have a better name!


By private over-sharing, you are effectively writing your own timeline and history. You are leaving a story which you can revisit later in your life, but the more detail the better. You could call it your digital story.


As services and applications get more powerful and interesting, I can see your digital story will be your most valuable asset as it will be a record of who you are and what you have achieved. Digital services will store infinitely more items than you could ever remember and your quality of life in the future may actually depend on it.


Let me give you a few examples of how my digital archive is already enriching and improving my life.
- I know my favourite artists and where I can see them next
- I see how far I cycle and how much energy I am using
- I share my photos directly with my family so they can see what i'm doing whenever they want


In the future I imagine services will to continue to make my life easier. As long as I keep my data safe, I now feel that I should be storing and recording as much as information as possible (without affecting my day-to-day life). This means i'm future-proofing myself for the array of services that are just around the corner...