Kodi and problems when media source address changes

August 10, 2017

Maybe you have experienced something like that too. You have a network attached storage and  you connect it (for example via nfs) to your kodi system running on another machine (e.g. on a raspberry pi). You change something in your network configuration and – bam – nothing works. This could happen, because kodi gets it media data via a network address composed of IP addresses instead of a host name. If this happens to you – and it happened to me several times – this sucks. The first times I just created a new media source with the new IP address and imported all the media again. But wouldn’t i be nicer to just migrate the existing entries in kodi to their new location? This can be done relatively easy.

First: Use the /etc/hosts to define a hostname for the ip address of your NAS. Why? Because if there are new changes in your network configuration, you only need one change and everything is working again. Hint: If you are using librelec (like me), you need to set the hosts configuration in /storage/.config/hosts.conf .

Second: This doesn’t help you in the first place, if all your media entries are still linked to the old location. But there is a solution too: Kodi uses sqllite databases to manage its state. So you can use a sqllitebrowser like http://sqlitebrowser.org/ to change the wrong location of the media entries. Just follow the howto on the kodi wiki!

After this: Enjoy!

Advertisements

Can I use this feature in a given web browser in a given version?

June 22, 2017

If you are developing for the web you certainly were confronted by the question if a given web feature (webrtcURLSearchParams, …) is supported by browsers and which versions of them. To answer this question you can use the website https://caniuse.com.

Check if port on remote server is open without using telnet

June 13, 2017

If you want to check if a given port is open on a given remote server, you can use telnet. More and more telnet disappears on server. So the question arises: What can we use instead of telnet? Short answer: netcat. For example:

nc -zv 192.168.1.15 22

Which checks if the port 22 (SSH) is open on the server 192.168.1.115

Android Studio on Linux 64bit: Emulator Timeout Problem

May 21, 2017

As a reminder for myself and maybe as a help for others: If you try to start the android emulator via Android Studio and the console tells you only this:

WARN – run.EmulatorConnectionListener – Timed out after 300seconds waiting for emulator to come online.

Then maybe you have fix your problem by removing the libstdc++.so.6 provided by the Android Studio so it uses the system one. For example:

~/Android/Sdk/emulator/lib64/libstdc++$ mv libstdc++.so.6 libstdc++.so.6.bak

Source: Stack Overflow: Cannot launch emulator on Linux (Ubuntu 15.10)

 

HP Elitebook 840 G4 and Linux Mint 18.1

April 10, 2017

(work in progress)

A friend of mine got a new notebook the HP Elitebook 840 G4 with Windows 10.  In this blogpost I want to document whats working and what not.

More detailed information about the hardware (lspci). You can also look at the the output of lspci -v

00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d11 (rev f1)
00:1c.3 PCI bridge: Intel Corporation Device 9d13 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Device 9d18 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Device 9d58 (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-V (rev 21)
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
02:00.0 Network controller: Intel Corporation Device 24fd (rev 78)
03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a804

Installation

I installed Linux Mint 18.1. The only non standard thing i had to do, was to shrink the Windows 10 partition with gnuparted. The installer had no option for that or I did not found it. Other than that, the installation went without a hitch and I was able to start both Windows 10 and Linux mint afterwards.

The kernel which is installed is linux-image-4.4.0-72-generic.

Configuration

As the display of the notebook has 2560×1440 pixel, the user interface was very small and difficult to use with both the mate and cinnamon flavor. Cinnamon has a configuration (Settings-General) where you can scale the interface for high dpi displays as that one. With the option “double” the cinnamon user interface is quite nice and usable.

  • Sound works out of the box
  • Special keys like dimming the display or muting work

Problems

Wifi

As of now, the wifi is not working. There seems to be drivers missing. Output of lshw

*-network UNCLAIMED
description: Network controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: 78
width: 64 bits
clock: 33MHz
capabilities: cap_list
configuration: latency=0
resources: memory:d8a00000-d8a01fff

While lspci gives me

Network controller: Intel Corporation Device 24fd (rev 78)

Misc

  • The clock is changing in weird ways when booting into windows and linux.
  • Standby does not seem to work.

Comic: Days Off Versus More Pay

February 4, 2017
Days Off Versus More Pay

Days Off Versus More Pay

Comic: It’s not what it looks like

January 24, 2017
I swear to you - our bond was only emotional and physical, never contractual like what you and I have!

“I swear to you – our bond was only emotional and physical, never contractual like what you and I have!”

Comic: Eat Your Vegetables

January 19, 2017

1484841914-20170119

Looking for open source and privacy friendly android apps?

January 18, 2017

If you are interested in open source and privacy friendly android apps you should have a look at this two projects.

The group Privacy Friendly Apps are a collection of Android-Applications, which are optimized based on privacy. This means that only a minimum of permissions is used. There are no unnecessary permissions, e.g. a torch application would ask for a permission to read the contacts.

They provide apps like dicer, sudoko, weather and more. You can find a list of all their apps in the google playstore.

Simple Mobile Tools: A group of simple, stupid, open source Android apps with customizable widgets, without annoying ads and unnecessary permissions.

They develop camera, file-manager, gallery apps and more. You can find the apps on github/f-droid and play store.

Debugging scalability issues in action: Twitch Plays Pokémon

December 28, 2016

On Infoq.com you can wath a presentation about that:

John Rizzo introduces Twitch’s chat’s architecture, telling how their engineers investigated and worked through the issues in what turned out to be a make-or-break situation for the company.