Draw Something UI Adobe Illustrator Template

Posted: May 2nd, 2012 | Author: | Filed under: Uncategorized | No Comments »

here’s a thing I made for the AV of my show LA is Paradise. It looks enough like the Draw something iphone app. You can use it in photoshop or illustrator or whatever to fake Draw Something’s UI / Interface / Layout for fun!

draw-something-template.ai


Export Markers From Final Cut & Import Into Logic Pro

Posted: February 23rd, 2012 | Author: | Filed under: Uncategorized | No Comments »

There IS a way to do this! It seems impossible to get the markers into Logic, but it’s not.

  1. export xml from Final Cut (FCP)
  2. import xml to Logic Pro
  3. download markerTool
  4. open xml file in markerTool
  5. select all markers in markerTool
  6. copy all the FCP markers
  7. open the marker text box in Logic
  8. paste

Basic PHP grid calendars

Posted: February 8th, 2012 | Author: | Filed under: Uncategorized | No Comments »

Here’s how to make a basic PHP grid calendar. I started with this code and stripped it down to bare bones.

http://www.phpjabbers.com/how-to-make-a-php-calendar-php26.html

Here’s a simple function that takes a month and year and it will mark today’s grid square on the calendar with the class “cal-today”

function grid_cal($m,$y){
	$tabs = "\n\t\t\t\t";
	$w_days = array("S","M","T","W","T","F","S");
	$stamp = mktime(0,0,0,$m,1,$y);
	$maxday = date("t",$stamp);
	$thismonth = getdate ($stamp);
	$startday = $thismonth['wday'];
?>

				<table class="cal-table">
					<tr class="cal-month">
						<td colspan="7"><?php echo date("F",$stamp).' '. date("Y",$stamp); ?></td>
					</tr>
					<tr class="cal-days">
						<?php foreach($w_days as $d) { echo "$tabs\t\t<td>$d</td>"; } ?>

					</tr>
<?php
	$curr_month = (date("F Y")==date("F Y",$stamp))? TRUE : FALSE; // if this calendar is displaying current month
	$today = date("j");
	for ($i=0; $i<($maxday+$startday); $i++) {
		if(($i % 7) == 0 ) echo "$tabs\t<tr class='cal-date'>";
		$date_class = ($curr_month && $i - $startday + 1 == $today)? " class='cal-today'": "";
		if($i < $startday) echo "$tabs\t\t<td></td>";
		else echo "$tabs\t\t<td{$date_class}>". ($i - $startday + 1) . "</td>";
		if(($i % 7) == 6 ) echo "$tabs\t</tr>\n";
	}
echo "$tabs</table>";

}

usage…

<?php grid_cal(date("n"),date("Y")); ?>

TypeIt4Me URL shortener using Bitly

Posted: December 23rd, 2011 | Author: | Filed under: Uncategorized | No Comments »

Here’s a quick thingy for bit.ly-ing urls. Copy a url, type your snippet and TypeIt4Me makes it a bit.ly url.

To make applescript work right in TypeIt4Me, you’ll need to add the a/s character at the beginning of your snippet content. At the bottom of the window, go to Insert> Special> a/s (Execute As Applescript)

set the ClipURL to (the clipboard as string)
# to get your api key, go to http://bitly.com/a/your_api_key
set u to "" # your username goes in the quotes
set k to "" # your api key goes in the quotes

ignoring case
	if ((characters 1 through 4 of ClipURL as string) is not "http") then
		return "Malformed URL."
	else
		set ClipURL to deHash(ClipURL)
		set curlCMD to ¬
			"curl --stderr /dev/null \"http://api.bitly.com/v3/shorten?login=" & u & "&apiKey=" & k & "&longUrl=" & ClipURL & "&format=txt\""

		-- Run the script and get the result:
		set tinyURL to (do shell script curlCMD)

		return tinyURL
	end if
end ignoring

on deHash(uri)
	set hash to "#"
	set rehash to "%23"
	set ditd to text item delimiters of AppleScript
	set text item delimiters of AppleScript to hash
	set uri to text items of uri
	set text item delimiters of AppleScript to rehash
	set uri to "" & uri
	set text item delimiters of AppleScript to ditd
	return uri
end deHash

Balloons = Dark Lord

Posted: August 15th, 2011 | Author: | Filed under: Uncategorized | 1 Comment »

Darth Vader Balloon

Brian Asman is an amazing balloon sculptor in San Francisco who was a main character on TLC’s Unpoppables (reality show about balloon twisters). He made this amazing Darth Vader sculpture. I especially like the light saber.

“Received a call to send something to a huge Star Wars fan. I’ve never created anything based on Star Wars before, and who better to create than the most recognized villain of all time? I was determined to make this a stand out work of art. Viewing images that span the years of the franchise, plus the Imperial March music playing repeatedly, I present The Dark Lord!”

Brian has won a bunch of international awards, he made a life-size effigy of me and a functioning couch all outta his magic latex bubbles. Here’s his website : http://balloonsequalfun.com


Use Geektool and Applescript to Get IOS Update Notifications

Posted: April 3rd, 2011 | Author: | Filed under: Uncategorized | No Comments »

UPDATE! THIS DOESN’T WORK

I made an applescript for making geektool alerts when there is an update to iPhone’s OS. It won’t work forever, but it will work for a while because it’s based on checking the apple website.

You’ll need to set up a text file somewhere on your computer with open permissions and you’ll need to change the path in the second line of code to list that file.

Then, you gotta save the applescript somewhere and tell geek tool to run it and display it on your desktop. When the title of the url http://www.apple.com/ios/ changes, which I assume it will do when they update, it will notify you until geektool runs again. For this reason, I made geektool only run this script every 24 hours (86,000 seconds).

I know it’s probably not the most elegant way to code this, but I was surprised how difficult it was to find a way to be notified and I wanted to quickly throw something together.

tell application "Finder"
	set saver to (path to applications folder) & "AppleScript:ScotScripts:GeekTool:TitleCheckerSaver.txt" as text -- destination file

	set HTMLText to (do shell script "curl http://www.apple.com/ios/")
	set theTitleStart to (offset of "<title>" in HTMLText) + 7
	set theTitleEnd to (offset of "</title>" in HTMLText) - 1

	set theTitle to text theTitleStart thru theTitleEnd of HTMLText
	# if theTitle is different from the saver title, send a message then reset the saver
	set theChange to ""
	if exists file saver then

		set handle to open for access saver
		set old_title to (read handle for (get eof handle) as «class utf8»)
		close access handle
		if theTitle is not equal to old_title then
			set theChange to theTitle
			write theTitle to file saver as «class utf8»
		end if
	else
		display alert "Your Title Checker File... " & saver & " ...doesn't exist" as informational
		return -- ends script
	end if
	return theChange
end tell

New Quicksilver Menubar Icon

Posted: March 15th, 2011 | Author: | Filed under: Uncategorized | No Comments »

If you use a mac a lot and like shortcut keys, you should know about quicksilver. If you do, you’ll know that the menubar icon doesn’t match very well.

Quicksilver menubar icon capture
So, I made a new one. [download link]

This new icon is cleaner, matches the bevel of osx icons, doesn’t include greyscale and has a nice selection highlight.

UPDATE: quicksilver is now using my icon in their newest release! b60


Proof That Airport Security Doesn’t Work

Posted: November 16th, 2010 | Author: | Filed under: Uncategorized | No Comments »


Requested Fixes for Mac: Addressbook & iCal

Posted: November 11th, 2010 | Author: | Filed under: Uncategorized | No Comments »

Maybe I’m crazy, but I think things could be better. I chose apple because it is better, but two apps which they are probably not planning on changing definately need some work. If you have more ideas, please comment.

Please fix iCal

quick entry

Okay, i use ical all the time and i’ve gotten to the point where I just put all the information about a meeting or something in the name of the event because I hate dealing with the interface. As a result i have events that are named things like “JR show at viper room 10pm”. The actual event details listed in ical are whatever the defaults are.

We need a quick entry field to plop down all the info and it saves the event correctly. Like when i type “Meeting with Janis Markly at 11am friday at coffee bean larchmont . bring projector” ical should look up janis markly in my addressbook, set the correct time and date, search for “coffee bean larchmont” and give me options, then add this entire blurb to the notes for the event and ask me to confirm that it figured everything out right. This is what computers do. They churn info. Google calendar already does some of this stuff. The tech is here. I want it.

