ANSI escape sequences for coloring
Рубрики: Mac OS X on Feb.02, 2012
More about ANSI escape code I modify my twitter script from previous post and now timeline looks like this:
Рубрики: Mac OS X on Feb.02, 2012
More about ANSI escape code I modify my twitter script from previous post and now timeline looks like this:
Рубрики: Mac OS X on Feb.02, 2012
If album does not has artwork: Download theme
Рубрики: Mac OS X on Jan.31, 2012
Install next gem yajl-ruby, twitter, htmlentities 1sudo gem install yajl-ruby twitter htmlentities create app on twitter developer portal and copy keys 12345678910111213141516171819202122#!/usr/bin/ruby # Copyright Vladimir Boychentsov, 2012 # site http://www.developers-life.com/ # Released under BSD require ‘rubygems’ require ‘twitter’ require ‘htmlentities’ Twitter.configure do |config| config.consumer_key = "Consumer key" config.consumer_secret = "Consumer secret" config.oauth_token [...]
Рубрики: iOS, iPad, iPhone on Jan.30, 2012
Create movie from images seq. First part of method, initialize 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950- (void) writeImagesAsMovie:(NSArray *)array toPath:(NSString*)path { NSString *documents = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex: 0]; documents = [documents stringByAppendingPathComponent:currentWorkspace]; //NSLog(path); NSString *filename = [documents stringByAppendingPathComponent:[array objectAtIndex:0]]; UIImage *first = [UIImage imageWithContentsOfFile:filename]; [...]
Рубрики: iOS on Jan.28, 2012
Layer with CGPathRef and animated. And added masked gradient for layer. ViewLayers.h 1234567891011121314151617181920212223242526272829303132// // ViewLayers.h // layers // // Created by Volodymyr Boichentsov on 1/28/12. // Copyright (c) 2012 www.injoit.com. All rights reserved. // #import <uikit /UIKit.h> #import <quartzcore /QuartzCore.h> @interface ViewLayers : UIView { CGRect firstRect; CGRect secondRect; [...]
Рубрики: iOS on Jan.27, 2012
Animating the drawing of a CGPath with CAShapeLayer Thanks for Ole Begemann.
Рубрики: iOS on Jan.27, 2012
UIBezierPath is a convenient object for creating rounded-rectangular shapes. Starting from 3.2, this class becomes public, but the interface is dramatically changed to match that of NSBezierPath. 12345678910-(void)drawRect:(CGRect)rect { UIBezierPath* roundedRect = [UIBezierPath roundedRectBezierPath:CGRectInset(rect, 5, 5) [...]
Рубрики: iOS on Jan.24, 2012
I create simple project for iOS, “One minute”. This project create video from photos on iOS device. Results of app:
Рубрики: Mac OS X on Jan.22, 2012
Default header looks like this First we want change height of header: 12NSTableHeaderView *tableHeaderView = [[NSTableHeaderView alloc] initWithFrame:NSMakeRect(0, 0, 120, 60)]; [_tableView setHeaderView:tableHeaderView]; Next step we want change NSTableHeaderCell, can make category for this class or make subclass. So, I wrote subclass. Empty category
Рубрики: iOS on Jan.10, 2012
I added 2 new methods to category UIColor. 123456789101112131415161718+ (UIColor* ) colorWithHex:(int)color { float red = (color & 0xff000000) >> 24; float green = (color & 0x00ff0000) >> 16; float blue = (color & 0x0000ff00) >> 8; float alpha = (color & 0x000000ff); return [UIColor [...]