Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to make Fancy Box on your text portion

Hello reader! if you having the page and need to show the fancy loading on any text portion then you can see the code below. For the loader and the text the css will go like this #dummy { display: none; } #target { display:inline-block; }

make your number to 2 decimal places round in PHP

Let's consider the example below using the function sprintf $result = 3.146124; echo sprintf("%.3f",$result); output: 3.140 Alternatively, with printf: $result_rounded = sprintf('%0.2f', $result); Output 3.14

How can I get a decimal number in text field?

Currently I am using this code: InputAmount = System.Int32.Parse(GameObject.FindGameObjectsWithTag("Amount")[0].GetComponent().text); Declare with float but how can I get a decimal number from the text field? Because I am doing a calculator with it

How to get URL from any given text

If you having any sting or text containing the url of any websites <?php $text = "I have to extract the url http://abc.com from this line"; echo explode(' ',strstr($text,'http://'))[0]; Output :- http://abc.com Although there are so many o

Get group id and check membership from node id in Drupal 6

We can get group information and also can check membership in that group from current logged in user, using following code: $gidarray = array_keys($node->og_groups); $gid = $gidarray[0]; global $user; if(og_is_group_member($gid, true, $user->u

Fetch All Notifications

Snippet to fetch all local notifications of the app. One can customize any notification and cancel the same. UIApplication *app = [UIApplication sharedApplication]; NSArray *eventArray = [app scheduledLocalNotifications]; for (int i=0; i<

Add or Remove Class by Using Jquery

Hello Guys The below example will guide you to add or remove class by using jquery. So if you are stuck in such case follow the below code. Here is the HTML Code <nav> <ul> <li><a href="javascript:void(0)" class

Relative URLs in Laravel 5

In Laravel 5, when you use <a href="{{ route('/about' }}">About</a> it generate url like AboutSo to generate relative url or url without domain name, you can use this syntax{{ route('/about', array(), false) }}

Image splitting in Android

Image split can be required by different android puzzle application where there is a need to divide the one complete picture into different pieces. Here is the function that takes three argument one is the imageview that holds your complete image

Adding auto layout constraint dynamically in swift

Hi All, You can add auto layout constraints by using Storyboard Interface OR by adding constraints dynamically. There are three ways to add constraint dynamically (as per Apple Inc.) Layout Anchor is one of the way is used to add autolayout constra

1 499 596
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: