C n00bery continues

Posted by on Feb 14, 2014 in updates | No Comments

Competing admirably for the world’s most boring exercises! This one works with arrays, digit/character/whitespace counting. Also character in/out. woo!

Here’s hoping I get to build something interesting soon. Reminds me of doing scales when you first pick up a new instrument. You just want to get to the music. Patience, my boy. Patience.

#include <stdio.h>
    
int main() {
    int c, i, nwhite, nother;
    int ndigit[10];

    nwhite = nother = 0;
    for(i = 0; i < 10; ++i)
        ndigit[i] = 0;

    while ((c = getchar()) != EOF)
       if (c >= '0' && c <= '9')
           ++ndigit[c-'0'];
       else if (c == ' ' || c == '\n' || c == '\t')
           ++nwhite;
       else
           ++nother;
    printf("digits =");
    for (i = 0; i < 10; ++i)
        printf(" %d", ndigit[i]);
    printf(", white space = %d, other = %d\n",
        nwhite, nother);
} 

C is decidedly dry so far…

Posted by on Feb 13, 2014 in updates | No Comments

I mean C is basically JavaScript so far, with a slightly different syntax. Doesn’t stop the early chapters from being incredibly dull. I’ve decided to go as slow and casual as possible when starting out on a new language, so I don’t mind so much.

Let the fun continue!

Being a n00b again.

Posted by on Feb 12, 2014 in updates | No Comments

I’ve always been a front-end developer with longing, backend inspirations. I love the idea of building something from top to bottom. Front and back. From the design to the UI to the database. So I’ve decided to start filling in my developer gaps. Over the next year and a half, I’ve laid out a plan for myself to learn (or at least lay the foundation for applying) the following languages.

  • C, C++, Objective-C
  • Java
  • Applying the two above to Android/iOS
  • Perl
  • PHP
  • Python
  • Ruby
  • Ember, Node, etc
  • Advanced SQL

Over the next year, I plan to chronicle my learning experience and tidbits here.

So I’ve started with C.

So far it’s going well.  Here’s where I am today on Day One:

#include <stdio.h>

int main() {
    float fahr, celsius;
    float lower, upper, step;

    lower = 0;
    upper = 300;
    step = 20;

    fahr = lower;
    printf("fahr celsius\n");
    while (fahr <= upper) {
        celsius = 5 * (fahr - 32) / 9;
        printf("%3.0f %6.1f\n", fahr, celsius);
        fahr = fahr + step;
    }

    step = 20;
    celsius = lower;
    printf("\n\ncelsius fahr\n");
    while (celsius <= upper) {
        /* Multiply by 9, then divide by 5, then add 32 */
        fahr = (celsius * 9 / 5) + 32;
        printf("%3.0f %6.0f\n", celsius, fahr);
        celsius = celsius + step;
    }
}

Gotta start somewhere, right?

A Music Maker: My History

Posted by on Jan 1, 2014 in updates | No Comments

I was just reflecting earlier today and realized, I have been at this “making music and putting it online” thing for a long time.  Thanks to the magic of archive.org I was able to pull out some old versions of my site.  It was an interesting process to see how my styles (and design/development techniques) have evolved over the last 11 years.  Hilarious that they started out as old school MIDI files.  Here’s a look through history.

 

1999:

Media_httpgrabbygrabs_vhdmx

2001:

Media_httpgrabbygrabs_vyfih

2003:

Media_httpgrabbygrabs_sicmr

2005:

Media_httpgrabbygrabs_adduj

2007:

Media_httpgrabbygrabs_bfoco

2008:

Media_httpgrabbygrabs_wjndc

2010:

Media_httpgrabbygrabs_oibcx

2011:


2012:

2013:

2019:

And the process continues over at http://dep.fm/

http://dl.dpeck.net/C1gWQl

My Mayday Project is Complete

Posted by on May 31, 2012 in updates | No Comments

Over at dep.fm I’ve been maintaining a project called Mayday where I wrote, recorded, and released one original song every day for the month. It was quite a project indeed. I’m thankful that it is over, because it was often hard to make time for it, but I did learn a lot about myself throughout the month. I definitely recommend the project for anyone interested in doing something creative.

