Using below code I have created a load string array value from string.xml. String is a simple resource using the value provided in the name attribute. So we can combine string resources with other simple resourecs in the xml file. Below code will...
Linux by default cannot run windows application directly, both operating systems are too different. There are tons of Linux applications which are available and ready to install and use.
If you want to use windows programs on Linux than you ne...
Unwinding Stack in C++
Stacks are Last in First Out(LIFO) data structures i.e item last inserted is the first one to be out. C++ perform function calls using stack data structure.The function Call Stack is used for function call/return mechan...
Source: tinhthongsoft.com
Ruby, an Object Oriented scripting language for web-development, gets extension from a software library called Rails. As a collective framework for web developm...
Loops are used to execute a block of statements in repetition until a specific condition is satisfied.
There are 3 types of loops in C:
1. for loop
2. while loop
3. do while loop
1. for Loop:
Syntax...
Structures in C++ is a collection of dissimilar data types .Structures is denoted by struct keyword .In structures we can access different data in a single block.It is usually used to keep the track of different kinds of records in a single block...
In this tutorial you'll learn how to remove an object using content aware fill in Photoshop.
In the above photo, to select the girl, I'll pick quick selection tool to make a selection of the girl, then I"ll make a copy of the selecti...
If we want to find highest salary we can use max() function simply.
Example:
SELECT max(salary) FROM Employee;
It will return the highest salary from Employee table.
But if we need to find the second highest salary then we have...
Hello Reader's If you have an multidimensional array which you want to sort. Then PHP offers you many ways to do it.
Let's see the easiest way to achieve it:-
Array
(
[0] => Array
(
[0] => dave
[1] => jones...
Hello Reader's! If you're having a problem to convert a string into an array then you can use the html entity in php.
Let's see the example below:-
&
then be sure to use html_entity_decode
// Input string //
$input = 'pg_id=2_parent_...
Hi All Developers,
http://www.katjaboehm.de/kontakt/ On this page, after submitting the form. I've setup error message gets fade off (hide) on hover of text field. This form is created using contact form 7.
I need same functionality on this...
QA plays a crucial part in product quality and product delivery. In agile development procedure like scrum, QA needs to work in highly flatten verification execution cycles. One of the provocation the QA engineer's face is that the coding that wa...
The following post captures the implementation details to manage session timeout in ASP.NET MVC. If session has expired we will redirect the user to login page
First you need to make modificaions in web.config as below:
<system.web>...
It is a common requirement where we need to create a controller that simply returns an image.
Following is one of the possible solutions for implementing the above functionality.
We need to add the following code on controller page
public...
The following post captures the implementation details for uploading file in ASP.NET MVC.
First we need to create HTML form which would receive the file as input:
@using (Html.BeginForm("Index", "Home", FormMethod.Post, new { enctype = "m...
Many times in an application we need to populate a dropdown list from enum.In the following article
I will show how to implement the same using SelectListItem.
First we create an enum, FileType, under the Models folder as shown below.
na...
In a Model attribute order should follow the series given below.
Private attributes (_name, _description, _inherit, ...)
1. Default method and _default_get
2. Field declarations
3. Compute and search methods in the same order as field declara...
1) .NET Reflector
Reflector is used to examine and decompile. NET assemblies in IL, C#, and Visual Basic. You can view the class hierarchies of .NET assemblies, without having
source-code for them. This is a must have for any .NET developer...
Error is the real something happen from exception. Exception is the way to catch the error. For example when you get the variable let say String str, we got Null Pointer. The error is because our variable has NULL value and it catch with Exceptio...
Odoo Python Class : use case for code in api v8, underscore lowercase notation for old api.
And Variable name use following classes and Api to given below.
use camelcase for model variable
use underscore lowercase notation for common variable....
ImageMagick is a free available collection of programs for image manipulations. You can essily play with 200 different extensions images with ImageMagick. You can
install it with the help of simple commands on unbuntu.
sudo apt-get install ...
strings in JavaScript : Like other languages JavaScript also supports the string objects. String object is kind of collection of characters. We can store single character or sequence of characters in the String object.
Example of defining stri...
Hello Reader's! If you want to send an array as a Param with the url then you can use the serialize and deserialize option from PHP Lets see the example below:-
<?php
$array["a"] = "Thusitha";
$array["b"] = "Sumanadasa";
$array["c"] = "L...
Software testing is a part of software development life cycle in which we verify the requirement given by user. When we start testing of a software first of all we take a look and do analysis of user stories or use cases, then on the basis of the...
FPDF is a library to handle the pdf files. FPDF stands for free pdf. It provides high level functions to generate the pdfs. FPDF does not require any support. It is
pure php library. You can download the library from this website http://www.fpd...
The imports are ordered as
1. External libraries (one per line sorted and split in python stdlib)
2. Imports of openerp
3. Imports from Odoo modules (rarely, and only if necessary)
Inside these 3 groups, the imported lines are alphabetically ...
When user hits the BACK-Button on his android device, the keyboard disappears. How can I catch that event? In order to track softkeyboard is open or not, this tutorial is helpfull for you, and you will easily dissmiss the softkeyboard by pressing...
When we Integrate The Full Calendar in our web applications/ blog if we come accross an issue in which the multi-day event spans 1 day short. Therefore to get rid of the issue do the following steps with the start and end date as mentioned below....
The date_add() function is mainly used for adding some days, months, years, hours, minutes, and seconds to a date.
Syntax of date_add()
date_add(object,interval);
you can take belloe example for better understanding:
<?php
//her...
Friend class in C++
Friend class
Protected and private members of a class cannot be accessed from outside the class in which they are declared. A friend class can access these members of another class in which it is declared as friend.Frien...
File handling in C
In C programming language we use a structure pointer of file type for declaring a file.
Syntax:-
FILE *fp;
The fopen() function is used to create a new file or to open existing file.
Syntax :
*fp = FILE *fo...
Logo design is a thing that surrounds us, with every new creation it becomes hard for someone to make it look unique. As a creative designer you have to create a subjective solution that addresses the basic requirement of your client. Where, to t...
Applies to these editions of Windows/Vista
Home Premium
Business
Ultimate
Enterprise
*To install IIS with default settings*
First Click the Start button, then click Control Panel, then click Programs, and finally click Turn Windo...
ARRAY IN C
Arrays is a data structure that can store similar type of data. IN other words an array is a collection of homogenous data (same type of data), which are stored in contiguous memory locations. In an array the first element goes t...
An array is a homogeneous collection of data. An array is a container that stores a fixed number of values of same type. The length of array is specified when we create an array. Once created, its legth is fixed. We can think of array as a struct...
A transaction is any unit of work done against the database.A transaction can be used to save the changes made to the database, it can be used to rollback the database to any save point.
For example say if you are creating or updating a record...
If you want to Fetch limited numbers of rows from a table in oracle you can use Rownum.
Or in other words we can say that
It is used to return specific number of rows in a query, we can use ROWNUM in Oracle and LIMIT in MySql.
ROWNUM Synta...
R is an open source programming language used for Research, Analytic Computing and Statistical Computing. It is commonly used by analysts and data miners for Data Analysis, it has become an important tool for Finance and Analytics companies like ...
Delegate is a type which holds the method(s) reference in an object. It is also referred to as a type safe function pointer. Delegates concept will match with function pointer concept of c++ language.
We use delegate keyword when we need to c...
A Switch is a control statement that allows value to change control of execution.
These are the fact about the switch statement.
Switch case statement expressions must be of integral type (int,char and enum). Any other type of expressions use...
Command Line Argument
1. Command line argument is a way of supplying parameter to the program whenever it is invoked.
In command line argument when user call main method it is called by two arguments.The first is the number of command-line ar...
Hi i am currently working on an android application in it has list view inside the main activity. What i want is disable the scrolling of list and allow the whole page to scroll only,is there any way for that please do help.....
I tried with...
In C programming language when a function calls itself over and over again , that function is called recursive function .The process of function calling itself repeatedly is known as recursion .
Recursion is supported by C programming languag...
In security,view and action use the following pattern :
1-For a menu: _menu
2-For a view: _view_, where view_type is kanban, form, tree, search,
3-For an action: the main action respects _action. Others are suffixed with _ , wh...
If you are working in an IT firm as an internet marketing professional then apart from your technical skills your research and familiarity with SEO tools also makes a difference to place you ahead of the other online marke...
The preprocessing of C source code is done before it is compiled by the compiler. The Preprocessor directives are the command used for preprocessing which starts with "#" symbol. The list of preprocessor directives that C language offers is given...
Using the below code I have created pdf viewer function. Here I have created pdf Viewer Activity and used string download_token,publication_heading,download_info and pdf data fetch data in DatabaseHelper. I have also used DownloadManger fuction....
JNDI DataSource Configuration
This blog is written with the aim to show JNDI DataSource configuration for a web container like tomcat.
JNDI stands for Java Naming and Directory Interface, a directory service provided for java-based client a...
Ubuntu is widely used open source OS. Ubuntu provides lots of customizable features but not more than windows. You can change the background color, theme and organize the icons by their name, type etc. In this article we will tell you about that ...