Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/homaneeg/public_html/textpattern/lib/constants.php on line 136
homan.ee Erwin's Blog tag:homan.ee,2005:852e2b43ac6f08113cd04ab7bed92889 Textpattern 2019-09-23T11:49:16Z Erwin Homan https://homan.ee/ Erwin Homan 2019-09-23T11:49:46Z 2019-09-23T11:49:46Z Agenda synchroniseren op iPhone: iOS instellingen voor Baïkal (CalDAV) , certificaten tag:homan.ee,2019-09-23:852e2b43ac6f08113cd04ab7bed92889/db0e572d79268b5a37ea423a8c89ce19 Aan het eind va 2018 kreeg mijn iPhone problemen met het synchroniseren van de agenda met Baïkal. Het automatisch synchroniseren op de achtergrond leek niet meer te werken.

Door een paar Baïkal account-instellingen op de iPhone aan te passen, kon ik de synchronisatie weer werkend krijgen. Eerst maakte ik de Baïkal-instellingen op de iPhone ongeldig en sloeg ze op. Daarna terugveranderen in de juiste instellingen. Hierdoor gaat de iPhone de hele agenda opnieuw synhroniseren.

Uit wat zoekwerk bleek dat iOS vermoedelijk weigert om (herhaald) te synchroniseren met een “self-signed” certificaat op de Baïkal-server. Er worden geen foutmeldingen getoond. Andere iOS-gebruikers met vergelijkbare problemen meldden dit op discussiefora.

Verder onderzoek leidde me naar LetsEncrypt. Voor mijn server-setup bestaat een script voor het gebruik van Certbot, een tool waarmee genereren en installeren van LetsEncrypt-certificaten grotendeels automatisch verloopt. Dat werkte prima. De Baïkal-server heeft nu een “echt” certificaat, en automatische synchronisatie van de agenda werkt nu weer op iOS.

]]>
Erwin Homan 2019-09-23T11:49:10Z 2019-09-23T11:49:16Z iPhone calendar synchronization: iOS settings for Baïkal (CalDAV), certificates tag:homan.ee,2019-09-23:852e2b43ac6f08113cd04ab7bed92889/2da68b0f86a52746f3fe34a5dc3aeaca Somewhere at the end of 2018, the Baïkal calendar synchronization on my iPhone started to show some problems. Continuous synchronization in the background did not seem to work.

By changing some of the Baïkal account settings on the iPhone, the synchronization could be made to work again. Intentionally, I create invalid settings, let the validation pass and save the settings. Then, I restore the original, correct settings again. As a result, the iPhone starts a full synchronization, which takes a few minutes in my case.

Further analysis showed that probably iOS does not like to synchronize using a self-signed certificate on the Baïkal-server. There is no error reported. Other users with comparable issues have reported this in discussion groups.

Some research led me to trying LetsEncrypt. For my server setup, there is a script available for using Certbot, a tool that automates issuing and installation of LetsEncrypt-certificates. Worked like a charm. The Baïkal-server now uses a real certificate and iOS synchronization works again.

]]>
Erwin Homan 2017-10-17T14:50:21Z 2017-10-17T14:51:23Z SQL - Berekening datum van de eerste dag van de week (ISO 8601) tag:homan.ee,2017-10-17:852e2b43ac6f08113cd04ab7bed92889/17c757d36405e230a6945599672f056d Berekeningen met datum-waarden in selecties op de database zijn lastig. Voor aggregatie naar weeknummers, waren we op zoek naar een manier om de datum van de eerste dag van de week te berekenen, uitgaande van een willekeurige datum en op basis van ISO 8601 weeknummers.

]]>
Erwin Homan 2017-10-17T14:37:01Z 2017-10-17T14:51:11Z SQL - Calculation of the date of the first day of the week (ISO 8601) tag:homan.ee,2017-10-17:852e2b43ac6f08113cd04ab7bed92889/243bf878796154668c76ec6be34e7e9f Calculations involving dates in database selections can cause headaches. For aggregation into “week buckets”, we were looking for a way to calculate the date of the first day of the week, given an arbitrary date and using the ISO 8601 definiton of a week.

]]>
Erwin Homan 2017-07-04T12:49:51Z 2017-07-05T06:29:11Z iPhone calendar synchronization: iOS settings for Baïkal (CalDAV) tag:homan.ee,2017-07-04:852e2b43ac6f08113cd04ab7bed92889/c09d46dfa9e3dabdf23b13d2e4dd8be3 For synchronization of contacts and calendar on iOS using a Baïkal-server running on Nginx:
  • The redirect rules (for iOS) must be correctly applied in Nginx, so in its base configuration.
  • The url’s that must be entered into iOS for connecting with Baïkal are different from what other Baïkal-clients use.

]]>