Video: An Introduction to the Macaw Interface

Now Available > Macaw: Stop writing code, start drawing it

Screenshot 2014-03-31 13.39.52

More >

Extending a Mobile App with IBM Codename: BlueMix

The Little MongoDB Book

The Little MongoDB book by Karl Seguin is free, and is and awesome resource for those new to MongoDB:

PDF >

On GitHub >

On iTunes >

Negativity Sandwich: Accessibility and Building a web for everyone because sometimes it’s not all about us

Jenn Schiffer shares her thoughts on why accessibility is important. Students who have taken my HTML Fundamentals (CTEC 122) class at Clark College are taught web accessibility and why it’s important from day one of class.

I’m going to talk about accessibility. Not how to make your sites accessible, because there are plenty of resources (which I list some of below) but why it’s important. I feel like awareness is the issue with this subject and I have a big mouth so awareness is a space I can own.

More >

100 Days of BlueMix Training

Calling all Born on the Cloud, Entrepreneur and Mobile Developers: Come learn about IBM’s new cloud development platform, Codename: BlueMix. Here you will have the opportunity to deploy your application and have it running in a matter of hours!

As part of this workshop you will be able to:

  • Learn the fundamentals of building and deploying your application in the Cloud (JazzHub & BlueMix)
  • Work with BlueMix experts on how to use the product and migrate your application
  • Help shape BlueMix with your input and feedback

BlueMix is an open-standards, cloud-based platform for building, managing and running apps of all types (web, mobile, big data, new smart devices). Capabilities include Java, mobile backend development, application monitoring, as well as capabilities from ecosystem partners and open source — all through an as-a-service model in the cloud.

Enroll Now >

MongoDB and Python: A Simple Example

The code below demonstrates how to use Python to connect to a MongoDB database. I chose to use a cloud based instance of MongoDB provided free of charge by MongoLab.com. The script demonstrates how to:

  • Use the PyMongo library to connect to a Mongo database
  • Insert documents into a collection
  • Display all of the documents from the collection

I also used a local instance of MongoDB for testing. You will will need to use a Python package manager such as EasyInstall to install the PyMongo library.

Here is the Python code:

# mongo_hello_world.py
# Author: Bruce Elgort
# Date: March 18, 2014
# Purpose: To demonstrate how to use Python to
# 1) Connect to a MongoDB document collection
# 2) Insert a document
# 3) Display all of the documents in a collection

from pymongo import MongoClient

# connect to the MongoDB on MongoLab
# to learn more about MongoLab visit http://www.mongolab.com
# replace the "" in the line below with your MongoLab connection string
# you can also use a local MongoDB instance
connection = MongoClient("yourmongodbconnectionstring")

# connect to the students database and the ctec121 collection
db = connection.students.ctec121

# create a dictionary to hold student documents

# create dictionary
student_record = {}

# set flag variable
flag = True

# loop for data input
while (flag):
   # ask for input
   student_name,student_grade = input("Enter student name and grade: ").split(',')
   # place values in dictionary
   student_record = {'name':student_name,'grade':student_grade}
   # insert the record
   db.insert(student_record)
   # should we continue?
   flag = input('Enter another record? ')
   if (flag[0].upper() == 'N'):
      flag = False

# find all documents
results = db.find()

print()
print('+-+-+-+-+-+-+-+-+-+-+-+-+-+-')

# display documents from collection
for record in results:
# print out the document
print(record['name'] + ',',record['grade'])

print()

# close the connection to MongoDB
connection.close()

If you have any questions please let me know.

Registration is Now Open for MongoDB University

Take free online courses from the creators of MongoDB. MongoDB University offers courses for both developers and DBAs.

  • Seven week courses give you flexibility to work through material when it suits your schedule.
  • Frequent assessments and check-ins by TAs and instructors help you verify your understanding.
  • A certificate of completion confirms your membership in our community of cutting-edge NoSQL technologists.

More than 100,000 people have enrolled in our courses to date.

Register now >

14 Years Ago: Mobile, Mobile, Mobile

In 2000 I co-wrote an article with Steven Knez for Group Computing (ePro) on how to mobilize a Notes database using a Palm VII. Some things never change :-)

palmvii

Outdated UX Patterns and Alternatives

I must admit, that after reading the article “Outdated UX Patterns and Alternatives” by Brian Krall, I felt a bit of guilt about some of the UX patterns that I am still using in some of my work. After reading the article, please share your thoughts. Do you consider these patterns outdated?

More >

Follow

Get every new post delivered to your Inbox.

Join 1,957 other followers