Carter Bailey Tech Thoughts, lessons learned, and motivation

31Oct/120

Dear Twitter: I laugh at your 140 character limit!

Posted by Carter Bailey

I love a good hack as much as the next guy, and it just hit me that there is an incredibly easy way to get around Twitter's 140 character limit without worrying about 3rd party apps, software, or "Con't" tweets.

Filed under: Hack Continue reading
26Oct/122

Quick Simple (and kinda dirty) URL Manipulation with JavaScript/jQuery

Posted by Carter Bailey

This is probably not something unfamiliar to you, maybe you've done it before or maybe you think this is the dumbest way to do this ever.

I thought it was pretty nifty (the wonders of JavaScript and jQuery never end), and I thought I'd share.

1
2
3
4
$('a').attr('href',
  function () {
    return this + '&AdditionalQueryVar=newvalue';
});

Click through to let me know in the comments what you think and what you would do for this.

[Updated 25 April 2013: Commenter Mike made a suggested rewrite for this snippet and has a great little URL manipulation library available on GitHub: https://github.com/Mikhus/jsurl]

Filed under: Code Continue reading
25Oct/120

Why I Love Sparrow on iOS and Why I Don’t Want Push Emails

Posted by Carter Bailey

The Sparrow icon on iOS

Dear Sparrow,

I know you were recently acquired by Google, so maybe I should be addressing Google, but it is your icon I see in on my Launchpad bar. I know  getting certain emails can be important or, at least, people think it is important. Push Notifications for email in your iOS app would be widely appreciated. Personally, this would be an unwelcome feature for me, and I would like to share the "why" with you.

18Oct/121

Google Adsense: How the F#$& do I get daily email reports?

Posted by Carter Bailey

Maybe I missed orientation day or whatever training there was for the more advanced Adsense tips and tricks, but I was getting tired of going to my Adsense profile every day just to look at some dismally small numbers of ads served, virtually zero ad clicks, and a big goose egg for daily ad revenue.

So here is how to setup daily (or any other frequency) email performance reports on the newer Adsense accounts. If you have URL channels setup correctly, this is much easier as you can group by those to see how each website is performing. Let me know in the comments if a short tutorial on setting up URL channels would be helpful.

Filed under: Business Continue reading
13Oct/120

Using JSLint: A Couple Suggestions and Reminders

Posted by Carter Bailey

Recently, we've been redesigning an ASP.net and VB.Net web app at work to fully utilize a Client-Side architecture instead of the usual Server-Side ASP page life cycle that comes baked into similar web apps. We've moved away from the server "owning" the data to the client's browser "owning" the data (using the JSON format), processing adjustments to that data, and making the requests to web services that handle any analyzing of the data. All that to say that I've been working heavily in Javascript, jQuery, AJAX, and various plugins that go along with those. Free, online tools like JSLint and JSONLint are invaluable tools for the client-side developer.

The following are some suggestions and reminders for situations that I've come across for using JSLint the most effectively.