- An in-memory database but persisted to disk
- A key value store but the values can be complex
- A "data structure server"
- Very fast!
| from colorific import extract_colors | |
| from django_rq import job | |
| from PIL import Image as Im | |
| from PIL import ImageChops, ImageDraw | |
| @job | |
| def populate_colours(photo_id): | |
| from models import Colour, Photo | |
| # remove any existing colours | |
| photo = Photo.objects.get(id=photo_id) |
| # Check an FTP directory for new files, send any to Zencoder for | |
| # conversion to HTTPLive playlists, tell Zencoder to put converted files | |
| # in FTP or S3 | |
| # Installation: | |
| # pip install zencoder | |
| # Usage: | |
| # Add S3 credentials to Zencoder - https://app.zencoder.com/account/credentials | |
| # Configure Zencoder, S3 and FTP details |
From Pete Speller (http://petespeller.com/), on ECF
"This is a list I have used before for training, it is pretty basic but it is based on mistakes I have seen repeated again and again.
- Background noise - computers, air conditioners, phones, doors etc
- Busy backgrounds - people wandering around, milling about, having conversations. backgrounds should never hold your attention.
- Boring backgrounds - no one wants to look at a plain white wall. step 2-3 feet away from your background and if you are interviewing stand at an angle. Also be careful of windows as the light is a different colour so can mess up the white balance.
- Lighting. If it is too dark, find somewhere else.
- Interviewees should look at the interviewer, not into the camera. presenters look into the camera.
- Film b-roll. Extra footage that you can use to set the scene, hide edit points and illustrate comments made in interviews.
-
Create work for yourself; don’t wait for work to be assigned to you.
-
Take an active role in all your endeavours, not a passive one.
-
Seek out large and complex jobs. Trivial tasks debase you.
-
Welcome difficult assignments. Choose them. Progress lies in accomplishing difficult work.
-
Once you begin a task, complete it. Never give up.
The core purpose of a website is to help your customers answer the questions necessary to do business with you.
If your website is a series of answers to questions then the success of your site depends on what questions you answer--it's the questions and answers that show the customer you provide a service they're looking for, you're a good choice and that they should buy from you.
In general every customer has the following questions:
- Who are you?
- What do you offer?
| SELECT | |
| widget_provider_organisations.name AS "Placement provider organisation name", | |
| COUNT(DISTINCT CASE WHEN rabbit_programmes.started_leaf_blowing_training THEN rabbit_programmes.id ELSE NULL END) AS "Started Ready to Go Actual", | |
| COUNT(DISTINCT CASE WHEN rabbit_programmes.completed_leaf_blowing_training THEN rabbit_programmes.id ELSE NULL END) AS "Completed Ready to Go Actual", | |
| COUNT(DISTINCT CASE WHEN rabbit_programmes.offered_work_widget THEN rabbit_programmes.id ELSE NULL END) AS "Offered widgets Actual", | |
| COUNT(DISTINCT CASE WHEN widget_rabbits.started THEN rabbit_programmes.id ELSE NULL END) AS "Started widgets", | |
| COUNT(DISTINCT CASE WHEN widget_rabbits.finished THEN rabbit_programmes.id ELSE NULL END) AS "Finished widgets", | |
| COUNT(DISTINCT CASE WHEN rabbit_programmes.attended_action_day THEN rabbit_programmes.id ELSE NULL END) AS "Attended Action Day", | |
| COUNT(DISTINCT CASE WHEN rabbit_extended_widgets.started THEN rabbit_programmes.id ELSE NULL END) |
| server { | |
| listen 8000; | |
| server_name localhost; | |
| # access_log /var/log/nginx/lv.access.log; | |
| location / { | |
| root /usr/local/django/lv_core; | |
| index index.html; | |
| expires 7d; | |
| gzip on; |
| # export DJANGO_SETTINGS_MODULE=api.settings | |
| from pymongo import Connection, DESCENDING | |
| import re | |
| from datetime import datetime | |
| from songdata.models import Song | |
| connection = Connection() | |
| db = connection['test'] | |
| songs = db.songs | |
| db.songs.ensure_index('terms') |
| # work with Elastic Load Balancers in the EU region | |
| from boto.ec2 import elb | |
| AWS_ID = '' | |
| AWS_SECRET = '' | |
| HOST = 'eu-west-1.elasticloadbalancing.amazonaws.com' | |
| conn = elb.ELBConnection(AWS_ID, AWS_SECRET,host=HOST) |