crshman's Profile Page
Sunday, January 06th, 2013 | Author:

Hey All,

This post has actually been stuck in drafts for a very long time…but I figured I had a little time so I’d polish it up and throw it out there!

In this post we’re going to cover how to get a Brother MFC-490CW scanner working on 64bit ubuntu!

First off install the brother scanner packages just as you would any other .deb

This package handles the actual scanning functionality

sudo dpkg -i  brscan3-0.2.11-4.amd64.deb

This package allows the scan to pc buttons on the scanner to work

sudo dpkg -i brscan-skey-0.2.1-3.amd64.deb

We need to link the scanner libraries so that xsane detects the scanner:

sudo cp -a /usr/lib64/sane/libsane-brother* /usr/lib/sane/
sudo cp /usr/lib64/libbrscandec3.so.1.0.0 /usr/lib
sudo cp /usr/lib64/sane/libsane-brother3.so.1.0.7 /usr/lib/sane
sudo cp /usr/lib64/sane/libsane-brother3.so.1 /usr/lib/sane
sudo cp /usr/lib64/sane/libsane-brother3.so /usr/lib/sane
sudo cp /usr/lib64/libbrscandec3.so /usr/lib
sudo cp /usr/lib64/libbrscandec3.so.1 /usr/lib

After that follow the standard instructions on installing the driver using the brscan3 tool and everything should just magically work!

Category: General  | Leave a Comment
Wednesday, July 18th, 2012 | Author:

Hey All!

/* Ubar long post warning! */

So if you’ve ever managed any servers or application you know how much of a pain in the ass logging is and how important it is to keep excellent logs for debugging.

We recently started breaking out infrastructure out at Stitch from a single fat server to a more robust, horizontally scalable architecture. (I’ll talk more about these changes in the future) With that comes even more headaches with log management because events can take place atomically on any server so tracking down the entirety of a request can prove to be most annoying.

As such, I’ve started kicking the tires on a few SaaS logging apps:

However two of these really stood out to me, PaperTrail and Loggly.

Honestly, I had never even heard of either of any these apps until I went to our True University and heard loggly’s CEO talking about their app’s “Big Data” problems. That was the catalyst for finding a logging system for all of our gear.

I guess I’ll start with the bad news first, I wasn’t a fan of LogEntries. Their UI just didn’t have the right feel for me and the way they classify their hosts seemed odd in my book. Their support was helpful with my questions and they were able to get TLS log shipping added to the app as per my request. Their pricing was also pretty darn good, I like that you don’t have to pay much if you don’t use much. However, I could never get that working properly. In the end I just got lazy and decided to move forward with PaperTrail and Loggly since getting those up and running with TLS log shipping proved to be quite easy.

All of these services offer an agent that you can install on your boxes to tail logs and ship them securely, but I don’t really want to induce any sort of vendor lock-in for Stitch. So I’d rather use the more standardized syslog system that already comes with all Linux machines. Down the line if I feel we need to take ownership of our logging this can be easily done by just pointing the syslog daemons to our own in-house logging server.

Along that thought pattern, all of these services have some sort of RESTful API that you can send data to from your application whether it’s a Python app or a PHP app. This seemed pretty neat at first but then I fell back on the vendor lock-in dilemma so I ended up just using PHP’s built in support for syslog and offloading all of the log routing to the rsyslog daemon.

Now, on to our round finalists…..PaperTrail and Loggly! Both off these services offer their own set of pro’s and con’s and it kind of sucks because my ideal would be a hybrid of the two…..PaperTrail has a feature that Loggly needs and vice-versa.

Quick Summary:

If all you want is a quick summary of PaperTrail and Loggly in my eyes, you can stop here. Otherwise continue for a fairly in-depth review!

PaperTrailLoggly
"tail -f" like functionalityYesNo
Pretty GraphsYes (through a 3rd party service Librato)Yes, natively
Realtime Graph HistoryNoYes
JSON ParsingNoYes-ish
AWS Log ArchivingYesYes
SupportBetterGood
Search FunctionalityPretty Win...Also Pretty Win...
PriceMore expensiveLess expensive

 

