Chris Pollock

Chris Pollock - web developer & ecommerce entrepreneur
undivided… my thoughts on world, family, church, business, technology and Jesus Christ (all in all)

Blocking Google Images with Dansguardian

Google images safe search isn't safe enough for our house. I wanted to find a way of blocking google images without blocking all of Google's services. This solution works as of 12 November 2013. Keep in mind Google is always changing things so this isn't a permanent fix. The thing I found was that a google image search uses a particular web parameter that can be detected by dansguardian and effectively replaced to "break" goole image search.

Here is the code that needs to be added to the urlregexplist

# ban google images

[ Leave a Comment ]

Restarting Dansguardian on OSX

I recently installed Dansguardian on my mac to have finite control over web traffic.

This post from drb80 was very helpful in getting it installed.

After you edit the conf files you'll need to restart the daemon. Here's how to do it:

sudo launchctl unload -w /Library/LaunchDaemons/org.macports.dansguardian.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.dansguardian.plist

[ Leave a Comment ]

YouTube Sanitizer – No Suggested Videos

Has this ever happened to you: You're watching a perfectly acceptable You Tube video with your children, when the video ends you are presented with a nasty thumbnail of what You Tube considers to be a "Related Video".  My wife has asked me if there was a way to get rid of the suggested videos at the end of the You Tube videos – the fasetest solution was for me to create a quick tool that parents could use to create a playlist free from "Suggested Videos".

Banner ads will still show at the bottom of the video from time to time.  I haven't found a way to diable that yet.

Access this tool here:


How To Use the Tool

It's pretty simple to use.

Pull up the video you want to "sanitize" and copy the code from the URL:

Screen Shot 2013-02-16 at 5.42.37 PM

Enter the copied code into YouTube sanitizer:

Screen Shot 2013-02-16 at 5.45.59 PM


You can enter more than one code.  Put each code on a new line.

Click Submit and you'll be on your way to viewing your video without the "threat" of Suggested Videos.

Update 1: Bookmarklet Available

Now you can sanitize your videos even easier.  Simply drag the link below to your bookmarks bar.  Then, when you're on a YouTube video that you want to sanitize, click the bookmark link in your toolbar.  A new page will open with the sanitized version of the video.

YouTube Sanitizer




[ Leave a Comment ]

Mac OSX: Resize Image on Right Click

I resize a lot of images to the same size for use in my blog and on my web site.  This automator script allows you to quickly resize and image from the right click menu.

Resize Image on Right Click - Automator

[ Leave a Comment ]

Must Have Mac Software – Web Developer

It's been almost a year since I switched to using a Mac from a PC.  Since then there have been a number of other converts.  Our entire household now uses Mac computers and I know other people who are switching as well.  I wanted to list out some of the software that I've found helpful over the past year.  Note that this is mostly from the perspective of a web devleoper

  • Transmit – Great FTP clients that even supports S3 –
  • Sequel Pro – Must have manager for anyone who deals with mySQL –
  • Time Out – Prevents eye fatigue by prompting you to take breaks –
  • Text Wrangler – Good text editor –
  • Apple developer tools – Install these from the disk that comes with your Mac.  The program I use the most is FileMerge
  • Growl – notification software –
  • Adium – IM client – I love how it can be tucked away off screen –
  • Hyperdock – I use this to manage my windows – allows them to be made full size or part size by dragging them around the screen –
  • USB Overdrive – – a necessity for running my Evoluent Vertical Mouse –
  • Typinator – a shortcut text expander program –
  • Alfred – quick launcher application –
  • Clean Archiver – take the junk out of the standard mac compression –
  • Jing – great for quick screen casts –
  • Jumpcut – clipboard app that keeps a record of your latest clipboard cuts –
  • iStats Menus – allows you to keep an eye on our processor and memory –

There are a lot of other programs that I use that are more well known, but these form the foundation of smaller apps that make computing on the mac even easier.

[ Leave a Comment ]

Pondering: Is Health Insurance the New Social Glue?

My wife was reading an article in the NY Times about a man who was rushing into marriage because he need to get onto his girlfriends health insurance before his ran out.

My reaction: Is health insurance the new social glue? How many times have you heard that someone is doing something, staying at a job, even staying in a relationship because of the healthcare benefits? I suspect most everyone has heard someone say something along those lines.

