s3_video_upoload : ckeditor plugin to upload videos to s3

This plugin is for uploading videos to s3 storage, server databases and also to delete images from your server. You just need to put some lines of code and you are done.For more details about ckeditor plugin  http://docs.ckeditor.com/#!/guide/plugin_sdk_intro First of all we need to know what is s3 storage. Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing easier … Continue reading s3_video_upoload : ckeditor plugin to upload videos to s3

Hiding Model Attributes in Rails 5

Sometimes we need to hide certain columns from models without removing it from table. Suppose you need to maintain backward compatibility and do not actually want to remove certain columns but it may be not in use in your latest application and in upcoming release you may need to remove it compatibility. I have found many blogs to do so but with rails 5 it … Continue reading Hiding Model Attributes in Rails 5

Deploying React Application on Amazon S3

The new React CLI tool, create-react-app, is helping front end developers finally focus on building applications, rather than configuring them. Advantages of Deplying to S3 You don’t have to pay the cost of an instance and its very inexpensive as compare to AWS instance You need low maintenance You can easily cache with CloudFront Better performance Deploy to S3 Amazon’s S3 buckets are a popular … Continue reading Deploying React Application on Amazon S3

Authenticate Ruby on Rails with Slack and Create Slack Commands

Slack is an instant messaging app. What make slack different from other instant messaging app is, Integration and Customisation. It enables you to centralize all your notifications to one searchable place, where your team can discuss and take actions. You can use pre-built integration or could just build your own. In this tutorial, we are going create a slack app, authenticate it with Ruby on … Continue reading Authenticate Ruby on Rails with Slack and Create Slack Commands

Receiving Emails (Inbound Emails) in Rails Application and forwarding it + Resolving DMARC Issues

Problem: There are hundreds of user in the system who are signed in with their personal email addresses. All these users communicating to each other. An email need to be trigger from application behalf of those user with their email address in reply-to. As their email address is not same as your sendgrid authorized domain you can’t use their email in from and even in … Continue reading Receiving Emails (Inbound Emails) in Rails Application and forwarding it + Resolving DMARC Issues

Best way to add chained any_of in Rails

If you are using Mongoid and suppose you have two scopes like class Post     ….     scope :scope1, -> {any_of([{field1: value1},{field2: value2}])}     scope :scope2, -> {any_of([{field3: value3},{field4: value4}])} … end Now if you are executing Post.scope1.scope2 you are expecting posts which have (field1 == value1 or field2 == value2) and (field3 == value3 or field4 == value4) But mongoid will return result like (field1 == value1 or field2 … Continue reading Best way to add chained any_of in Rails

Rule for AWS S3 Bucket Naming

  The name of the bucket should not contain any period in between. For example: The bucket name should not be something like: mybucket.mydomain.com Although it would not give any error while you are testing in development environment with a development bucket like: mybucket.development.mydomain.com but it would create a problem with the bucket which you would make for you production mode. So, the name of … Continue reading Rule for AWS S3 Bucket Naming

Five Simple Steps to Upload file directly to S3 in Reactjs

For Direct file uploading to s3 using  React, you need to do following 5 steps, We will update CORS configuration for AWS S3. Generate policy and signature. Retrieve policy and signature using ajax call.  upload file using React form Ajax Request For Direct File Upload to s3 1. AWS S3 Setup: Sign in to the AWS console and select the S3 section. Select or create … Continue reading Five Simple Steps to Upload file directly to S3 in Reactjs

Submitting your website to Alexa, DMOZ, Google and Bing for better SEO

Adding your website on various Search Engines(e.g. Bing, Google) and Directories(e.g. Alexa, DMOZ) is very important for good SEO(Search Engine Optimization). Search Engine have become a very popular way for people to send their site to various search engine and directory as this is a great way to get traffic from search engine. Getting listed in  these search engines and directories is one of the … Continue reading Submitting your website to Alexa, DMOZ, Google and Bing for better SEO

Protect Email Harvesting in Rails Application

Q. What is E- mail Harvesting? Email harvesting is the process of obtaining lists of email addresses using various methods for use in bulk email or other purposes usually grouped as spam. We need to hide our emails from these email harvesters. There are methods to hide email addresses from page source to minimise visibility against the email harvesting spam bots. Each method has some advantages as … Continue reading Protect Email Harvesting in Rails Application