Skip to content
Showing user profile of selected author: -

Reading data from my Scuba Diving computer after Linux removed IrDA support

When I go Scuba Diving, I use two diving computers. It's always good to have a fallback, right? My main computer is a ScubaPro Uwatec Galileo Luna. That's a wrist mounted computer with hoseless air-integration. That means that a sender is connected to the first stage of the regulator, and it transmits data to the wrist computer. In addition the computer records data like depths, consumption, temperature, alarms ect. My fallback is an air-integrated console mounted Suuntu Cobra. I check this computer too when I'm under water, but mostly for the most conservative reading for the safety stop.

The Luna computer has an IrDA port, and using a USB Infrared Adapter (I'm using an IRwave 3902B500) I was able to read all the dive logs from the computer into Subsurface. However at some point, Linux decided that IrDA is no longer worth supporting, and they removed the support and modules in Linux 4.17.

Bummer.

It's possible to read the most basic data about each dve on the computer display itself, but you won't get all the details, and the profiles.

 

Continue reading "Reading data from my Scuba Diving computer after Linux removed IrDA support"
  • Twitter
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Reading data from my Scuba Diving computer after Linux removed IrDA support
  • Bloglines Reading data from my Scuba Diving computer after Linux removed IrDA support
  • Technorati Reading data from my Scuba Diving computer after Linux removed IrDA support
  • Fark this: Reading data from my Scuba Diving computer after Linux removed IrDA support
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at YahooMyWeb
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at Furl.net
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at reddit.com
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at blinklist.com
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at Spurl.net
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at Simpy.com
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support at blogmarks
  • Bookmark Reading data from my Scuba Diving computer after Linux removed IrDA support with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Google Summer of Code 2019 - PostgreSQL participates with 5 projects

For the 13th year, the PostgreSQL Project is participating in Google Summer of Code (GSoC). This project is a great opportunity to let students learn about Open Source projects, and help them deliver new features. It is also a chance to engage the students beyond just one summer, and grow them into active contributors.

In GSoC, students first learn about the Open Source organization, and either pick a summer project from the list provided by the org, or submit their own idea for review. After a “community bonding” period, the students have time to implement their idea, under supervision of mentors from the Open Source organization. There is also an incentive: first, Google pays the students for their work on improving Open Source projects. And second, having a completed GSoC project in a CV is well recognized.

Continue reading "Google Summer of Code 2019 - PostgreSQL participates with 5 projects"
  • Twitter
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Google Summer of Code 2019 - PostgreSQL participates with 5 projects
  • Bloglines Google Summer of Code 2019 - PostgreSQL participates with 5 projects
  • Technorati Google Summer of Code 2019 - PostgreSQL participates with 5 projects
  • Fark this: Google Summer of Code 2019 - PostgreSQL participates with 5 projects
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at YahooMyWeb
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at Furl.net
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at reddit.com
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at blinklist.com
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at Spurl.net
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at Simpy.com
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects at blogmarks
  • Bookmark Google Summer of Code 2019 - PostgreSQL participates with 5 projects with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Ansible: copy a directory recursive

Recently I was looking for a way to copy a directory with all subdirectories, using Ansible. For reasons beyond this post I couldn't use the synchronize (rsync) module. So I had to find a way to copy everything with basic Ansible steps.

 

Continue reading "Ansible: copy a directory recursive"
  • Twitter
  • Bookmark Ansible: copy a directory recursive at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Ansible: copy a directory recursive
  • Bloglines Ansible: copy a directory recursive
  • Technorati Ansible: copy a directory recursive
  • Fark this: Ansible: copy a directory recursive
  • Bookmark Ansible: copy a directory recursive at YahooMyWeb
  • Bookmark Ansible: copy a directory recursive at Furl.net
  • Bookmark Ansible: copy a directory recursive at reddit.com
  • Bookmark Ansible: copy a directory recursive at blinklist.com
  • Bookmark Ansible: copy a directory recursive at Spurl.net
  • Bookmark Ansible: copy a directory recursive at Simpy.com
  • Bookmark Ansible: copy a directory recursive at blogmarks
  • Bookmark Ansible: copy a directory recursive with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Replace and re-add a failed drive to a Linux software RAID

Most of my systems run on a software RAID 1 configuration (that is, two disks, where each disk is mirrored to the other). This way, one of the disks can fail and still all the data is available.

If a disk failure happens, the disk is replaced with a similar disk, and then needs to be configured and re-added to the RAID.

Newer systems all use the GUID partition table (GPT), and therefore allow almost unlimited disk sized. Instructions for re-adding a disk using GPT are a bit different from the days when MBR (up to 2 TB disk space) was used, therefore I'm writing them down here for future use.

 

Continue reading "Replace and re-add a failed drive to a Linux software RAID"
  • Twitter
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Replace and re-add a failed drive to a Linux software RAID
  • Bloglines Replace and re-add a failed drive to a Linux software RAID
  • Technorati Replace and re-add a failed drive to a Linux software RAID
  • Fark this: Replace and re-add a failed drive to a Linux software RAID
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at YahooMyWeb
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at Furl.net
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at reddit.com
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at blinklist.com
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at Spurl.net
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at Simpy.com
  • Bookmark Replace and re-add a failed drive to a Linux software RAID at blogmarks
  • Bookmark Replace and re-add a failed drive to a Linux software RAID with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Android Podcast Apps

A while ago I asked for recommendations for Android Podcast apps. From all over the Internet I got a great number of recommendations, and looked into all of them.

 

Continue reading "Android Podcast Apps"
  • Twitter
  • Bookmark Android Podcast Apps at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Android Podcast Apps
  • Bloglines Android Podcast Apps
  • Technorati Android Podcast Apps
  • Fark this: Android Podcast Apps
  • Bookmark Android Podcast Apps at YahooMyWeb
  • Bookmark Android Podcast Apps at Furl.net
  • Bookmark Android Podcast Apps at reddit.com
  • Bookmark Android Podcast Apps at blinklist.com
  • Bookmark Android Podcast Apps at Spurl.net
  • Bookmark Android Podcast Apps at Simpy.com
  • Bookmark Android Podcast Apps at blogmarks
  • Bookmark Android Podcast Apps with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

How long will a 64 bit Transaction-ID last in PostgreSQL?

At FOSDEM someone asked how long 64 bit Transaction-IDs will last.

To refresh: PostgreSQL is currently using 32 bits for the TXID, and is good for around 4 billion transactions:

fosdem=# SELECT 2^32;
  ?column?  
------------
 4294967296
(1 row)

That will not last very long if you have a busy database, doing many writes over the day. MVCC keeps the new and old versions of a row in the table, and the TXID will increase with every transaction. At some point the 4 billion transactions are reached, the TXID will overrun, and start again at the beginning. The way transactions are working in PostgreSQL, suddenly all data in your database will become invisible. No one wants that!

To limit this problem, PostgreSQL has a number mechanism in place:

  • PostgreSQL splits transaction ids into half: 2 billion in the past are visible, 2 billion in the future are not visible - all visible rows must live in the 2 billion in the past, at all times.
  • Old, deleted row versions are enevtually removed by VACUUM (or Autovacuum), the XID is no longer used.
  • Old row versions, which are still live, are marked as "freezed" in a table, and assigned a special XID - the previously used XID is no longer needed. The problem here is that every single table in every database must be Vacuumed before the 2 billion threshold is reached.
  • PostgreSQL uses lazy XIDs, where a "real" transaction id is only assigned if the transaction changes something on disk - if a transaction is read only, and does not change anything, no transaction id is consumed.

 

 

Continue reading "How long will a 64 bit Transaction-ID last in PostgreSQL?"
  • Twitter
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg How long will a 64 bit Transaction-ID last in PostgreSQL?
  • Bloglines How long will a 64 bit Transaction-ID last in PostgreSQL?
  • Technorati How long will a 64 bit Transaction-ID last in PostgreSQL?
  • Fark this: How long will a 64 bit Transaction-ID last in PostgreSQL?
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at YahooMyWeb
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at Furl.net
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at reddit.com
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at blinklist.com
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at Spurl.net
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at Simpy.com
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? at blogmarks
  • Bookmark How long will a 64 bit Transaction-ID last in PostgreSQL? with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Weather Forecast in openHAB based on OpenWeatherMap, using Ansible

After setting up OpenWeatherMap in openHAB, I had another project on my list: send a forecast for the next day.

That is rather easy to do with a Cron rule.

 

 

Continue reading "Weather Forecast in openHAB based on OpenWeatherMap, using Ansible"
  • Twitter
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Weather Forecast in openHAB based on OpenWeatherMap, using Ansible
  • Bloglines Weather Forecast in openHAB based on OpenWeatherMap, using Ansible
  • Technorati Weather Forecast in openHAB based on OpenWeatherMap, using Ansible
  • Fark this: Weather Forecast in openHAB based on OpenWeatherMap, using Ansible
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at YahooMyWeb
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at Furl.net
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at reddit.com
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at blinklist.com
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at Spurl.net
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at Simpy.com
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible at blogmarks
  • Bookmark Weather Forecast in openHAB based on OpenWeatherMap, using Ansible with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Install OpenWeatherMap in openHAB, using Ansible

Next item on my home automation todo list: weather, and forecast. No good system without that data!

After exploring the options which openHAB supports, I settled for OpenWeatherMap. Note: you need an account with OWM, the basic functionality is free, the paid options give you more and better forecast.

And of course, I install everything using Ansible, and can just repeat the entire installation if something does not work.

This setup is also used in a weather forecast for tomorrow.

 

Continue reading "Install OpenWeatherMap in openHAB, using Ansible"
  • Twitter
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Install OpenWeatherMap in openHAB, using Ansible
  • Bloglines Install OpenWeatherMap in openHAB, using Ansible
  • Technorati Install OpenWeatherMap in openHAB, using Ansible
  • Fark this: Install OpenWeatherMap in openHAB, using Ansible
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at YahooMyWeb
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at Furl.net
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at reddit.com
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at blinklist.com
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at Spurl.net
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at Simpy.com
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible at blogmarks
  • Bookmark Install OpenWeatherMap in openHAB, using Ansible with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Avoid "wear out" of SSD-cards in an openHAB system

You might know that problem: the brand new SSD in your system is super fast, but after a good time using it, the card is dead. Unlike spinning disks, which usually fail over time, and show I/O errors by blocks, SSD cards are prone to a problem called "Wear leveling". Blocks which are written more often will "wear out", and become unresponsible. More writes increase this risk. And a typical openHAB system does a number of writes all the time: every time an external status changes, it's written to the event log. By default the syslog is written to disk as well, and then there is a myriad of systemd services, writing status information into files.

 

Continue reading "Avoid "wear out" of SSD-cards in an openHAB system"
  • Twitter
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Avoid "wear out" of SSD-cards in an openHAB system
  • Bloglines Avoid "wear out" of SSD-cards in an openHAB system
  • Technorati Avoid "wear out" of SSD-cards in an openHAB system
  • Fark this: Avoid "wear out" of SSD-cards in an openHAB system
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at YahooMyWeb
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at Furl.net
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at reddit.com
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at blinklist.com
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at Spurl.net
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at Simpy.com
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system at blogmarks
  • Bookmark Avoid "wear out" of SSD-cards in an openHAB system with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca

Configure a FRITZ!Box in openHAB, using Ansible

A while ago I posted about adding a Fritz!Box to openHAB, using Ansible. Now I had to use the Playbook to install another Raspberry, and found that some parts are missing in my posting. Mostly at the end, when it comes to configuring the Fritz!Box.

Therefore let's run over all the steps again, and make sure that everything is covered.

 

 

Continue reading "Configure a FRITZ!Box in openHAB, using Ansible"
  • Twitter
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Configure a FRITZ!Box in openHAB, using Ansible
  • Bloglines Configure a FRITZ!Box in openHAB, using Ansible
  • Technorati Configure a FRITZ!Box in openHAB, using Ansible
  • Fark this: Configure a FRITZ!Box in openHAB, using Ansible
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at YahooMyWeb
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at Furl.net
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at reddit.com
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at blinklist.com
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at Spurl.net
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at Simpy.com
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible at blogmarks
  • Bookmark Configure a FRITZ!Box in openHAB, using Ansible with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca