Spent a little while confused after implementing an embeddable map using the Google Maps Engine. Rather than display the map in Chrome, it brought up a sad face complaining of a redirect loop.

I did a bit of Googling around and found the fix is actually quite simple!

Change embed: http://mapsengine.google.com/map/u/0/embed?mid=zcNkjpBR7F4w.kTporAbuNPS8
To view: http://mapsengine.google.com/map/u/0/view?mid=zcNkjpBR7F4w.kTporAbuNPS8

Your problem shall be solved. Redirect loop be gone!

Yesterday over at Web Directions South I presented a demo with Ninja Blocks, Android phone controlled slides, coloured sirens responding to incoming tweets and a bubble machine. You know. The usual JavaScript presentation 😉

I’ve put up a version of my slides here (For best results, view the slides in Chrome):
http://www.patrickcatanzariti.com/presentations/wds13

All the Ninja Block functionality and slide switching functionality has been disabled as we can’t have you all switching my lights on/off or driving other people mad switching slides as they try to view them!

Resources

If you’re just looking for quick links to the resources, here are a bunch I found useful:

Getting starting with Node and Heroku
Overview by Heroku on setting up Node – https://devcenter.heroku.com/articles/getting-started-with-nodejs
Few other resources for Node and Heroku – https://devcenter.heroku.com/categories/nodejs
A tutorial I stumbled across after making my demo which has a nice example of using Node and Socket.io – http://robdodson.me/blog/2012/06/04/deploying-your-first-node-dot-js-and-socket-dot-io-app-to-heroku/

Ninja Blocks
Get them here – http://ninjablocks.com/
Writing your first Ninja Block app in Node – http://ninjablocks.com/blogs/how-to/7229758-hello-ninja-writing-your-first-ninja-app

Tessel.io
Pre order them here – http://tessel.io/

Arduinos
The official Arduino site – http://arduino.cc
A good local supplier – https://oceancontrols.com.au/Arduino-and-PICAXE.html

Wearscript
Get started here – http://wearscript.com

Leap Motion
Their official site – http://leapmotion.com/
Buy it on Dick Smith’s online store – http://www.dicksmith.com.au/computer-accessories/leap-motion-pc-controller-lm010-dsau-se9100

on{X}
Everything you’ll need is here – https://www.onx.ms/

xme
Check out the early developed stuff here – http://app.xndme.com/

Twitter streaming API
Official docs here – https://dev.twitter.com/docs/streaming-apis
The node Twitter stream module I used – https://github.com/aivis/user-stream

Socket.io
Download and see examples here – http://socket.io/

Get yourself a bubble machine
DJ City are great guys – http://www.djcity.com.au/lighting/bubble-machines.html

Die Hard: With a Vengeance
It’s on iTunes – https://itunes.apple.com/au/movie/die-hard-with-a-vengeance/id270609870
JB Hi-Fi have the quadrilogy for a pretty good price – http://www.jbhifionline.com.au/dvd/dvd-genres/action-adventure/die-hard-quadrilogy/576992

This is how we do it
See Montell’s VEVO – http://www.youtube.com/watch?v=0hiUuL5uTKc

To all those who came to the presentation at WDS2013, thank you for watching and participating! If you do make something with any of the above technologies, get in touch with me, I’d love to see what you do!

Another big thank you to Maxine, John and the whole Web Directions South team for organising an incredible conference and for being lovely enough to have me present!

Today I decided I wanted to be able to run Sublime Text from my Terminal. Did a bit of Googling and pieced together the steps here.

Setting up “bin” in your home directory
1. Make a folder called “Bin” in your home directory if it doesn’t already exist. If you’re not sure how or what I mean, open a Terminal and type:

cd

You’re now in your home directory! Now we’ll create a directory called “bin”:

mkdir bin

Link up your Sublime application file to a shortcut
2. Once that’s created run this command to create a symlink to your Sublime Text installation (note this is for Sublime Text 2):

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Check if it works!
3. Restart your Terminal and it may already work. Type in:

subl --help

Do you see help text that starts with “Sublime Text 2 Build…”? If so, hooray for efficiently and skipping everything else. Go straight to step 9.

For me though, I wasn’t so lucky and had to do a bit more. If you’re as unfortunate as me, continue along!

Update your .bash-profile file to look in our ~/bin directory
4. Go to your home directory again:

cd

5. Open up your .bash-profile file (in vim or whichever other text editor you can use until we get Sublime in there!):

vim .bash_profile

6 (I know Vim). If you know Vim or whichever other text editor you used above, just add the following to the end of the file:

export PATH=$PATH:~/bin

Wha? What is this vim you speak of?
6 (I don’t know Vim). Not sure how to use Vim? Follow along!

Firstly press the letter “i” on your keyboard to get into insert mode.

Then type in:

export PATH=$PATH:~/bin

Press “esc” to leave insert mode.
Type in this to save your file and close it:

:wq

Testing if our update worked!
7. Close your terminal and open it again.
8. Type in:

subl --help

Hopefully that comes up with help text that starts with “Sublime Text 2 Build…”. If so, tis happy times!

Opening up files
9. Now to open any file, you can use the subl command like so:

subl textiwanttoedit.txt

Have fun with your newly Terminally-accessible Sublime Text 2!