Not using port 80 on my install and want to change to another – eg 8888 – for https/ssl/tls access. Support forums say change $site[‘url’] in header.inc.php to https from http – but the port number is also hardcoded in the redirect url config where it sets the Location http header, further down the config file. So for now, I have changed this to also hardcode the port to 8888 instead of 80.

In any case the m3u file contained lots of links to IPTV stations that were no longer available of not responding anymore so I wrote an awk script to parse the m3u and based on an expression execute and action that was a system() call. AWK is a great tool to use search expressions and logic on records in files but is a PITA to debug – and my other attempts at using getline didnt help either. M3U files are a sequence of paired records which makes grep and shell scripting innappropriate I think (which I did try firstly) and awk seems a better way, even if it needs a bunch of calls out to another process/shell.

Marinade (or coat if you dont have time) minced pork in a mixture of 2 tablespoons each of cornflour, fish sauce, soy sauce (dark and light to give it some colour), oyster sauce; a chopped chili, a couple of cloves of garlic, some chopped ginger – it should be fairly wet and not too thick, perhaps like consistency of single cream.

Boil water for noodles.

Wok on high, starting cooking mince – it will clump together because of the cornflour. Add some thinly sliced white cabbage/bean-sprouts/brocolli even – whatever you like with pork. Garnish with chopped redpepper, coriander, sesame seed and oil, lime juice.

Open Semantic Desktop Search (OSDS), Tika and image/photo metadata

OSDS doesn’t especially handle image metadata out of the box – it seems it needs some massage and some code change.

Tika has a JPEG parser that I’ve configured in (see previous OSDS post [1]). It uses an ImageMetadataExtractor class to pull metadata from jpeg files. It can also do Tiff (perhaps RAW/NEF photo files too) and webp. However, to do this it used Drew Noakes metadata library. In doing so it can extract all sorts of metadata from photo or image files, not just Exif. IPTC or XMP. But the Tika image parsers then use a selection of these metadata fields (as defined in the Tika metadata Java interfaces). Any other metadata gets popped into Tika too with a Catch all Drew metadata handler – and generally this seems to mean that the “unknown” metadata field will appear in the map that Tika processes during output without a prefix like exif: or psd:. So I’ve pulled together those two sets of metadata as lists.

These will then have to be processed by OSDS and Solr. This means updating the enchance_* OSDS script to map them into Solr fields, and updating the Solr schema.xml so that it can pick them up and index them. Phew. (It might be nice just to OSDS to process ANY metadata that tika extracts and for Solr to process ANY metadata that OSDS posts to it, but it doesn’t look lke Solr can dynamically ingest unknown fields (you can train it in schema-less mode tho).

Aide memoire recipe

Dressing

Veg body

Blanche some sliced and sized green stuff – brocolli and fennel I used
I added some egg leftover from eggwash on the Feta-Spinach pastries I made – fried into an omelette then diced, mini size
Anchovies and oil chopped mini size all over. (2 x 15g tins ?!)
Some sesame seed and oil