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

How to protect rails application sql injection

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...

Asp.Net Website v/s Asp.Net Web Application

"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 ...

Loading module/class from lib folder in Rails 3

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...

Read and Write the File in C ( File Handling )

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()...

Implementation of Insertion Sort in C

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...

Blogging or Video Blogging Both are Advantageous

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...

Showing camera view inside html in android and then snap a picture

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...

Reading information from database in Android

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 Integaration with Log4j

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...

How to integrate PAYPAL for future payment

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 : ...

Rollover with a Mouse Event

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...

Saving information in database in Android

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...

How to iterate or remove all key object from NSUserDefaults

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]; ...

Handle NSLog in iPhone sdk

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 ...

How to get Common Values from two Arrays

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 Pointcut, Advisor

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 in Swift

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...

Calendar (Meeting Organizer) for Mozilla Thunderbird

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...

Password Hashing Method in WordPress

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...

How to make Inside border transparent ?

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...

How to create selection field in openerp

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 ...

Get resource file content on child control page of a module

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 <%@ ...

Exceptions Handling in PHP

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...

How to inherit a controller in another controllers in cakephp

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...

Fetch the Contact Detail Using iPhone SDK

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...

Implementation of Queue Using Array in C

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> #...

Implementation of Stack Using Array in C

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 ...

Automation Testing Using TestNG

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...

Put scrollable view inside a scrollable view

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...

Whats EIP, do I need it?

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...

Change Browser URL without reloading using JavaScript

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...

First swift App launch

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...

Save a file on Internal storage in Android

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 ...

How to Fail an Offshore Project?

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...

Insert and Remove value from end of an array

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 Dependency Injection(DI)

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...

How to call another controller function in a controller in cakephp

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...

How to change placeholder color ?

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 using SQLite Helper

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...

Create a Log File in PHP

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...

How to debug a Window Service Application

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 ...

Using Group By in Active Records

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, ...

How self is different from $this in php.

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...

What is php.ini ?

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 ...

Direct sql Queries in Rails

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...

Creating Syntax in Stylus

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...

Java.lang.OutOfMemoryError: PermGen space

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...

Full List of Key Concepts of Unreal Engine 5 and Unity

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...

Write and Read Excel Sheet Using Apache POI API

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; ...

Creating a custom password encrypt for Auth in laravel 5.0

Many times when we have an existing database with existing multiple records with set password, encrypted with a specific encrypt technique and then we try to immigrate to Laravel 5.0 and try to use Laravel Auth, it clashes. Since, Lara...
1 249 292
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: