Category Archives: General

Resizing images for vcard on Android

I have had problems importing vcards onto my Android phone. After a lot of troubleshooting, I tracked it down to embedded images in the card. The PHOTO;VALUE field to be precise. Some images worked and some didn’t, and looking at … Continue reading

Posted in General, Podcasts | Leave a comment

Preventing USB access

I have a Raspberry Pi next to my main workstation which I use for email. To control it I use the excellent Synergy Application over a ssh tunnel which means that I don’t need an extra keyboard or mouse. This … Continue reading

Posted in General | Leave a comment

Problem running pgcli fixed by installing from git using pip

Pgcli is a command line interface for Postgres with auto-completion and syntax highlighting. Recently it gave a problem under fedora. $ pgcli –host pg.example.com –port 1234 –username username –password –dbname pgdb Traceback (most recent call last): File “/usr/bin/pgcli”, line 11, … Continue reading

Posted in General | Leave a comment

NU.NL Podcast Algemeen nieuws RSS feed

I was delighted to discover that the main go to news site in the Netherlands nu.nl, is doing a daily podcast. I enjoy catching up on the RTÉ Morning Ireland, and the BBC Global News podcasts on the train, and I … Continue reading

Posted in General | Leave a comment

Refresh a proxy cache with Curl

This is what you’re looking for http://martin.hoppenheit.info/blog/2015/refresh-proxy-cache-with-curl/

Posted in General | Leave a comment

Jenkins giving Javascript error on Robot Framework reports

I was struggling with an issue with Jenkins and Robot Framework. After a test run I could open the results file but not report.html nor log.html. They failed with a strange JavaScript error, even though that javascript was enabled. A … Continue reading

Posted in General | Leave a comment

aws cp not working in cron

I just had a problem downloading some files from Amazon Web Services using the aws cp command. The script ran fine as the root user but did not when run in roots cron tab. A normal copy command that took … Continue reading

Posted in General | Leave a comment

Escaping XML with Sed

There are five XML characters that need to be escaped: ” &quot; ‘ &apos; < &lt; > &gt; & &amp; And here is the solution ruakh provided over on stackoverflow sed ‘s/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/”/\&quot;/g; s/'”‘”‘/\&#39;/g’

Posted in General | Leave a comment

ccClock

All the information is included This is also released as a podcast on Hacker Public Radio and on the Internet Archive. Over the years the image of the clock has been abstracted and stylized to a point where a long and … Continue reading

Posted in General | Leave a comment

I am trying to mount a cifs share aka smaba/smb/windows share, from a Debian server so I can access log files when needed. To do this automatically I create two mounts, one which is read only and is automatically mounted … Continue reading

Posted in General | Leave a comment