Getting Bash Right on Your Mac

Posted on Oct 15, 2016 in Code Samples | 0 comments

If you spend a lot of time maintaining your servers, you probably have a few aliases and other bash-shell tweaks that you’d like to be part of your terminal experience on your Mac. For years I have been frustrated that my alias for l=’ls -la’ doesn’t seem to get executed even though it is in my .bashrc file!

SOLUTION: It turns out that bash on your Mac terminal doesn’t automatically read .bashrc so you have to force it. To do this, add the following to your .bash_profile file:

[[ -s ~/.bashrc ]] && source ~/.bashrc

And Voila! Every time you enter terminal now your .bashrc will be executed.

You’re welcome. 🙂

Read More

Useful Code Tip – Clearpixel

Posted on May 14, 2014 in Code Samples | 0 comments

Even in today’s CSS3 world, it is often useful to use the old ‘clear pixel‘ trick to create gaps and spaces of finite pixel widths. But often, in the middle of a project, it is difficult to find that old single pixel transparent GIF file and get it into your images directory.

There is an easier way! Use the base 64 encoded version Just keep this string handy…


Use this as the image “src” attribute and you’ll have instant clear pixel of width 1 to use as you like.

A php example:

$clr =”data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAA

<img src=”<?=$clr?>” width=”20″ />

creates a gap of 20 pixels.

NOTE: The string had to wrap to fit this blog post. Please be sure to use both parts!


If you have a tip for me to share, let me know.


Read More

Beat me. Scan me. Send me Bitcoin

Posted on Dec 28, 2013 in Bitcoin | 1 comment

bitcoinqrNothing beats a clever QR code to appeal to loyal followers for some support. Just scan this QR code for my public address if you feel generous. For those who have no idea what I’m talking about, tip jar is on the right. 🙂

Read More

Barclays Bank Announces Support for Bitcoin exchange Bit121

Posted on Dec 16, 2013 in Bitcoin | 1 comment

Bitcoin-accepted-here-printableIn a startling move, Barclay’s Bank today decided to start accepting sterling deposits for a new UK bitcoin exchange called Bit121. Bit121 just began trading on November 11th.  According to CoinDesk magazine, Bit121 is a little sketchy on details like contact information, but that is par for the course for Bitcoin operations.

Read More

Bitcoin 1 – China 0

Posted on Dec 5, 2013 in Bitcoin | 1 comment

Production Of Bitcoins By Mike Caldwell of CasasciusToday China announced that its central bank may no longer recognize bitcoin as currency. In the short run, this means that the Chinese, who have been buying up Bitcoin like crazy as of late, would have a more difficult time converting their Bitcoin to spendable currency. But this is actually good for Bitcoin. It was never intended to be a tradable commodity. It was designed to be an electronic currency and making it difficult to convert does two things: 1- It drives the value up and 2 – helps spawn an even larger online-only business community.

Read More

Ah yes, Bitcoin

Posted on Dec 2, 2013 in Bitcoin | 6 comments

bitcoinsIt’s here. The virtual currency that has teenagers drooling, hackers pixelating and governments shuddering. All across the digisphere, folks are perplexed, confused, excited and opinionated. If you listen, you’ll hear things such as…

“It’s going to boom!”

“Its going to crash!”

“It will never replace ‘real’ currency”

“It has already replaced ‘real’ currency.”

Just pick your favorite rant and run with it for 24 hours or so and you’ll probably be right. But what about the really long haul? What if you just slowly accumulated Bitcoin for the next 3-5 years?

Read More

The Art of Unintentional Collaboration

Posted on Jul 29, 2013 in Interactive Tech | 2 comments

We’ve all heard the old adage, “I once went to a fight and a hockey game broke out.” But for this to really happen, we’ve have to create reverse entropy, or in layman’s terms – social media events. Across the world, people are meeting and engaging in social media with absolutely no intentions, other than to meet and greet. But occasionally, a spark is ignited and a relationship breaks out, bringing order to an otherwise chaotic event. The key to successful encounters is to have access to the proper toolset and skills to begin a meaningful collaboration. And that is where many of us fall short.

Read More

Today is the best day to blog

Posted on Apr 4, 2013 in Interactive Tech | 0 comments

pen_and_paperReally. That’s what all the experts say. The best day to blog is Monday because that’s when more people read them. People are just getting started with their week and are seeking new, important information to supplement their already over-saturated techno-minds with additional drivel spewing from my hand. And who is going to argue with experts?

Read More

Social Automation is a State of Mind, not a State of Technology

Posted on Mar 20, 2012 in Interactive Tech | 2 comments

I have had debates recently with a few friends regarding the ethics surrounding the use of automation tools in social media. I refer you to two excellent blogs by two very bright people, Deborah Ann Gibbs and social media guru, Chris Voss. The gist of our discussions have centered mostly around the fact that most social media networks began life by telling us that automation was strictly prohibited. On a side note, I have had one site that I created banned by Twitter because it allowed users to write hundreds of tweets in advance and then tweet them at regular intervals. I even had a personal exchange with the CTO at that time, Doug Williams, who ‘regretted to inform me’ that my website was in violation of Twitter’s Ts and Cs and that I must shut it down. Meanwhile, in the same time period, Dell was tweeting daily specials on a completely automated system. C’est la vie.

Read More