Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
void testApp::setup(){
ifstream file ( ofToDataPath("fcrun2.csv").c_str() );
int i=0;
string value[3];
ofstream out("out.raw", ios::binary | ios::out);
ofVec2f v;
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
glEnable(GL_DEPTH_TEST);
ifstream file ( ofToDataPath("fcrun2.csv").c_str() );
int i=0;
@elliotwoods
elliotwoods / gist:1329309
Created October 31, 2011 22:53
PHP script to auto generate video previews for video files from 5D
<?php
// run this script from command line e.g.
// php compress.php > videos.html
// I really DO NOT suggest you try and load this php url in your browser
$nVideos = 0;
//these 2 variables are used to render an absolute path
@elliotwoods
elliotwoods / gist:1358604
Created November 11, 2011 17:23
Threaded RS232
#region usings
using System;
using System.ComponentModel.Composition;
using System.IO.Ports;
using System.Threading;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
using VVVV.Utils.VColor;
using VVVV.Utils.VMath;
@elliotwoods
elliotwoods / gist:1381800
Created November 21, 2011 06:09
S+H and save
/*
Drop in replacement for S+H (Spreads)
But this node saves the current state in its own config pin
So when you reload the patch, S+H returns to the same state when you closed the patch.
This likely works a little different from the existing s+h node in edge cases, but in most situations it should be identical.
Also it's super simple
To use:
<!DOCTYPE PATCH SYSTEM "C:\vvvv\vvvv_45beta26 w.addons\bin\45beta26.dtd" >
<PATCH>
<NODE componentmode="Hidden" id="0" nodename="S+H (Animation)" systemname="S+H (Animation)">
<BOUNDS height="270" left="3030" top="3180" type="Node" width="2280">
</BOUNDS>
<PIN pinname="Input" visible="1">
</PIN>
<PIN pinname="Output" visible="1">
</PIN>
<PIN pinname="Set" visible="1">
@elliotwoods
elliotwoods / gist:1422240
Created December 2, 2011 07:51
Errorlog from msbuild on vvvv-sdk
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 02/12/2011 08:51:09.
Project "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\vvvv45.csproj" on node 1 (Build;Zip target(s)).
Project "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\vvvv45.csproj" (1) is building "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\Hosting\Hosting.csproj" (2) on node 1 (default targets).
Project "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\Hosting\Hosting.csproj" (2) is building "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\PluginInterfaces\PluginInterfaces.csproj" (3) on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1200,9): warning : The referenced project '..\Core\Core.csproj' does not exist. [c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\PluginInterfaces\PluginInterfaces.csproj]
C:\Windows\Microsoft.N
/*
* CorrelateMain.cpp
* MapTools Structured Light
*
* Created by Elliot Woods on 03/11/2010.
* Copyright 2010 Kimchi and Chips. All rights reserved.
*
*/
#include "CorrelateMain.h"
@elliotwoods
elliotwoods / gist:1562852
Created January 4, 2012 23:34
VVVV loading error
There was an error during the execution of this program.
The application might become unstable and even useless.
It's recommended that you save your work and close this application.
The composition produced a single composition error, with 4 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.
1) Cannot compose part 'VVVV.Hosting.HDEHost' because a cycle exists in the dependencies between the exports being composed. To break this cycle, consider changing some imports from constructor to property injection.
Element: VVVV.Hosting.HDEHost --> VVVV.Hosting.HDEHost --> DirectoryCatalog (Path="C:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\lib\nodes\editors")
Resulting in: Cannot get export 'VVVV.Hosting.HDEHost.Container (ContractName="System.ComponentModel.Composition.Hosting.CompositionContainer")' from part 'VVVV.Hosting.HDEHost'.
@elliotwoods
elliotwoods / gist:2351343
Created April 10, 2012 13:26
Code::Blocks build errors
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|