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

Paths in laravel 4.x

There are n number of functions in laravel 4.x which is used to define path that are app_path: app_path is a function which is used to get the fully qualified path of the app directory. Example: $path = app_path(); base_path: ...

How to implement local notification in iOS SDK

Hi Readers, In iOS development of today scenario we may pass the data in different part of code either to selected class or broadcast. One way of broadcasting objects is local notification. Following is the way to implement it: To broadcast...

array_add,array_divide,array_sort Function in laravel 4.x

array_add : array_add function is used to add a key/value pair to the array.It will add only when there is no such key available in the existing array Example: $array = array('foo' => 'bar'); $array = array_add($array, 'key', 'val...

Best AJAX path for Wordpress

Hello Reader's if you want to write a custom code for making AJAX hit then you should choose for the best path for that, Open the file admin-ajax.php All ajax request should be made there. On in first step open the template file and write the ...

How to make Rounded Image avatar in iphone,along with circular coloured border?

How to make Rounded Image avatar in iphone,along with circular coloured border. Create IBOutlet of the image from the storyboard to your View controller as- __weak IBOutlet UIImageView *imagename; Now in your viewDidLoad ins...

Laravel 5.0 Getting Old Values In the form

Many times we need to show our old values in a form after an error or validation stops our form from submitting. Laravel has a very nice way of retaining old values and populating it back into our form. I myself used it in a drop down, where ...

Laravel 4.x Localization

In laravel 4.x we have lang class which will help us to retrieving string in different languages that will help us to easily support multiple languages. The folder structure for lang files are /app /lang /en messa...

How to select random record in MySQL?

To randomly select any single record in MySQL you need to execute the following MySQL statement: select * from tablename order by rand() limit 1 The above statement returns a single record randomly. For multiple records you need to...

Convert UIImage to NSData or NSData to UIImage

Hi all , To convert UIImage to NSData Objective C NSData *data = UIImagePNGRepresentation(self.MyImageView.image); Swift let imageData: NSData = UIImagePNGRepresentation(self.MyImageView.image) To convert NSData to UIImage ...

How to use in_array in php to find value in a array list?

You can take reference form below example to find the value in an array list using php in_array. Suppose you have a list of Favorite List items (for example a list of colors names) and you want search your color is exist in list or not exist. ...

modules in Ruby

For grouping together methods, classes, and constants, we make use of module. Modules give you two major benefits: 1) prevents name clashes. 2) implement the mixin facility. Syntax: module Identifier statement1 statement2 ...

Show loading when load page on WebView

Here I am writing code to load url on WebView. We need to create WebView client where we get the event of page finished. Then simply showing ProgressDialog and dismiss it on onPageFinished(). WebView myWebView ; myWebView = (WebV...

How to edit column header using Handson Table

How to edit column header using Handson Table  While using Handson Table, I faced a issue of making Headers editable. The HandsonTable plugin can be downloaded from the following link: github The solution which I got for making head...

5 Crucial Skills For Project Manager

Project manager spend lot of time orchestrating meeting which make him comfortable running meeting with wide variety of audiences. Below mentioned are the few traits for effective project managers who really make ideas happen: Good Communica...

Get data from two tables from parse database in iOS app

If two tables are connected through pointers, we can get data from both the tables using "include" key. For example- There are two tables "Task" and "Task_Detail" and a pointer of Task_Detail is added as a column in table Task with name "detai...

Strike text of TextView in Android

When we need strike text in android most of the time we do strike text with the help of HTML tag. But Here is simple way to strike TextView's text in android with native code textView.setText("This is Strike text"); textView.setPaintFl...

Some Facts About Twitter Limits Every User should Know

  Hello Friends, If you reading this Blog, you must have twitter account at least one.   Always post some meaningful and interesting content to get more and followers. Also Twitter account is not a competitio...

how to create islamic calendar (hijri calendar) using iOS sdks

Following code will return the today's date in islamic calendar NSCalendar *hijriCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSIslamicCivilCalendar]; NSDateComponents *hijriComponents = [hijriCalendar components:NSDayCal...

Read/fetch data from Parse database in iOS app

It is very easy to read data from Parse database, just create a query using PFQuery class over class name (table name) and request for data. For example - There is one table "Post" with column names : title, message, postTime. Now get data fro...

Save data to Parse DB table in iOS app

To save data in parse DB table, create one PFObject and write the information that you want to save to table. For example - I have a table name "Post" with column names : title, message, postTime. Lets save one record to this table. PFObject ...

Date Picker Material Design

I am writing way to add and use date Picker Material design library to our project. First of all we need to add library to our build.gradle file dependencies { compile 'com.wdullaer:materialdatetimepicker:1.5.4' } Then we need to imple...

5 Tips for Maximizing Your Web Application Performance

Image Source: deepintheweb Web applications are growing in popularity with every passing day due to a plethora of benefits it offers to users. With an internet connection, you can easily access a web app from any corner of the world. Unlik...

in_array and array_key_exists in php

Hello Readers In php there is a great role of php array, we will discuss about the in_array and array_key_exists in php with examples. in_array in php: in_array: in_array in php checks the array value it is exist or not to the given arr...

LibPhoneNumber library implementation - An easy way to fetch phone contacts

Are you Looking for a better library that can fetch all phone contacts easily and that can manage all numbers in common formats. Then LibPhoneNumber library is a better solution because this library is faster then other handmade queries. This lib...

How to make ProgressBar function in android?

Here I have created ProgressBar app in android in which I have used setProgress(), setMessage(), setProgressStyle(),setMax,show() function. Below code example will help you to create RatingBar function in android. Step(1)-activity_main.xm...

Google Charts with Jquery Ajax

If you are working on a Google chart and need some jquery ajax requirement, then this blog is quite useful. I found this very powerful and simple to implement. Find the link at the end of details: Google Charts with Jquery Ajax If you are w...

Custom Audio Player with Jquery Audio Controls Plugin

If you are working on audio player and got stuck to manage audio controls and this jquery plugin is very useful. Find the link at the end of following details to use this plugin: Custom Audio Player with Jquery Audio Controls Plugin Introdu...

Payment System with BrainTree PayPal using PHP

BrainTree is a very secure and easy to setup payment gateway. There are lots of features available in new Braintree and I found it very useful. Visit the link at the end of details: Payment System with BrainTree PayPal using PHP Are you wor...

next Statement in Ruby

By using next statement, control will go to next iteration of the loop. Terminates the execution of a block if it will be called in that block. Example for i in 0..8 if i < 3 then next end puts "Value of i is #{i...

AJAX in javascript

AJAX means Asynchronous JavaScript and XML and it is a group of inter-related technologies like javascript, dom, xml etc. AJAX is used to make site or page more interactive and fast. without reloading the web page, you can send and receive ...

Getting Two Mouse cursor in UBUNTU

Hello friends, When I clicked on an image and dragged it on UBUNTU I faced an issue that unfortunately there are two cursors on the screen. I searched for the problem and checked system settings--> mouse and touchpad settings but no solutio...

Laravel Libraries

The best programming to do a code is "To make common function". So that we can use that function again and again. For this laravel provide Libraries. We can make a file in libraries folder and define our common function in that library and use th...

How to include a javascript file in another javascript file?

We can include one js file in another js by the following ways:- jQuery.getScript( url [, success ]) This function basically loads a javascript file using a GET HTTP request from the server and then execute it. <./p> Here is an exa...

How to get current web page url in Laravel 4.x

To get the current page url in laravel 4.x is as follow $webpageURL=URL::to('/'); By using the above code it will automatically take the web page url. Example: Lets take a example of findnerd. **http://findnerd.com/acco...

Laravel Errors & Logging

Error logging handler is defined or registered in the app/start/global.php. We will define or configure logger to use a single log. In laravel we have MONOLOGY logging library. By using Monolog offers we will use n number of handlers. Example ...

Remove some particular character from a String

Sometime, we need to remove or replace some particular character from a String. Below is the method by which we can accomplish this. I am using replaceAll() method of the String. replaceAll() have two parameter as an arguments. First one is t...

Backup of MySQL Database Data

To take backup of MySQL database only you need to execute the following command: mysqldump -u [username] p[password] no-create-info [database_name] > [dump_file.sql] Here, we will use the no-create-info to take data backup only.

How to take backup of MySQL Database structure only

To take backup of structure only you need to execute the following command: mysqldump -u [username] p[password] no-data [database_name] > [dump_file.sql] Here, no-data tells the mysqldump to take the structure backup only.

Javascript - innerHTML

For writing dynamic html on the html document, we use innerHTML property of javascript. It is basically used in the web pages to create the dynamic html such as registration form, comment form etc. Example <html> <body> &l...

How to reset the Auto increment in mysql

Hello Reader's! If you already using the Mysql then you have seen the ID with autoincrement always add up. Forevery new entery the ID will increase even if you drop the table. So if you want to reset this value you just have to run the mysql cod...

How to use IN statement using array in Mysql

Hello reader's! If you have an array with multiple values to match with database coloumn. Then you can use IN statement in mysql but you have to explode the array first. let's see the exampkle below:- $findIN= implode(',', $YourArray); // fir...

Odoo/OpenERP : Advance Point of sale Software

Hello Guys, With advent of POS (point of sale) software, it has become quite easy & trouble-free for the hospitality business owners, especially hotel & restaurant owners to run their business in quite better & healthy way. A poin...

Make a Loading Screen

In app development their are many steps where we have to hang on for a while, like we are waiting for the server response, or the loading of assets or any other function to complete. Sometime to manage these such task we need a loading screen, wh...

Syntax error due to reserved names in Mysql

Hello Reader's!, On using Mysql with the some special resereved keywords the error :- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near <Keyword> It...

Save Image File on Parse.com Android

Here I am getting image path from Native data Here IMAGEPATH is the path of image from Camera. ByteArrayOutputStream stream1 = new ByteArrayOutputStream(); // Compress image to lower quality scale 1 - 100 bitmap1...

Retrieve Image file from parse.com and set on ImageView android

It is very easy to retrieve image file from parse.com. For example the image file name profilePicture is save on User class and I am going to retrieve the image below. ImageView profilePic = (ImageView)findViewById(R.id.image_profile); P...

Import Data from CSV file in Mysql Database

Hello friends, I am sharing that how we can save csv file data in mysql database. Csv Data consists of rows and columns with comma separated. for example we have a csv file which contains user first name, last name, age and designation. li...

Transparent Button with Border

Here I am writing code to create transparent button with border. First create xml file transparent_button.xml for selector where I am describing the properties of button like border width, color etc <!--?xml version="1.0" encoding="utf-8...

Polymorphism in php

Hello Readers If we break the word Polymorphism poly means many (Poly = many) and morph means change ( Morph = change or form). Its basically the concept of object oriented programming (OOPS) in which classes have differernt functionality ...

Insert and Remove value from begining of an array

This article demonstrate two predefined functions of PHP to add and remove values from begining of an array. 1.array_shift(): This function removes first element of an array and returns the removed value. The numeric keys of array are automat...
1 187 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: