Skip to content

Instantly share code, notes, and snippets.

View dtt101's full-sized avatar

David Thompson dtt101

View GitHub Profile
@dtt101
dtt101 / Dockerfile
Created November 30, 2024 06:32 — forked from JulianaFontolan/Dockerfile
Deploying your own artificial intelligence model with Amazon Sagemaker
%%writefile Dockerfile
FROM python:3.7-buster
# Set a docker label to advertise multi-model support on the container
LABEL com.amazonaws.sagemaker.capabilities.multi-models=false
# Set a docker label to enable container to use SAGEMAKER_BIND_TO_PORT environment variable if present
LABEL com.amazonaws.sagemaker.capabilities.accept-bind-to-port=true
RUN apt-get update -y && apt-get -y install --no-install-recommends default-jdk
RUN rm -rf /var/lib/apt/lists/*

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@dtt101
dtt101 / iPhone Overlay Example
Created January 7, 2011 15:32
This page example was copied from musicalgeometry.com before the blog was updated - kept here for reference
So first I will describe the OverlayViewTester app. Basically it just overlays some cool looking red selection braces on a camera view and has a button that when pressed performs a ‘scan’ for two seconds and lets you know by adding a “Scanning…” label at the top of the screen during that time. So really it does nothing, but it looks good and is a good first step to making a more fun and interesting interactive camera overlay app.
To get started download the source code from https://github.com/jj0b/OverlayViewTester. Next I will go through the files in the project and present the juicy bits. Consult the source code you downloaded for the full meal deal.
OverlayViewTesterApDelegate
Taking a look at the project we start with a typical app delegate, OverlayViewTesterAppDelegate which loads the OverlayViewController. Nothing monumental there so I won’t bother reproducing it here.
OverlayViewController