cd /d c:\ du -l 1 . ... output of du showing big directories ... cd /d C:\inetpub\logs\LogFiles REM for test C:\inetpub\logs\LogFiles>forfiles /M *.log /S /D -09/11/2015 /C "cmd /c echo @path" REM fo real C:\inetpub\logs\LogFiles>forfiles /M *.log /S /D...
James McDonald
Switching Wine versions using Homebrew on a Mac
After a recent brew upgrade I tried to launch one of my Wine applications and it exited with a "Program Error" screen Apparently when a brew upgrade runs it links to the version of the program that it has just installed. In my case it made wine version 1.6.2_1 the...
C struct written to file loses settings
I am having an issue with a Siemens WinCC control system that writes C struct data to files on disk under windows. The C function in the control system (see below) reads the Tag values from the user interface into a struct and then writes it to disk with a call to...
Installing Postgres 9.x for Postbooks on Synology Diskstation with Docker
I wrote a post about hacking another instance of Postgres onto the Synology Diskstation. But now that Synology has docker you can do it nicely. Don't know if I have included everything needed below but let me know in the comments if you have questions. You need to...
Run a command from your bash history
For years I have been typing history and then copying and pasting the result to the command prompt to rerun a command. But you can simply type history, make a note of the number and then type !xxxx where xxx is the number of the command. e.g.: history !1210
Who’s down with RPC? Apparently not me
Just got this error from an Outlook 2010 client: Cannot open your default e-mail folders. You must connect to Microsoft Exchange with the current profile before you can synchronize your folders with your Outlook data file (.ost). P1: 300032 P2: 14.0.7015.1000 P3: heqz...
Creating Passwords that don’t Require a Keyboard Epiphany using pwgen
Just rediscovered pwgen which I had forgotten all about. I'm still a fan of Secure Memorable Passwords for personal use though. But pwgen is great if you are wanting to automate installations and require random mysql table prefixes: # mysql table prefixes pwgen -A 3 2...
Google+ Posts missing images
If you have moved from one content management system to another. For example you move from Drupal to Joomla and you have a social media plug-in that posts your articles to your Google+ or Facebook page you might find when you move CMS's that your social media feed is...
Docker attach you hang
Docker attach is supposed to give you a bash shell But I have found on some containers that it just hangs when you run it: docker attach 54b38600e152 But this command works for me (and apparently allows multiple shells to attach) docker exec -i -t 54b38600e152 bash...
Glabels-3 almost had me beta
Just had an issue in glabels when I pointed it at a CSV file one of the fields was missing. The cause was glabels intelligently determining the CSV encoding to be non-unicode (ISO-8859) and then dutifully skipping the display of a field with the ? beta character in...







