Tag Archives: javascript

Tasker: displaying Active Profiles one per line in a Minimalistic Text widget on the homescreen

so a few days ago i actually purchased an app. for the first time ever. (some would say i’m cheap, but i prefer frugal)

what warranted the opulent purchase of $3.99, you ask? Tasker, the android automation app that apparently lets you automate just about everything on your phone. i was instantly enthralled, to say the least.

i’m still new at this, but today i figured out how to display something pretty nicely and i couldn’t find the instructions on almighty google, so i’m sharing:

how to make an at least semi nice looking active profiles display widget


a screenshot of an android with the cyanogenmod 12.1 OS showing custom tasker widgets, among which one shows the currently active profiles
fun fact: i just got cyanogenmod 12.1 the other day so i had to google “how to take a screenshot on cyanogenmod 12” to get this image

if you haven’t already guessed, i’m going to provide a short tutorial of how to get the “Active Profiles” custom widget seen in the screenshot. you may also be wondering why on earth i’m still using BBM, but i’m going to ignore that for now.

some of you might be reading this and thinking “but wait, doesn’t Zooper do something like this with Tasker integration?”

why yes, i have been googling that for hours, thanks for checking. but since Zooper is  $2.99 and i’ve already indirectly mentioned that i’m a fan of free apps, i wanted to see if i could do this with Minimalistic Text instead. so i did.

i’m going to assume that those reading this have at least made one very simple profile in Tasker already (maybe try this first if you haven’t).  there is also this handy tutorial if you’ve never worked with Minimalistic Text-Tasker integration before.

it is important to note that when Tasker Profiles become Active (in use and lit up green within the app UI itself), Tasker stores a comma separated list (a string, not an array) of all of the Active Profiles in its built in global variable %PACTIVE. they also put commas at the beginning and end of this string “to make matching easier”. it is very ugly.  this will come up later.

now to the learning part!

Continue reading Tasker: displaying Active Profiles one per line in a Minimalistic Text widget on the homescreen

CoffeeScript Beginner Beginner’s Guide


Hey there! You’ve found my intro to CoffeeScript page. You can learn CoffeeScript at the same time I do! I’m no expert, but I’ve learned a few things and thought it would be good to share. This is my beginner beginner’s guide.

CoffeeScript is a self-described “little language” that compiles to Javascript.  I’ve also seen it described as a Javascript pattern-handler, in that it takes common Javascript patterns and gives the developer easier and shorter programming alternatives to write the pattern. For example, and I will get into this is more detail later, CoffeeScript allows you to use classes in a similar way to Ruby or Python, while actually using prototypal syntax behind the scenes. This saves the developer a lot of writing, as we will see.

This tutorial will include written explanations and demo videos. They will be divided into sections based on themes in CoffeeScript. This was my first time uploading videos and I couldn’t figure out how to edit them without majorly decreasing quality, so unfortunately to strike a balance they’re a bit blurry. Any helpful hints would be appreciated!

Continue reading CoffeeScript Beginner Beginner’s Guide