Tags » Salim

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


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

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
        :myid=> "#{index}"
… 56 more words

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


What is the difference between facebook id and graph id


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


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

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


- (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

Now all of us are aware that Salim and his mother Mariam-uz-zamani had not so close a relation. If they were really close then when Salim rebelled against Akbar she would have mediated peace between them. 702 more words