What I find interesting.....
Adobe After Effects Play Sound in Video Preview

Trying to preview your vide in After Effects, but the audio isn’t playing?  In order to play the sound or audio during the video preview, you need to click the “RAM Preview” button in the Preview pain as shown below:

Adobe After Effects Play Sound in Video Preview

Trying to preview your vide in After Effects, but the audio isn’t playing?  In order to play the sound or audio during the video preview, you need to click the “RAM Preview” button in the Preview pain as shown below:

Fix CoffeeScript Unexpected Indent Error in SublimeText

Fix CoffeeScript Unexpected Indent Error in SublimeText

Getting this

error: unexpected INDENT

in my rails app related to the coffeescript was very frustrating, and difficult to debug because all the indentation in my code appeared to be correct.  It actually had to do with our my text editor, Sublime Text, was handling tabs and spaces.

To fix this, go to View -> Indentation and check Indent Using Spaces and Convert Indentation to Spaces.

Credit here.

View On WordPress

Play Audio File on Button Click in Rails

Play Audio File on Button Click in Rails

So you want to play an audio clip on a button click.  In your view file

<%= audio_tag "audio.m4a", class: "audio-play" %>
<p class="btn btn-primary audioButton">Play</p>

This uses the rails audio tag, and then places a button next to it. In the javascript, you play the audio file on the button click:

$(".audioButton").on("click", function() { $(".audio-play")[0].currentTime = 0; return…

View On WordPress

Take a Timed Screenshot in Mac

A very useful tool that I never knew existed until today.  Every mac comes with a utility called &#8220;Grab&#8221;, in the Applications &gt; Utilities folder.

Take a Timed Screenshot in Mac

A very useful tool that I never knew existed until today.  Every mac comes with a utility called “Grab”, in the Applications > Utilities folder.

How To Trim Audio Clip in Adobe Audition CS6

Today was the first day I ever opened Adobe Audition (link).  As with most Adobe software, I personally find it very un-intuitive, and almost impossible to figure it out just by hunting around.  

How To Trim Audio Clip in Adobe Audition CS6

Today was the first day I ever opened Adobe Audition (link).  As with most Adobe software, I personally find it very un-intuitive, and almost impossible to figure it out just by hunting around.  

Horizontal Line in HTML

Horizontal Line in HTML

So this is pretty simply, but I feel pretty useful.

To make a horizontal line, use the

<hr>

tag.  With no styling, it will give a result like this:

You can style it just like any other element, using CSS.

 <hr  style="height:3px;background-color: black;width:90%;" class="line1">

gives

Some credit here, although some of the stuff in that post is deprecated. I believe in HTML5, the best practices…

View On WordPress

Video End Event in Rails

Video End Event in Rails

How do you call an event or action after a video has finished playing? For example, I wanted a “Continue” button to appear after the video has finished.  Searching around this was a bit hard to find, so hopefully this post will help some people.

There is an “onended" function that you can call on the video object. This is how I do it.

Here’s the jQuery

$("#myVideo").bind("ended", function() {…

View On WordPress

Sublime Text Multiple Cursors Select Next

Sublime Text Multiple Cursors Select Next

Did you know that you can use multiple cursors in Sublime Text?  If you want to auto select all of the instances of a certain text, simply highlight it, then press hold <code>Cmd</code> and keep pressing <code>D</code> to select all the instances of a word. Now you have multiple cursors, so you can edit all those instances at the same time. Pretty neat huh?

View On WordPress

How to remove Turbolinks from Rails 4

How to remove Turbolinks from Rails 4

Turbolinks is included by default in Rails 4.  It does do a good job of making pages loading faster, but not reloading all the javascript on each page.  This works fine a lot of the time, but there are cases where you may want to have page specific javascript load only on a single page.  Turbolinks can also cause other issues with javascript now working, in my case it created a bug where I had to

View On WordPress

Split a Layer in Adobe After Effects

Split a Layer in Adobe After Effects

A simple thing, so a short post.  To split a layer in After Effects, the hotkey shortcut is Cmd+Shift+D.  This will split the layer at the position of the Current Time Indicator (the red line).  You can also select the layer and choose Edit -> Split Layer. This will work on audio, video, or image layers.

View On WordPress