Auto-playing Videos on Websites

Tags

,

Earlier, we used to have animated GIFs. Now we have auto-playing videos. On many websites, I find auto-playing videos. While I understand the need of the websites to start playing media, I get irritated by such videos.

On visiting a web page, we start reading text on the page. But with auto-play media, we have to scramble as we suddenly start hearing music and voices. And such media are making it hard to turn them off.

In fact, even on a site like LinkedIn, videos posted by people start to auto play when you spend something like 2 seconds on the post – which is the time it takes to read the title of the post.

Advertisements

Tilted Horizon 1

Tags

,

The company I work in, has created social media groups using Yammer. One of the groups that I participate in actively, is the photography group. As many people post images on the group, we get to see a lot of variety and also a lot of creativity.

Once in a while, the common complaint mentioned for the photos is the tilted horizon.

During my recent visit to the Delhi and Agra, I took many pictures. On review, I found that many of those images have a tilted horizon.

While taking a picture, either we do not realize that the image is titled or we take a tiled image for the sake of creativity, but when viewed, the eye is not comfortable and immediately detects the tilt, what with angled buildings the like.

Python Pickle – Fragile

Tags

, , , ,

Recently, I was working on a text analytics application to search documents using Python. To reduce the time taken to display results, I split the application into two stages – corpus creation and search.

In the first stage, I parsed the documents and stored them into a corpus, using suitable pickle files. In the second stage, I loaded the corpus data from the pickle files and performed search using the user provided text.

But I faced some difficulty handling pickle files.

Apparently, pickle files store a ‘context’ when they are written. And this ‘context’ created trouble.¬†When I created a pickle file from a separate program and tried to read it using my text analytics application, it gave an error. The solution is to either incorporate the corpus update functionality in the main application, or to update the context information such that it matches that of the main application.

Same concept, different subject 3

Tags

, , , ,

In a previous post titled Same concept, different subject, I mentioned about using Shutter Priority mode to photograph different things, namely fire and water. In another post – Same concept, different subject 2 – I shared some pictures of the effect with water.

Here are some pictures of fire.

Link

Same concept, different subject

Tags

, , , , ,

One of the most common things that we try using the Shutter Priority mode on the DSLR is either to ‘freeze’ an action or to ‘slow down’ an action. For example, we try to ‘freeze’ a runner or a bird or a helicopter, while we try to ‘slow down’ a waterfall (to achieve ‘silky smooth’ water).

A fer months ago, I tried using the shutter priority mode on a campfire with interesting results.

textblob python

Tags

, , , ,

Recently, I was experimenting with text analytics in Python. One of the modules available is TextBlob. As is standard, the way to learn how to use a package is to look for a related sample and run it on your system.

And that is precisely what I did. I copied the sample into a .py file and ran it.

On execution, Python gave an error – ImportError: cannot import name ‘TextBlob’

Did a Google search and one of the solutions was interesting. It mentioned that you need to rename your file from textblob to something else. And that is exactly what I had done. I had named the sample as textblob.py. Hence it was searching for TextBlob in the source, which obviously was not present. I changed the name and the sample started working.

Bottle strength and design

Tags

, , , ,

A few weeks ago, I bought a 500ml cola bottle.

As it is not possible to consume the whole bottle in one go, we need to cap the bottle and keep it for later. But, the cola loses its fizz, as it is no longer under pressure inside the cola and the cola itself goes flat.

To preserve the fizz, I poured the cola from one bottle into two smaller bottles. One of the bottles was a smaller cola bottle, while the other one was a juice bottle. After some time, I noted that that the juice bottle had its sides bulging out.

I realized that this was happening due to bottle design.

The larger cola bottle and the smaller cola bottle essentially are tubes. but the juice bottle was a square. Due to their tube / circle design, the gas in the cola puts equal pressure on the sides of the cylinder. But in case of square design of the juice bottle, there is unequal pressure. There is more pressure on the walls of the bottle as compared the corners.

Interesting to know how small things can have big implications.