137My First Core Filter. Make Alpha Accessable

/ A Core Image kernel routine that manipulates the alpha of an image. /

kernel vec4 multiplyEffect(sampler image, float alpha) { vec4 i = sample(image, samplerCoord(image)); i.a = alpha; return i; }

128Adding Alpha Blending Mode to Quartz Composer

Courtesy of Kineme.

http://kineme.net/QuartzComposerPatches/GLTools/1.1

125Always check whether delegates are set in IB

Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB. Always check whether delegates are set in IB.

Ps. Always check whether delegates are set in IB.

122Apache Icon Folder

file:///usr/share/httpd/icons/

440CallJS – Sample Application

http://developer.apple.com/samplecode/CallJS/

PSP svn cocoa_call_AS2

442Transparent Background in Safari 4.0

http://127.0.0.1/transparent/

Enable Debug Menu in Safari 4.0:

defaults write com.apple.Safari IncludeInternalDebugMenu 1

via http://trac.webkit.org/wiki/WebDevelopers

Also, an interesing option is to modify the .nib file of Safari and insert a new menu: http://pointum.com/safari-tweaks.html

119Updating to OS 3.0 from beta 5

Apparently has to be put into recovery mode.

http://discussions.apple.com/thread.jspa?messageID=9651285 http://support.apple.com/kb/HT1808

438VVOSC – Objective C OSC wrapper

source: http://github.com/mrRay/vvosc/tree/master docs: http://www.vidvox.net/rays_oddsnends/vvosc_doc/

after following the instructions in the docs, i get the following error (iPod Touch 2nd, OS3.0 beta 5)

/Users/username/Desktop/Test/build/Debug-iphoneos/Test.app: object file format invalid or unsuitable

After some googling, I came across this, and it seems to do the trick.

add:

$(SDKROOT)/ResourceRules.plist

to the Code Signing Resource Path. Why exactly it's working is anybody's guess.

~

This might also be worth a look: liblo: Lightweight OSC implementation

116iPhone Wifi IP

#include

include <arpa/inet.h>

//#include <sys/types.h> //#include <sys/socket.h>

include <net/if.h>

//#include <net/if_dl.h>

if ! defined(IFT_ETHER)

define IFT_ETHER 0x6/ Ethernet CSMACD /

endif

  • (NSString*)getWiFiIPAddress {

    BOOL success; struct ifaddrs addrs; const struct ifaddrs cursor;

    success = getifaddrs(&addrs) == 0; if (success) { cursor = addrs; while (cursor != NULL) { if (cursor->ifa_addr->sa_family == AF_INET && (cursor->ifa_flags & IFF_LOOPBACK) == 0) // this second test keeps from picking up the loopback address { NSString name = [NSString stringWithUTF8String:cursor->ifa_name]; if ([name isEqualToString:@"en0"]) { // found the WiFi adapter return [NSString stringWithUTF8String:inet_ntoa(((struct sockaddr_in )cursor->ifa_addr)->sin_addr)]; } }

        cursor = cursor->ifa_next;
    }
    freeifaddrs(addrs);

    } return NULL; } via http://mattbsoftware.blogspot.com/2009/04/how-to-get-ip-address-of-iphone-os-v221.html

112(NSError **)error

What is this ** doing again?

Oh yeah, thisand that.