When Not to Use Lock Files with Node.js
Probably one of the most common situations that you encounter when debugging a problem is the "works on my machine" scenario. This is often the result of different underlying dependencies on the system of the person with the bug and your own system. As a result both yarn and npm introduced so called "lock files" at one point that keep track of the exact versions of your dependencies. However, when you are developing a package that will be published to npm, you should avoid using such lock files. In this blog post we'll discuss why this is the case.
Quick Summary (tl;dr)
Lock files are super useful if you build an application like a web server. However, if you publish a library or CLI to npm, lock files are never published. Meaning your users and you might use different versions of dependencies if you use lock files.
What's a ...
Serverless Ruby on AWS Lambda with the Jets framework
When AWS launched Lambda in 2014 there was no love for Ruby. Platforms like Python, Node.js, and Java started the serverless revolution for hosting and running functions in the cloud. At the end of 2018, support for Ruby was finally launched.
You can build with Ruby on Lambda using raw functions and Serverless Application Model (SAM) templates as described in the getting started guide for Ruby on Lambda, but Ruby is all about developer happiness and when the config file is longer than your program the process could be described as painful. Enter the Jets framework a framework that "leverages the power of Ruby to make serverless joyful for everyone."
From Rails to Jets
Jets combines the experience of building a Rails application with the ability to deploy to AWS Lambda and related services, including API Gateway, S3, and DynamoDB. In this post we're going to see how ...
How to control and record voice calls with Node.js serverless functions
There are many ways to communicate with your friends and family. You might use good old SMS, Whatsapp, emails and of course phone calls. Recently, I came across a surprising new way of communication. It all started with my friend Michaela asking a question on Twitter.
Would it be possible to generate an RSS feed out of Twilio voice calls?
What she was looking for was a way to transform phone calls into an RSS feed referencing the recorded phone call. Why? Because she listens to many podcasts and sends very long voice messages to one of her friends via Whatsapp. As these messages usually don’t need a timely response, they both would prefer all the voice messages appear in their podcatchers rather than Whatsapp.
Let me introduce you to the idea of “PodBot - the surprise podcast from your friends”.
The idea is a follows: All you have to ...
Get Early Access to TwilioQuest 3, a PC RPG for Mac, Windows, and Linux
When we released the first version of TwilioQuest in 2013, developers had a great time leveling up their Twilio API skills and equipping rad loot on their (extremely primitive!) TwilioQuest avatar. A few years ago, we made it possible to participate in TwilioQuest even if you couldn’t join us for a live training event (BTW, you totally should). Today, we’d like to invite you to sign up to try a new version of TwilioQuest, which is unlike anything we’ve attempted before.
The next incarnation TwilioQuest is a top-down role-playing game inspired by the classics of the 16-bit era, playable on desktop PCs. In TwilioQuest, you will assume the role of an Operator in the top-secret TwilioQuest program. This elite unit of programmers and explorers has assembled to take on a shadowy organization known as the Legacy Systems, whose goal is complete control of the virtual universe we ...
Create an OpenCart SMS Extension to Notify Store Owners of New Orders
In this tutorial, we'll explore how to use the Twilio SMS API to create an OpenCart module that sends an SMS when a customer places an order, registers, or has their order history modified.
OpenCart is a free open source e-commerce platform for online merchants. It provides a professional and reliable foundation from which to build a successful online store. This foundation appeals to a wide variety of users; ranging from seasoned web developers looking for a user-friendly interface to use, to shop owners just launching their business online for the first time.
- PHP development environment using lamp (for Linux users), xampp (for windows users) e.t.c.
- Global installation of Composer
- Twilio Account
- OpenCart Installation
OpenCart requirement and Installation
Understand the OpenCart folder structure
The OpenCart is one of the great examples of MVC framework ...
Giving Families a Financial Lifeline with Twilio SMS
Photo: Rohan Pavuluri, CEO, Upsolve
During high school, Abed was kicked out of his home by his father. His mother helped with rent, but when she died in a tragic car accident, Abed became homeless. Like millions of Americans, Abed had no savings, so he turned to the shelter system. While there, Abed tried several times to get a job, but faced discrimination due to his financial circumstances. When a credit card company sent him a pre-qualified loan offer, he accepted it, seeing a way out. His debt mounted, and Abed felt trapped.
In December 2017, Abed attempted suicide. His reason? $50,000 of debt.
Every year, millions of low-income families fall into debt as a result of layoffs, predatory loans, and medical bills. This debt can lead these families to end up hungry, homeless, and in poverty.
Debt can lead people to feel powerless, but CEO Rohan Pavuluri and ...
Tech Community and Barbecue in Austin, Texas
As I get ready for tomorrow's day of learning, barbecue, and prizes, I'm reflecting on this spring as I've been getting acquainted with tech communities here in Austin, Texas.
Starting back in March for Women's History month, Austin was one of four cities to host our git hired --f "Women and Non Binary Humans in Tech" events centering skills that make it easier to get hired as a developer.
The Austin community delivered amazingly insightful talks from Victoria Hood, on creating a solid resume, Kelsey Huse introduced us to the myriad opportunities behind the opaque title "Support Engineer", CC Yang gave us a crash course on algorithms for interviews, and Twilio Champion Jenna Ritten compressed much of her full day git hired workshop on how to be a great candidate into a resource packed half hour session.
I was blown away by the knowledge these women put together to share ...
Call Twilio Functions from iOS in Swift
There are many things you can do from iOS but sometimes, for example, you may need to make a web request to fetch information. With Twilio Functions you can focus on writing the code that matters without having to maintain a server. This tutorial will show you how to set up a Twilio Function that returns a Pokemon joke or two and then call that Function from an iOS application.
Before you get started, you'll need
- a Twilio account to create a Twilio Function
- Xcode installed to make a rudimentary iOS app to call the Function
Make a Twilio Function
The Twilio Function in this tutorial will return a simple hard-coded Pikachu joke. To make that Function, from your Functions page, click the red "+" button to make a new Function.
If this is your first Function, you'll click ...
Nonprofit Tips: How to Engage Volunteers, Donors, and Constituents Via SMS with Twilio for Salesforce
At Twilio.org, we’ve seen first hand how communication technology can enable nonprofits to reach people in transformative ways. Yet harnessing the right tech isn’t always straightforward.
Let’s face it - engaging a diverse mix of volunteers, donors, and constituents is complicated, and it’s even more challenging when people have different communication preferences. Some people use email while others live by text. If you manage to reach people on the right channel, tracking and reporting on outcomes is also a chore when you need different tools and platforms for each communication channel. Whew!
That’s why we built Twilio for Salesforce. More than 40,000 nonprofits rely on Salesforce to get a 360 view of their constituents, and with Twilio SMS they can now supercharge their communications on the platform they already know. In just a few minutes, a Salesforce admin can install and configure the app ...
Announcing Salesforce Flex CTI GA
Today we are excited to announce the Flex Salesforce CTI (Computer Telephony Interface) is now Generally Available, with support for both Salesforce Classic and/or Lightning. Flex Salesforce CTI is included at no extra cost within your Flex license and enables you to supercharge your Salesforce Sales and Service Cloud with omnichannel customer communications. Get started here!
Once you’ve successfully installed the CTI integration, you will be able to access Flex via Salesforce’s openCTI utility bar component. This enables you to:
- Perform automatic search and screen pop to present contextual information to agents
- Keep the Salesforce screen in sync for agents moving between tasks with context switching
- Create an automatic record of engagements going through Flex
- Use Single Sign-On to authenticate directly to Flex when logging in from Salesforce
- Use dual monitors to let agents take full advantage of both Flex and Salesforce real estate
- In beta ...