WordPress Update Fun

Time to update WordPress to 4.7.3. I used the SVN method.
I was using an older version of SVN and required me to update the local checkout.
$ svn upgrade

Fine. Did it.

$ svn sw https://core.svn.wordpress.org/tags/4.7.3/ .
svn: E155025: 'svn switch' does not support switching a working copy to a different repository
svn: E155025: 'http://core.svn.wordpress.org/tags/4.4'
is not the same repository as
'https://core.svn.wordpress.org'
What?
$ svn info

Path: .
Working Copy Root Path: /.../blogs/chwalisz
URL: http://core.svn.wordpress.org/tags/4.4
Relative URL: ^/tags/4.4
Repository Root: http://core.svn.wordpress.org
Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Revision: 36122
Smells like I need to relocate, like I did when they moved from the automattic svn repo.  See codex Relocating From The Old svn.automattic.com
First see what it SHOULD be:
$ svn co https://core.svn.wordpress.org/tags/4.7.3 new-chwalisz-test
A    new-chwalisz-test/index.php
A    new-chwalisz-test/wp-config-sample.php
...

^new-chwalisz-test$ svn info
Working Copy Root Path: /.../new-chwalisz-test
URL: https://core.svn.wordpress.org/tags/4.7.3
Relative URL: ^/tags/4.7.3
Repository Root: https://core.svn.wordpress.org
Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Revision: 40218
Note the change:
Repository Root: http://core.svn.wordpress.org
to
Repository Root: https://core.svn.wordpress.org
Try?
svn switch --relocate http://core.svn.wordpress.org/tags/4.7.3 https://core.svn.wordpress.org/tags/4.7.3/
BUT — svn 1.7 supports the relocate option.
so maybe….
instead of
$ svn relocate http://svn.company.com/repos/trunk
we use
$ svn relocate https://core.svn.wordpress.org/tags/4.7.3/
Let’s try!
/blogs/chwalisz$ svn relocate https://core.svn.wordpress.org/tags/4.4
/blogs/chwalisz$ svn info
Path: .
Working Copy Root Path: /.../blogs/chwalisz
URL: https://core.svn.wordpress.org/tags/4.4
Relative URL: ^/tags/4.4
Repository Root: https://core.svn.wordpress.org
Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Revision: 36122
So does it blend?
$ svn sw https://core.svn.wordpress.org/tags/4.7.3/ .
NOW we have some conflicts. I did not mark as resolved – maybe should have…
/blogs/chwalisz/wp-content/themes$ svn st
D C twentyten/404.php
 > local file unversioned, incoming file add upon switch
D C twentyten/archive.php
 > local file unversioned, incoming file add upon switch
...
D twentyten/images/headers
D twentyten/images/headers/berries-thumbnail.jpg
...
Summary of conflicts:
 Tree conflicts: 138
/blogs/chwalisz/wp-content/themes$ cd twentyten/
/blogs/chwalisz/wp-content/themes/twentyten$ svn st
D C 404.php
 > local file unversioned, incoming file add upon switch
D C archive.php
 > local file unversioned, incoming file add upon switch
...
D images/headers 
D images/headers/berries-thumbnail.jpg
...
Summary of conflicts:
 Tree conflicts: 30
/blogs/chwalisz/wp-content/themes/twentyten$ svn revert --recursive .
Reverted 'archive.php'
Reverted 'single.php'
...
Reverted 'images/headers/berries.jpg' 
Reverted 'images/headers/path.jpg'
...
/blogs/chwalisz/wp-content/themes/twentyten$ svn st
/blogs/chwalisz/wp-content/themes/twentyten$ <nothing!!!>
Repeat until bored…
svn st is now clean, except for my manually edited themes.
Now visit the usual wp-admin/upgrade.php URL
Done!

Fun Conversion Buttermilk Math

For safekeeping, we froze leftover buttermilk into an ice cube tray. 14 cubes.

Now I need 2 cups of buttermilk.

Weigh a glass using my trusty triple beam balance. 280g

Add two random cubes. 340g

Add two more. 400g

So it looks like each cube is 30g

And by this table of buttermilk equivalent values it looks like 2 cups is 480g.

SO I need 480/30 cubes, or 16 cubes. I only got 14. Close enough.

Melt them in the measuring cup. 1-3/4 cups. Top it off with milk. Done.

The New Napster and Launchy

Rhapsody, the long-suffering little brother streaming music service, recently rebranded itself as Napster. Same app, different name. Big deal.

I noticed that I could not start the app with the great Launchy in my new Windows 10 install. Not sure if it worked in Windows 7.

Looking at Properties of the launch shortcut, in C:\Users\Me\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Rhapsody International Inc, I noticed that the shortcut has a weird extension, .appref-ms. Having come of age in the era of .com and .exe, this was unknown. Seems it is the launcher for the new  style Windows apps, and Launchy did not know how to find them.

Screenshot (3)

 

So I opened the Launchy options panel, and found the Start Menu folder was already in the search path for catalogs. The extension was missing. So I added “*.appref-ms”

DAC_20160723_Launchy_ms

Rescan, index increased by one. Works. Nice.

Screenshot (4)

Welcome to Windows 10

Finally beat the July 28th deadline for upgrading Windows 7 to Windows 10.

Made backups with Macrium Reflect first.  Paid for that one, got rid of the perpetually flaky Acronis.

Both machines (Intel Core Duo 2Ghz dual-core and old AMD dual core) upgraded successfully. AMD box slow, but it worked, with install apps and files in place. A little juggling the start menu to lose the junk, and we are back in biz.

A potential issue came up where the audio was crackling.  One post suggested the LatencyMon app from Resplendence Software.   Way cool. Said I had serious latency issues and could not host real-time software – like audio. Duh.

This post, Speakers Crackling since Windows 10 update, suggested I reinstall the old audio driver.  Not trying that yet.

Ultimately, this YouTube video, How to FIX Windows 10 Audio/Sound Problem , worked by running the non-low-power power profile. Not sure why that matters – tries to starve the CPU? Seems to work.

Then I replaced the CPU with Intel Core 2 Quad Q9650 3Ghz from eBay for $65. Windows 10 rebooted and barfed a few times; I had to reset the BIOS to even have Windows 10 detect the new CPU. Then I had an issue with the CPU fan, but I think that was related to the dust buildup. 5 minutes with the compressor outside cleaned it out, and using the great HWMonitor program,  cores are running 100-110F. Not bad. The machine runs very smoothly with the new two cores, for very little coin.

Compacting a VirtualBox VM Centos disk

At work I used Centos 6.4 to convert a large Subversion repo to Git. This required a VM with a 100Gb disk, more than my old iMac could deal with, to the point where I could not update to newer OS version or even run iTunes to update apps.

[dchwalis@imac ~]$ df -h
Filesystem      Size   Used  Avail Capacity   iused   ifree %iused  Mounted on
/dev/disk0s2   931Gi  915Gi   16Gi    99% 239830061 4150681   98%   /

This article “How can I reduce the size of a VM on disk” started me off. Then I found https://forums.virtualbox.org/viewtopic.php?p=34636&sid=5bbe19387a6797d599beb35ec2e8b96c#p34636. Looks like since I used a large portion of the expandable virtual disk, there was data in it, and could not be reclaimed. I needed to zero out the now-deleted files and then pack the virtual disk image.

The tool to zero out the unused storage is zerofree and I needed to build that. Luckily my VM had all the dev tools installed, so it was a simple make. I grabbed the latest version, 1.0.3.

[dchwalis@centos ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_vmxxfscv62979-lv_home
                      242G   74G  156G  33% /home

First bust the system down to runlevel 1 to prevent other processes from keeping the disk busy.

sudo telinit 1

Now how to run a tool on a mount that was being used. This is why you should ALWAYS create new disks and mount them instead of expanding the system disk.

(Mount command line missing. It disappeared into runlevel 1)
Something like

# mkdir /fred
# mount -o remount,rw /dev/mapper/vg_vmxxfscv62979-lv_home /fred

I ran zerofree on the device. That took a long time and my iMac kept sleeping. Not good.

# /usr/bin/zerofree /dev/mapper/vg_vmxxfscv62979-lv_home

Then to have fsck run when the VM started up, I did per “Force fsck on reboot

# touch /forcefsck
# reboot

Then back to to have

[dchwalis@imac ~]$ VBoxManage modifyhd --compact centos-64-x64.vdi
0%...10%...

This step took a while.

[dchwalis@imac ~]$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 931Gi 780Gi 151Gi 84% 204440272 39540470 84% /

So 16Gb free to 151Gb free. Looks like it worked. Lets start up the VM… Yay!

[1] http://askubuntu.com/questions/175739/how-do-i-remount-a-filesystem-as-read-write
[2] http://linux.die.net/man/8/mount
[3] http://ianozsvald.com/2012/07/26/using-zerofree-to-shrink-a-virtualbox-linux-image/
[4] http://frippery.org/uml/index.html
[5] “How can I reduce the size of a VM on disk”
[6] http://unix.stackexchange.com/questions/11100/how-to-make-ext4-filesystem-sparse

Fun with Dell Laptop WiDI

I was messing around with the WiDi driver to stream the Grateful Dead show tonite and disabled the Intel Video driver. At this point, the machine started up, did POST, did the swirly page and then a blue dim (not BSOD) screen came up and nothing. HD activity, not much else.

 Could NOT get safe mode to launch per (Fixya) How to get into safe mode
Using this article, (Dell) Inspiron 17R will not boot (5720) – I tried to change the UEFI boot to legacy boot and was able to run diagnostics and setup.
Then used Pre-boot assessment error 2000-0332, Inspiron 7720  to run the Pre Boot Assessment
After messing around, I was able to see
2000-0332 Video memory – Video memory integrity test discrepancy ePSA diagnostics detected a video memory failure. Please reset the system memory and update the BIOS to most current version/
  • Update to the latest BIOS.
  • Reseat the system memory
  • Turn off your computer and reconnect your LCD cable.
  • Repeat the ePSA diagnostics..
  • If failure continues contact Technical Support
It said to update the Bios, I was at A18, the latest was A19  (Dell) Inspiron 5720 System BIOS
I used (Dell) How to Create a Bootable USB Flash Drive using Dell Diagnostic Deployment Package (DDDP) to create a bootable flash disk. I then copied the new flash utility to the flash image, ran the program to create the flash booter. Booted fine, and ran the installer from the DOS command line. Success.
Reset the boot mode to UEFI or windows would not boot.
It came up with the same blue screen. I started whomping on the LCD/CRT key, thinking I had put the video to external CRT, and I got the login screen. Whew.
Now I need to turn on the safe mode boot option before I try again…
Now why didn’t I want a MacBook???

Dirty Printer Test Page

I started getting vertical dark lines in my ADF scans on the the highly great Canon MF4570dw Laser/Multifunction.

Use this to determine location of small bits of dust on your scans. Then clean the glass under the ADF guide, slide it out carefully.

Print the OpenOffice file Dirty Printer Test Sheet and then feed the ADF. Your white streaks can be located and the cleaning intensified at that location. Takes several tries in my experience.

See: Black vertical line on scans and inspired by the suggestion from Fixya Lines when scanned

Intellij IDEA SCSS File Watcher

I use IntelliJ IDEA on a Centos VM for AngularJS development at work, and I have a FileWatcher configured to compile the SCSS files from the designer into CSS when they change. It stopped working one day.

After days of bad behaviour because I did not have the correct CSS, I compared configs. Mine looked like (from the exported file):

<option name="arguments" value="compile $ModuleFileDir$/src/main/webapp/ui/src" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Compiles .scss files into .css files" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="scss" />
<option name="immediateSync" value="false" />
<option name="name" value="SCSS" />
<option name="output" value="$ModuleFileDir$/src/main/webapp/ui/src" />
<option name="outputFromStdout" value="false" />
<option name="passParentEnvs" value="true" />
<option name="program" value="/usr/bin/compass" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="$ModuleFileDir$/src/main/webapp/ui" />

Hers, as it turns out, did not check for syntax errors:

<option name="checkSyntaxErrors" value="false" />

And as it turns out, the designer just started delivering SCSS files with errors last week. So mine never got compiled. Fixed. Duh.