I don't think there is any doubt that this "benefit" is providing a certain amount of glue. Something that I've never thought of thus far is: with the prospects of a nationalized healthcare system, what would become of that glue. My guess is it would lose it's stickiness.

I'm definitely not out to make a political statement on this one, my thinking here is purely philosophical. I'm not out to say it's better or worse without the current glue, but rather: how sad is it that this is one of the core things that's holding our society together is health insurance. Not love, not family, not a sense of duty, but health insurance.

Your thoughts? Comment.

[ Leave a Comment ]

Dirty Love and Spiritual OCD

I am beginning to understand that love is fundamentally messy. Think about God’s seedbed for love, the family. Conceiving children is messy. Giving birth to children is messy. Raising children is messy. There’s absolutely nothing clean or aseptic about this process, it’s a big mess. Move from the family to another display of God’s love, the cross. What a mess: betrayals, denials, beatings, and then finally a bloody crucifixion.

Now when the Pharisees gathered to him, with some of the scribes who had come from Jerusalem, they saw that some of his disciples ate with hands that were defiled, that is, unwashed. (For the Pharisees and all the Jews do not eat unless they wash their hands, holding to the tradition of the elders, and when they come from the marketplace, they do not eat unless they wash. And there are many other traditions that they observe, such as the washing of cups and pots and copper vessels and dining couches.) And the Pharisees and the scribes asked him, “Why do your disciples not walk according to the tradition of the elders, but eat with defiled hands?”

Jesus was not afraid to get dirty. He touched lepers and dead bodies. He hung around with the “dirty people” like the tax collectors, prostitutes and other “sinners”. The Pharisees on the other hand had spiritual OCD. They hated the idea of getting dirty.

Now when the Pharisee who had invited him saw this, he said to himself, “If this man were a prophet, he would have known who and what sort of woman this is who is touching him, for she is a sinner.”

In opposition to the Pharisees, Jesus’ chief teaching on love has to do with someone picking up a half dead person from a ditch. Can you imagine what the Samaritan must have looked like as he pulled into the inn to drop off the injured person? This would not have been a pretty picture.

If we’re going to love we must be willing to get dirty. We must not allow the spiritual OCD of this generation to define our behavior. Instead, we must follow the Samaritan and the Lord down a dusty, dirty road where wounds bleed and blisters ooze.

Perhaps we can do this we can do this because we know the One who can cleanse us and make us whiter than snow. Perhaps we can do this because we believe that whatever dirt that sticks to us in showing love to God’s creatures will become sparkling diamonds of radiance in the kingdom of our Father. Perhaps it would be accurate to say that the dirtier we get in loving, the more brightly we will shine in the kingdom (God loves a good paradox).

Look to the forerunner. He became a mess in his endeavor to love us… and in exchange was given a name that was above every name.

It would be a mistake to relegate all benefits of the dusty, dirty road to the future. Perhaps the greatest glory of walking this muddy path is that Jesus is there with you. It’s a dirty road, but now a lonely road. It’s a messy road, but he’s there with you. With the lowest of the low, you take up fellowship with the King of Kings.

[ Leave a Comment ]

Add Google Reader Link Back Into Gmail with Chrome Extension

I installed the Minimalist Gmail plugin (thanks to Life Hacker). The great part about this extension is that it allows you to populate the Google links list with your own custom links.


If you're one of the many user chagrined by Google's recent removal of the reader link in the Gmail header, this is a quick and easy way to get it back. Supposedly they are bringing it back, but until then enjoy the extension.

[ Leave a Comment ]

Track 404 Errors with Google Analytics

Tracking 404 pages is a part of being a web master. I was using a service called Link Patch, but they recently shut down. Why this never occurred to me before I don't know, but I thought, why not just track 404s as an Event in Google analytics. I tried it and it worked like a charm.

Here is the code I placed on my 404 page:

<script type="text/javascript">
	// log 404 in google analytics
	_gaq.push(['_trackEvent', 'Error', '404', '<?php echo $_SERVER['REQUEST_URI']; ?>']);

This will place the url for the page in the events menu under the "Error" category

What I love about this approach is that:

  • Groups multiple errors together to help me track trends
  • Allows me to filter and get reports across date ranges
  • Get reports emailed to me on a weekly, monthly, quarterly or yearly basis

I think this is going to be a great shift. I just sorry I didn't set it up earlier!

[ Leave a Comment ]

Dual & Triple Monitors with a Mac Book Pro – Matrox DualHead2Go

When I pondered my conversion to Mac, one of the biggest issues for me was the ability to operate two large computer monitors side by side.  As a developer this is a huge issue for me, so you can imagine my dismay when after going to the Apple store and talking to “genius” they simply turned around and Googled my question (something I had obviously done many times before).  After looking around I did discover that there was a device that would do what I was looking for. 


This tutorial applies strictly to Mac Book pros (Mine was new in Sept of 2011 and is running 10.6.5).  If you’re using a desktop mac or another mac book I can’t promise similar results but here’s what I did.

The Device

The device that allows you to go dual and even triple screen on your mac book is the Matrox DualHead2Go DP Edition.  Some of the other device versions will work, but they won’t give you the resolutions you want to run 24” inch monitors.  If you want to go big on you monitors you’re going to need to use the DP (display port) edition.


The Adapters

Because I was operating DVI monitors I needed three different adapters!  2 DP to DVI adapters to connect the unit to the monitors and 1 Mini DP to DP adapter to connect the Mac to the Matrox unit.  I definitely didn’t appreciate all the extra costs of the adapters, but I was a man on a mission so I did it anyways.


Mini DP to DP Adapter



The Software

The software Matrox PowerDesk allows you to tell the OS what monitor (laptop or “dual screen”) should be the primary.

Screen shot 2010-11-18 at 10.15.58 PM

Screen shot 2010-11-18 at 10.16.16 PM

Screen shot 2010-11-18 at 10.14.45 PM


Little Annoyance, but Working Great!

One of the primary annoyances is that it treats the dual monitor setup form the device as a single monitor, so you can see that the task bar is completely stretched out across the top.  This really doesn’t cause too much pain except when I need to get to the file menu and I’m using the left monitor.

On the other hand the great part about this is you can stack a ton of stuff in your application bar at the bottom – fill it up as it will stretch all the way across the bottom if it needs to. 

Lots of cords need to be plugged in when you “dock” your mac, but nothing too overwhelming there.


Other Tips

You’ll need a USB hub.  The Matrox unit takes up the mini display port AND A USB port for power. 



Overall I’m very pleased with the results.  I work primarily off the two main monitors, but I can put secondary applications like script logs and skype on the less dominant lap top monitor.  If you are a developer you’ll definitely benefit from this arrangement.  Also, if you like my desk, check out this post.. I made it myself.


[ Leave a Comment ]


Things I see

Meet Kalmar. Props to @andrewpetersonmusic and @wingfeathersagaAri turns 6Dog days of winter :snowflake: :dog2:Obligatory dog pictureSleepy :dog:This pup loves the snow. Meet Kalmar. #puppyBoy and his dog. #puppylife #itsaboyBringing newbie home. #puppylife #itsaboy#homeschoollifeThis may just look like a messy counter with prospective dog names in the background, but I will enlighten you so you know what to look for should you eve come to my house and not want to be inadvertently injured. The banana is taped to the yellow cup as Getting up in age.My puppies :dog::musical_note::notes:Oh, the weather outside is frightful! But inside it’s so delightful......:notes::musical_note: #letitsnow #newyearseveA sign of things to come.I made these :)

Chris Pollock

Web Developer - proficient in both PHP and ASP.NET.
Rochester, New York

View my web developement site.

View Chris Pollock's LinkedIn profile

My Pictures

Meet Kalmar. Props to @andrewpetersonmusic and @wingfeathersagaAri turns 6Dog days of winter :snowflake: :dog2:Obligatory dog pictureSleepy :dog:This pup loves the snow. Meet Kalmar. #puppyBoy and his dog. #puppylife #itsaboyBringing newbie home. #puppylife #itsaboy#homeschoollifeThis may just look like a messy counter with prospective dog names in the background, but I will enlighten you so you know what to look for should you eve come to my house and not want to be inadvertently injured. The banana is taped to the yellow cup as Getting up in age.My puppies :dog::musical_note::notes:Oh, the weather outside is frightful! But inside it’s so delightful......:notes::musical_note: #letitsnow #newyearseveA sign of things to come.I made these :)