zaterdag 17 maart 2012

piratebay op ziggo

Ziggo blokkeert tegenwoordig thepiratebay maar dat is makkelijk te omzeilen via een gratis proxy server
ga naar

http://freeproxyserver.net

en typ dan:
thepiratebay.se/

En je kan weer verder surfen.

woensdag 14 maart 2012

quick ref Xcode


Set a Label

    [BallenLAbel setText:@"sdfsdf"];


myLabel.text=[NSString stringWithFormat:@"x = %f",startPoint.x];

- (void)drawRect:(CGRect)rect {
    // Drawing code
    
//Make a simple rectangle and fill background BLUE with half Opeque
CGContextRef context = UIGraphicsGetCurrentContext();
//[[UIColor blueColor] set];
CGContextSetRGBFillColor(context, 0.0, 0.0, 1.0, 0.5);
rect = CGRectMake(20, 20, 40, 40);
CGContextFillRect(context, rect); 
    
//Make a simple RED line from 0,0 to 100, 100 in a FRAME
//CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0);
[[UIColor redColor] set];
CGContextMoveToPoint(context, 0, 0);
CGContextAddLineToPoint( context, 100,100);
CGContextStrokePath(context);
}




Create an instance
MyClass *foo;
foo = [[MyClass alloc] init];

Destroy an instance
[foo release];

Info to screen
NSLog(@"Write some comment");
// C string char *foo;
// NSString NSString *bar;
foo = "this is a C string";
bar = @"this is an NSString";
printf(foo);

MyClass.
#import 
@interface myClass : NSObject 
@end

MyClass.m
@implementation myClass
@end import

import
#import voor NSLog, NSObject, NSWindow




dinsdag 13 maart 2012

unix

tail -f /var/log/{messages,kernel,dmesg,syslog}
watch 'dmesg | tail -50'
multitail  
 
mount linux 
mount -t ext2 /image.img /mnt/image -o loop
 
 
mount fat /dos 
mount -t vfat /image.img /mnt/image -o loop 
 
mount -t debugfs none /sys/kernel/debug
 

zaterdag 10 maart 2012

MacBook-Air:~ 10A$ ssh root@192.168.2.103

passwd : alpine


change passwd