Hello all,
Below is an example, how to create 3D mockup to create this you should know about css Transfrom and about pseudo class.
CSS:-
div{height:240px;width: 160px;background: #ccc; position: relative;
top:40px;padding:5px;bo...
There are times when SQL injection is the most shocking attacks on the internet. SQL injection means a condition where user is molding a SQL query in a unexpected form.If the queries are not handled properly it can lead to results like leaking of...
"WebSite v/s Web Application"
In this article we will try to find out the differences between the WebSite and a WebApplication.
Generally a WebSite is defined as a collection of web pages, i.e it can be defined by its ...
Autoloading of modules/classes from lib directory is no more supported by Rails 3. There has been number of if and buts in its support and against but unfortunately it has been removed. While lazy loading was a very good feature where developer n...
File Handling in C:- The below example will show you how you can read the data from file and write the data in file using C language.
file.c
#include<stdio.h>
#include<conio.h>
#include<process.h>
#define true 1
main()...
Insertion Sort:- The Insertion sort is used to sort an array. The array can be sorted in each round means, In each Iteration of an array the element can be find in sorted.
Steps:-
1: The second element of array compared with the elements w...
As we all know that Change is only Constant in this World. To meet those changes and pace-up with the world people keep on joining hands with new technologies. These new technologies have rapidly grown in the world of Blogging which has transform...
Hello All
Today we will discuss about Showing camera view inside html in android and then click a picture:
In PhoneGap we can Show Camera view inside HTML. Before we proceed with the plugin let me give you a walk-through of its features.
Th...
Storing and reading record from database using Sqlite Helper class.
We have taken Name, Age and City as input from user and saving them on click of Save button and reading on click of Fetch Data button from database.
MainActivity.java
p...
Liferay+Log4j:- This blog will show you how you can implement logging in Liferay with Log4j. By using this you can use the custom logging using Log4j in Lifeary. To make this possible follow the below steps:-
1. Create log4j.xml and log4j.dtd...
Hello Readers
To integrate PayPal in an ios application for future payment , the following steps need to be followed:
Step 1: Download the PayPal ios sdk from the link given below:
[https://github.com/paypal/PayPal-iOS-SDK][1]
Step 2 : ...
With the help of JavaScript and html we create a "Rollover with a mouse event" function. Here we have two images. when we place mouse over image(1), the image(1) changes to image (2) and when we move the mouse away from that image, the original i...
Storing record in database using Sqlite Helper class.
We have taken Name, Age and City as input from user and saving them on click of Save button in database.
MainActivity.java
public class MainActivity extends Activity {
CreateDat...
Hi Readers,
In any iPhone app if it is needed to iterate or remove NSUserDefault keys (as in logout feature), following code can be used:
To iterate key objects:
NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
...
Through this code we can use NSLOG whenever required. Write this snippet in some common file(say utility) so that it would be easily handled throughout the project. Make sure class should import utility class to handle NSLog.
All you need is to ...
This is a simple method to compare two arrays and get all the common objects from these arrays.
Take two arrays(say firstArray & secondArray)
NSMutableSet* arraySet1 = [NSMutableSet setWithArray:firstArray]; //create NSMutableSet for f...
Spring AOP :- In Spring we can use AOP module. The AOP is Aspect Oriented Programming that works on cross-cutting concerns. This breaks the program logic into distinct part and these cross-cutting concerns are separated from the business logic of...
Tuples is a new concept that is introduced in swift programing. Tuples group the multiple values in a single compound value. It is not necessary that the each tuples value should have the same datatype. The datatype can be different and number of...
As many of you must've noticed, Mozilla's email client Thunderbird (unlike Outlook) doesn't come with a default Calendar Extension. So, if you want to keep a schedule, organize meetings etc. you...
Hello reader's today we will discuss about "Password Hashing Method in WordPress".
WordPress doesn't store password in plane text. If you lose your password you need to reset your password via email.
WordPress stores its cryptographic salts...
Hi all,
Here are two method to make transparent border first is by using pseudo element and second is by using background-clip
Example 1:-
In the method I'm using pseudo element :before
.box-border {
background: #0f8ac3;
c...
To make selection field in OpenERP (Odoo)
In Selection Field first we have to go in .py file (python file)
After that we have to decide where you want to give selection Field and then give attribute Selection to that field.
Like below ...
I was facing a problem of not getting content in different control page of a module.
I have implemented it in two ways:
Register module in skin instead of dropping a module in a page and give id="view" rather than any other id
<%@ ...
PHP 5 comes with an exception model similar to that of other coding languages. Exceptions are essential and supplies a better management around problem managing.
Try - Operate utilizing an exception to this rule ought to be within a "try" obst...
Hi reader's today we will discuss "How to inherit a controller in another controllers in cakephp".
In cake php controllers are nothing more than php classes, You can inherit a controller to another just like a hierarchy of inheritance. Let's h...
In iPhone application development it is required to fetch the contact detail that are saved in the contact list of iPhone.
So here is the program that will help you to fetch the detail of the contact with name number and contact image, if the i...
The below example shows the concept of FIFO. The First Inserted Element is shown at first position and if you want to retrieve the element then first inserted element will be retrieved first.
#include<stdio.h>
#include<conio.h>
#...
This is the Implementation of Stack using Array in C. The concept of Stack is to work on LIFO(Last In First Out). The Element can be Pushed into the Stack of Size 5. The Below code shows How the stack works. The Last Element inserted by the user ...
TestNG is a testing framework. It is powerful and easier to use to test the appliication we can automatically test the Application and generate the necessary documentation. The TestNG can have more functionality as comparing to JUnit and NUnit. T...
We should not put scrollable view inside scrollable view (and most developers say we should never put ListView inside ScrollView). But there are cases where we have to put the scrollable view inside Scrollable view inspite of these design guideli...
EIP stands for Enterprise Information Portal, Wikipedia defines it as a framework for integrating information, people and processes across organizational boundaries in manner similar to the more general web portals. Enterprise portals provide a s...
This will change the browser without refreshing and reloading page. In this code I have used four buttons for calling a function to changeUrl concurrently this function will also accepts the page Title and URL as parameters .
Below is th...
Hi ,
If you are starting with swift and want to learn following things:
1) how to declare IBOutlet
2) how to declare property
3) How to declare class variable
4) how to hit http server request
5) how to parse the JSON
Then g...
There are two types of storage in Android device, one is external storage and another is internal storage. You should be aware that the file you try to store in internal storage of Android device will gets completely removed if you uninstall the ...
I am a Sales guy in my present life. Before that I was a project manager, project lead and a developer. In the last 15 years, Ive been part of many software projects in various capacities; seen some success stories and seen a fair share of failur...
This article demonstrate how to add and remove value on start and end of an array using predefined functions of PHP. The four important array functions in PHP are :
1. array_push() : This function is used to add one or more values to the end o...
Google Guice DI:- Google Guice is a Dependency Injection Framework that is same as Spring DI and use to achive IOC and High level of loose coupling to make the relationship between various Business Objects.
Add.java
package add.service;
pu...
Hello reader's In this tutorial we will discuss about "How to call another controller function in a controller in cakephp".
For doing this, first of all import controller function in your controller that function you want to call.
Once you im...
Hi all,
Many time we need to change the input placeholder color or style so here is an pseudo element ::placeholder which can helps you. placeholder defult color is gray with 0.6 opacity so if your input background color is dark in gary, you...
Create Database class
Here is an example to create database using SqliteHelper class in android.
We are creating a database with the name "detail" and having 4 columns as :-Key, Name, City and Age.
public class CreateDatabase {
publi...
Log file is very helpful in debugging a large amount of data. We can create a Log file with the piece of code below :-
$file = fopen ( "testfile.txt" , "a+" );
fwrite ( $file , serialize ( print_r ( $_POST , true ) ) );
fopen() is php in...
Window Service: Debugging
I have discussed about the windows service in my previous blog. (Please visit the following link for reference).
http://findnerd.com/list/view/Window-Service/3689/
As I discussed in my earlier ...
To use a GROUP BY clause to the SQL fired by the finder, you can specify the group method on the find query.
For example, if you want to find a collection of dates the Orders were created on:
Order.select("date(created_at) as ordered_date, ...
Hello reader's lets discuss "How self is different from $this in php".
Generally, we can claim that $this is used to reference the current object, whereas self is used to access the current class itself. yet there are many things and details a...
The php.ini file also known as (configuration file) is where we declare changes for Php settings.
If you want to use the default settings then you can use existing php.ini file for the server else change settings by editing the existing php.ini ...
If any of you want raw sql query in rails you have to use the find_by_sql method. This method returns an array of records. For example
Post.find_by_sql("SELECT title FROM posts WHERE author = ? AND created > ?", author_id, start_date)
w...
Hi Guys,
In my previous blog I told you some basics about Stylus & how to install it.
After installing the setup, you have to create the folder structure. The folder structure will look like the below image.
Than you have to save...
If you are facing following exception while running your code:
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
Default size of most of JVM Perm Space is around 64MB, it can easily ran out of memory if you have too man...
Key concepts of Unreal Engine 5 and Unity : There are various important concepts associated with the Unreal Engine 5 and Unity which are extremely beneficial for a gaming app developer. We all should be aware of these key content so that dur...
The Apache POI API is used to work with Excel files in java. By using Apache POI you can easily read and write the Records and data to Excel files. Here the below code can used to read and write the data in Excel files.
import java.io.File;
...