A stream to the see

by zemion
Posted in Tech Talk

Some TV channels (okay, most of them) offer some kind of possibility to stream their content online. Usually, those streams have to be viewed in a browser, and they are interrupted by a nifty amount of current ads. Let's look at a more convenient way to stream publically available content.

When opening such a site, let's for the sake of argument use the site of German TV channel Pro7 and, after logging in (it's free to create an account), let's pick a show and open an episode.

Read further

Even odd CSS makes sense

by zemion
Posted in HTML, CSS, JS

How can you format CSS elements based on their position? Say, every second element should be aligned to the right, whereas the first and last element should behave differently? This post gives some insight on how to approach such a problem.

Imagine the following situation: You have a Javascript slider on a webside, let's say in a webshop. Take for instance the webshop of alnaVela, a vegan online store with a great range of products. (Disclaimer: I'm a co-owner of the shop) What I have done there is formatting every second element on the other side. It's all done in CSS, and when an element is added, the slider adjusts automatically.

Read further

"Walk the Line" in JAVA

by zemion
Posted in Java

When traversing the file tree, JAVA provides a FileVisitor as part of the features intoduced with NIO2. With this interface, a file tree can be traversed to any depth, performing actions on the files and/or directories found on any branch. A nice feature and a lot faster than previous (recursive) solutions. Thanks, NIO2!

The official tutorial by Oracle mentions two methods to traverse the file tree:

Read further

Copycat has done it again

by zemion
Posted in Tech Talk

If you never had the need or necessity to copy a whole first level of directory structure without the files contained in Windows, this post isn't for you. Stop reading right now! If on the other hand you ever had to do that or something similar (e.g. copy the whole tree without files) - keep reading, you might find it useful.

A colleague came to me asking if I could help her copy a whole bunch of directories (for unified naming purposes). She already had considered the easy way: copy the WHOLE directory, delete all subdirectories manually. Too time consuming, yes, but we talk about a directory tree with approximately 57 gigabyte of data, carefully put in 50,000 files and 8,500 folders, of which 178 were on the top level (and thus needed in the final result). When additionally you have to copy the structure over to a different network drive (which we had to), we can agree that it's highly impractical.

Read further

EPG in OSMC

by zemion

In previous posts called "(IP)TV in OSMC" a simple solution for watching free IPTV channels in OSMC was introduced. Now you can watch TV - but how do you know what's on, and when it's on?

Enter EPG - the Electronic Program Guide you might be familiar with from different devices or even in print. And while it's not necessary to be able to watch TV, it makes selecting a channel so much more convenient.

Read further

(IP)TV in OSMC

by zemion

Watching TV in your media center can't even be called state of the art anymore, it's a must have. For watching Free TV, it's not even necessary to buy any DVB sticks or place your media center close to your SAT wall outlet. The only thing necessary is a stable and decent Internet connection.

First of all, I'd like to mention that this post is mainly focusing on TV stations in Germany, so I can't speak for any other regions of the world. I will strictly speak about what worked for me. Secondly, I know that there are many tutorials out there. Any search engine will give you a multitude of (video) tutorials on how to enable IPTV in kodi/XBMC/OSMC. I will focus exclusively on OSMC, but I assume for the other derivates it's a similar process.

Read further