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

Search In

Difference between final,finally and finalize in java

1) Final: Final is a keyword. It is used to store constant values in variable. The value can't be changed later on. The class which is declared as final cannot be inherited. The method which is declared as final cannot be overridden. Example: c

How to know the average without disclosing the salaries?

Suppose we want to find the average salary of three employee(A,B,C) without disclosing there individual salary.In order to do this see the following algorithm: ALGORITHM : First A will add a random number to it's salary and then tell the tota

How to crop image using Qimage component in cakephp

For cropping image using Qimage component in cakephp first we have to  download Qimage plugin  after downloading Qimage plugin we have to put it into  App/Controller/Component . Then we have to do all this in our controller.  

Capybara get css attributes value

While testing an application many times we get some testcases where we have to check the value of CSS attributes. Suppose we have the following cucumber step:   Then(/^The month section should have a grey background$/) do   @page = @page.

Converting a Decimal to a Hexadecimal Value

Hello readers in this blog we will discuss about the conversion of a decimal into a hexadecimal value. In this case if we have a decimal value. we have to find its hexadecimal equivalent, we use the Number object’s toString method :- Syntax:-

Inspect, to_s, p and puts in ruby

In rails, sometimes we don't notice it but there is difference when you use puts to print an object and when you use just p to print an object. One thing let me clear for you, p is not a short form of puts, they both are different. 

Different Equality Operators in Rails

1) == It is a simple equality operator, that only checks if the value of the left operand is equal to the right operand or not, so returns true or false respectively <pre> > x = 5 > y = 5 > x == y => true > y = 6 > x == y

Laravel 4 eloquent WHERE with OR AND OR?

In Laravel 4.x we can easily use where condition with OR AND OR .Below is the example of this Example: User::where(function ($query) { $query->where('a', '=', 1) ->orWhere('b', '=', 1); })->where(function ($query) { $que

Working with MathML in HTML5

MathMl is a easy way to insert math symbols, expressions and formulas into your web page. The supported browser can convert them to numeric values and symbols. To start writing the math code you have to use <math></math> tag for create th

'Failed to open stream: Permission denied' error - Laravel

Some time in Laravel 4.x we will get the error "Failed to open stream: Permission denied" error .When we have no permission then this type of error will occur. So to overcome this problem by using php artisan are: Step: php artisan cache:clear c

1 41 217
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: