Ctrl+Space

The Intellisense Every Programmer Needs

I just got an email 1 hour ago from Jeff Bezos. Don’t mistake me for someone who is so close with Mr. Bezos to warrant a personal email. He sent it entire Amazon. The contents of the letter are as follows.

Fellow Amazonians:

I’m excited to announce that this Q3 I’ll transition to Executive Chair of the Amazon Board and Andy Jassy will become CEO. In the Exec Chair role, I intend to focus my energies and attention on new products and early initiatives. Andy is well known inside the company and has been at Amazon almost as long as I have. He will be an outstanding leader, and he has my full confidence.

This journey began some 27 years ago. Amazon was only an idea, and it had no name. The question I was asked most frequently at that time was, “What’s the internet?” Blessedly, I haven’t had to explain that in a long while.

Today, we employ 1.3 million talented, dedicated people, serve hundreds of millions of customers and businesses, and are widely recognized as one of the most successful companies in the world.

How did that happen? Invention. Invention is the root of our success. We’ve done crazy things together, and then made them normal. We pioneered customer reviews, 1-Click, personalized recommendations, Prime’s insanely-fast shipping, Just Walk Out shopping, the Climate Pledge, Kindle, Alexa, marketplace, infrastructure cloud computing, Career Choice, and much more. If you get it right, a few years after a surprising invention, the new thing has become normal. People yawn. And that yawn is the greatest compliment an inventor can receive.

I don’t know of another company with an invention track record as good as Amazon’s, and I believe we are at our most inventive right now. I hope you are as proud of our inventiveness as I am. I think you should be.

As Amazon became large, we decided to use our scale and scope to lead on important social issues. Two high-impact examples: our $15 minimum wage and the Climate Pledge. In both cases, we staked out leadership positions and then asked others to come along with us. In both cases, it’s working. Other large companies are coming our way. I hope you’re proud of that as well.

I find my work meaningful and fun. I get to work with the smartest, most talented, most ingenious teammates. When times have been good, you’ve been humble. When times have been tough, you’ve been strong and supportive, and we’ve made each other laugh. It is a joy to work on this team.

As much as I still tap dance into the office, I’m excited about this transition. Millions of customers depend on us for our services, and more than a million employees depend on us for their livelihoods. Being the CEO of Amazon is a deep responsibility, and it’s consuming. When you have a responsibility like that, it’s hard to put attention on anything else. As Exec Chair I will stay engaged in important Amazon initiatives but also have the time and energy I need to focus on the Day 1 Fund, the Bezos Earth Fund, Blue Origin, The Washington Post, and my other passions. I’ve never had more energy, and this isn’t about retiring. I’m super passionate about the impact I think these organizations can have.

Amazon couldn’t be better positioned for the future. We are firing on all cylinders, just as the world needs us to. We have things in the pipeline that will continue to astonish. We serve individuals and enterprises, and we’ve pioneered two complete industries and a whole new class of devices. We are leaders in areas as varied as machine learning and logistics, and if an Amazonian’s idea requires yet another new institutional skill, we’re flexible enough and patient enough to learn it.

Keep inventing, and don’t despair when at first the idea looks crazy. Remember to wander. Let curiosity be your compass. It remains Day 1.

Jeff

Weiterlesen »

In the previous post about How to read csv files from S3 using OpenCSV, we have seen how to open and files on S3 and read the comma separated data into list of hashmaps. In this article, we will see how to perform the reverse, writing data to the files.

Most of the fundamental concepts do not change. You need to create S3 client if you want to do anything with S3. The AWS profile configured should be of the user or role that has permissions to write to S3. The bucket policy should allow writing files. I’m not going to cover how to setup aws credentials and IAM policies in this post. The method getS3() in the complete code snippet below is going to return an S3 client just like in the previous post.

Weiterlesen »

In this world where large amounts of data is becoming a norm, it is very frequently stored in S3 in csv format for consumption through serverless database layers such as Athena. However, you often have to read the csv files without using Athena. In such cases, you can use ever useful libraries such as OpenCSV to read csv files.

This example shows how to use opencsv to quickly read the S3 files without the need to download them first. This helps when you do not have a way to save files locally of if you don’t have enough hard disk space. The solution is quite simple. You just have to create an InputStream from an S3 object using getObject method on S3 client. Once the input stream is created, we can use this to create a CSVReader from it.

Weiterlesen »

All the modern browsers have multiple types of storage mechanisms for using in your web applications. You may have already heard of cookies which are small bits of information you can store and they will be automatically expired. However, cookies can only store small amounts of information. The other kind of storage is sessionStorage, where you can store big chunks of information. However all the data stored in this will be lost as soon as you close the browser tab.

Local Storage

Local storage provides an intermediary option, it can store large amount of information and it will not be lost after the user closes the tab or browser. The data is persisted across sessions.
Browser Storages

Browser Support

This is supported in almost all browsers. As per the website https://caniuse.com, this is supported in more than 98% of the browsers. Here is the browser support chart for this feature.

Weiterlesen »

Last year has been a roller coaster ride for me. Adjusting to the new team, new technologies, new country, moving across continents and many more stressful scenarios. However something good came of 2019 by end of it. We have published our book, The Definitive Guide to AWS Application Integration. You can buy it from amazon any many more stores.