Running grunt tasks from gradle

I recently needed to run grunt tasks from gradle. I started with the solution posted by Yassal Sundman and wanted to document my final implementation.

Prerequisites

Install gradle and node (and npm which is now included with node). I’m using homebrew to make this a snap on OS X.

ruby -e "$(curl -fsSL https://raw.git.com/Homebrew/homebrew/go/install)
brew doctor
brew install node
brew install gradle

You will also need to install grunt-cli globally through npm. I’m hoping I to remove this dependancy, until then I will sleep knowing it’s a typical prerequisite.

npm install -g grunt-cli

The gradle tasks

The following is what I have in the subproject build.gradle file. Include a npm task to install the node packages that the grunt tasks depend on, to be sure grunt is installed (be sure to include grunt as a dependency in package.json). You can add a task in gradle for any grunt task using the GruntTask class.

Read More

Music Storage, historically

I have moved boxes of CDs between many places. In the beginning it wasn’t a burden and a required practice if I hoped to entertain. My music collection, as small and embarrassing as it was, was preferable to radio or silence in that hypothetical scenario. 

When I was taking a break from not entertaining and someone would pull out vinyls at their place, I was impressed. Ultimately, though, I was sure I wouldn’t be helping them move. My music collection, while uncool, was portable.

Read More

Great heads-down, in the zone music

Tags: music spotify

How I learned to love black & white in the age of screens

This will be a short post, devoid of specific instructions. I hope to come back through in the near future and fill in the missing steps (I like very complete instructions), but wanted to get this started. 

Since I received my Kindle PaperWhite for Christmas, it has graduated from being my favorite present to my most indispensable device. The batter life is indispensable, it’s versatility admirable, the pure practicality, portability and functionality has me clamoring to better utilize it.

Anyone can realize the benefits of having the your books and periodicals accesible and interactive. You will be surprised to discover the Active Content. The personal documents will completely sell you, though.

I often find an article in daily research that deserves in-depth study, but can only receive cursory review during the work day. I used to bookmark or save them to Evernote, knowing that they would likely be deleted in the future unread.

I know that I will follow up on them if I can take them to the elliptical machine at the end of the day. That’s were ‘send to my Kindle’ is so useful. Email the document to your Kindle’s email address, and it will be added to your device. I’ll cover the how to’s in the future, but I want to point out a service that become indispensable to me.

Actually reading that helpful blog article

Too often, the most helpful document that I come across in researching web development is in the form of a blog entry. When I first decided that I should get it on me Kindle so I could fully read it and it’s comments, it was a laborious process. Now, it takes me seconds.

  1. Set up an account at Online-Convert (optional, but will allow you to email to your reader directly form the site)
  2. Convert to the MOBI format, which will give you a true eBook experience (Amazon will convert this format to their format, in true form, before delivering it to your device)
  3. Enter the URL of the article into the top field
  4. (optionally) I like to add the Title and Author fields myself to keep it readable
  5. Convert the file
  6. After you convert, you will see the option to email it as an attachment. Enter your Kindle’s email address, check the following checkbox, and send.
  7. Be sure to whitelist the domain (more on this to follow)

Apologies for terseness

I like to be complete when I offer advice. I didn’t have time for that this time (it’s usually a week long affair of editing). I love the ability to find an article, send it to my Kindle, and do it very quickly. I like to be efficient when it’s easy. More to follow

Save your iCloud storage

When you got your iPad, iPhone, or iPod (iDevice), hopefully you set up a free iCloud account to use Find my Device and backup your data. Several months later, you probably started getting notices that your iCloud storage is almost full. TIme to fix that.

The problem

By default, almost everything on your device gets backed up to iCloud. Any app you add that saves offline data will be included. Built-in apps will expect you are using the whole Apple platform. All this extra data, much that is not really used by you, will eat up that iCloud space.

The solution

Refine those settings to only keep what is really needed. If you use a service like Facebook, Instagram,  or Evernote, you can rest assured (?) that they already retain your data. If you don’t use iTunes, you don’t need to sync all that media.

The strategies

Between the iDevices that I maintain in our house, we have 2 strategies.

Services strategy

I use many laptops and devices, with several Operating Systems. I can’t be tied to any one platform and I want my data to be portable. 

Turn-key strategy

My wife has multiple iDevices. While she regularly uses a PC, she is willing to trade off portability and customization for reliability.

The Settings

It took me a while to find these settings and I always forget how to get back to them the many times I’ve tried to help others manage their iCload space. This whole post is mostly to retain the following steps:

Read More

For father’s day, my son made me a Minecraft world filled with greetings, a puzzle, and an iron smelter. 

He was hiding out in his room all day, staying home when we ran errands, and stayed up all night on Minecraft. I was worried he was getting to that age where he no longer had any interest in his parents. Feeling a little foolish for worrying after I saw what he had been doing with his time.

Very pleased dad and looking forward to playing some Minecraft tonight. Should be a lot of fun with my lit roller coaster, traps, and automated iron smelting!

tjholowaychuk:

Several months ago I started a project named Rework, a very fast, simple, flexible, and modular CSS preprocessor. The biggest and most obvious question I get is how this tool compares to something like Stylus, LESS, or Sass, and why would you want to use it.

The simple answer is that…

(Source: tjholowaychuk)

Test tube rack complete, ready to begin the science project (at Renner Home)

Test tube rack complete, ready to begin the science project (at Renner Home)

"Say you and a friend are looking at a sunset. Your body is processing a huge variety of sensory inputs: a spectrum of electromagnetic waves—red, orange, and yellow light—which focus on your retina; the vibrations of your friend’s voice, which bounce along the bones of your inner ear and transform into a series of electrical signals that travel from neuron to neuron; memories of past sunsets, which spark a surge of dopamine in your mesolimbic pathway. These effects coalesce into one cohesive, indivisible experience of the sunset, one that differs from your friend’s."

http://www.theatlantic.com/magazine/archive/2013/01/awakening/309188/

Japandroids is one my favorite discoveries recently. Sadly, I just missed the chance to see them at Triple Rock.

(Source: japandroids.com)

Tags: music