Tags » Salim

Young Demon Update

Hello !

I’ve finnally had some time to work on this , i’ve finished the retopo , and started doing uvs and look dev . 26 more words

3D

We all have read how Salim was a child of many prayers and Akbar doted on him. But Salim was so naughty that he was sent to war field at age of 7 to learn discipline. 549 more words

History

C# regex check string contains html

I’m using following regex pattern to check a string contains html.

string input = "<a href=\"www.google.com\">test</a>";
const string pattern = "</?\\w+((\\s+\\w+(\\s*=\\s*(?:\".*?\"|'.*?'|[^'\">\\s]+))?)+\\s*|\\s*)/?>";
Regex reg = new Regex(pattern);
var matches = reg.Matches(input);
… 63 more words
Stackoverflow

Chef recipe: syntax error,unexpected tIDENTIFIER, expecting ':'

Can someone please take a look at the below code block and let me know what is wrong in this

%w"#{zookeeper_ensemble}".each_with_index do |ip, index|
  if node['ipaddress']?("#{ip}") 
    template "#{zookeeper_data}/myid" do
      source "myid.erb"
      owner zookeeper_user
      group zookeeper_user
      variables(
        :myid=> "#{index}"
      )
    end
  end
end
… 56 more words
Stackoverflow

Two More Rounds

‘Salim, let’s go home dear. It is getting dark’, said Chaand, as she stopped an eight year old boy riding a red colored bicycle.

‘Grandma, just two more rounds please’ replied Salim, ‘and then we’ll be off.’ 193 more words

Life

What is the difference between facebook id and graph id

http://ift.tt/1vZykuD

{
"id": "5027xy014",
"first_name": "...",
"gender": "male",
"last_name": "...",
"locale": "en_US",
"name": "...",
"username": "myusernamehere.11"
}

http://ift.tt/1z6NSkR

{
"id": "101521xxxxxxxxxxxxx", 
"name": "xxxxxx yyyyy"
}
… 25 more words
Stackoverflow

GCDAsyncSocket server receive data only first time

Client sent message every time when I press send button but Server receive message only first time. What is the issue in server

Server:

- (void)viewDidLoad
{
    ;

    asyncSocket = [ initWithDelegate:self delegateQueue:dispatch_get_main_queue()];

    NSError *err = nil;
    if (!){

        NSLog(@"Error in acceptOnPort:error: -> %@", err);

    }
}

- (void)socket:(GCDAsyncSocket *)sock didAcceptNewSocket:(GCDAsyncSocket *)newSocket
{
    NSLog(@"Accepted new socket from %@:%hu", , );

    self.asyncSocket = newSocket;
    NSString *welcomMessage = @"Hello from the server\r\n";
     withTimeout:-1 tag:1];

    ;

}

-(void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag{
    NSString *msg = [ initWithData:data encoding:NSUTF8StringEncoding];

    NSLog(@"MSG: %@",msg);

}
… 186 more words
Stackoverflow