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

AngularJS Factory

Hi All, In this we will discuss about factories in Angular JS, as Factory and Services plays an important role in Angular jS application as they allows us to put reusable code at a single place that can later on used in many other places like ...

To Run Stored Procedure everyday

For doing that we need to create procedure first and also define the repeating interval to call it again We will create procedure named getnotification from the particular database that gets fired after 3:30 hours on a daily basis. Wh...

CHAR_LENGTH(str) & CHARACTER_LENGTH(str) MySQL string function

CHAR_LENGTH(str) The string str length measured in characters is returned by CHAR_LENGTH. It also counts a single character for a multibyte character. This means, for a string containing five 2-byte characters, LENGTH() returns 10, whereas CHA...

Use of VIewBag and ViewData in MVC

Like we have state management in ASP.NET, ViewBag and ViewData are also used for providing the state management in MVC Use of ViewBag and ViewData: 1 It helps to maintain data when you move from controller to view. 2 It is used to...

SQL Tutorial -> Sql Distinct

<-- Chapter 3: SQL Select Chapter 4 SQL District SQL District : District is a keyword which is used to fetch unique column values from database table OR we can simply say that ignores the column duplicate values. Syntax for district ke...

Different types of SQL Commands

SQL(Structured Query Language) is a computer language used for storing, retrieving and management of data in Relational Database Management System(RDBMS). The commands of SQL can be categorize into following categories : 1. DDL : DDL stands for...

Use of Repository in MVC

Repository in MVC project is used to store and perform the crud database operations.   It is folder in which there is class file that contains definitions of functions performing the operations   So we are explaining the fun...

Use of FormCollection in MVC

FormCollection class in MVC is used to send or retrieve form data from one view to another. Using this you can access every element of your form means all the controls   Form collection is the collection of all the object that we use ...

How to remove p tag and br tag in default wordpress editor

Hello readers, today I will guide you to "remove <p> tag and <br> tag in default WordPress editor in admin panel". In WordPress editor its a default functionality to add <p> tag and <br> tag. While creating a new post, ...

async attribute is javascript

Hi All, In this blog we will discuss about the async attribute is javascript, which is a boolean type of attribute that's either can be true or false and when ever we use this attribute to any script tag, it simply denotes that the available s...

What is process to convert string into an array using PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss what is process to convert string into an array using PHP ? If you want to convert a string into a array then you should use str_split() function let us know how it is works ...

MVC styling and Scripting

In the design page if you want to add libraries for script files and CSS files so for doing that in MVC architecture you need to use two tags : 1 Styles.Render 2 Scripts.Render   Style.Render is used to add bundle of CSS files. S...

How to get count of duplicate values from table in mysql?

Sometimes we need to check how many duplicate values a column has in MySQL table. We can do this by using "group by" and "having". Example: Suppose you have a table "user" with "fist_name" column from which you want to find all the records w...

How to change site wide validation required maker, Drupal 7

The below code will help you to to change the site wide validation required marker as well the hover text. Though there are various approach you can do but this is one of the massively used approach. Go to Drupal Root Folder->includes-&...

How to send a Hash as an argument to a function in Ruby

In Ruby it is possible to send a Hash as an argument to a method. Suppose we have a method named conversion_method which has 4 default parameters(a,b,c,d). ex:- 2.1.5 :086 > def conversion_method(a:10, b:20, c:30, d:40) 2.1.5 :087?&g...

What is process to unzip a file uisng PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss what is process to unzip a file uisng PHP ? If you have a zip file and you want to unzip the file with php, then you should use zip_open(). This is very simple and useful f...

How to use json_decode() function in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use json_decode() function in php ? So, Firstly let us know what is the use of json_decode() function ? So json_decode() function is basically used for converting JSO...

How to count unique values from table in mysql?

Sometimes we have the requirement to count how many unique values are in the table. We can do this by using "Distinct" and count(). SELECT COUNT(DISTINCT column_name) FROM table_name; Example: Suppose you have a table user from which you ...

How to accept Use current location permission popup in Appium?

There are some applications that requires user location when they are launched for the first time. The application requests to accept or reject the location. A popup appears and it should either be accepted or rejected. Its very difficult to loca...

Check unique visitor counter in your website

Hello Everyone, today we will learn about "How to Check Unique visitor counter in your website". There are many ways to check the user list who navigate your website, like Google Analytics Plugin in Wordpress etc. With Google Analytics Plugi...

How to define category in contact us page

In this post we have learner how to enable contact us page This form will always send email to the particular listed recipient email id's . But What if you have different departments in your company and each department want to use this con...

each and reset function php

Welcome to FindNerd. We are going to discuss the in-build functions reset and each. each works like a loop. It returns the current element and move the pointer forward. reset moves the pointer to first element. Please have a look. <?php $...

How to enable contact us form in Drupal 7

Enable Contact US Page Contact Us page is a core module of Drupal 7, provided with the fresh copy of Drupal installation. You need to enable the contact module to make it work. Go to the module page Search for contact ...

Get S3 bucket file list from terminal

Hello friends, If you are using the amazon S3 bucket to store the files and want to fetch the list of stored files list from terminal with respect to added time in bucket, means if you want to get the newly added items list from amazon bucket ...

array pointer changing functions php

Welcome to FindNerd. We are going to discuss the in-build functions in php to handle the pointer of the array. You can easily get the current pointer of the array by using current() function, next function will advance the pointer of the array ...

What is Overriding in Java?

When a sub class inherits the properties of super class , then we can override the method of super class. This will acquire the properties of super class but can define its own behaviour. In general way, we can say the overriding means to ...

What is Smoke Testing?

What is Smoke Testing ? Smoke testing is a testing approach which is stimulated for hardware testing. In this testing we verified for the smoke with the hardware elements when we activated hardwares power. correspondingly in the software testi...

Jquery ajax post example with PHP

Hello Readers , If you want to post the form but do not want to refresh the browser then the best approach to follow by using AJAX call . Following is the HTML and Jquery code. HTML: <form id="foo"> <label for="bar">A...

CHAR(N,....) string function MySQL

If the length of results is greater then the value if the max_allowed_packet system variable then the String-valued functions will return NULL The first position of a string (for those functions which operate on string), is numbered 1. Non-...

How to print an object's class & contents in Rails

If i have a User object say user, i.e >> user = User.find(1) => #<User id: 1, login: "james.warner", email: "james.warner@evontech.com",created_at: "2013-11-18 07:12:45", updated_at: "2014-02-03 10:51:02", designation: "Programmer...

Useful Remarks in Odo

If you want to add some extra features in your report you can like below feature Twitter Bootstrap and FontAwesome classes can be used in your report template Local CSS can be put directly in the template You can insert a Global CSS in th...

How to show the Barcode in Odoo-9

Barcodes use in Point of sale module which indicates the product sequence number to stocks and warehouse management and Barcodes are images returned by a controller and can easily be embedded in reports thanks to the QWeb syntax: For example code...

Translatable Templates in Odoo-9

If you want to translate reports then you need to define two templates: 1-The main report template 2-The translatable document And follow the follow the following step in given below-> you can go to Settings Reports Report Search...

Field edition in Odoo-9

Field edition in odoo which is specific to a record should be saved on that record, soFor record fields, templates can use a special t-field directive which allows editing the field content from the website using field-specific interfac...

Accessing data in Odoo-9

With the help of accessing data fetch the records from the database instead of having a static list and after that we can search() returns a set of records matching the filter.for example you can see below code and use in .controller.py file...

Demonstration data in Odoo-9

Demonstration data is the most important data in odoo-9 so it's possible to test it easily. This is done by adding a demodata file, which must be linked from the manifest. For example you can see below code . <openerp> <dat...

Working example of data by PHP JSON Object

Hello Reader's If you want to know more about the PHP JSON Object then this blog will helps you. Lets see how to handle the working data of it. <?php $trends_url = "http://search.twitter.com/trends/daily.json"; // initialise the sessi...

Remove all special charracters and replace white spaces with hyphen "-" using PHP

Hello Readers! if you want to replace all the sepecial charracters from a string and replace white space by hyphen '-' then the code below will help you to learn:- first we will replace all the white space with hyphen "-" from the string fu...

How to make combinations by elements of array using PHP

Hello Reader's If you want to get all elements in the combinations then you can use PHP code to generate it. Lets see the example as below:- function pc_permute($items, $perms = array()) { if (empty($items)) { echo join(' ', $p...

Multuple deletion in Mysql using PHP

Hello Reader's If you want to handle your html form to delete multiple value at once then by using Check box in array you can do it. lets see one example as below:- <?php $sql = "SELECT * FROM guest_book"; $res...

How to get current unix timestamp in PHP

Hello Reader's if you want to get the current time stamp of Unix in PHP, Then PHP offers your to use this by getTimestamp(). Now let's see this in the example below:- <?php $date = new DateTime(); echo $date->getTimestamp(); ?> ...

How to find elements from the group array in PHP

Hello Reader's! if you have set of arrays and you want to get all of them seperatly then the code below will help you. Let's say if you have [ [a], [b], [c], [a, b], [a, c], [b, c], [a, b, c] ] and you want this [a,b,c] The c...

Find day difference without weekends in php

Using php we can easily find difference in days excluding weekends. First take start date and end date and generate strtotime for these dates to convert into string. After manipulation using while loop we can easily get the count of week days exc...

Find routes between two points in google map

We can easily show the route which contain all stops including start point and end point in Google map. So to find stops we need to create markers json string contains all the stops with their latitude and longitude including start point...

BIT_LENGTH function mysql

BIT_LENGTH(str) BIT_LENGTH function returns the length of the string str in bits. for example, the bit length of text is 32 and hello is 40. mysql> SELECT BIT_LENGTH('text'); +--------------------+ | BIT_LENGTH('text') | +--------...

BIN (N) string function mysql

String-valued functions return NULL, if the the result's length would be greater than the value of the max_allowed_packet system variable. The first position of a string (for those functions which operate on string), is numbered 1. Noninteg...

Multiple data base connections in codeigniter

We can create multiple database connections easily by providing second database information in application/config/database.php. Normally we already set the default database group which is by default. Like this $db['default']['hostname...

redirect non-www to www url string using htaccess

There must be a situation where we need to redirects all non www requests to www. We can easily redirect user from non-www to www url string using following ways. for example , if a user makes a request for http://mysite.com/param1/param2, so wit...

What should be the process of testing ?

Many people have an idea that testing is not a mandatory task for an application which is in development or has been developed but I think that testing equally plays the same roles as development in the successful launch of the application. If th...

Websites Creation & WordPress Themes?

The list of these web hosting providers looks a bit long? It should be... There are a ton others and the ones listed here serve different purpose plus have different plans and pricing. The good thing is we know about these guys and you'll be in g...
1 147 269
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: