Tuesday, January 22, 2019

Updating Exif Data on JPEG Pictures

I have all these pictures and more are coming.  I am concerned about 20 or 40 years from now when we look at them and say "who was that?".

I feel the solution is to update the Exif data which is embedded in the picture.  I have been trying to find a way to update the Exif data.  Windows 10 and  and Mac OS have the ability built in.  I am still working on a way to update it in Android and IOS using a web page.

To update it on Windows 10, right click the picture, select properties.  Click on the Details tab.  The first section is editable.  Most of the other parts are not.  Below you will see that the Apple Title and Description are correlated to the Windows Title and Description.

On MacOS, I found you can modify the Exif data by opening the picture in the Photos app and running Command-I that will show the following screen which will allow you to update the Title and Description by clicking on the line you want to change.

You can also use TheXifer to change these and many more Exif fields.  It is free for a limited amount of photos per day.  You can link it to your Dropbox, Flikr and Google Drive accounts but I am concerned about security risks.  You have to assume that they keep any photo you upload but I doubt they spend much time figuring out how to exploit the photos on an individual basis.

I am working on a small VM to update a limited number of fields by a web page that uploads the file, changes the fields and then downloads the file again.  Using PHP does not seem to be an easy way to make the change.  This is a portable, watered down version of TheXifer.

Dry(er) information:
The Exif data is written in accordance with an Adobe standard called XMP.  It was later adopted in ISO 16684-1:2012 which has been updated.

If you add a title or description and then edit the JPG with an editor such as Notepad++, you can see the data in several places under XML tags and in binary portions of the file.


Friday, October 26, 2018

Fix our windows

The rails on my window come off. To get them to come off intentionally put the clips on the side top out and push up. Sometimes the rail comes off and goes into the top. You have to pry the block at the top out and pull down on it until it gets in the position.




  • The top of the window (sash cam) is replaceable by using and H 3943 from primeline.net.
  • The mechanism on the sides of the window with the spring and the cable are called a block and tackle balance.  Ours are CMC 5/8" Caldwell series 86BT with a 15P142 Winged top and 15P102 Winged bottom.  I was able to replace them using the website windowrepairparts.us.

Saturday, July 14, 2018

Pressure washing a pool

I have acid washed my pool a couple of times and the results were not good.  I saw streaks where the acid went and still got algae back.  This time a pool guy said we should pressure or power wash it.  The pool was bad.  The water was green, the sides were black and the bottom was slimy.  We couldn't keep the chlorine up.  The in floor jet system was getting junk caught in the screen.

The pool guy replaced our DE filters and fixed our backwash valve (which you are supposed to grease every time you backwash).  We then drained the pool using a sump pump since the normal pump couldn't keep a vacuum to get all the water out of the bottom.  We had to finish emptying the pool using the neighbor's shop vac.  Then my wife decided to use a bug sprayer filled with chlorine on a mist setting to spray the sides (don't breath it or get too much on your skin).  She then shot the sides with a 3000 PSI pressure washer with a 40 degree nozzle.  She said she had to repeat this 3 times but the pool looks great.

The pool is 20 years old and apparently plaster is only supposed to last 12 years so we lost more plaster and the pool surface is rough.  The roughness makes it easier for algae to form.



Tuesday, June 12, 2018

Adding hosts to Nagios Core 4.3.4 on Linux

Nagios wants you to buy Nagios XI which makes it easy to add hosts using the web page.  If you want to use the free Nagios Core and want to add a windows host, edit /usr/local/nagios/etc/objects/windows.cfg, copy the first "define host" section and add it below the first define host.  You then need to change the {IP} "address", the host_name and the "alias" to something new.  Save the file and restart Nagios (systemctl restart nagios?)

If you are adding a linux host, the cheap way is to edit /usr/local/nagios/etc/objects/localhost.cfg and repeat the above with the first defined host.

Adding a switch requires you to edit /usr/local/nagios/etc/nagios.cfg and uncomment the switch.cfg line.  Then edit /usr/local/nagios/etc/objects/switch.cfg.



Sunday, December 17, 2017

Changing Interconnected Smoke Alarms

Apparently you are supposed to change smoke alarms every 10 years.  Ours lasted 18.  We did have to change the batteries about once every 2 years.  We also had to blow dust out of them after calling the fire department because they wouldn't shut off after we had them for about 10 years.

The final call was the alarms going off even after we replaced the batteries.  When it came time to replace the alarms, I realized how little I knew about them.  I knew they were interconnected and that they ran off house power when it was available.

When it came to ordering them, I knew we had FireX but they were bought out by Kiddie.  I was concerned about the connector.  I could see that you could buy an adapter from FireX to Kiddie but it was about $3 compared to the whole price of an alarm which was $12 making it relatively expensive (times 7 alarms in our house).  I researched and decided to go with First Alert since it was a little cheaper and seemed to match the FireX adapter.


  • Unfortunately when I got the alarms, the adapter was narrower and did not match.
  • Fortunately, the alarms came with an adapter with bare wires.  
  • Unfortunately, I had to turn off the power to the circuit so I didn't shock myself and I didn't know what circuit provided power for the smoke alarms (turned out to be the master bedroom).  
  • Fortunately, there is a green LED that tells you if there is AC power and my daughter watched until I flipped the right breaker and the green LED went out.  
  • Also fortunately, the old adapters were wired in with existing wire nuts so I only had to strip the interconnect line on the new adapters.
I had to replace the mount on the ceiling by loosening the screws that held the old mount.  Also remember that the ground for the AC power is also the ground (white) for the interconnect so make sure you have that wired properly or the interconnect won't work (like the last alarm didn't work for me).

Sunday, December 3, 2017

Mount Veracrypt encrypted system drive

I encrypted my laptop (a Lenovo Yoga 700) with Veracrypt because I was to cheap to by the Windows 10 business version.  Later, the laptop died (display problems). I should have read the "print these instructions" better.  I bought a SATA M.2 (which is the "hard drive" which looks like an old memory stick) to USB adapter and plugged it into another computer with Veracrypt installed. 

I tried to mount it with long waits and screens that say things about "incorrect password" and "not sure this is a volume".  After playing with VMs to try to boot off the rescue USB and worrying that I would never see my data again, I tried to recreate the problem by encrypting a Windows 7 VM.  In the process, I read the "print these instructions" window. 

It says quite clearly to open Veracrypt, select the device, select a drive and select 'System' > 'Mount Without Pre-Boot Authentication'.  Then enter your password.

The real page that talks about this is here.

Wednesday, July 19, 2017

Packing wheel bearings

If you buy a used (especially older) trailer, you should worry about how much grease is in the bearings, but not to much.  I bought at least a 20 year old trailer, and one of the bearing buddy's (in place of the dust cover at the end of the axle) was missing so I was concerned about the bearings.

I called my older brother and he said you should check the seal (the piece between the axle and the hub on the back of the wheel).  If it is old, cracked or brittle, the grease might leak out and then your axle/hub will overheat and you might see it going by in front of you as you are going down the road.  The problem is that if you pull the tire off, you will probably ruin the seal anyway.  There are some numbers on the seal that might help you find the right size.  There is a spring at the inside center of the seal that needs to be in the proper place.

You may not need to pull the hub if there is a grease nipple into the hub like my quality Harbor Freight trailer had.

I am open to comments on how to tell without pulling off the seal but you should at least visibly check.

  • You take the wheel off
  • You pull the dust cap off the center of the hub
  • You pull the cotter pin (don't lose it)
  • You unscrew the slotted nut
  • Pull out the hub and a washer and a bearing will come out.
  • You can put the slotted nut back on and use it to pull the seal and bearing out the back but it will damage the seal.  I used a bicycle handle because it wasn't as rigid and didn't hurt the seal as much as the PVC pipe I used.  Something rubber will probably suffice (maybe a screwdriver handle?)
  • Get a lot of paper towels because the grease is nasty.
  • Use gas to wash off the parts (or some degreasing agent if you don't like the thought of handling gas).
  • Decide if you need a new seal.
  • I used blue marine grease because it was for a boat trailer.
  • Put the grease in the palm of your hand and smash the back of the bearing in it.  You can return the excess to the palm of your hand.
  • Repeat above until there are no gaps in the bottom of the bearing.
  • Push the front of the bearings into the blob of grease in your palms making sure you cover the gap in the front of the bearing.
  • Put some extra grease inside the seal and inside the hub (the hub does not need to be completely full)
  • Put the inside bearing in (my bearings were both the same size but the larger bearing usually goes on the inside) with the narrow end in first and then tap the seal in using a rubber mallet or board on top of the seal so the seal is not damaged.
  • Put the hub back on and put some more grease where the outside bearing will go.
  • Put the outside bearing in with the narrow end in first (it will be like this  > < ).
  • Put the washer on with the scored/scarred side in first.
  • Maybe put in a little more grease outside the bearing
  • Put the slotted nut on and and finger tighten
  • IMPORTANT: put the cotter pin back in.
  • Put the dust cap (or bearing buddy) back on and then put the wheel on.
Here is a Youtube video that I found helpful (I liked to hear him call it the carter pin too):
https://www.youtube.com/watch?v=akh0WhkudrM