Check it out here.

Better Pinboard: An Extension for keyboard shortcuts and more

Posted by on May 16, 2012 in updates | No Comments

Chrome User? Download Here!

Last updated: June 6, 2012

Better Pinboard enhances popular bookmarking site Pinboard.in.

Keyboard Shortcuts: By default, Pinboard allows you to jump around within the site, but doesn’t give you a whole lot of bookmark navigation or manipulation options. This will also enable you to “leap” to a tag or combination of tags without ever using the mouse. See below for the keyboard shortcuts that this extension will give you.

Navigation
n or ] = next bookmark/note
p or [ = previous bookmark/note
+ = add new URL
shift-n = add a new note
g then * = go to starred
g then p = go to private
g then l = leap to a new tab (comma separated)
g then w = go to written notes

Selected Bookmark/Note
e = edit
t = edit tags
s = toggle star
# = delete
x = mark as read (done)
[enter] or o = open selected
[shift-enter] = open selected in a new tab
v = open cached version
shift-v = open cached version in new tab
c (then cmd-c) = copy selected bookmark/note url

Others
h = toggles Hiding of peripheral content (minify view)
\ = enter “type-ahead” mode to filter the view (experimental)

LEAP to a tag or combo of tags
Probably my personal favorite, with a quick “g, l” you can bring up a quick modal that allows you to dive in to a tag or combination of tags really quickly. For instance, “g, l” followed by “videos,funny” would show me all of my bookmarks tagged “videos” and “funny.”

Minify Your Bookmark View by Hiding Noisy, Peripheral Information
With a quick keyboard shortcut ‘h’ you can hide all of that peripheral, noisy information and see a birds eye view of your bookmarks.

Type-ahead!
Just press “\” and you’re in “filter” mode. You can type-ahead mode and filter everything out of your view that doesn’t match what you type. Excellent!

“To Read” becomes “To Do”
We use Pinboard for lots of things. Not just articles, but videos, games, pictures. Not everything is something you “read.” One thing that has always bothered me about Pinboard is that this section is titled “To Read.” This extension also “renames” this section to “To do.” Furthermore, instead of marking things as “read,” you now mark things as “done.” I just think it works a lot better.

Mini Pinboard Access
With the click of the toolbar button, get access to your bookmarks from anywhere.

I hope you find this helpful. Free free to leave comments or suggestions below.

Download here.

Bon Iver’s Perth (Piano / Electronica Cover)

Posted by on Jan 2, 2012 in updates | No Comments

I usually post music-related posts at dep.fm, but since this is more of a “special event,” and more of a personal release, I wanted to syndicate this here, as well. For posterity, if anything.

My favorite song of 2011 was, for sure, Bon Iver’s Perth from his 2011 self-titled release. It’s a beautiful piece. I decided it would be a fun experiment to, for the New Year, deconstruct the song and rebuild it for piano and electronica.

I recorded the percussive elements by tapping on various parts of the piano and then cut those in to individual drum samples. Then I sequenced the patterns in a tracker called Renoise. After just listening back and forth between the album track and my version to get the structure of the song duplicated, I continued on with various synthesized layers to produce some texture and atmosphere.

Finally, I started working on the piano part. It’s worth mentioning that I’m not a pianist, but play well enough to be able to play songs I like and help me write my own new songs.

Once I had the piano part down, my brother (@revpictures) came over with the Canon 7D to help me video the song. I used a Tascam DP-008 digital 8-track to record the piano from two condenser mics located behind the piano, and then a Shure sm58 for the vocals. I had the laptop handy to play the pre-sequenced beats. Afterwards, I combined and mixed the recorded parts in Wavelab and final mixed them back in Renoise.

I edited the video footage together in iMovie and then sent back to my brother for final post processing. The project took around a week of sequencing, 3 days on the piano to get that part ready, then a day of shooting, editing, and final mixing.

You can download the mp3 here (You may have to right-click, and Save As).