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

Install Wordpress on Ubuntu 16.04

Hello friends, I am writing this blog which will let you know how to install and set up WordPress on Ubuntu. Follow the steps below to install WordPress   Step 1: Create MySQL database Login to MySQL using this command: mysql -...

Remove incomplete multibyte character input string

Hello friends, while importing excel file in MySQL using PHP I was getting following error: iconv(): Detected an incomplete multibyte character in an input string   Before proceeding further to solve the error let's first unders...

5 Tips to Become a Successful Social Entrepreneur

The desire to change world can be tempting to the extent that you want to do it yourself. A social enterprise is one such way you can launch a startup business to fulfilling your mission of serving people. Every year, a number of social entrepren...

Use of IN operator and BETWEEN operator in MySQL

MySQl IN operator facilitates us to match a column's value against multiple values in one go.   As most of us are aware that we use WHERE clause for giving any condition in SELECT, INSERT, UPDATE, DELETE statements, so whenever we ...

Rails code patterns Decorator/Presenter (Refacotring)

In my previous article i explained when we should refactor code and how to refactor. Lets take our discussion further to decorator/presenter pattern. Decorator/Presenter pattern have been overly used in rails community. There is a thin line betwe...

Change the PlaceHolder colour

As we know that we can't change the place holder color of the Text Fields but sometimes if we need to change it then we can do it by using following code. UIColor *color = [UIColor grayColor]; self.myTextField.attributedPlaceholder = [[...

How To Generate Form and Input Fields in Yii 2

This article demonstrate different methods to create an active form with different input fields in Yii 2. Yii 2 provides  yii\widgets\ActiveForm class which is the best way to create forms based upon models. Another helper class  yii\he...

How to find Gameobjects in Unity

In unity you can find gameobjects by their name or tag. 1. Find objects by Name:- You can easily find the gameobjects by their names. Here is the simple code for this Gameobject Abc; void Start() { Abc = GameObject.Find("Square");...

How to generate a pseudo-random string of bytes

sometime we need to generate a random string of byte, For this purpose openssl_random_pseudo_bytes method is used,which gives us a random string of  byte. Syntax string openssl_random_pseudo_bytes ( $length ,$crypto_strong ) ...

Converting all underscore connected letters to uppercase in php

In PHP if we want to replace all underscore connected letters to upper case then we can use the php function called "preg_replace_callback" . For example if we have string "kp_o_zmq_k" then the output becomes "kpOZmqK&...

How to get a list of MySQL user accounts

Get MySQL user accounts   Hello friends, I am using MySQL and I want to list user accounts. So to do this I followed the below process:   This can be done by writing the following query: SELECT User FROM mysql.user; ...

Secure Apache with Let's Encrypt on Ubuntu

Hello friends, I am writing this blog which will let you know how to secure apache with let's Encrypt on an Ubuntu . Lets begin with the following steps: Step 1: Install server dependencies Update local packages first: sudo apt-get...

Sending SMS using Twilio: Rails

Send SMS using Twilio: Rails Twilio is a SMS gateway service that lets you send and receive SMS using your application. For testing purpose, it allows you to send SMS for free to few numbers. To start integrating twilio, you fir...

Share text on whats app in iOS

Opening whatsapp:// URL with one of the following parameters, will open whatapp and perform a custom action like sharing of text:- 1- Add whatsapp in LSApplicationQueriesSchemes to your info.plist 2- Message will be diplayed as M...

Convert xps to pdf in Ubuntu 14.04

Hello friends, I am writing this blog as I was facing issue reading .xps files. XPS is XML Paper Specification. I resolved this issue by installing xpstopdf converter. This is how I did This is the easiest way to do: First, go to Ubuntu Sof...

How to implement If else condition in Twig

Hello Friends, Twig is a simple template system used in Symfony and Slim Framework. This is something different to implement your code in HTML file as other frameworks or CMS. If you want to implement conditional statement(if else) in twig tem...

append( ) and appendTo( ) event in Jquery

append( ) event is used to insert the content at the end of matched set of elements whereas appendTo ( ) event is used to insert matched set of elements at the end of content.Through this we can insert elements at click event, mouse-enter and mou...

Calculate number of days between two dates in iOS

                   Number of days between two dates Here is a code given below for calculating the number of days between a specific date and current dat...

Node.js Creating Server With Routes

Node.js is a javascript based platform built in Chrome's javascript V8 engine. Creating web server in Node is easy. Node.js is light weight and fast performance It handle great number of simultaneous request at a same time. Node come with som...

How to print the stack trace using symbolic Breakpoint

Hi Readers, When You find any runtime conflict in your constraints while running the app and you are not able to find the place where the conflict is. Then, making a symbolic breakpoint and printing the stack trace can be very helpful....

Refactoring Code in Rails

While developing some functionality, sometimes we take shortcuts to finish it on scheduled delivery time. We give less time on code standards and more on functionality. But with code growth we have perfect opportunity to clean our code and follow...

Get Country from IP Address

Hello friends, I was facing issue of getting country name from IP address. Here I am going to tell you how to resolve this issue by passing IP address and retrieving country name. There are many APIs which will do this for you. I am using the ser...

Tweet from Android application using Fabric

Fabric is Twitter's  mobile application development platform. For more about Fabric and install on Android Studio Please refer below link:-  https://get.fabric.io/android After Install Fabric. Login using Twitter account and...

ThreadGroup Class

ThreadGroup in Java: It represents combination of threads within a group. A thread group can also include other thread groups .With the help of thread group we can easily suspend, resume or interrupt group of threads by a single method call. ...

Promises in Angular.JS

Promises in Angular.JS By using Promises we can execute a function asynchronously. we can use promises to specify what to do when a operation is success or failed. We have $q built in keyword in angular js for promises. let's create a exam...

Database of Countries

Hello friends, I was working on the project where I need to import countries database with their country codes. I am providing you the countries database with the help of which you can display list for countries with their country codes on your w...

Request & Response Objects In Cakephp

Request & Response Objects The request object in CakePHP permits you to find out the current status of the incoming request while the response object permits you to easily make HTTP responses from your controllers. Request By de...

How to go next Activity click On CardView Item in android

In the below example I have created a RecyclerView, In RecyclerView I have added cardView item, so when you click on cardview item it will open next activity. In below code, first I have added RecyclerView and CardView library , In second step...

How to autogenerate ER Diagrams of database from mysql?

Auto-generate ER Diagrams   Hello friends, I was trying to find a way to create ER Diagram of database. So I was looking for tool through which we can create ER Diagram instead of making flow charts with markers etc. The name of the so...

Unity 3D Materials

In Unity, Material is an asset that act like a container for shaders and textures that can be applied to models. Models cannot be rendered without a material. It plays an important role in defining how your object will appear.   In or...

How to implement blowfish hashing for passwords in cakephp ?

Hello Readers ,   Their are many methods to hash password in cakephp like cakephp alias , md5 etc blowfish is also one of them . One thing we have to note down that we can’t use Blowfish if we already have a database filled with ...

How to install MySQL workbench ubuntu 14.04?

Install MySQL workbench ubuntu 14.04 Hello friends, today I am going to tell you how to install MySQL workbench on Ubuntu 14.04 LTS. Follow the steps below: Go to  http://dev.mysql.com/downloads/workbench/     &n...

Use of Linear Interpolation in Unity

Linear interpolation simply means finding a value in between two given values, 'Lerp' is the function used for this. It will linearly interpolates between the two given values. Lerp can be used for following different types:- 1. Ve...

File upload in Yii 2

File uploading is one of the most required feature in most of applications. This tutorial demonstrate how we can upload an image file in an application developed on Yii2 framework. There is an inbuilt class yii\web\UploadedFile in Yii2 which can ...

Upload Multiple Files Jersey REST API

Jersey Rest API also know as JAX-RS "Java API for RESTful Web Services" is a an open source web service framework which is used to develop Java RESTful WEB Services. In this tutorial we will learn to upload multiple file using Jersey REST API. ...

How To Add Add-ins in Microsoft Excel

Add-in is a software that adds many news statistical features in Microsoft Excel's such as correlation, covariance, anova ,F test etc which are not present before. Add-ins save our lot of time. It is useful as it helps to avoid...

Rigidbody in Unity

Rigidbody means the object will be controlled by physics. If you add this component to your object then it will be totally controlled by physics engine of unity.  If you want to detect collisions to your objects then you have to add rigidbod...

How to hide $_GET variables using encryption ?

Hide $_GET variables using encryption Hello friends, I am writing this blog which will let you know how to hide variables using encryption. I have created activation url, though which users will activate their account by clicking on it. So, I ...

Play Youtube Video in Fragment Using YouTubePlayerFragment

This tutorial explain how we can Play YouTube video within Fragment.   1. Create simple Fragment class extending Fragment. 2. Implement YouTubePlayer.OnInitializedListener to Fragment and override its methods. 3. Create FrameLayout...

PHP PDO

Welcome to FindNerd. Today we are going to discuss PHP PDO. It is not a new term in PHP but many of us want to work in old patterns. Most common extensions are MySql and MySqli. If you are using PHP then you should be familiar with these terms...

not( ) selector jquery

not( ) selector is used to modify the attributes of those who does not match the given selector. It prevents us from complex coding as we can manipulate properties of those which does not match the provided set of elements.  As shown belo...

Rack in Rails

Rack is a middleware, it provides an interface for a web server to interact with a web application. To understand how rack is used to interact with web server and rack(rails) application, lets first understand the request-response cycle. Client r...

Avoid Concat function in SQL

While writing queries in stored procedures we manipulate with the string data type columns in which concatenating string is very common.   So we all are very familiar with the function CONCAT provided by the SQL Server for joining/merg...

Socket creation php

Welcome to Findnerd. Today we are going to discuss socket programing in PHP.   First question which arise is what is socket? Socket is an end point in two way communication. Two way communication has client and server sides. Client ...

How to send notifications to different devices using UrbanAirship

Urban Airship provides a number of REST API endpoints, collectively known as the Urban Airship API Version 3.  It provide different different rest API such as Push,Send Push,Validate,Push Object etc. Here below is the example of "Pus...

How to reset AUTO_INCREMENT in MySQL?

Hello friends, I was facing issue in database. I wanted the auto increment should start from 1. There were 20 rows in table. When I deleted all the rows from the table and inserted new row then auto increment started from id = 21 instead of 1....

Export workflow phases from one environment and import to another environment in SharePoint using CSOM

Workflow phases represents collection of Stages to represent project life cycle. Example of phases are : Create- Project information is captured in this phase. Select- A subset of projects are selected in this phase. Plan- An executi...

DATEADD function in SQL

While manipulating with the date and time data of the SQL columns we have requirements where we want to alter the date or time based on some condition or for checking validation in our application.   For doing such kind of operation in...

Mysql Injections

Hello Readers! this is a small blog on Mysql injection, hope you like it.   Mysql Injection: MySQL injection is a code injection technique, used to attack data-driven applications, in which harmful SQL statements are inserted into a...

How to implement captcha in cakephp ?

A CAPTCHA is a system that ensures sites against bots by producing and evaluating tests that people can pass however current PC programs can't. A CAPTCHA (an acronym for "Completely Automated Public Turing test to tell Computers and...
1 98 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: