##Installing nokogirin in Mac OS EI captan:
brew install libxml2
bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2"
bundle install
//AtrributedString for different color. | |
NSString *str = [NSString stringWithFormat:@"You Have Selected %@", treeModel.name]; | |
NSMutableAttributedString *message = [[NSMutableAttributedString alloc] initWithString:str]; | |
[message addAttribute: NSForegroundColorAttributeName value:[UIColor blackColor] range:[str rangeOfString:[NSString stringWithFormat:@"%@",treeModel.name]]]; | |
cell1.descriptionLabel.attributedText = message; |
//AtrributedString for different color. | |
NSString *str = [NSString stringWithFormat:@"You Have Selected %@", treeModel.name]; | |
NSMutableAttributedString *message = [[NSMutableAttributedString alloc] initWithString:str]; | |
[message addAttribute: NSForegroundColorAttributeName value:[UIColor blackColor] range:[str rangeOfString:[NSString stringWithFormat:@"%@",treeModel.name]]]; | |
cell1.descriptionLabel.attributedText = message; |
1) Cmd + Shift + K to do a build clean | |
2) after this is done, press Cmd + B to build |
1. gem uninstall cocoapods | |
2. rvm get stable --auto-dotfiles | |
3. rvm use ruby-2.1.2 | |
4. rvm osx-ssl-certs update all | |
5. rvm rubygems latest | |
6. sudo gem sources -r https://rubygems.org/ | |
7. sudo gem sources -a http://rubygems.org/ | |
8. gem install cocoapods -v 1.0.0.beta.1 --pre -V |
'use strict'; | |
var AngularPage = function () { | |
browser.get('http://www.angularjs.org'); | |
}; | |
AngularPage.prototype = Object.create({}, { | |
todoText: { get: function () { return element(by.model('todoText')); }}, | |
addButton: { get: function () { return element(by.css('[value="add"]')); }}, | |
yourName: { get: function () { return element(by.model('yourName')); }}, |
##Installing nokogirin in Mac OS EI captan:
brew install libxml2
bundle config build.nokogiri "--use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2"
bundle install
su -
yum install gcc-c++ openssl-devel
cd /usr/local/src
$ wget https://raw.github.com/isaacs/nave/master/nave.sh
mongodump --host xxx.xxx.xx.xxx --port xxxx --out /home/enbake/Documents/
mongodump --host [localhost] --port [portno] --out /home/enbake/Documents/
mongorestore -d mydatabase /home/enbake/Documents/mydatabase_backup
# Write a RoR program to find the contiguous subarray within a onedimensional | |
# array of | |
# numbers (containing at least one positive number) which has the largest sum. For | |
# example | |
# for the sequence of values −2, 1, −3, 4, −1, 2, 1, −5, 4; the contiguous subarray with the |
# Location of this file : /etc/nginx/sites-available/default | |
# This configuration for NodeJs application but the configuration is same for other framework also like ruby-on-rails. | |
# Make sure if you have AWS EC2 instance then please open the HTTPS port to serve the application on Https protocols. | |
# Also if you need extra port on same domain enable thoes port over AWS EC2 instance. | |
# In this configuration I am using same domain but with different port. | |
server { | |
listen 80; | |
server_name your.domain.com; | |
# return 301 https://$server_name$request_uri; |