Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read.
Redis is a flexible, open source and advanced key-value store. It is referred to as a “data structure server” where keys can contain strings, lists, hashes, sets and sorted sets of strings.
The main differences between them are listed below:
Comparing ease of Installation Redis is much easier. No dependencies required.
For simple key-value pairs memcached is more memory efficient than Redis. If you use Redis hashes, then Redis is more memory efficient.
Use of a sortable column in a listing view. For example there is a list of “Programs”. Here our controller is named as “Programs” and the model is named as “Program”.
Here are the steps to Implement Sortable Columns in Rails through Helper. Add the following helper methods to the controller. In the view (index.html.slim) file add the helper method “sortable” in the columns you want to sort.
We at Andolasoft are delighted to release a collection of responsive web templates for free usage. You can download and use them absolutely FREE (We don’t ask for any Credit Card) for your website. These web templates are fully responsive such that even a mobile reader gets best user experience.
It is true that to create a website you need to have lot of skills and energy. If you are not so good with HTML, CSS or web designing, our website templates will be perfect solution for you. We can provide you the HTML of the template you are interested with.
We’re sure you will find these templates useful regardless if you’re a newbie or a pro webmaster. However, you are free to alter templates to suit your needs and apply to your personal or commercial websites without any restriction.
Core Image is a powerful framework for image processing and analysis technology designed to provide real-time processing for still and video images. This helps you easily apply filters to images, such as modifying the hue, exposure or vibrant. It uses the GPU or CPU rendering path to process the image data very fast.
Core Image can be chained with multiple filters to an Image or video frame at once by creating custom effects. Core Image provides us more than 90 built-in filters on iOS and over 120 on OS X. You can set up filters by supplying key-value pairs for a filter’s input parameters. You can use the output of one filter as the input of another filter, to create amazing effects.
You should do minimum security checks before releasing the rails app to the public. The possible threats could be hijacking user accounts, manipulate access control, accessing sensitive data, doctoring with garbage contents. You should act proactively to protect your valuable information.
Here you go with some useful security tips which you cannot ignore. Courtsey,:Ruby on Rails Security Guide.
Don’t trust logged in users (Authentication != Authorization)
Always check whether the current logged in user is allowed to perform operation like create, update, delete and view.
Devise, a library which handles authentication, to verify that you can only get to the destroy action if you’re logged in. However, Devise does not handle authorization.
Apart from authentication authorization must be checked prior to allow any data sensitive operation.
The WebView class is a subclass of `android.view` class that facilitates to fetch external URL running in web server and display in device screen easily.
It is very useful to display dynamic contents from the web server application. External website URL should have UI contents compatible with the android device’s screen resolution.
What is Backbone.js?