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:
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.
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.
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.
A little demo of the output can be generated using the SJCL demo page:
Switching on and off a Raspberry Pi can be
a pain in the ass quite discomforting, with all the shutdown, waiting and pulling the power cord either directly from the Pi or the wall outlet, given you even have access.
A small expansion board can make your life a lot more comfortable.
Sometimes, the smallest problems call for the most complicated solutions. And sometimes, these solutions can be quite "hacky".
Ever have tried to insert an image into Microsoft Excel® and print it? Then you know what I'm talking about ...
When setting up this blog, I ran into a simple but common problem with the original theme: the footer was floating "mid-air" when the content was shorter than the page height.
The desired solution should not nail the footer to the bottom (fixing it, thus alway showing it independently of scrolling). Also, I was looking (for the n-th time) a CSS-only solution (well, including the necessary HTML sctructure).
... the first post on this site. I'd like to take the chance to tell you something about the purpose of this blog.
Recently I felt the need
... the need for speed to scribble down stuff I think might be useful to others out there having similar ideas and struggling with similar problems.