Nitty Gritty:

Tail -f

So right off the bat the feature that is pretty much holding up my decision from using Loggly is a “tail -f” functionality. That is….the ability to auto-follow logs as they come in. I like to view logs as they update, makes me feel like I’m watching the matrix and it gives me a quick overview of how things are moving along (or not). So for my uses this functionality is quite essential. Tailing functionality seems to be a pretty popular request over at the Loggly forums but more than a year after the question was first asked (and 6 months after their “planned” release) nothing has been done about this. This is kind of sad, but being at a startup I know how finite resources really put a damper on some things. (PaperTrail: +2, Loggly: +0)

Graphs

Next we have graphing. Graphs are good, no great…they allow you to quickly visualize information and form trends on your data. Both of these applications have the ability to graph specific search results, however, Loggly has this functionality built in and it’s wonderfully integrated. PaperTrail on the other hand outsources the graphing work to Librato Metrics. Librato is a ridiculously cheap charting application for pretty much any kind of data you want to throw at it. Problem is, I don’t want to have to go to 20 different sites to look at my data, if it’s all in once place that is mo betta! Another issue with PaperTrails usage of Librato is that you only get graphs for searches you have defined. So you won’t get any historical graph data unless you’ve defined a particular search and set it up with Librato. While this doesn’t seem like a big deal on the surface, I often find myself thinking of things that I’d like to graph on the fly, (Hey I wonder what X vs Y looks like) rather than thinking of allllll the possible graphing combinations up front. Loggly really fosters this because it uses prior logged data to create it’s graphs. So if I think of a query to graph something off the top of my head it will show me some historical trends right away rather than me having to wait. Pretty kewl…. (PaperTrail: +0, Loggly: +1)

Since this is turning into a wall of text, here are some of the graph examples for the same dataset between Librato and Loggly’s built in graphing:

Librato

Librato

Loggly

Loggly

JSON Parsing

Up next is JSON parsing, Loggly goes to some length to explain the benefits of sending in JSON formatted logs. I instantly saw the value in this for surgically precise log filtering. (We currently log a lot of things in a SQL database, so mimicking SQL queries with a low barrier to entry is a super win for us) Unfortunately Loggly doesn’t support JSON inputs when using TLS log shipping. I can’t imagine there to be any technical reasons why this can’t be done, but I assume it’s a lack of resources based on the generic “We’ll add it to the TODO with no ETA” response I got. So as awesome as the JSON formatted logs are, I can’t even use them because we ship all of our logs securely using TLS. Alas, I am already shipping our logs JSON encoded/formatted so when either of these services decides to get this working I’ll be good to go! (PaperTrail: +0, Loggly: +0)

Support

First off, I want to say that as an addicted engineer I spend many many hours working, learning and tinkering with stuff. So I tend to stay up to the wee hours of the night doing things and breaking them. I fully exercised the support teams for both PaperTrail and Loggly, likely to the point of where I was getting to be annoying. (If not that I’m definitely on a first name basis with the guys over in the PaperTrail chat room!) Both services had pretty good support, turn around times on support tickets were under 24 hours consistently so that’s a plus. However, the guys at PaperTrail must be addicted engineers just as I am. Very late in the evening on the 4th of July (when we’re all supposed to be off apparently) I jumped into the PaperTrail chat room to see if anyone was around for a few questions that I had while trying to get the syslogging to work. Much to my surprise there was a live person there sitting around being bored. (I believe this was Eric…but it might have been Troy, I don’t recall) All of my questions were answered right away with links to the KB articles that I couldn’t find apparently. Awesome! I’ve since been back in the chat room for basic usage questions and someone is always there to field them (do you guys even sleep!?). Now don’t get the wrong impression here, Loggly also has a chat room on IRC. I idle on IRC alllll day so I know how easy it can be to miss messages using that medium. I sent a few queries Loggly’s way via IRC and they didn’t get noticed right away like they were for PaperTrail (PaperTrail actually says hello to me before I even finish typing my message….I think they may really be bots) however one of their representatives did see my questions and helped clear up my questions right then and there….pretty cool! I think PaperTrail takes this round, but only by a small margin. (PaperTrail: +1, Loggly: +0)

Pricing

Last but not least is the infamous price. While both services are pretty cheap, Loggly bests PaperTrail in this category. PaperTrail bills on monthly log volume, Loggly bills on daily log volume, and both bill on log index (search-ability) retention. The common denominator between both services for us is to be able to search logs 2 weeks back. Taking our average daily log throughput from Loggly we do about 50MB of logs a day (not much, but that’s where we’re at). With Loggly we can do a plan with 200MB/day and 2 weeks of retention for $8/mo. Extrapolating that data usage out a month we get about 1.46GB/mo. (If we do a straight up comparison with the 200MB/day limit on Loggly that works out to 5.85GB/mo) With PaperTrail’s pricing, at our current volume we’re charged $22/mo for 2GB of logging and 2 weeks of retention. (If you do the straight across comparison PaperTrail would be $35/mo for 4GB/mo of logging…the closest amount their calculator has) Now some (many?) will complain that I’m just being too cheap, but if look at this in terms of percentages PaperTrail is 175% more expensive. Being at a startup costs and burn rate mean a lot, so the less I have to spend on our infrastructure the more money we can put toward acquiring more customers. (PaperTrail: +0, Loggly: +2)

Phew! If you’ve made it this far, thanks for staying! For those of you who have been keeping score here is the result:

  • PaperTrail: 3
  • Loggly: 3

So if you haven’t guessed I’m still on the fence about which to choose, once I make up my mind I’ll update this post to outline what we ended up going with. If you have any questions/concerns/ideas feel free to post them in the comments!

Until next time….Later!

Tuesday, July 17th, 2012 | Author:

So the last few months have been incredibly busy for me, I moved back from North Carolina in March and got a new job shortly thereafter! I’m now euphorically employed as a backend developer at the wonderful StitchLabs, an awesome startup based out of San Francisco that crafts life easing inventory management software!

So now that things have settled down a bit (I’m all moved into our new house, and attempting to make Stitch more awesome!) I’ve decided to continue my blogging. However, now that I get paid for my passion I can start blogging about more interesting stuff like the problems I tackle at the Lab as it pertains to application development or DevOps!

Stay tuned….my next post will be allll about fun stuff at the Lab :)

Category: StitchLabs  | Leave a Comment
Thursday, September 29th, 2011 | Author:

So over the last few days I decided that I wanted to upgrade my distro from Ubuntu 10.10 to something a bit newer. I like that debian has tons and tons of packages available to them…..add their backports repo and you have tons of new packages too!

After trying the latest Fedora 15, Debian Testing (wheezy), Xubuntu 11.04 and Ubuntu 11.04 I settled back to the tried and true Ubuntu. I’m not really digging this whole unity interface (which is why I put off the upgrade to 11.04 for so long) but I’ll deal with it.

The only thing missing from the equation were lots of new packages…..so I decided to add the debian-backports repo to my ubuntu install:

Create /etc/apt/sources.list.d/debian-backports.list with the following contents:

deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
deb-src http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

Add this in /etc/apt/preferences.d/debian-backports

Package: *
Pin: origin backports.debian.org
Pin-Priority: 100

Finally, run this:

sudo apt-key adv --recv-keys --keyserver hkp://subkeys.pgp.net AED4B06F473041FA
sudo aptitude update

So what the hell does all this do exactly?

  1. We added a new repo to our package manager…standard issue…
  2. We “pinned” the packages from the debian-backports repo to be very low priority. We don’t want them being pulled in because they are potentially unstable and untested. So we want to prioritize tested, stable ubuntu packages first.
  3. We have to import the key for the debian-backports repo because it doesn’t come standard in the keyring
