Skip to content

Instantly share code, notes, and snippets.

View iandol's full-sized avatar
👾
typing away...

Ian Max Andolina iandol

👾
typing away...
View GitHub Profile
@iandol
iandol / ptbkernel.sh
Created October 22, 2014 02:42
You'll need to update the path on line 9 to your PTB installation...
#!/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
@iandol
iandol / a newer build selecting textmate in first pane
Last active August 29, 2015 13:56
Console logs for QS 4009 selecting between differing catalog items
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
Invalid CSS property declaration at: . general.css:31
Context menu callback function called lpfulllib.js:68
61 : BG : loaded lpfulllib.js:68
Loaded 75 special sites! lpfulllib.js:68
read: 24 preferences lpfulllib.js:68
server.js : lplogincheck fromwebsite=httptest sessionid=undefined lpfulllib.js:68
server.js : loginoffline from=logincheck offline_before_online=true lpfulllib.js:68
server.js : getting login credentials lpfulllib.js:68
server.js : lpLoginCheckResponse fromwebsite=httptest lpfulllib.js:68
read: 40 preferences lpfulllib.js:68
@iandol
iandol / gist:5806849
Created June 18, 2013 16:22
gst-inspect
y4menc: y4menc: YUV4MPEG video encoder
y4mdec: y4mdec: YUV4MPEG demuxer/decoder
xingmux: xingmux: MP3 Xing muxer
ximagesrc: ximagesrc: Ximage video source
wavparse: wavparse: WAV audio demuxer
wavenc: wavenc: WAV audio muxer
volume: volume: Volume
videotestsrc: videotestsrc: Video test source
videoscale: videoscale: Video scaler
videorate: videorate: Video rate adjuster
@iandol
iandol / BeamPositionTest on LCD screen 1 - test passed
Last active December 10, 2015 21:38
Verbosity 10 testing on an external 1280x1024@85Hz CRT -- scroll to see tests with 2 monitors attached
>> BeampositionTest(10000,1)
screenid =
1
PTB-DEBUG: PsychGetScreenDepths(): mode 0 : w x h = 1920 x 1080, fps = 60, depths = 16
PTB-DEBUG: PsychGetScreenDepths(): mode 1 : w x h = 1920 x 1080, fps = 60, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 2 : w x h = 1280 x 1024, fps = 75, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 3 : w x h = 1280 x 1024, fps = 75, depths = 32
@iandol
iandol / BeamPositionTest
Last active December 10, 2015 20:38
Verbosity 10 testing of 7th Jan 2013 Screen build
>> Screen('Preference', 'ConserveVRAM',2^16)
PTB-INFO: Connection to Psychtoolbox kernel support driver instance #0 (Revision 0) established.
PTB-INFO: Connection to Psychtoolbox kernel support driver instance #1 (Revision 0) established.
ans =
0
>> Screen('Preference', 'Verbosity', 10);
>> BeampositionTest
@iandol
iandol / gist:4470022
Last active December 10, 2015 17:48
Verbosity 10 log running a 2 gabor experiment on a retina MBP (at HiDPI native resolution, which OpenGL will treat as 1440x900) using 06.01.2013 Screen built from this commit: https://github.com/kleinerm/Psychtoolbox-3/commit/2b205b1ef7311815c6b2f70233bc7eedc375825b
---> labJack: labJack running in silent mode... | CONSTRUCTOR Method
---> screenManager: ConserveVRAM set at= 65536
PTB-DEBUG: PsychGetScreenDepths(): mode 0 : w x h = 1440 x 900, fps = 0, depths = 16
PTB-DEBUG: PsychGetScreenDepths(): mode 1 : w x h = 1440 x 900, fps = 0, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 2 : w x h = 720 x 450, fps = 0, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 3 : w x h = 720 x 450, fps = 0, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 4 : w x h = 1920 x 1200, fps = 0, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 5 : w x h = 1920 x 1200, fps = 0, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 6 : w x h = 1680 x 1050, fps = 0, depths = 32
PTB-DEBUG: PsychGetScreenDepths(): mode 7 : w x h = 1680 x 1050, fps = 0, depths = 32
@iandol
iandol / gist:4339809
Created December 19, 2012 19:39
Weird bug. Run this and you should see a basic procedural garborium demo with correct blending (using normalised 0-1 colour range). Now uncomment line 24 (WhitIndex function) and rerun. What I see is the blending is now different (only the lighter parts of the gabor display); but I don't think WhiteIndex should effect the drawing mode.
function runGarborium()
s = struct();
s.srcMode = GL_ONE;
s.dstMode = GL_ONE;
s.blend = true;
s.backgroundColour = 0.5;
s.bitDepth = 'FloatingPoint32BitIfPossible';
s.screenid = max(Screen('Screens'));
%-----------------------------------------------------------
@iandol
iandol / gist:4151623
Created November 27, 2012 00:30
Retina MBP Verbosity 10 VBLSyncTest output
>> clear all
>> Screen('Preference', 'Verbosity', 10);
PTB-INFO: Connection to Psychtoolbox kernel support driver instance #0 (Revision 0) established.
PTB-INFO: Connection to Psychtoolbox kernel support driver instance #1 (Revision 0) established.
>> VBLSyncTest
ans =
0
@iandol
iandol / gist:3784993
Created September 25, 2012 23:04
extract PTB kernel driver
╒═ian @ Diogenes in ~/Code/Psychtoolbox-3/Psychtoolbox/PsychHardware (master)
╘═◎ unzip PsychtoolboxKernelDriver64Bit.kext.zip -d ~/Desktop/
Archive: PsychtoolboxKernelDriver64Bit.kext.zip
creating: /Users/ian/Desktop/PsychtoolboxKernelDriver.kext/
creating: /Users/ian/Desktop/PsychtoolboxKernelDriver.kext/Contents/
inflating: /Users/ian/Desktop/PsychtoolboxKernelDriver.kext/Contents/Info.plist
creating: /Users/ian/Desktop/PsychtoolboxKernelDriver.kext/Contents/MacOS/
inflating: /Users/ian/Desktop/PsychtoolboxKernelDriver.kext/Contents/MacOS/PsychtoolboxKernelDriver