At the very least, fix how clock times are entered!

doesn’t match iphone

iCal can sync with iPhone’s calendar pretty easily in a lot of ways, but there’s a problem with urls and location.

Location will show up on the iphone, but when you tap it (if it’s an address) it will not activate as a link, so you can’t map it that way. You’ll need to cut and paste it to maps. You can, however add an address as a note and that will become a map link. There is no mapping feature from the desktop ical.

URL is the only way to put a clickable link in your ical event. Too bad it doesn’t show up in your iphone AT ALL. To have a url that shows up in your iphone, you need to put it in the notes of the event. That url will be clickable in iphone but not on desktop.

Basically, you have to put urls in both the url field and the notes field of all new events and only put the location in the notes because it does absolutely no good in the location field.

better location fields

I think they should make the location fields work and they should make them better. The location should have 4 fields. Location Name, Location Address, Location City, Location Country. This would be more to fill out, but it should be automated. Having this stuff will help with precise mapping and will reduce mistakes.

continuous grid

Okay, this is really stupid. The broadest view in ical is monthly. You don’t plan events by month, you plan them by day. eg: if I set up a date for the first Monday in December, I have to click the tiny arrow button (i hate tiny buttons) to skip ahead. Why not scroll down? We’re obviously not afraid of losing the sanctity of month divisions, because there is a day from last month and 4 days from next month showing on my Nov’10 grid. Make a continuous grid! It’s not that hard. You’ll have to do some loading and unloading ajax style and maybe make a new scrollbar, but c’mon we live in the future!

Continuous Grid Example.

Address Book

quick entry

Just like iCal needs it, Address Book really needs it. Usually contact info is written pretty neatly somewhere and would be easy for a computer to interpret. Should be, click a plus button and a single field pops open where you can simply paste in some text. Then, address book could show you where it thinks the stuff goes and put it together accurately. If connected to the internet, it could test mailing addresses. pretty simple. You could also type all the stuff out really fast in that box and address book would figure it out. nicer than weird tabbing or clicking on each field.

auto from email

I don’t know what this feature is called, but it’s supposed to pull contact info from a mail.app message and figure out how it fits in your address book. It sucks pretty bad. It doesn’t enter the country ever, it adds every phone number as “work” and it adds my own contact info.

If i send an email to someone asking for their info, they’ll reply with my quoted text (including my own contact info). I think my mac should be smart enough to find that contact info (like my email address) is already in my address book and discard it or at least ask me if it should be duplicated. It doesn’t.

using the info

I wish mail would learn that I use my Mom’s email address more than i use Mo Mandel’s so I could type mom and it would be the first result.

Also, I wish that there were 3 buttons visible and easy to single click in every contact. “Send Email” “Share Contact” and “Map it” I know the features are there, but why not make them easily available like in the iphone?

defaults and autofill

It would take some playing with to figure out the right way to do it, but there should at least be a default city and state and country. This could be figured out by the user’s location or whatever. It’s a pain to have to enter this every time. I use text expander to enter the Los Angeles faster, but it’s still stupid.

If someone works for the same company as someone else, it should be easy enough for address book to offer to autofill in that person’s work address.

Both of them

Shortcut keys to edit. How about if you stick to CMD+E to edit, CMD+S to save? Seems simple. iCal is CMD+E to edit and CMD+E to save. AddressBook is CMD+L to edit and CMD+S to save. Stupid.

Copying and pasting is a bitch. Currently, i have to edit either the event or the contact in order to make the text selectable for copy and paste.

Sometimes i feel like i’m working to appease these two apps and I think of all the people in the world running through the same sand. I hope someone fixes this stuff so they work for us.


NYT Best movies in my pants

Posted: October 31st, 2010 | Author: | Filed under: Uncategorized | No Comments »

I took the NY Times 1000 best movies and put them in “My Pants” for your convenience. Now leave my twitter feed alone!

A Nous la Liberte In My Pants
About Schmidt In My Pants
Absence of Malice In My Pants
Adam’s Rib In My Pants
Adaptation In My Pants
The Adjuster In My Pants
The Adventures of Robin Hood In My Pants
Affliction In My Pants
Read the rest of this entry »