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

Search In

LPAD(str,len,padstr) function mysql

LPAD(str,len,padstr) LPAD mysql funtion returns the string str, left-padded with the string padstr to a length of len characters means if you want to extend a string to a certain length and insert some character in left side of string at the place o

How to show pdf file in html page

Hello all, While playing with of code, we came across a situation where had to show a pdf file in our html page and to do that, I found a very simple solution where showed the file by passing the file path to the src attribute of the iframe. to do

Exchanges all keys with their associated values in an array

Hello friends, This time I am here to explain a very common issue in php which if is someone want to exchange the array keys with values, for this you can use a predefined php array function "array_flip ( array $array )". array_flip ( $array ) used

runOnUiThread() in android

If we want to update UI from a Non-UI thread then runOnUiThread() is the best solution for it. I am showing Toast in every 25 secs. Below is the code private Thread refreshThread; refreshThread = new Thread() { @Override public

PHP Condition checking on multidimensional array

Hi Readers, We all have used array_values, but we use array_values just to get the values from an array. However, we can do much more than that with the help of it. One of it's alternative use of array_values is in a situation where we have an

How to remove nil elements from an array in Rails

We can remove nil elements from an array in number of ways. Here i am demonstrating the frequently used methods for removing nil elements from an array. 1> using present method with reject >> [ "a", nil, "b", nil, "c", nil ].reject {|e| !

Show default image when image not found

When we show a profile image we get image path from database and show that image as a profile image. But if image not found or image path is not correct then we see a broken image. So we add a conditions there to show a defualt image. But if we use o

AngularJS Otherwise function

Hi Readers, Today, I will be discussing about the Otherwise Function available in $routeProvider in AngularJS. The main objective of this function is to redirect the end users to a particular route when the user by mistake or intentionally enters

What is the difference between isset and array_key_exists in PHP

Hello Everyone today I guide you "What is the difference between isset and array_key_exists in PHP" The below example helps you to differentiate between isset() and array_key_exists() . isset() will only return true or false array_key_exists() will

What does keyword 'var' do in PHP

Hello readers, In this blog I will help you to know "What does keyword 'var' do in PHP ?" It's regarding declaring class new member factors inside PHP4, and it will no longer needed. It'll operate inside PHP5, however it will increase an E_STRICT ca

1 287 720
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: