what is difference between mp4 and mpegts?

MPEG-TS is designed for live streaming of events over DVB, UDP multicast, but also over HTTP. It divides the stream in elementary streams, which are segmented in small chunks. System information is sent at regular intervals, so the receiver can start playing the stream any time. MPEG-TS isn’t good for streaming files, because it doesn’t … Read more

How does createOrReplaceTempView work in Spark?

createOrReplaceTempView creates (or replaces if that view name already exists) a lazily evaluated “view” that you can then use like a hive table in Spark SQL. It does not persist to memory unless you cache the dataset that underpins the view. The data is cached fully only after the .count call. Here’s proof it’s been cached: Related SO: spark createOrReplaceTempView vs … Read more

Download a specific tag with Git

will give you the whole repository. After the clone, you can list the tags with $ git tag -l and then checkout a specific tag: Even better, checkout and create a branch (otherwise you will be on a branch named after the revision number of tag):

Mercurial: no ~/.hgrc file

It is not there by default. You don’t need it to exist — it just can exist to customize how you use mercurial. You just need to create a hgrc file in your home directory and should work. Heres a great intro post http://hgtip.com/tips/beginner/2009-09-30-configuring-mercurial

How do I correctly clean up a Python object?

I’d recommend using Python’s with statement for managing resources that need to be cleaned up. The problem with using an explicit close() statement is that you have to worry about people forgetting to call it at all or forgetting to place it in a finally block to prevent a resource leak when an exception occurs. To use the with statement, create a class … Read more

Why I am getting java.lang.AbstractMethodError errors?

The simple answer is this: some code is trying to call a method which is declared abstract. Abstract methods have no body and cannot be executed. Since you have provided so little information I can’t really elaborate more on how this can happen since the compiler usually catches this problem – as described here, this means the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)