This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
This file contains hidden or 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 calibrateLuminance manaul / automatic luminance calibration | |
%> | |
%> calibrateLuminance manaul / automatic luminance calibration | |
%> To enter settings use a structure: | |
%> | |
%> >> mycal = calibrateLuminance(struct('nMeasures',25,'useCCal',true)) | |
%> | |
%> calibrateLuminance will ask if you need to zero calibrate, you only need | |
%> to do this after first plugging in the ColorCal. Then simply place the |
This file contains hidden or 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
Bus 007 Device 003: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 1.10 | |
bDeviceClass 0 (Defined at Interface level) | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 64 |
This file contains hidden or 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
┌┬─ian @ Hobbes in ~ | |
└┴─❧ brew install -v libwpg | |
==> Downloading http://downloads.sourceforge.net/project/libwpg/libwpg/libwpg-0.2.0/libwpg-0.2.0.tar.bz2 | |
File already downloaded in /Users/ian/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/ian/Library/Caches/Homebrew/libwpg-0.2.0.tar.bz2 | |
==> ./configure --prefix=/usr/local/Cellar/libwpg/0.2.0 --disable-debug --disable-dependency-tracking | |
./configure --prefix=/usr/local/Cellar/libwpg/0.2.0 --disable-debug --disable-dependency-tracking | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d |
OlderNewer