Selling better with machine learning

I’m a firm believer that you can only effectively sell if you know the thing you’re selling.

Case in point: I have missed opportunities to sell our company’s solution to potential enterprise customers because I could not articulate the intricacies of our system well enough.

Continue reading “Selling better with machine learning”

How to add prefix or suffix to image urls in Python

To add a suffix to an image url string in Python, you’ll need to use the re (regular expression) module. We can use regex to identify the file format (eg .jpg or .png) and insert some text just before it.

Adding a suffix to image urls (eg. from abc.com/img/image.jpg to abc.com/img/image_small.jpg) can be useful for getting smaller or larger images from a server that supports this handy technique. Shopify is a good example of a company that practices this.

Continue reading “How to add prefix or suffix to image urls in Python”