This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19/02/2014 09:34:50.405 Quicksilver[65997]: .scriptSuite warning for result type of command 'GetDirectTypes' in suite 'QuicksilverHandlers': 'list' is not a valid type name. | |
19/02/2014 09:34:50.405 Quicksilver[65997]: .scriptSuite warning for result type of command 'GetIndirectTypes' in suite 'QuicksilverHandlers': 'list' is not a valid type name. | |
19/02/2014 09:34:50.532 Quicksilver[65997]: Cannot find executable for CFBundle 0x7f82e970d380 </Users/ian/Library/Application Support/Quicksilver/PlugIns/com.blacktree.Quicksilver.QSExtraScriptsPlugIn.92.qsplugin> (not loaded) | |
19/02/2014 09:35:36.969 Quicksilver[65997]: initial action count for TextMate.app: 6 | |
19/02/2014 09:35:36.969 Quicksilver[65997]: validation required for Run in Terminal […] | |
19/02/2014 09:35:36.970 Quicksilver[65997]: validation failed for Run in Terminal […] | |
19/02/2014 09:35:36.970 Quicksilver[65997]: QSCLTermExecuteWithArgsAction was not in ( | |
QSCLTermShowDirectoryAction | |
) | |
19/02/2014 09:35:36.970 Quicksilver[65997]: validation required fo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function testptb( ) | |
Screen('preference','skipsynctests',2) | |
backgroundColour = [0.3 0.3 0.3]; | |
name = 'test'; | |
%-----dots stimulus | |
n = dotsStimulus(); | |
n.name = name; | |
n.size = 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
sudo cd /System/Library/Extensions | |
echo "\n\nIs PsychtoolboxKernelDriver Currently Installed" | |
kextstat -b PsychtoolboxKernelDriver | |
echo "\n\nRemoving old driver, installing update..." | |
sudo kextunload -b PsychtoolboxKernelDriver | |
sudo rm -rf PsychtoolboxKernelDriver.kext | |
sudo unzip ~/Code/Psychtoolbox-3/Psychtoolbox/PsychHardware/PsychtoolboxKernelDriver64Bit.kext.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [gratingid, gratingrect] = CreateProceduralSineSmoothedGrating(windowPtr, width, height, backgroundColorOffset, radius, contrastPreMultiplicator, sigma, useAlpha, method) | |
% [gratingid, gratingrect] = CreateProceduralSineGrating(windowPtr, width, height [, backgroundColorOffset =(0,0,0,0)] [, radius=inf][, contrastPreMultiplicator=1]) | |
% | |
% Creates a procedural texture that allows to draw sine grating stimulus patches | |
% in a very fast and efficient manner on modern graphics hardware. | |
% | |
% 'windowPtr' A handle to the onscreen window. | |
% 'width' x 'height' The maximum size (in pixels) of the grating. More | |
% precise, the size of the mathematical support of the grating. Providing too | |
% small values here would 'cut off' peripheral parts or your grating. Too big |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classdef sendSerial < handle | |
%SENDSERIAL Connects and manages Serial port communication | |
% Connects and manages Serial port communication | |
properties | |
name='pci-serial0' | |
baudRate=115200 | |
silentMode=0 %this allows us to be called even if no serial port is attached | |
verbosity=1 | |
openNow=1 %allows the constructor to run the open method immediately | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function out = uipickfiles(varargin) | |
%uipickfiles: GUI program to select files and/or folders. | |
% | |
% Syntax: | |
% files = uipickfiles('PropertyName',PropertyValue,...) | |
% | |
% The current folder can be changed by operating in the file navigator: | |
% double-clicking on a folder in the list or pressing Enter to move further | |
% down the tree, using the popup menu, clicking the up arrow button or | |
% pressing Backspace to move up the tree, typing a path in the box to move |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ======================================================================== | |
%> @brief dataConnection Connects and manages a socket connection | |
%> | |
%> Connects and manages TCP/UDP Communication. We allow both TCP and UDP | |
%> connections, and can choose to be a client or server in TCP mode. To use | |
%> at its simplest in UDP mode, both clients on the same machine: | |
%> | |
%> %OPEN CLIENT 1 | |
%> >> d1=dataConnection('rPort',4321,'lPort',1234,'protocol','udp','autoOpen',1) | |
%> %OPEN CLIENT 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriverUserClient::openUserClient(): Client connects to us :-) | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: GetGPUInfo(): Returning GPU info. | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: GetLUTState(): Checking LUT and bias values on GPU for headId 0. | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: SetDitherMode: Trying to disable digital display dithering on display head 0. | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: SetDitherMode: Current dither setting before our dither disable on head 0 is 0xa960f100. Disabling. | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: SetDitherMode: Trying to disable digital display dithering on display head 1. | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: SetDitherMode: Dithering already disabled. Skipped. | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: SetDitherMode: Trying to disable digital display dithering on display head 2. | |
31/05/2011 12:13:06 kernel PsychtoolboxKernelDriver: SetDithe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31/05/2011 12:52:47 kernel PsychtoolboxKernelDriverUserClient::openUserClient(): Client connects to us :-) | |
31/05/2011 12:52:47 kernel PsychtoolboxKernelDriver: GetGPUInfo(): Returning GPU info. | |
31/05/2011 12:52:47 kernel PsychtoolboxKernelDriver: GetLUTState(): Checking LUT and bias values on GPU for headId 0. | |
31/05/2011 12:52:47 kernel PsychtoolboxKernelDriver: GetLUTState(): Checking LUT and bias values on GPU for headId 0. | |
31/05/2011 12:52:58 kernel PsychtoolboxKernelDriver: SetDitherMode: Trying to disable digital display dithering on display head 0. | |
31/05/2011 12:52:58 kernel PsychtoolboxKernelDriver: SetDitherMode: Dithering already disabled. Skipped. | |
31/05/2011 12:52:58 kernel PsychtoolboxKernelDriver: SetDitherMode: Trying to disable digital display dithering on display head 1. | |
31/05/2011 12:52:58 kernel PsychtoolboxKernelDriver: SetDitherMode: Dithering already disabled. Skipped. | |
31/05/2011 12:52:58 kernel PsychtoolboxKernelDriver: SetDitherMode: Trying to disable digital display dithering on display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [gratingid, gratingrect] = CreateProceduralSineSquareGrating(windowPtr, width, height, backgroundColorOffset, radius, contrastPreMultiplicator) | |
% [gratingid, gratingrect] = CreateProceduralSineGrating(windowPtr, width, height [, backgroundColorOffset =(0,0,0,0)] [, radius=inf][, contrastPreMultiplicator=1]) | |
% | |
% Creates a procedural texture that allows to draw sine grating stimulus patches | |
% in a very fast and efficient manner on modern graphics hardware. | |
% | |
% 'windowPtr' A handle to the onscreen window. | |
% 'width' x 'height' The maximum size (in pixels) of the grating. More | |
% precise, the size of the mathematical support of the grating. Providing too | |
% small values here would 'cut off' peripheral parts or your grating. Too big |
OlderNewer