Setting cookies to subdomains in JavaScript

We've recently faced a problem of setting a cookie from foo.mycompany.com to all subdomains in a *.mycompany.com domain.

The solution seemed pretty straightforward: just set a wildcard cookie to .mycompany.com (note that the first character is a dot). However, we had to determine the target domain (the actual value of “.mycompany.com”) automatically because our code is fired on tens of thousands of different domains.

And here came the problem: the list of Top-Level Domains.

How to create better reports

A report is probably the most common way of displaying data within any substantial business environments. Unfortunately a lot of reports we come across are simply dull and visually unpleasant. Say no to reports in PDF format! We cannot neglect the power of traditional plain PDF form, although we should not feel excused from being creative and resolute. There is no need to stay idle when technology allows us to experiment a little. We asked ourselves the following questions: Shall we make the reader download a separate file? How many of them decide not to? Are there any solid reasons to bear with closed format limitations? And finally: can we create a new quality of report by designing it in a well-known form of a website? How to create better reports?

How we connect our apps to dev environments

One of the most annoying drawbacks of developing desktop and mobile apps is the inability to switch between dev and production environments. When a client tells us about a problem with the app, our developers can’t reproduce the problem using the same app that is used by the customer. Fortunately, we found a neat solution. We hard-code dev & production servers’ addresses inside the app that is released to customers. Then, depending on the platform, we use one of the tricks that tells the app to connect to the dev environment.

Intelligent typing indicator

Do you recall the situation of writing a text message to a friend and seeing the following indicator: “X is now typing…”? When most of us see this information, we stop typing and wait for the friend’s response. But so does the friend. As a result, everyone waits for the second person’s reply and nobody sends a message for a while. We noticed the same problem when our customers talked with their clients using LiveChat.

6 tips for clear email communication

Email has been with us for 20 years now, but we can still improve the way we use it with a few easy tips. Writing proper emails gives your team a number of benefits: everyone is on the same page when discussing a topic, there’s a higher probability of inducing valuable discussion, it’s easier to get back to discussed topics after a long time. Tips mentioned in the article result from my experience gained when working with the LiveChat team. Thankfully, all of us understand that writing proper emails is important. It helps us work more efficiently and, as a result, build a better product.