Below is the code to change hexadecimal file to readable format :-
1) Read the Hexadecimal file.
2) Convert the Hexadecimal code to asciii value.
3) Convert the asciii value to readable char format.
int size=15;
char[] mChangedFileC...
Application Cache:
Application Cache(Also known as AppCache ) in HTML5, means that a user can browse, navigate and access the web application offline.
Advantages of AppCache:
It allows user to navigate and browse the website offline.
...
As we all might know that selecting all records from the database in cakephp can be done using the find("all") method, But there are chances of duplicate records may appear.
To remove the duplicate records on selecting all records we use disti...
Having Clause:
The Having clause is used to filter the group result. As we cannot use Where to filter the Group By clause results so Having provide the same functionality as Where. It filter the result fetched by Group By clause. It comes a...
Functions are very useful part of ActionScript3 as they save the time, reduce the code and also increases the re-usability of the code. Function is that block or piece of code which can be used reused at any point in the code. They save the time ...
While using Visual Studio, there could be a need to compare two different areas of code etc from a single file. In other editors like notepad++ or sublime, same task can be easily achieved by opening the same file twice, but in Visual Studio this...
SQL stands for structured query language. It is used to manage and access data from database.
A database may contain more than one table having unique name for each table.
SQL language have many different versions but it supports most of the co...
Transactions are very important part of MySql and for handling the transactions the Transaction Control Language (TCL) is used. Transactions are basically used to handle all the changes made in the database.
Rolling back a transaction means stor...
It is easy to add multiple images in the background by using HTML and CSS code only. we can use one image which will repeat across the top i.e (repeat-x) and the another one will across the entire page or it is simple way to adjust every image p...
In the below example I have created animation TextView. Here first I have created a animation.xml layout, in animation layoout I have set scale property after then I have added TextView in activity_main.xml and finaly at last In MainActivity I h...
AS3 OVERVIEW
Action Script is a Object Oriented programming language which is used for developing the websites and software which uses Adobe Flash Platform as their medium. For the Flash designer or the animator this language has a great scope...
There are few steps for doing adapter settings:
1> inside your app go to app_name/config/locales/database.yml
default: &default
adapter: postgresql
pool: 5
timeout: 5000
username: postgres
password: 123456
developme...
This the existing table in migration folder.
class CreateArticles < ActiveRecord::Migration
def change
create_table :articles do |t|
t.string :title
t.text :text
t.timestamps null: false
end
end
end
...
Basically we have two options for selecting the duration of the Toast.
First is SHORT duration, which is 2 seconds and another is LONG duration that is 3.5 seconds.
We cannot change the duration of the Toast directly.
To change the time of...
It is very important to know the difference between all of them.
We have to make sure that existing apps built against prior SDKs should not break when the user
updates to a new version.
compileSdkVersion:
It says the Gradle about version of ...
SWIFT
Swift is a very powerful and simple programming language which is used for creating the iOS applications.Swift is a language which is designed to work with Apple's Cococa and Objective-C. The advantage of this language is that it is one...
Group By :
It is used to group the result-set by one or more column. It is used in conjunction with aggregate functions provided by Structured Query Language . If order by is used then Group By must come before Order By clause.
Syntax1:
...
As you all know, we can boot any OS from a usb-stick also. So today i am going to tell you how to create a bootable ubuntu pen-drive from windows.
There are many utilities available for it. And we can create it using command line as well.
Her...
Hello
Today, we will discuss the reason why a DOM method/ jQuery selector is unable to find an element.
There could possibily be following reasons for this behavior of the method/selector:
The element with the ID passed does not actua...
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to reads a file into an array ?
If you want to read a file into an array then, you should use file() function.This function reads a file into an array.
syntax of file(...
Hi Guy,
I am doing some analysis on my Google sheet (Google Excel). One of the column i.e 'E' of this contain the URLs. Need to highlight all Duplicate URL in same column certain color like RED. I know this is possible. But don't know step for...
Hello Friends,
If you are looking to create project in CakePHP3 with the help of composer. Please follow the instruction below:
1) If you have not installed composer in your system then you need to install this otherwise you can skip this s...
Hello Friends,
If you are looking to create project on CakePHP 3 with the help of composer. This problem might be encounter "- cakephp/cakephp 3.1.7 requires ext-intl * -> the requested PHP extension intl is missing from your system".
T...
For the love of light
If I could eat that light, I would eat that light
Sometimes the most random thing can set off a bulb inside you, or an inspiration that was sitting dormant inside of you.
Like a song, a movie, an article, a conve...
Hello Guys
Jquery introduce plugin for upload the files from client to server in javascript is known as fineuploader.
FineUploader have many properties to use according requirements.
Here, We have define the fineuploader properties a...
Hello Find Nerd Readers,
While making even the simplest game you have to use triggers and collisions. In this blog we are targeting Triggers.
Q1: What are Triggers?
Ans: Triggers in Unity are Collider which does not reflect any ph...
Hello Friends,
If you are looking to send attachment in wordpress email. Please follow the below example for the same:
$to = 'sender@email.com';
$subject = 'Define your email subject';
// Define your email body
$body = 'Define your em...
Now you can give your object(image, button etc.) a flashing or glowing effect. We can either play with the size by making shrink and grow effect of an object.
Greensock library helps us in various aspect to make the object animation. Their are ...
How to replace characters in the current URL using Javascript
During development in one of my project, I need to replace an expression in the URL, the code that helped me is as follows:-
The Steps we will follow are:
1. Get the current UR...
OnTriggerEnter
Hello Find Nerd Readers,
While making even the simplest game you have to use triggers and collisions. In this blog we are targeting Triggers.
Q1: What are Triggers?
Ans: Triggers in Unity are Collider w...
For sending Email to a list of receivers using python can done by using the given code. Here I am using Gmail SMTP service for this purpose (Create a separate account for this, cause it might be dangerous to use your primary email address as the ...
In the below example code I have created change location page. Here I have first created select_location.xml layout. In select_location layout I have added ScollView , TextView and imageView and In Selectlocation.Activity I have intializeUI value...
A BLOB is a binary large object that can hold a variable amount of data. There are four types of BLOB
TINYBLOB
BLOB
MEDIUMBLOB and
LONGBLOB
They all differ only in the maximum length of the values they can hold.
A...
Sometimes, we see that the clients who do not have any technical knowledge messups with WordPress settings after logging with WordPress admin panel. We can hide the menu from wordpress admin panel by which the client can only see some menu/option...
Hello Guys
I used jquery fineuploader to upload multiple files in my web application but fineuploader update the metadata of the file during upload file and original metadata of the file has been lost.
I want to extract original metadat...
CREATING VIEWS:
Views are virtual tables which are created from other tables .It is beneficial for those situation when we want to show limited columns to users. It can be created from one or more tables.
Syntax:
CREATE VIEW viewname AS ...
Both first & take are applied on the ruby objects, they return the requested number of elements from the Array. There are some differences between them, and i have explained the major ones over here.
1) The method take always accepts an arg...
Hello Guys
Here, I am writing about extract the metadata of the file in java technology in which you can extract file creation date, file access date, modification date, size etc. Java provide inbuild BasicFileAttributes class in the JDK....
Hello Friends,
Short code is just a piece of code like ['name'] that execute a complete function in your post or page
Here we have a basic example of shotcode development. Please follow the below example:
1) Open function.php in your theme...
In the below example I have created Activity life cycle. Activity start's with a call on onCreate() callback method. There is a sequence of callback methods that start's an activity and a sequence of callback methods. See the below example for de...
Hello Friends, Some time we get stuck when a scope is terminated and found that two similar destroy events are triggered. Here we want to understand What and why are they two used for in angular js.
The first one is an Angular jS event, $destr...
Hello Friends,
Here we will discuss about custom login functionality in Wordpress. Please follow the below example to build custom login functionality in Wordpress:
$userCredential = array();
$userCredential['user_login'] = $_POST['usernam...
LIKE Operator:
It is used to search for pattern in a table or a database . It is used with where condition. It is similar to REGEXP of MySQL.
Syntax:
SELECT columnname(s) FROM tablename WHERE columnname LIKE pattern-condition;
Examp...
Hello Friends,
If you are looking to resize any image in wordpress. WP have their own library to do the same. Please have the below example to resize an image.
$source_file = 'upload/2016/01/sunrise.jpg';
$destination_file = 'upload/thumb_...
Hello Guys
I am writting blog about configure office365 email in liferay.
Following are the office365 configuration details :
SMTP Setting :
Server name: smtp.office365.com
Port: 587
Encryption method: TLS
Follow below steps to c...
Updating a column value using Update Statement:
UPDATE statement is used to change the value for a column or to change multiple records using a condition. It is a data manipulation language command which are used for managing data.
Syntax:
...
To perform add, delete, edit operation in Cake-PHP, first you need to create database table to store records.
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`username` varchar(128) DEFAULT NULL,
`password` varchar(128) DEFAULT...
Hello Guys,
If you are working on Facebook App and want to fetch user profile picture in a specific dimension. Like I want to fetch my profile picture in 3 dimension sizes 50*50, 150*200, 300*500.
For this please follow the below example:
...
Hii ,friend's
Today I will expain you about the diffrence between Method Declaration and method definition.
In Method Declartion you can declare somthing like [public void my function();] here myfunction is the name of method. And In Method...