3 February 12 / day 33 /0 contributions

Matt Hojo’s Weekly Updates!

twitter (feed #2)
Ok I seem to have fixed most of the sound issues in the game. Let me know if there are still any issues. [matt_hojo]
twitter (feed #2)
I’m currently working on some more things in the game. You will have local a local high score and the option to mute sounds. [matt_hojo]
twitter (feed #2)
The new game features are out and hopefully working. [matt_hojo]
twitter (feed #2)
I think this will be the last update for today, but I have added lasers to the pickups :D [matt_hojo]
twitter (feed #2)
Incase you missed it yesterday: Here is my first canvas game, inspired by @robhawkes and @rawkets. http://t.co/LqiwlEiF [matt_hojo]
twitter (feed #2)
Wtf is going on here!? I love iOS. http://t.co/C2bPbnXw [matt_hojo]
twitter (feed #2)
Quick game update: Powerups now persist even if one expires.
Quick game tip: When speed boosted, you can kill the enemy by flying into it. [matt_hojo]
twitter (feed #2)
Bloody game stopping me from doing real work! :P
I blame @robhawkes, but I do enjoy it. Last game update of today: The game now has a HUD. [matt_hojo]
twitter (feed #2)
Whoops! Forgot to add the enemy again. I’ve fixed it now, sorry about that. [ In regards to last game update ] [matt_hojo]
twitter (feed #2)
RT @photonstorm: New blog post: The Reality of HTML5 Game Development and making money from it http://t.co/fSf8wTNq [matt_hojo]
twitter (feed #2)
RT @seb_ly: Save the internet part 2 – first SOPA, now sign the petition to stop the EU version ACTA. http://t.co/uR3IXxZE [matt_hojo]
twitter (feed #2)
Fullscreen API’s have landed in Firefox official release!!!! https://t.co/dj2EsbHl This should be good. [matt_hojo]
twitter (feed #2)
PHPStorm as an IDE is amazing. It includes node.js support :D [matt_hojo]
27 January 12 / day 26 /0 contributions

Matt Hojo’s Weekly Updates!

twitter (feed #2)
I think @halfbrick should make Jetpack Joyride for the Mac. I wouldn’t get any work done …. but it would be good. [matt_hojo]
twitter (feed #2)
Anyone up for a game of TF2? My steam name is ‘hojo90′. [matt_hojo]
twitter (feed #2)
RT @AndrewCrow: "Don’t Cry, Disney Owns the Right to that Emotion." http://t.co/vWcrypW4

#SOPA [matt_hojo]

twitter (feed #2)
Not at all! “@Battlefield: @matt_hojo Nothing wrong with a little Battlefield absorption, right?! #BF3 ^BC” CC @robhawkes [matt_hojo]
twitter (feed #2)
Thanks to @robhawkes I’m now thoroughly hooked on HTML5 Canvas. [matt_hojo]
twitter (feed #2)
Not gonna lie @robhawkes has to be one of the nicest guys going! I love the web development community. [matt_hojo]
twitter (feed #2)
Creating touch screen controls in canvas is surprisingly easy. Getting it right however, really isn’t. [matt_hojo]
twitter (feed #2)
Yes! Got my invite to @6Wunderkinder‘s Wunderkit. This looks fun. [matt_hojo]
twitter (feed #2)
My Wunderkit profile is http://t.co/GRIA5Hwn there’s nothing on there at the moment but I will probably end up using it. [matt_hojo]
twitter (feed #2)
Here is my first canvas game, ridiculously inspired by @robhawkes and @rawkets. I have permission to release though :) http://t.co/LqiwlEiF [matt_hojo]
twitter (feed #2)
Quick note in regards to previous tweet. It’s all open source, you can find it on Github. http://t.co/df60BuIn [matt_hojo]
twitter (feed #2)
There appears to be several problems in browsers, other than Chrome. It looks to be something to do sound maybe. I’ll fix it soon. Sorry. [matt_hojo]
twitter (feed #2)
Turns out it is the sound files! I’ve implemented the quick fix for Firefox, so Firefox users have no sound for now, sorry. cc/ @robhawkes [matt_hojo]
twitter (feed #2)
Ok problem is solved in Firefox, but not in Safari. Will keep working on it. [matt_hojo]
20 January 12 / day 19 /0 contributions

Matt Hojo’s Weekly Updates!

twitter (feed #2)
RT @sdw: Alright, I hate all this CES shit, but this is actually really awesome. http://t.co/d7wyjRqw [matt_hojo]
twitter (feed #2)
Why can’t you rename a file from a variable in Automator? Is there a work around? [matt_hojo]
twitter (feed #2)
Got it working with Applescripts :) [matt_hojo]
twitter (feed #2)
RT @kylebragger: Well, the cat’s out of the bag: Tinyproj has been acquired by GroupTalent: http://t.co/aYBSlAlS [matt_hojo]
twitter (feed #2)
Grape flavour sweets have to be the worst accurately flavoured sweets ever. [matt_hojo]
twitter (feed #2)
It regards to SOPA / PIPA, I genuinely don’t think the people behind them realise the power of the Internet, and the power of its users too. [matt_hojo]
twitter (feed #2)
Just partially mastered theming for Hari CMS! Great feeling. #Ilovebeingawebdeveloper [matt_hojo]
twitter (feed #2)
I didn’t realise how good / easy theming was. I’d love for someone to do another theme for Hari, on top of mine http://t.co/tN3lpgTV [matt_hojo]
twitter (feed #2)
Yes! @cloudapp has a new update, which includes toggling privacy from menubar. Been looking to do this for ages. [matt_hojo]
twitter (feed #2)
iBooks Author is Free. Nice. [matt_hojo]
twitter (feed #2)
I hope @AberUni starts using the new iTunes U app. Looks so good. [matt_hojo]
twitter (feed #2)
iTunes U is available free now :D [matt_hojo]
twitter (feed #2)
RT @MikeVick: A man who dares to waste one hour of time has not discovered the value of life ~ Charles Darwin [matt_hojo]
15 January 12 / day 14 /0 contributions

How to rename files from input in an Automator Workflow

Working with Hari’s little website can be slow some times with having to manually resize, rename and upload each file individually. So I decided the best route to take would be an Automator Workflow, nice and easy, so I thought.

Well, it turns out Automators default ‘Rename Files’ Action cannot accept a variable as an option to rename a file (EH?), I then went on the hunt for an alternative rename Action …. and failed. All the options gave me the same error.

In comes Applescript, a slightly less pretty option but it worked.

The solution I found was here  but I tweaked it ever so slightly so it worked to my liking, here is what I got.


on run {input, parameters}

	-- here the input is a reference to the file passed from the previous action
	set input to item 1 of input
	set defaultName to makeNewName()
	display dialog "Rename File To:" default answer defaultName buttons {"Rename", "Cancel"} default button "Rename" with icon note
	set newName to text returned of the result
	tell application "Finder"
		set ext to name extension of input
		set name of input to newName & "." & ext
	end tell
	return input
end run

to makeNewName()
	set root to "New Picture"
	set {year:y, month:m, day:d, time:t} to current date
	return root & " " & y & "-" & m * 1 & "-" & d & "_" & t
end makeNewName

67 pages