Extension methods in c#

Hello Friends, In this blog I will explain what is Extension method in c# ? Extension Methods:- Extension method helps you to add new methods to an existing types (like any Predefined dll or class etc.) without creating new derived types or ...

Inserting data in android SQLITE table

Hi again, Here we are going to learn how to insert data in the already created table in android SQLITE. You will find it useful if you are aware of the basic terminology of the android SQLITE, if not and you want to create a table so it will be...

How to Dynamically add element in DropDownList?

I have created a dropdownlist with the help of Jquery and javascript. In this, when we will enter the text in the field given, that value will be stored and will be added to the next list dynamically. Also We can easily remove all the items by ju...

What is Open ERP and Odoo?

OpenERP now know as Odoo. Odoo- stand for -On Demand Open Object. OpenERP (Odoo) is one of the most potent Open Source ERP Business software for Enterprise Management, OpenERP ( Odoo.) is thoroughly featured ERP software implemented by many org...

Creating a table in android SQLITE

There are situation when we need to maintain(store) data at our application level, this is mainly done when we try to execute functionalists at offline mode. So for these kind scenarios android sdk has provide us class known as SQLiteOpenHelper w...

Bucket testing

Bucket testing is a technique to identify the impact of New product design or in other words we can say New UI on a website benchmark. In Bucket testing two different versions of single or set of webpages are run. The motive is to find out dif...

What should be Valid OAuth redirect URIs for Facebook App

If you are getting this error "Given URL is not permitted by the Application configuration:". You need to define "OAuth Redirect URIs" on your facebook app setting. To resolve this, please follow the below step: 1) Open your facebook developer...

How to increase organic traffic to website?

Organic Traffic is the traffic comes from search engine like Google, Yahoo, Bing, for this traffic you don't need to pay any bugs to any one but need to invest a lot hard and smart work. First phase to get organic traffic is to get urself means ...

How to Optimize Website for Search Engine?

Search Engine Optimization is necessary for optimizing any website. A perfect Search Engine Optimization takes your site on the top when user search for any keyword. Keyword is the basic and primary key feature for Search Engines. After creati...

Compatibility Testing

Compatibility Testing Testing the application on different hardware and software platforms is known as compatibility testing. Whenever the Test engineer has to check for the compatibility test with respect to different OS(Operating System) ...

How to split a String

Below I have written a code to split a string. Suppose we have a string name imagePath and we are going to split by "/" by using split method in java. String delimiter = "/"; String[] img; if (imagePath.contains("/")) { img = i...

How to create zip file in android

Here I am writing code to create zip file in android application. Here, First I create directory where I create zip file. Then by using Compress class I create zip file having some valid images already saved on our device. private File cre...

Types of Applications

Stand Alone Applications The application which are installed on end user system and only one user is allowed to use the application are known as stand alone applications. For eg: MS Office, Media Player, Antivirus etc. Advantages of Stand ...

Difference between display:none and visibility:hidden in CSS?

Below is the difference between display:none and visibility:hidden in CSS display:none: It is used to hide an element. As it do not occupy any space when hiding an element. In other words, it means that the element hidden is not considered ...

Commonly used php directives (php.ini)

Below are commonly used php directives, which can be changed in php.ini file (we use Linux so its path is like that: /etc/php5/apache2/php.ini) or its called php configuration file or php configure setting. 1> By default the execution time ...

Introspection using ActiveModel

ActiveModel is a library which contains various modules which when added to a class add some features present on Active Record to the class. One such module is ActiveModel::Naming module. This module is used for model name introspection .Below ...

How to use Angular JS attribute in HTML.

Angular is the key to our apps. ng-app directive refers to module and ng-controller directive, which link our controller to our template. In the below example I have created a HTML program with the use of Angular JS attribute. Review of these ...

How to include HTML file in PhoneGap

Follow the below steps to include a PhoneGap HTML file.- 1-The format-detection this meta tag smiply disables the abilty for device. 2- The msapplication-tap-highlight" meta tag is a only tag which disable tap highlighting for links. 3-The "...

Protocol in Objective C

Hi , In this blog , we will learn how to use protocol in objective C.

Dirty methods in Rails model

Sometimes we face a situation where after changing the value of an attribute of an object we need the previous or the unchanged value for some purpose. We generally store the previous value in a variable to be used later. Instead of this approach...

Rails Model Translation

Rails Model Translation Translation in Rails active records is used to provide integration between object and the Rails internationalization (i18n) framework. Rails does this using ActiveModel::Translation.Example: class Blog   ext...

Rails model Serialization

Rails model Serialization Hi Friends, Earlier we have discussed about Association in Rails Model. Today we will be covering one more topic related to rails active records, that is Serialization. In summary we can define serialized objects as, S...

How to play video online using .Net

"How to play video online" For cutting a frame from a video, please refer to my following blog: Cut frame from a video In this article we will take a overview on cutting a frame using ffmpeg.exe file and then will discuss how to play t...

CSS document for printing

Hello everyone, Lots of web pages have a print-friendly version and many of them don't. I realize that there's no need because you can set up a second CSS document to be called up when a user prints the page. So, basically we need two css i...

Difference between the different services in AngularJS

AngularJs provide different services to organise and reuse the code multiple times in the app. These are the two services: 1. Service 2. Factory These services are singleton objects. Lets Discuss them: 1. Service: Service are singleton ob...

job board for education industry

Job board design and development for education category website www.theschoolworld.com Introduction The job board we require is for a single industry (Education) to be developed in PHP 5.6 version and in html5 pages. Features for Job seeker...

Join in rails model

In rails if we want to establish inner join relationship between two models we can do it using joins method of activerecord. For example, consider the following Company, Product, Review and Vote models: class Company < ActiveRecord::Base...

Associations in Rails Model

Associations in Rails Associations are an important part of each Active Records. It makes coding easier and relations clean. Lets take an example of Blog. A Blog can have many comments. So if you delete blog its associated comments also needs ...

How To Fix JAuthentication Error in Joomla

Hello Readers, When we log in to the Joomla administrator site and we find out the error like:- unable to log in to the Joomla administrator site. JAuthentication::__construct: Could not load authentication libraries. Username and pass...

How to allows and send smses in OpenERP(Odoo)?

If you want to allows and send smses in OpenERP(Odoo) follow the below mentioned steps: Step-1Install Entity SMS module. Step-2 After that we have to customised Entity SMS module. In below example, I have custmozied .py file. You can direct...

How to use loading and saving data from the local storage

In below code, I have used a constructor shoppingCart for the parameter CartName which identifies the Cart while loading data from the local storage. I have also used clearItems() function which is used to clear the cart and saveItems which is u...

Reorder in Rails

Hi friends, Today we are going to discuss about reorder in rails. This method is used to override the scope of order and reorder the rows according to the passed arguments. Example: Blog.order('title DESC').reorder('published_at') # generate...

Having Clause in Rails

Hi Friends, Previously we discussed about Group By Clause in Rails, Now today lets discuss a related clause of SQL, which is Having. SQL uses having for specifying conditions on GROUP BY clause. Suppose we want to fetch the total views of blogs ...

GROUP BY clause in Rails

Hi Friends, As you know GROUP BY is used to group the result-set by one or more columns. The SQL query to fetch the total views of blogs created at same day will be: SELECT date(created_at) as creation_date, sum(view) as total_views FROM blo...

How to solve "cannot import name models error" ?

Hi Friends, Please help me with the error, When I am installing partner_sms module in openerp. It is giving me below mentioned error - Traceback (most recent call last): File "/home/shiva/workspace1/openerp/OE7/openerp/cli/server.py", ...

Self Join in Rails

In Self join association one model has relation with itself. For example one user table can have list of all coach and player. One coach can train many players. We will represent the association as: class User < ActiveRecord::Base has_m...

Fetching records in batches in rails

Hi Friends, Many times we get into a situation where we have to fetch a large record from a table and need to iterate over it and that makes our server cry. As it consumes a lots a memory and time. So no need to worry again for that Rails has a...

Polymorphic association

Polymorphic association is little tricky to understand among all the rails association. Using this association one model can have belongs_to association with more than one model in a single line of association. As for example in a social networki...

NSdictionary in Objective C

Hi , In this video blog, we will learn how to use NDdictionary in Objective C

Fetching Records in Rails using take

take in Rails:Rails has so many methods that provide the facility to fetching the records from database, so that you don't need to write raw sql. One of them is take. By using take we can fetch a record (or N number of records if specified as a ...

How to make a call from your android application

This tutorial describe you how to make a call from your android application. To make a call you just need to call Implicit intent like this:- // call implicit intent with phone number to make a call Intent callIntent = new Intent(Intent.ACTI...

How to calculate distance from Latitude and longitude

Hello readers!, If you are having a project in PHP and need to calculate the distance from lat and longs you can use the code below:- Here all the entries are saved in table('business') (SELECT name, ACOS(SIN(RADIANS($latitude))*SIN(RADIANS...

find_by in Rails

Hi Friends, Rails provides several methods for fetching single object from table, one of the method is find_by. It fetches the first record in the table matching some specific conditions. Example can be if we want to fetch the first blog with ti...

How to cut a frame from the video using .Net

"How to cut a frame from the video using .Net" In this article we will see, how we can cut the first frame of our video and save it as a jpg image using ffmpeg software. To download the ffmpeg software please go to the following link: Do...

Choosing Between has_many :through and has_and_belongs_to_many

In Rails we can establish many to many relationship between two models in two ways 1) by using has_and_belongs_to_many 2) by using has_many :through associations. We generally use HABTM when we dont require a third intervening model to join t...

Unique Validators in Rails

Hi Friends, Today we will be going to discuss a very basic constraint of rails validation that is uniqueness, as its name suggests, Unique Validator is a rails validation helper used to check an attribute value in database and if it already exis...

how to import .dmp file in oracle database by command prompt

login as dba SYNTAX-- imp userid/password@database_name file='path of dmp file' full=y e.g- imp system/manager@orcl file='c:\dabasefile.dmp' full=y

Strict Validator in Rails Model

Hi friends, We already talked about different kinds of validations. Today lets discuss one of the common type of validation that is Strict validation. By using this we can check whether an object is valid or not and can raise ActiveModel::Strict...

Numeric Validator in Rails

Hi Friends, Thanks for viewing my previous blogs, hope you liked them. As we were previously talking about validations starting with Format validations in Rails, lets continue with that with a new validation helper numericality. As its name rep...

Length Validators in Rails

Hi Guys, In my previous blog Format validators in rails, I talked about validations in rails and now I am here again with one of the most commonly used helper available in rails, that is length. Length validator is used to validate the length ...
1 234 292