Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
@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|
@elliotwoods
elliotwoods / gist:2353289
Created April 10, 2012 18:02
errors in CB
||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|
@elliotwoods
elliotwoods / gist:2353303
Created April 10, 2012 18:05
CB full build log
-------------- Build: debug in openFrameworksLib ---------------
Target is up to date.
-------------- Build: debug in graphicsExample ---------------
Linking console executable: bin\graphicsExample_DEBUG.exe
Warning: .drectve `-defaultlib:LIBCMT ' unrecognized
Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized
<html>
<head>
<title>graphicsExample build log</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<tt>
Build started on: <u>10-04-2012 at 19:17.26</u><br />
Build ended on: <u>10-04-2012 at 19:18.54</u><p />
<b>-------------- Build: debug in openFrameworksLib ---------------</b><br />
mingw32-g++.exe -Wno-multichar -I..\..\..\glu\include -I..\..\..\freetype\include -I..\..\..\freetype\include\freetype2 -I..\..\..\FreeImage\include -I..\..\..\quicktime\include -I..\..\..\rtAudio\include -I..\..\..\fmodex\include -I..\..\..\videoInput\include -I..\..\..\glew\include -I..\..\..\glut\include -I..\..\..\cairo\include\cairo -I..\..\..\openFrameworks -I..\..\..\openFrameworks\app -I..\..\..\openFrameworks\events -I..\..\..\openFrameworks\graphics -I..\..\..\openFrameworks\utils -I..\..\..\openFrameworks\sound -I..\..\..\openFrameworks\video -I..\..\..\openFrameworks\communication -I..\..\..\openFrameworks\types -I..\..\..\openFrameworks\3d -I..\..\..\openFrameworks\gl -I.
@elliotwoods
elliotwoods / gist:2469513
Created April 23, 2012 08:27
Padé replacement function
// - - - - pade BEGIN - - - -
float coefficient(int iDimension, int iCoefficient)
{
int iRow, iColumn;
iRow = iDimension*2 + (iCoefficient/4);
iColumn = iCoefficient % 4;
return tV[iRow][iColumn];