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

Search In

before_filter TestCase for ApplicationController using "Unit Test" approach or "test-unit" gem

I am using Browsernizer gem to prevent some browsers version from accessing website and redirect to a static instruction page to upgrade browser version. So using before_filter method in ApplicationController to detect browser version & redirect

Swipe Items left or right

At certain application there is need to integrate swiping feature with your UI component, to make the UI more interactive.  Here we are taking a simple example in which one swipe the items of recycler view left or right . For this we used a th

TO_BASE64(str) function MySQL

TO_BASE64('string') TO_BASE64 function in mysql is used for encode any string with the string encode rule BASE64. This function returns a encoded string. This function is added with the mysql version 5.6.1 In mysql there is different base-64 encodi

Handling Cookies in Selenium WebDriver

User can handle the cookies in Selenium WebDriver. Here, we discuss this in detail:     1. Add Cookie: User can add a specific cookie. Also, if the cookie's domain name left blank then it will be assumed that cookie is meant for the

Apache Felix Gogo in Liferay 7

Apache Felix Gogo helps to get the details of all modules installed in Liferay 7. It is very useful when overriding JSP or Actions.   Before overriding, you must know the bundle in Liferay's module framework and its version so that you can

3D Flip Rotate animation CSS3

For making a flip roatation we use CSS3 3D property. Child elements will preserve its 3D position that is specified by Preserve-3d. The nested elements are rendered in 3D space are specified by transform-style property. Here is the example:- <!

How to add Image and text in Sqlite and Display it in recyclerView with kotlin

I want to take image and text from user and add in Sqlite and display it in recyclerView with kotin    Let me show what I have done so far    >activity_Xml <?xml version="1.0" encoding="utf-8"?&

Adding two columns value using jQuery

We can add the values of two columns and show the result in another column using jQuery easily. Html code: <div id="main"> <table> <tbody> <tr> <th>Digit1</th> <th>Operator</th> <

Difference between pure virtual function and virtual function in C++

td p { margin-bottom: 0cm; }p { margin-bottom: 0.25cm; line-height: 120%; } Pure virtual function virtual function

Using @PreAuthorize on Spring controllers methods

Authenticate controller method using @PreAuthorize annotation : @PreAuthorize annotation is used to provide the method level security. We can secure our methods by using @PreAuthorize annotation. It is very easy to use and it is always preferred over

1 258 481
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: