Skip to content

Instantly share code, notes, and snippets.

View ZachOrr's full-sized avatar
🤖
TBA

Zachary Orr ZachOrr

🤖
TBA
View GitHub Profile
@ZachOrr
ZachOrr / gist:1321456
Created October 28, 2011 02:04
Load Spotify Playlists
sp_playlistcontainer *pc = sp_session_playlistcontainer(session);
for(int i = 0; i < sp_playlistcontainer_num_playlists(pc); i++){
sp_playlist *pl = sp_playlistcontainer_playlist(pc, i);
const char *name;
name = sp_playlist_name(pl);
NSLog(@"Name of playlist %d = %s\n", i, name);
@ZachOrr
ZachOrr / gist:2714943
Created May 16, 2012 23:42
ZachOrr brew install -v ettercap
==> Downloading http://downloads.sourceforge.net/project/ettercap/ettercap/0.7.4-Lazarus/ettercap-0.7.4.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/ettercap-0.7.4.1.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/ettercap-0.7.4.1.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file src/Makefile.in
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 41 with fuzz 1 (offset -6 lines).
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/ettercap/0.7.4.1 --mandir=/usr/local/Cellar/ettercap/0.7.4.1/share/man --infodir=/usr/local/Cellar/ettercap/0.7.4.1/share/info --enable-gtk --enable-plugins --with-openssl=/usr --with-libpcap=/usr --with-libncurses=/usr --with-libpcre=/usr/local --with-libnet=/usr/local
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/ettercap/0.7.4.1 --mandir=/usr/local/Cellar/ettercap/0.7.4.1/share/man --infodir=/usr/local/Cellar/ettercap/0.7.4.1/share/info --enable-gtk --enable-
@ZachOrr
ZachOrr / gist:2714945
Created May 16, 2012 23:43
ZachOrr brew --config (ettercap issue)
HOMEBREW_VERSION: 0.9
HEAD: 1e7b63da4bfd3fc406107adcea41e4c656e990e5
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
GCC-4.2: N/A
@ZachOrr
ZachOrr / gist:2714950
Created May 16, 2012 23:43
ZachOrr brew doctor (ettercap issue)
Your system is raring to brew.
@ZachOrr
ZachOrr / gist:2714965
Created May 16, 2012 23:47
ZachOrr config.log (ettercap issue)
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/ettercap/0.7.4.1 --mandir=/usr/local/Cellar/ettercap/0.7.4.1/share/man --infodir=/usr/local/Cellar/ettercap/0.7.4.1/share/info --enable-gtk --enable-plugins --with-openssl=/usr --with-libpcap=/usr --with-libncurses=/usr --with-libpcre=/usr/local --with-libnet=/usr/local
## --------- ##
## Platform. ##
==> Downloading http://downloads.sourceforge.net/project/ettercap/ettercap/0.7.4
Already downloaded: /Library/Caches/Homebrew/ettercap-0.7.4.1.tar.gz
==> Patching
patching file src/Makefile.in
Hunk #1 FAILED at 47.
1 out of 1 hunk FAILED -- saving rejects to file src/Makefile.in.rej
Error: Failure while executing: /usr/bin/patch -f -p1 -i 000-homebrew.diff
Your choices are: default [not my site] [not my site] [not my site] [not my site] [not my site] [not my site] [not my site] [not my site] [not my site] [not my site] zachorr.com
Which site(s) do you want to disable (wildcards ok)?
<VirtualHost *:80>
DocumentRoot /opt/www/zo
ServerName zachorr.com
<Directory /opt/www/zo>
Allow from all
</Directory>
</VirtualHost>
2012-05-27 13:41:39.183 GifMe - Dev[10988:11f03] setting movie path: (null)
2012-05-27 13:41:39.199 GifMe - Dev[10988:11f03] setting movie path: /Users/zachorr139/Library/Application Support/iPhone Simulator/5.1/Media/DCIM/100APPLE/IMG_0007.m4v
2012-05-27 13:41:39.398 GifMe - Dev[10988:11f03] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn: dlopen(/System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn, 262): Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2012-05-27 13:41:39.405 GifMe - Dev[10988:11f03] Error loading /System/
public char[][] findPath(int startRow, int startCol, int destRow, int destCol, int threshold) {
char[][] map = generateMap(threshold);
if(checkIfPassable(startRow, startCol, threshold)) {
if(startRow == destRow && startCol == destCol) {
map[destRow][destCol] = 'O';
return map;
}
else {
ArrayList<int[]> pathzor = new ArrayList<int[]>();
pathzor = findEdges(startRow, startCol, destRow, destCol, threshold, pathzor);