Random Stuff of Randomness

Simon's

Java NIO and NIO2 Overview

Java NIO and NIO2 interfaces bring some improvements to the file/stream interfaces. Let’s see what has changed since the dark ages of the inter-blago-tubes of the 90ies. Here is a brief history of the java I/O interfaces:

  • The first one is Java I/O that is introduced in 1996 in the very first version of the JDK.
  • The second, Java NIO has been added to the JDK in 2002, Java 4.
  • The third, in 2011, in Java 7, Java NIO2 was introduced.

Over time, the following improvements have been added: Buffered readers/writers, bidirectional channels, off-heap buffering, proper support for charsets and asynchronous operations.

Probably the biggest difference between java.io and java.nio is, however, that java.nio can be used in non-blocking mode. This means that multiple streams can run in the same process/thread. This should, in theory, speed up performance because task/thread switching comes with some cost.

Read more...

#! shebang for C programs

For testing it is sometimes very tedious to always compile and run the small C programs I use as utilities. So I thought, why not use the shebang for this. After investigating how the shebang mechanism works I figured a small bash script would do the trick.

Read more...

New HTML5 Tags

HTML5

In HTML 5 a series of new tags were introduced. I would put the new tags into the following caregories:

  • Document Structure: <article>, <aside>, <command>, <figure>, <footer>, <header>, <hgroup>, <nav>, <section>
  • Multimedia: <audio>, <canvas>, <embed>, <video>
  • User Interface (for Web applications): <details>, <datalist>, <meter>, <output>, <progress>
  • Highlighting/Layout: <mark>, <ruby>, <time>, <wbr>
Read more...

A list of Twitter Files Threads

Internets

Why is it so hard to find a combined list of all the “twitter files” threads?

Interestingly wikipedia.com makes it extra complicated by only citing any source but twitter ¯\_(ツ)_/¯

Therfore I am compiling a list of twitter threads:

Read more...

Windows: List applications binding a TCP Port

Windows Networking PowerShell

Have you ever needed to know what executable is binding to a specific port on windows?

Read more...

TimeMachine soooo, yester-year?

Unix bash Backup

The way Apples Time Machine works is really admireable. It is a fascinatingly simple solution in principle: Every incremental backup is a collection of hard links to the last backup. Then only the Files that have been changed are replaced with and updated copy.

Read more...

Interblag

Internets

Me got an Interblag again … a new one. The old one is … old.

Read more...

Frosty Piss my dudes c(_)

Random Stuff Nostalgy

A series of tubes™ - 1892, Ted Stevens

Back in the day … when the internets were just a «series of tubes», they where not yet clogged and Ted Stevens knew it!

Read more...
1 of 1