Now if you want to install a new package from the repo you have two choices
sudo aptitude <package>/squeeze-backports
or
sudo aptitude -t squeeze-backports <package>
If you want to see what versions of a package are available, just run this:
aptitude versions <package>
Category: General  | Tags: , ,  | 2 Comments
Monday, January 17th, 2011 | Author:

So I recently reformatted my laptop and I wanted to checkout one of our BZR repositories so I could get some work done. Unfortunately (fortunately?) the bzr checkout command kept spitting back this error:

bzr: ERROR: Generic bzr smart protocol error: Invalid http response for https://<url removed>/.bzr/smart: Unknown response code 401

After much fiddling with the server and my local settings (yes the username and password were correct) I stumbled upon the most bazaar solution. Running:

$sudo apt-get remove python-pycurl

Solved all my problems and I was able to perform a successful checkout.

Category: General  | One Comment
buy viagra uk online
over the counter drug to viagra
cheap drugs canada protonix
buy viagra in mexico
cheap generic substitute viagra
buy viagra ups
cheap cialis sale online
buy viagra now
order viagra online
buy viagra san jose
viagra and cialis together
cialis blindness
buy discount viagra
cheapest viagra in uk che
cheap drug online prescription viagra
buy viagra uk
discount viagra sales online
buy pill prescription viagra without
cheap no prescription viagra
viagra and hair loss
Buy viagra Indianapolis
cheap generic viagra substitutes
viagra and cialis cheap
viagra canadian prescriptions
buy viagra without a perscription
buy viagra 32
cheap viagra online order viagra now
buy viagra london
cheap phizer viagra
buy viagra in new zealand
cheap cialis no prescription
cheapest uk viagra
viagra by the pill
Buy viagra Louisville
buy viagra illinois
buy viagra online online pharmacy
cheap free viagra
buy viagra prescription america
buy viagra online purchase
Buy viagra Minneapolis
cheapest generic price viagra
cialis 24
cheapest viagra on line
buy generic viagra viagra
viagra canada online
buy viagra 100mg
order viagra without prescription
buy diet viagra online
cheap generic india viagra
discount viagra perscription drug
cheap generic cialis tadalafil
buy cheap viagra online u
cheap cialis for sale
viagra buy online
buy generic viagra usa
cheap online sales viagra
buy later now pay viagra
viagra by mail order
buy free viagra viagra
cheap viagra kamagra
discount viagra generic
buy cheap cheap kamagra uk viagra
buy viagra florida
buy viagra jacksonville
cheap viagra no prescription
cheap altace online cheap
cheap viagra cialis india
cialis 1
buy viagra prescription
order cheap viagra fas
buy buy cheap viagra
buy viagra cheapest
buy online price viagra
cheap generic viagra substitute
viagra buy viagra
buy viagra from an online pharmacy
Buy viagra Omaha
buy cheao cgeap kamagra uk viagra
buy viagra for women
buy viagra for cheap
online viagra store
buy discount viagra viagra viagra
cipro 20
cheap pfizer viagra
buy viagra without prescription
buy cheapest viagra online
cheap followup post viagra
buy viagra prescription america carisoprodol
cheap generic viagra substitute
cheap price viagra
cheapest prices on generic viagra
buy cheap p viagra
buy sildenafil viagra
cheapest viagra prices
cheapest price for viagra
cheapest price viagra
buy viagra online at lowest price
cheapest protonix
buy viagra online get prescription
cheapest prices for viagra online
online viagra overnight
buy viagra pharmacy online
buy viagra low cost
cheap deal discount price viagra
buy viagra onlines
buy 100 mg viagra
buy viagra internet
cheap herbal sale viagra viagra viagra
cheapest singulair
cheap generic india viagra
buy viagra cialis levitra online prescription
viagra and cialis
buy cheap online viagra viagra
buy viagra orlando
buy cialis viagra
cheap prescription viagra without
buy viagra online at cheap price
buy viagra online buy
cheap term life insurance
loans against whole life insurance
cheap online generic viagra
discount viagra sale
Buy viagra Newark
buy viagra using paypal
cheap herbal viagra viagra
order telephone viagra overnight delivery
insurance life insurance
cheap free price viagra
cialis 20
buy viagra australian
cheap canada generic levitra
buy viagra california
cheap viagra no presrciption 50mg
cheap viagra india
order viagra now viagra money order
Buy viagra Houston
cheapest place to buy viagra online
buy canada viagra
buy viagra or levitra
buy viagra online india
viagra canada prescription
Buy viagra Fort Worth
buy viagra cheap through online sales
viagra brand
viagra buy it
buy viagra professional
buy online prescription viagra without
custom built pc
buy viagra online u
cheap generic viagra online
order generic viagra
buy cheap viagra online
Buy viagra Nashville
buy viagra online order generic viagra
buy herbal viagra viagra
Buy viagra Tacoma
buy viagra los angeles
cheap viagra fast shipping
Buy viagra Milwaukee
buy cost low viagra
buy viagra in the philippines
order viagra
buy online pharmacy viagra
cheap cialis generic mastercard
cheap sale viagra
cheapest viagra us pharmacy
viagra can
buy viagra online prescription group
cheapest generic viagra sent overnight
cialis 20mg
cialis 10
Buy viagra Baltimore
order site viagra
order viagra air travel
cheapest paxil
buy levitra viagra online
buy viagra prescription online
viagra buy general
cheap kamagra uk viagra
buy now online viagra
cheap viagra 25mg
viagra buy contest
order viagra cheap
cheap viagra generic
cheap cialis pharmacy online
online uk viagra sales
buy viagra online in
order viagra overnight delivery
buy cheap generic viagra online
buy viagra from canada
buy viagra over the counter
buy generic online viagra
cheapest viagra online pharmacy
buy viagra new york
cheap meltabs viagra
buy australian viagra
Buy viagra Austin
cheap online pharmacy viagra viagra
buy viagra now
cheap prescription viagra
cheap cialis for you
cheap online softtabs viagra
order viagra online no rx prescription
buy viagra canada
buy online viagra
buy online sale viagra
discount viagra sale online
buy cheap viagra on
cheap evista buy online
cheap pharmacy viagra
buy online purchase viagra
buy cailis viagra singapore
order viagra or levitra
Buy viagra Albuquerque
order viagra with my checking account
viagra calias
buy sublingual viagra online
cheap viagra online uk
buy viagra next day delivery
Buy viagra Las Vegas
buy viagra online online
cheap viagra new zealand
cheaper cialis levitra viagra
cheapest viagra price
life insurance
buy sublingual viagra on the internet
buy viagra per pill
buy viagra in toronto
Buy viagra Rome
cheap generic viagra online
order viagra canada
buy viagra online discount
buy cheap online viagra
cheap free viagra viagra
buy viagra bradenton
buy pill price price viagra
buy viagra com
buy cheap viagra viagra
cheap generic online viagra
viagra by mail
cheapest brand viagra
buy viagra cheap india pharmacy
buy viagra soft online
cheap viagra generic paypal
viagra buy uk
viagra and generic drug
buy viagra removethis
buy viagra and cilas
buy viagra in bangkok
viagra buy in uk online
buy online us viagra
buy viagra meds online
buy viagra texas
cheap canadian cialis online
buy generic viagra online pharmacy online
buy cheap uk viagra
cheap generic 50 mg viagra
buy pharmaceutical viagra
buy online prescription viagra
buy viagra online cheapest
cheapest generic viagra and canada
cheapest viagra homepage
buy viagra online 35008 buy
buy viagra here in the uk
buy viagra removethis
viagra canada pharmacy
buy viagra onlines
buy viagra online paypal
cheapest prescription viagra
buy price viagra
buy viagra online uk
buy viagra the best quality pills
cheap soft tab viagra
buy viagra with discount
buy pill viagra
cheapest viagra prices uk
discount viagra online
order generic viagra online
buy viagra viagra online
buy viagra online
buy uk viagra
buy herbal online viagra viagra viagra
buy viagra with paypal
over the counter viagra london
cheapest line viagra
cheap meltabs online viagra
discount viagra europe
order viagra on-line
online viagra prescription
buy viagra without prescription pharmacy online
buy viagra free on internet
buy viagra cialis
cheap drugs viagra cialas
buy real viagra online pharmacy
cheap viagra buy pharmacy online now
viagra canada online pharmacy
Buy viagra Richmond
buy viagra or cilas
cheap drug retin viagra wellbutrin
order viagra without a prescription
cheap drug generic generic viagra
cheap viagra without a prescription
cheap genaric viagra kamagra
viagra cailis
order uk viagra
cheap quality viagra
buy real viagra
buy sale viagra
cheapest viagra uk
buy viagra line
buy online viagra in the uk
cheap online viagra
buy legal fda approved viagra
buy viagra line
over the counter viagra in europe
buy viagra online
discount viagra wholesale stores discount pharmacy
cheap generic viagra 1.00
cialis 5
buy in online uk viagra
cheap viagra without prescription
buy viagra 1
cheap drugs viagra cialas
cialis 10mg
buy viagra online in the uk
viagra buy ionline
cheap cheap viagra viagra
viagra canada generic
Buy viagra Seattle
online viagra pills
cheap generic viagra from usa
buy viagra online cheap
buy can reply viagra
cheapest viagra substitut
viagra buying online
buy viagra fedex
buy viagra at safeway
buy pharmacy pill viagra
cheap order site viagra
cheap deal discount viagra viagra
viagra buy oonline
cheapest in uk viagra
buy cheap deal pill viagra
buy viagra cleveland
cheap viagra in uk
cheap viagra direct
buy viagra sale
buy viagra online alternative viagra
buy online uk viagra
cheapest viagra generic substitute
cheap cialis viagra
discount viagra uk
Buy viagra Charlotte
buy viagra online off pharmacy prices
buy viagra s journal
Buy viagra Tucson
Buy viagra Portland
buy viagra online india
buy viagra online uk
online viagra student loan consolidation
buy viagra in london
online viagra prescriptions
cheap generic cialis pills
buy viagra miami
buy viagra pill online
cheap websites for viagra
buy kamagra viagra india
cheapest pravachol
buy viagra softtabs
cheapest generic viagra and cialis
buy viagra cheap prices
buy cheap viagra uk
buy real viagra online
buy viagra online order
buy viagra online cheap
cheap viagra online pharmacy online
buy viagra cialis levitra
order viagra with mastercard
discount viagra prescription drug
buy viagra sale
buy canada in viagra
viagra by phone
buy viagra cheap online
buy online order viagra
cheap online purchase viagra
Buy viagra El Paso
buy viagra pill online
viagra brands
buy cheap viagra prescription online
viagra and hearing loss
cheap site viagra
cheap viagra uk
buy viagra online no prescription
cheap online pill viagra
cheap generic drugs caverta
over the counter viagra substitute
discount viagra pharmacy online
cheap pill viagra
cheap deal viagra
cheap geneirc viagra 100
order discount viagra
order viagra 1
order viagra online uk
buy cheapest online viagra
cheapest viagra anywhere
buy online sale viagra viagra
Buy viagra Kansas City
term life insurance rate
buy cheapest viagra
buy viagra in england
buy viagra locally
buy viagra viagra online
cheap evista online cheap
buy viagra generic
buy purchase viagra online confidential
buy viagra in chicago
order viagra licensed pharmacies online
order pfizer viagra with mastercard
buy viagra online web meds
cheap viagra cialis
buy viagra pill
buy viagra price drugs on
buy prescription viagra
cheap online pill price viagra viagra
buy generic viagra
viagra buy viagra online
buy viagra inte
buy buy medved viagra viagra
buy viagra cheap
cheapest viagra in uk
cheap generic viagra no script
cheap overnight viagra
buy viagra uk
buy site viagra