sudo apt-get install gnome-raw-thumbnailer ufraw-batch
Try now if everything works, and your thumbnails show up. If not, try the following part.
#!/usr/bin/env python | |
import sys | |
import StringIO | |
from lxml import etree | |
def main(): | |
xml_text = sys.stdin.read() | |
parser = etree.XMLParser(remove_blank_text=True) | |
file_obj = StringIO.StringIO(xml_text) |
package main | |
import ( | |
"fmt" | |
"github.com/nfnt/resize" | |
"image" | |
"image/color" | |
_ "image/gif" | |
_ "image/jpeg" | |
_ "image/png" |
// | |
// Create a PDF by merging values from a Google spreadsheet into a Google Doc | |
// ========================================================================== | |
// | |
// Demo GSheet & script - http://bit.ly/createPDF | |
// Demo GDoc template - 1QnWfeGrZ-86zY_Z7gPwbLoEx-m9YreFb7fc9XPWkwDw | |
// | |
// Config | |
// ====== |
import ply.lex, argparse, io | |
#Usage | |
# python stripcomments.py input.tex > output.tex | |
# python stripcomments.py input.tex -e encoding > output.tex | |
#This utility is released under the WTFPL license: http://www.wtfpl.net/about/ | |
def strip_comments(source): | |
tokens = ( |
<meta property="fb:app_id" content="406655189415060"> | |
<meta property="og:site_name" content="Giphy"> | |
<meta property="og:url" content="http://giphy.com/gifs/rhuber-test-djeEV9Xji6zjgLXBxug"> | |
<meta property="og:title" content="Animated GIF"> | |
<meta property="og:description" content="The best GIFs are on Giphy"> | |
<meta property="og:type" content="video.other"> | |
<meta property="og:image" content="http://media.giphy.com/media/djeEV9Xji6zjgLXBxug/giphy.gif"> | |
<meta property="og:image:width" content="912"> |
from numpy import exp, array, random, dot | |
class NeuralNetwork(): | |
def __init__(self): | |
# Seed the random number generator, so it generates the same numbers | |
# every time the program runs. | |
random.seed(1) | |
# We model a single neuron, with 3 input connections and 1 output connection. |
library(caret) | |
library(tm) | |
# Training data. | |
data <- c('Cats like to chase mice.', 'Dogs like to eat big bones.') | |
corpus <- VCorpus(VectorSource(data)) | |
# Create a document term matrix. | |
tdm <- DocumentTermMatrix(corpus, list(removePunctuation = TRUE, stopwords = TRUE, stemming = TRUE, removeNumbers = TRUE)) |