Using Pidgin with Google Hangouts

I have a number of Google+ accounts setup by the various groups I’ve worked with over the last couple years, and I can’t reasonably be on Hangouts with all of them at once, but I do often need to be available on Hangouts for chats.

To solve this minor issue I add each account to Pidgin, and chat from there.

Add the part of your company email preceeding the @ symbol as the ‘username’, the domain portion of your email in the ‘domain’ field. Enter your password, then hit the ‘Advanced’ tab and enter ‘chat.google.com’ into the ‘Connect server’ field.

Connect and go!

5-6-2014-2-29-29-PM-a67d

5-6-2014-2-29-54-PM-e8c3

How To: Second Clock in Unity

I’ve been asked more than you’d think on how to build a second timer in Unity. It’s straght forward, and involves only a few lines of code.

#pragma strict

var startedAt 		: float;
var clockTime 		: int;
var lastClockTime 	: int;

function Awake(){
	startedAt = Time.time;
}

function Update (){
	var offsetTime : float = Time.time - startedAt;
	clockTime = offsetTime % 60;

	if(clockTime > lastClockTime){
		lastClockTime = clockTime;
		print(clockTime);
	}
}

The way this works is we store Time.time at Awake() so that we account for whatever time passes before our timer starts. On update we subtract that amount from the current time, and then we store the result of the remainder on the clockTime variable.

Finally we check to see if clockTime is different from lastClockTime, and if it is, we update lastClockTime and print the result. We do this to avoid unnecessarily updating the GUI or, in this example’s case, printing the result of the update. This keeps the overhead as low as possible.

How a Wordiku Level is Made

How a level for Wordiku is put together.

Wordiku is out now for Android, and coming soon to other platforms.