[Solved] Search in text in link [closed]

Here’s a fiddle with the solution: http://jsfiddle.net/h7Wda/7/ You basically check if number/1/phone is located in the href of the element: $(this).attr(‘href’).indexOf(‘number/1/phone’) Same for the number/3/phone case. Any other value will return false. 1 solved Search in text in link [closed]

[Solved] List Document Files in IOS [closed]

1) Apple prefers that downloaded data be stored in the app’s Caches directory since the data can be replaced if it is deleted. 2) Yes, if a user deletes an app, all data stored in the app’s sandbox will be deleted. What would you expect to happen? 3) Use NSCachesDirectory. 4) /Users is not a … Read more

[Solved] Custom Regular Expressions [closed]

This is very bad practice, but because you asked for it: $str=”BCT34385Z0000N07518Z”; preg_match(‘/^(.{6})(.*?)$/’, $str, $result); echo $result[1]; // ‘BCT343′ echo $result[2]; // ’85Z0000N07518Z’ or if you want an if statement: $str = …; if (preg_match(‘/^BCT343/’, $str)) { // yes! } 2 solved Custom Regular Expressions [closed]

[Solved] how can i add a rounded border with css [closed]

First you need to sibling your element with element, id or class: HTML : <div class=”rounded”></div> CSS : .rounded{ -webkit-border-radius:10px; -moz-border-radius:10px; border-radius:10px; } DEMO : http://jsfiddle.net/sq5Lmwrs/ You can also use border-radius left, right, top and bottom : https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius Also you can use this link for generate what you want http://border-radius.com 1 solved how can i … Read more

[Solved] What’s the problems on this sql command code? [closed]

It looks a bit bulky, I’d recommend you to rewrite it in the following way: SELECT User1.NAME,User1.PORT,User1.IP,File1.SIZE, FROM [User_File],[User1],[File1] WHERE [User_File].UID= User1.UID AND [User_File].FID=File1.FID and [User_File].FID = {0} and check if it runs without errors from your SQL Management Studio. solved What’s the problems on this sql command code? [closed]

[Solved] What’s the problems on this sql command code? [closed]

Introduction This question is about a SQL command code and the problems associated with it. SQL is a powerful language used to query and manipulate data in databases. It is important to understand the syntax and structure of SQL commands in order to ensure that the code is written correctly and that the desired results … Read more

[Solved] Can you give an example where the Queue data structure can be specially helpful [closed]

Queues are most commonly used for scheduling and request handling applications. For example, anything where you have one process creating requests and another process handling the requests you would use a queue to hold the requests. Normally a queue is in FIFO order – requests are processed in the order they are received, but they … Read more

[Solved] Shortest path using php [closed]

As Mark Baker pointed out, you’ll need to use something like Dijkstra’s algorithm to traverse a weighted graph (which is what you’ll have when you include distances). Here’s a simple distance function I found here: <?php /*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ /*:: :*/ /*:: This routine calculates the distance between two points (given the :*/ /*:: latitude/longitude of those … Read more