Categories
Javascript

How to Add Multiple Migrations in Truffle?

Migration, in general, is a very much known term for developers in different aspects. In general, it is the process of moving your application from one operating environment into another operating environment to upgrade it. But most of the backend developers use it to define the schema of your database.  In Ethereum blockchain we need […]

Categories
WordPress

How to Work with iFrame during WordPress Post Insertion?

Content sharing is fairly a common practice. However, featuring another creator’s content on your WP site has potential legal ramifications. In a nutshell, iFrame is a fruitful way to embed a web page into the content of another page. There are two situations where iFrames are generally useful. First, when you wish to share content […]

Categories
Javascript Uncategorized

How to Get Data from FCM while App is in Background in React Native?

The notifications module in React Native Firebase has support for both remote (FCM) and local notifications. Firebase Cloud Messaging (FCM) is a great way to notify users about something you want them to know. But you can do more instead of showing only the message to the client. So, how do you get data from […]

Categories
Javascript

Do We Need to Unsubscribe Angular HttpClient?

Is there any way we can unsubscribe Angular HttpClient manually? Fortunately, yes we have! But we don’t need to unsubscribe it. Instead, HttpClient observes until getting a response from API. And, once it gets the response, HttpClient unsubscribes automatically. Https use AsyncPipe for the response and the AsyncPipe subscribes to an Observable. It returns the […]

Categories
WordPress

Adding a Mime Type to WordPress

WordPress doesn’t have .xml as part of its default mime-types, so we need to add it ourselves. How can you do that? Search for wp_get_mime_types() function in the WordPress core files. You will find it inside the wp-includes/function.php. In the function, you will find a filter called mime_types. We have an appropriate filter now, and […]

Categories
Server Administration

Apache Post Flooding Protection using Fail2Ban and IPTables

Here is a way to protect your LAMP server from a Post Flooding DDoS attack. Steps: Set up Fail2Ban and IPTables by following instructions here. Create a new file named /etc/fail2ban/filter.d/apache-postflood.conf with the following content:

Next, add the following to the bottom of /etc/fail2ban/jail.local

The above will block all IPs which try to post more than […]

Categories
Web Architecture

REST Authentication Protocols

REST: This is nothing related to stress relaxation as REST is a Representational State Transfer software architecture for a scalable web services. It is based on principles, which are used in the largest distributed application – the World Wide Web. So every major development language now includes frameworks for building RESTful Web services. RESTful uses HTTP as its underlying […]

Categories
software engineering

Continuous Integration Tools

As described in my previous post about Continuous Integration and its benefits now coming up to the various TOOLS of Continuous integration. Automatic build cycle is the most basic function of any  Continuous  Integration . There are many in the queue a few listed below. Apache Continuum : Apache Continuum is a ready made enterprise continuous integration server […]

Categories
software engineering

Continuous Integration

Continuous Integration (CI) is a development practice in software engineering to blend a code into a shared repository several times a day. Thereby it becomes more easier to detect bugs and locate them. Its beyond the traditional agile scrum process with build in and test automation process. CI tools have the running unit tests and […]

Categories
Mobile Platforms

Cross Platform Mobile Development

  Methods and concepts that are implemented to write a single codebase for apps that will eventually be used on different OS is what Cross Platform refers to. As per Mobile Development is concerned the two giant OS Android and iOS are way different for each other structurally, functionally and architecturally. The steeper you climb the […]