GeekTantra https://www.geektantra.com/ yet another geek's blog Sat, 07 Mar 2020 06:11:04 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.3 How to Add Multiple Migrations in Truffle? https://www.geektantra.com/2020/03/how-to-add-multiple-migration-in-truffle/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-add-multiple-migration-in-truffle Sat, 07 Mar 2020 04:06:27 +0000 https://www.geektantra.com/?p=982 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 […]

The post How to Add Multiple Migrations in Truffle? appeared first on GeekTantra.

]]>
How to Work with iFrame during WordPress Post Insertion? https://www.geektantra.com/2020/02/how-to-work-with-iframe-during-wordpress-post-insertion/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-work-with-iframe-during-wordpress-post-insertion Wed, 26 Feb 2020 06:08:14 +0000 https://www.geektantra.com/?p=976 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 […]

The post How to Work with iFrame during WordPress Post Insertion? appeared first on GeekTantra.

]]>
How to Get Data from FCM while App is in Background in React Native? https://www.geektantra.com/2020/02/how-to-get-data-from-fcm-while-app-is-in-background-in-react-native/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-get-data-from-fcm-while-app-is-in-background-in-react-native Mon, 24 Feb 2020 05:12:11 +0000 https://www.geektantra.com/?p=969 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 […]

The post How to Get Data from FCM while App is in Background in React Native? appeared first on GeekTantra.

]]>
Do We Need to Unsubscribe Angular HttpClient? https://www.geektantra.com/2020/02/do-we-need-to-unsubscribe-angular-httpclient/?utm_source=rss&utm_medium=rss&utm_campaign=do-we-need-to-unsubscribe-angular-httpclient Tue, 11 Feb 2020 10:41:58 +0000 https://www.geektantra.com/?p=965 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 […]

The post Do We Need to Unsubscribe Angular HttpClient? appeared first on GeekTantra.

]]>
Adding a Mime Type to WordPress https://www.geektantra.com/2020/01/adding-a-mime-type-to-wordpress/?utm_source=rss&utm_medium=rss&utm_campaign=adding-a-mime-type-to-wordpress Thu, 09 Jan 2020 13:09:09 +0000 https://www.geektantra.com/?p=959 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 […]

The post Adding a Mime Type to WordPress appeared first on GeekTantra.

]]>
Apache Post Flooding Protection using Fail2Ban and IPTables https://www.geektantra.com/2016/05/apache-post-flooding-protection-using-fail2ban-iptables/?utm_source=rss&utm_medium=rss&utm_campaign=apache-post-flooding-protection-using-fail2ban-iptables Thu, 12 May 2016 16:48:20 +0000 http://www.geektantra.com/?p=933 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: [Definition] # match these lines to find a login fail failregex = ^ .*\"POST [^\"]+\" # matches this example line: # 202.120.209.38 […]

The post Apache Post Flooding Protection using Fail2Ban and IPTables appeared first on GeekTantra.

]]>
REST Authentication Protocols https://www.geektantra.com/2015/02/rest-authentication-protocols/?utm_source=rss&utm_medium=rss&utm_campaign=rest-authentication-protocols Mon, 09 Feb 2015 06:00:15 +0000 http://www.geektantra.com/?p=913 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 […]

The post REST Authentication Protocols appeared first on GeekTantra.

]]>
Continuous Integration Tools https://www.geektantra.com/2014/12/3-continuous-integration-tools/?utm_source=rss&utm_medium=rss&utm_campaign=3-continuous-integration-tools Mon, 15 Dec 2014 05:39:39 +0000 http://www.geektantra.com/?p=878 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 […]

The post Continuous Integration Tools appeared first on GeekTantra.

]]>
Continuous Integration https://www.geektantra.com/2014/12/continuous-integration/?utm_source=rss&utm_medium=rss&utm_campaign=continuous-integration Thu, 04 Dec 2014 11:01:48 +0000 http://www.geektantra.com/?p=863 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 […]

The post Continuous Integration appeared first on GeekTantra.

]]>
Cross Platform Mobile Development https://www.geektantra.com/2014/12/cross-platform-mobile-development/?utm_source=rss&utm_medium=rss&utm_campaign=cross-platform-mobile-development Tue, 02 Dec 2014 07:52:50 +0000 http://www.geektantra.com/?p=848   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 […]

The post Cross Platform Mobile Development appeared first on GeekTantra.

]]>