Skip to content

Instantly share code, notes, and snippets.

View jbl0ndie's full-sized avatar
🤓

Jonathon Hodges jbl0ndie

🤓
View GitHub Profile
@jbl0ndie
jbl0ndie / gist:b88df3af99ba7adaabb73088c8f4feb3
Created August 16, 2016 13:28
Join pdfs in Linux terminal
pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf
#User downloads a pdf but it's an image only document and the text cannot be searched
#open a terminal
#brew install tesseract (unless you already have it installed)
#open the document in Preview and export to a Tiff document (multipage is supported, 150dpi seems ok
#change to the file directory in terminal to save you the bother of putting the full path in
#tesseract filename.tiff outputfilename pdf
#tesseract then crunches through your file and creates an output file with the specified name and filetype
force quit the following daemon
com.apple.SpeechRecognitionCore.speechrecognitiond
or in the terminal
killall -9 com.apple.SpeechRecognitionCore.speechrecognitiond
that then restarts the failed daemon
test oh yeah
#pragma once
#include "ofMain.h"
ofMesh generatePieMesh( float radius, float segments ) {
// Create our mesh.
ofMesh mesh;
mesh.setMode( OF_PRIMITIVE_TRIANGLE_FAN );
// Add the center point
@jbl0ndie
jbl0ndie / exitCode1
Last active November 17, 2023 17:10
clang: error: linker command failed with exit code 1 (open frameworks)
This means you have two files which have a function called "main" in them -- the compiler compiles all the code fine, but when it goes to link, it sees two object symbols that have the same name.
This usually happens when you include the example code from the an addon (by dragging the addon into a project, for example, but neglecting to remove the addon's example code).