Skip to main content

Posts

Complete guide to use Google NLP with laravel

 What is NLP? NLP stands for Natural Language Processing. It is a subfield of artificial intelligence and computational linguistics that focuses on the interaction between computers and human language. NLP involves the study, analysis, and understanding of natural language text or speech by machines. The goal of NLP is to enable computers to understand, interpret, and generate human language in a way that is meaningful and useful. It involves a range of techniques and algorithms to process and analyze text data, including tasks such as text classification, sentiment analysis, named entity recognition, machine translation, question answering, and more. NLP techniques often involve linguistic rules, statistical models, machine learning algorithms, and deep learning approaches to extract meaning from text and enable various language-related tasks. NLP finds applications in various domains, including chatbots, information retrieval, sentiment analysis,...

PHP FPM

PHP FastCGI Process Manager (FPM) is a FastCGI daemon for PHP that provides a simple and efficient way to manage the PHP processing requests on a web server. PHP FPM is an alternative PHP handler that can be used with Nginx or Apache web servers, and it is often used to improve PHP performance on high-traffic websites. In this blog post, we'll explore the benefits of using PHP FPM and how to set it up on your web server. Why use PHP FPM? Performance: PHP FPM provides faster performance than traditional PHP processing because it runs as a separate daemon, allowing it to handle multiple requests simultaneously. This results in faster processing times and improved overall website performance. Scalability: PHP FPM is designed to handle high traffic websites, making it easier to scale your PHP environment as your website grows. It provides a simple way to manage multiple worker processes, allowing you to handle more requests and provide a better user experience. Reliability: PHP FPM pro...

Heroku

 What is Heroku? Heroku is a cloud application platform for building and deploying web apps. Heroku provides better UI for cloud application as cloud platform setup is done through CLI . Heroku lets app developers spend their time on their application code, not managing servers . Heroku is a multi-language cloud application platform that enables developers to deploy, scale, and manage their applications. History Heroku was initially developed by James Lindenbaum, Adam Wiggins,and Orion Henry for supporting projects that were compatible with the Ruby programming platform known as Rack. The prototype development took around six months. Heroku was acquired by Salesforce.com in 2010 for $212 million. Heroku Working model Heroku lets you deploy, run and manage applications written in Ruby, Node.js, Java, Python, Clojure, Scala, Go and PHP. An application is a collection of source code written in one of these languages, perhaps a framework, and some dependency description that instr...

Setup Intercom help over HTTPS with a custom domain

 A year ago we setup a help center on hubspot which worked well but for some reason team decided to switch it over to Intercom. Everything was setup and we were only left with pointing subdomain to Intercom, I feel setting custom domain is very simple and explained clearly here (https://developers.intercom.com/installing-intercom/docs/set-up-your-custom-domain). Pointing the custom domain to your intercom help page is pretty easy using a CNAME in your DNS record. The only thing which i found bit tricky is that by default it won’t work on https (that's not good).but this post will help you to get SSL with the help of AWS cloudFont. Let's start 1. Login to your AWS account here( https://console.aws.amazon.com), you have to create in case you don't have. 2. Go to Cloudfront console (https://console.aws.amazon.com/cloudfront) 3. Click Create Distribution 4. Click **Get Started under Web** 5. Under Origin Settings > Origin Domain Name, enter Intercom host domain i.e. *custom....

How to Point site via pointdns on heroku

Pointing site via PointDNS Why PointDNS ? By Default Heroku supports CNAME records only. CNAME record does not require hard-coded IP addresses and allows Heroku to manage the set of IPs associated with your domain. However, CNAME records are not available at the zone apex and can’t be used to configure root domains Heroku doesn’t support DNS A-records and does not provide hard-coded IP addresses which are required for A-records DNS. This prevents your infrastructure provider from assigning your app a new IP address on your behalf when adverse conditions arise and can have a serious impact on your app’s uptime. PointDNS add-on provide us the facility to add A-records DNS on Heroku app Step 1 Export Zone records from DNS panel (just for reference) : In Godaddy we have the option to export Zone records for unix / windows , export in either way so that we can save it for case if we need to revert those records. Step 2 Add domain to be pointed to production app via CLI run heroku logi...

NGROK for Laravel

Share Your Local PHP/Laravel  using Ngrok This post shows how to share your Laravel Framework Installation on Ubuntu but you can perform the same with other operating systems as well. What is Ngrok ngrok is a simplified API-first ingress-as-a-service that adds connectivity,security, and observability to your apps in one line.It allows you to create a tunnel very fast for free and Laravel has an internal webserver that can be used without configuration. Why Ngrok Ngrok allows developers to expose their locally hosted applications to the internet, which is useful for testing and debugging purposes. It eliminates the need to deploy the application to a remote server for testing, saving time and effort.Mostly Ngrok is used where we need to test webhook locally.Ngrok enables developers to receive these webhooks on their local machine, facilitating the development and testing of webhook-based functionality. How to use Ngrok Assuming you have Laravel installed correctly, you can fo...