Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
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...
Use of Transaction in Mysql
Transaction is very useful in large rich applications such as eCommerce, Real Estate etc etc. It is mostly used in Customer Relationship Management (CRM), Enterprise Resource Plan (ERP).
What is Transaction?
When we need to execute more than ...
C++ Interview Questions and Answers Part 4
In the previous parts C++ Interview Questions and Answers Part 1, Part2 and Part 3, I have explained some basic questions of C++. This part is in continuation with the previous C++ Interview Questions and Answers tutorial. In this part of the tut...
Tomcat Address already in use: JVM_Bind
If you are facing following issue while starting tomcat:
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
...
CSS Units
pre{padding:4px 8px;border-radius:1px;}
Hi all,
It is always challenge to manage the size (mainly font size) in css. usually we use media query to measure all that. But here is some other CSS Unit which helps to manage sizes, so I am goin...
How to store constants in laravel 5.0
In laravel 5.0 the way to define constants and use them through out the project. Following are the steps to accomplish it:-
Step 1st :- Creating a separate file under /config folder named as constants.php ( it can be any name) for storing all ...
How to use Relative Layout in Android
Hello again,
This video tutorial will guide you how to use Relative Layout in android.
The Relative Layout lets you define the position of each child views relative to the others and to the screen boundaries. It provides the great deal of f...
Add Input Accessory View above UIKeyBoard in iOS
If you come across a requirement where you want to add a custom view just above the UIKeyBoard, then you can use below code to do that.
If you want to show custom view on tapping inside any UITextField or UITextView, Write below line of code i...
Scaling of entities in ImpactJS
How to use Scale plugin in ImpactJS ?
In the lib folder create a new folder named Plugins and put the "scale.js" plugin in to this folder.
Include the plugin to the requires in any entity.
.requires('Plugins.scale')
Now if we want t...
Window Service
"Window Service: An Overview"
What is a Window Service ?
Windows service is a computer program that operates in the background and does not have any interface to the user.It helps to create a long-running executable ap...
Redirect not found page to home page in CakePHP
When we try a wrong URL in cakephp then it displays an error page with error message:
"Controller class could not be found".
We can override this message and also can handle this exception using Error.php of cake. We can override this func...
PHP File Functions
PHP Copying, Creating & Deleting files
Copy file using PHP:- In PHP when we want to copy our file from source to destination then we have to use following syntax.
Syntax:
Bool copy (string $source, string $destination);
Example:...
How to make the onchange function in OpenERP(Odoo) ?
In onchange function first we have to go in .py file (python file)
After that we have to decide where you want to give onchange function and then give attribute on_change to that field.
Like below python code in py file :
def oncha...
Singleton class in Swift
Hello reader's !
The singleton class ,which is responsible to instantiate itself, to make sure it creates not more than one instance, in the same time it provides a global point of access to that instance. In this case the same instance can b...
Approximative sibling
pre{border-radius:0;padding:5px;line-height:25px;}
Hi all,
The approximative sibling or adjacent sibling combines two selectors. + works as combinator.
For example:
p {color : green;}
p + p { color:red;}
HTML:-
<div&g...
Screen sliding using css
Hi all,
Below is an example of slide screen using css.
HTML:-
<input type="checkbox" id="opci" />
<div class="baseM">
<label for="opci" class="nombre"></label>
<div class="nextSlide "></div&g...
What is Stylus ?
Stylus is a dynamic style-sheet language, it's design influenced by Sass and LESS. It makes your development more faster, smarter and more powerful then ever before. you can change your all color scheme in just a single line of code.
Quick and...
Handle Sliding Tab layout properly
Hello guys, as we all have worked on Tabs widget and Tabs host but now Tab widget and host have been deprecated. Android lollipop provides a new interface to implement Tabs that are SlidingTabLayout.java & SlidingTabStrip.java classes. These...