You know that awkward feeling when you get a nice text from a friend but for some reason, you don't have their number saved? You can't remember and it’s too late for you to respond with, "I'm sorry. Who is this?"
We're going to save you from the embarrassing moment of not knowing who it is by building an app that will let you identify numbers on the go over text.
How We’re Going to Avoid This Problem
Our app will take advantage of three Twilio APIs:
- Functions: the serverless environment which will hold our app
- Lookup: to look up the phone number and see who it belongs to
- SMS: to send us a text with the phone number.
The combination of these three will allow us to send a text with a phone number to our Function which will then perform a Lookup and respond to ...
How to Create a Local WordPress Setup in 5 Minutes using Valet
As a WordPress developer, I’m always looking for the lightest solution to spin up a local development environment for new projects. I know that some devs swear by Vagrant and Docker, but when you’re local environment takes more resources than your operating system, it makes you wonder if there's a better way.
In my agency days I used a MacBook Air for development, which is notorious for running out of space and memory. Just in case you are in the same boat and you want a quick, clean solution to spinning up new WordPress environments, I can’t recommend Valet by Laravel enough. Valet is a Laravel development environment for Mac minimalists that doesn’t rely on Vagrant or Docker to load a separate operating system.
For this tutorial we’ll assume the following:
How to Create an iCal Calendar Feed with PHP using Laravel Lumen
iCal, short for iCalendar, is an internet standard file format used to store calendar information. Being a standard format, it is compatible with most online calendars, giving you access to important dates regardless of your preferred client (Google Calendar, Outlook Calendar, Apple Calendar, etc.). Even popular online services use the iCal format to help their users remember important dates. Airbnb, for example, uses the iCal format to store room availability giving users the ability to export their Airbnb calendar and view it on an external calendar.
In this tutorial, you’ll learn about the iCal format and how to create an iCal calendar feed using Lumen, a PHP micro-framework by Laravel that allows you to quickly build elegant APIs.
For this tutorial, you will need:
- A PHP development environment
- A global installation of Composer
- A global installation of ngrok
- A PostgreSQL Database
The iCal Object
Below is ...
Saying Happy Birthday to my Grandma with #TwilioIoT
When it came to my Grandma 90th birthday I was stumped about what to get her as a gift. She has been a big influence in my life and I wanted to do something that showed that. I knew I wanted to integrate Twilio in some way because when she was younger she was a switchboard operator for Bell Telephone. Then it hit me like a ton of phones. I will create a hardware device with a Programmable Wireless SIM and a Grove Button. When grandma presses the Grove Button a voice call will be routed to her phone and an operator will tell her how much I love her and wish her a happy birthday.
What I needed to send some birthday love
For this project you will need following components:
Preventing Memory Leaks in Angular Observables with ngOnDestroy
A memory leak is one of the worst types of issues you can have. It’s hard to find, hard to debug, and often hard to solve. Unfortunately, this problem occurs in every programming language or framework, including Angular. Observables are awesome, because of the incessant stream of data, but this benefaction can cause serious problem with memory leak. Today we will take a closer look at the
ngOnDestroyAngular hook, and answer the question: “When should I unsubscribe from an observable? What is the best pattern to use?”
In this post we will:
- Create an app which generates random numbers.
- Reproduce a memory leak in it.
- Fix the memory leak with the
To accomplish these tasks, make sure you:
- Install Node.js and npm (at the time of writing I am using Node.js v8.11.1 and npm 5.8.0).
- Install @angular/cli (in ...
How Twilio Manages MySQL Clusters at Scale
Developers at Twilio write, deploy, and operate their own microservices. This aligns engineers with the incentive to write maintainable code and address the shortcomings of their own services. As part of this alignment, each product software development team is responsible for operating and managing their own services, including their database clusters. Our goal as a Platform Organization is to help Twilio product engineering teams succeed by giving them self-service tools and automation to empower their development and operation of Twilio’s services.
If Twilio’s product engineering teams are vertical columns, Twilio’s platform engineering teams are horizontal blocks supporting these columns. Twilio’s Platform engineering teams use metrics such as deployment velocity, product feature velocity, NPS, and incident reduction to track our impact on the rest of the Twilio engineering organization. We have weekly syncs and quarterly surveys where we ask other teams for candid feedback. Through these, we ...
Evolving Our Trusted Bounty Program: Twilio Adds Safe Harbor to Bug Bounty
Founded by engineers, Twilio has always sought to cultivate a diverse internal engineering culture while enabling a strong external community. Since its founding 10 years ago, Twilio has provided scalable services and empowered over 2 million developers to build great things on our platform.
Twilio is dedicated to providing our customers with a trusted platform where their data is protected. While we have a skilled security team working hard to accomplish this goal, we have seen the positive effects of crowdsourcing proactive help from external security researchers, spurred on by our bug bounty program, to improve our systems of protection.
Hackers act as “the Internet’s immune system” when they find vulnerabilities and responsibly disclose them to the correct parties before they are maliciously exploited by those with ill intentions. When responsible and seasoned hackers find these issues, all users of the platform benefit. Twilio launched its bounty program in ...
How to Build Chat into Ruby on Rails Applications
We build web applications for all kinds of projects. If you want to give support agents a way to communicate with customers, or provide your users with a place to share ideas, you might find yourself wanting to add messaging to your application. Let's use Twilio Programmable Chat and Ruby on Rails to build a full-featured chat application from scratch.
Creating a New Rails App
First we'll make sure we've got a recent version of Ruby installed, then we'll install Rails and create a new application.
gem install rails rails new twilio-chat
The last command will generate our Rails application in the
twilio-chatdirectory. If we move into our newly created directory and start our server, then visit
http://localhost:3000in our browser, we should see the default Rails server page.
cd twilio-chat rails s
Adding a Default Action
Now let's return to our terminal and stop our Rails ...
Getting Things Done in Trello with Python, Flask and Twilio SMS
Do you ever have so many things to do that you can’t even decide where to begin? This is me, all the time. So every once in a while, when I’m a bit overwhelmed by all the tasks I have to do, I make my code decide for me. In this tutorial, we’ll build a system that responds to a text with a to-do item. I’m an avid Trello user so we’ll use the Trello API and Twilio API to send tasks via SMS.
First, we have to set our environment up. This guide was written in Python 3.6. If you haven't already, download Python, Pip and Ngrok. Next we will install
virtualenvto create and activate your virtual environment by entering the followings command in your command-line:
pip3 install virtualenv==15.1.0 python3 -m venv twello cd twello source ./bin/activate
Build and Deploy Twitter Bots with Python, Tweepy and PythonAnywhere
This article will guide beginner Python developers on creating Twitter bots. You will learn the Twitter API while building a your bot and then you will deploy the bot to a cloud platform. The Twitter bot tweets quotes randomly selected from a Random Quotes API service.
To build our Twitter bot, we first need to set up our Python development environment and install the required packages that are needed for us to follow along with this tutorial.
In addition to Python 3, we will be using:
- virtualenv – a development environment
- Requests library – a http library for humans
- Tweepy – an API wrapper for Twitter
- json – a built-in Python library for working with json
- time module – a built-in Python library for working with time
First of all, it is highly recommended and best practice to create a virtual environment before you begin any Python project. We will create a virtual ...