Monday, 22 August 2016

Install GitLab 5.3 on Mac OS X server 10.8.4

Below are the steps to install GitLab 5.3 on a fresh Mac OS X server 10.8.4 (server version 2.2)
1) Install a fresh mac ox x 10.8.4
2) Create user group “git” and a user “git” in this group
3) Enable remote login for “git” user
4) Install Xcode 4.6.2
5) Install command line tools in Xcode.
6) Install Home brew

Tuesday, 2 August 2016

ImagePicker in iOS 8+ (objective-c)

Here is the Rocket repo for the image picker and simple code for open actionsheet.
[[ImagePicker sharedPicker] imagePickerOnViewController:self
                                                   withSize:CGSizeMake(150, 150)
                                                   andImage:^(UIImage *img) {
                                                       if (img) {
                                                           self.imgView.image = img;
                                                       } else {
                                                           NSLog(@"Image not available");
                                                       }
                                                   }];