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

Search In

Problem with foreach loop for updating array element

If we are traversing an array and need to update an element in some condition then it is quite tricky to do that in foreach loop. For example, if we need to increase each element by 2 of an integer array then we can do that using for loop in this wa

Deleting a list of objects in Entity Framework

Entity framework provides numerous ways to batch delete the objects from Database. Below are the step for way 1 : Load objects that has to be deleted in memory. Remove the objects from context And then save these changes. This statement will ref

Access to Auth Componenet using session in CakePhp

To access the Auth component from view will give you error like you cant access the Auth component. Here is a way of accessing the Auth components from view which can be done using CakeSession in cakephp. to do so lets see the example : $user =

Two-way binding with NgModel in Angular2

Hello Readers, In Angular2 we can do the Two-way binding and user can see the application data values. To show the data we uses data binding. In this post we will see how to implement Two-way binding in Angular2 application.   Two-way binding

How to get the variable by it's name using Javascript

Hello Reader's, Suppose you having a variable and you want to find it by it's name, See the example below:- var MyVar = '12'; alert(window['MyVar']); Output:- 12 No if you have variable like this way var MyVar = {IND:'value12'}; alert(MyVar['

How to refresh the web page using Angular JS

Hello Reader's if you need to refresh the webpage using the Javascript then Angular js offers you many ways but you can use the best and the shorted way , as below:- var PageLandURL = "http://www.abc.com"; //Just set ur URL $window.location.href = P

How to calculate number of days between two given date's in PHP

Hello Reader's! If you need to calculate the number of hours or days between two given dates then PHP offers you a lot of ways. But you can perform this task by the following way: Lets see the example below:- //Calculate number of hours between pass

jQuery Ajax in cakephp

We can implement jquery ajax by this way $this->layout = 'ajax'; Call above line in your function inside your controller file. by this way we can call the ajax layout. Need to create a ajax.ctp file which is empty layout file. $.get('/co

Change time zone in CodeIgniter

Some time developer wants to change the timezone in codeigniter application. There is may way to change the timezone in codeigniter. Here I am explaining you the best way to change the timezone in codeigniter, which is- First open the index.php, whi

Reverse the string without array_reverse function

Welcome to FindNerd. Today we are going to tell the way how we can reverse a string without using array_reverse function in php. Please have a look. $string = "FINDNERD"; $count=array_sum(count_chars($string)); for($i=$count -1 ;$i>=0;$i--){

1 21 363
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: