• Mac OS X,  Unix

    View The Content Of Files Without Comments In Bash

    So I comment a lot of lines out in my /etc/hosts file. This usually means that I end up with a lot of cruft at the top of my file. And while I write comments into files and scripts here and there, I don’t always want to see them. So I can grep them out by piping the output of the file to grep as follows: cat /etc/hosts | grep -v "^#" You could also do the same, eliminating all lines that start with a “v” instead: cat !$ | grep -v "^v"

  • sites,  WordPress

    Comments On https://krypted.com/

    Comments on this site have been a pain since I enabled them about 2 1/2 years ago. I believe I enabled them due to something some judgmental person said when they couldn’t comment on an article I had written. During the first year, there was a lot of fine tuning the spam blocking to try and keep out the spammy crap. That continues to be a work in progress, but it seems to be in pretty good shape. During those couple of years I ended up racking up a queue of about 7,000 in the spam category and another 2,000+ in the pending category (which meant I need to deal…

  • WordPress

    Integrating WordPress Comments with Facebook

    In a constant search for achieving comment nirvana for the sites I manage, I was recently looking into integrating WordPress (and a couple of other CMS engines) with Facebook. The sites are setup to only allow authenticated users to comment and it just seemed like with all of the single-sign on technology out there that it just didn’t have to be so annoying. After installing the OpenID integration it seemed like there still had to be a better way to allow even more people to authentication. How about Facebook? Facebook has done a lot of work on making their API one of the best in the social networking world. The…

  • sites,  WordPress

    reCaptcha and Comments

    After talking with the folks at Xsanity I have decided to try and open up comments to the site. You can still auth and post comments if you have an OpenID account, but you can now do so through the standard WordPress method provided you fill in the Captcha info. We’ll see how this works. Last time I tried comments there was simply too much spam. I’m willing to give it a second shot though, especially with the fancy-schmancy OCR whatnot enabled… To get Captcha to work I used the WP-reCAPTCHA plug-in available here. In order to activate it you need an API key from recaptcha but once you paste…