TroyGrosfield.com TroyGrosfield.com

Headline

DevCon 2012 Presentation – MongoDB, NoSQL and all of its Awesomeness

Author
by Troy Grosfield
Date
July 31st, 2012
Category
Developer
Story

Gave this presentation at Cerner’s DevCon 2012 talking about MongoDB and NoSQL. Was presented to about 150+ people. Video

Tags
Comments
No Comments »
Headline

Web Developer Meetup Presentation: MongoDB and NoSQL

Author
by Troy Grosfield
Date
March 30th, 2012
Category
Developer
Story

Gave a presentation to the web developer meetup group at Cerner talking about MongoDB and NoSQL. Video

Tags
Comments
No Comments »
Headline

Unix Command Line Cheat Sheet

Author
by Troy Grosfield
Date
February 24th, 2012
Category
Developer
Story

Here are some unix commands I find useful. Display All Running Processes $ ps aux Limit to only look at celeryd processes: $ ps aux | grep celeryd List Contents of a Directory including Hidden Files/Folders: $ ls -l -a Searching Find all files with some text in the file: find . -exec grep -l … read more

Tags
Comments
1 Comment »
Headline

Ubuntu Bus Error

Author
by Troy Grosfield
Date
February 23rd, 2012
Category
Developer
Story

The Problem Ran into an issue where we couldn’t restart celeryd on our production servers.  When we’d try to restart celery using our init.d script we would see the following: $ /etc/init.d/celeryd restart Bus error We then tried to go to our Django project and go into the shell and came across the same error: … read more

Tags
Comments
No Comments »
Headline

MongoDB Cheat Sheet

Author
by Troy Grosfield
Date
February 22nd, 2012
Category
Developer
Story

A few commands that help with querying and troubleshooting mongodb. This document assumes we have a database called “test” and we have a collection called “comments”. Commands Number of documents in a collection: $ db.comments.count() 42232 Show the size of the Index: $ db.comments.totalIndexSize(); 73696 Show details of a specific query: $ db.comments.find({ tags : … read more

Tags
Comments
1 Comment »
Headline

Django Production Environment Setup with MongoDB

Author
by Troy Grosfield
Date
November 22nd, 2011
Category
Developer
Story

Many developers are often curious on what a possible web environment setup looks like in production. That answer can vary greatly depending on what exactly you want your application to do. A few question to ask yourself: Are you expecting heavy traffic on the site? How will you be notified if something in your system … read more

Tags
Comments
1 Comment »
Headline

Django, Celerybeat and Celery with MongoDB as the Broker

Author
by Troy Grosfield
Date
November 22nd, 2011
Category
Developer
Story

Enhance your user experience by preventing your users from having to wait long periods of time for certain actions to occurs.  There are times when you want to send an email to many people or do other processor intensive work that you won’t want your user to have to wait on.  In cases like these, … read more

Tags
Comments
2 Comments »
Headline

MongoDB with RAID 10 on Ubuntu 11.04

Author
by Troy Grosfield
Date
November 8th, 2011
Category
Developer
Story

I recently setup RAID 10 on our MongoDB server. I thought I would share how and why I did it.  We’re using Amazon’s Web Services (AWS) and running Ubuntu 11.04. What is RAID 10 Why We Chose RAID 10 Setup RAID 10 with MongoDB on Ubuntu 11.04 Monitor the RAID Troubleshooting What to do When … read more

Tags
Comments
11 Comments »
Headline

Python Cheat Sheet

Author
by Troy Grosfield
Date
October 17th, 2011
Category
Developer
Story

Frequently used methods I use in Python with examples. Date and Datetime Lists and Sets Finding Intersection of 2 Lists Working with Urls Date and Datetime Useful links: http://docs.python.org/library/datetime.html#strftime-and-strptime-behavior http://labix.org/python-dateutil String to Datetime Convert a string into a datetime object. >>> from datetime import datetime >>> datetime.strptime(‘Jun 1 2005  1:33PM’, ‘%b %d %Y %I:%M%p’) datetime.datetime(2005, … read more

Tags
Comments
No Comments »
Headline

Installing and Running MongoDB on a Mac

Author
by Troy Grosfield
Date
March 21st, 2011
Category
Developer
Story

MongoDB is a very powerful schema-free, document oriented database.  The following steps will show you how to get MongoDB up and running. Install MongoDB I used the Homebrew package manager to install mongodb. If you have Homebrew, run the following commands: $ brew update $ brew install mongodb You will see output like the following: … read more

Tags
Comments
3 Comments »