A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

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 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
                      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

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!

[5] “How can I reduce the size of a VM on disk”

πυθαγόρας Ζει

Why is πυθαγόρας Ζει on a sticker on the long piano string gadget in the Drums/Space of the 7/5/15 Grateful Dead show? (see 4:46:26). It’s Greek to me….

God of Carnage

Saw “God of Carnage” by Yasmina Reza last night with our friend Shannon Mayhall giving her usual magnificent performance. Dark, funny, and 80 minutes just flies. Make sure you sit behind the “tulip row”. At the Black Box Theater, McHenry County College, Crystal Lake IL tonight and next week.

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

Subversion on 1&1, redux.

Looks like someone used my post on building svn on 1&1 hosting.

I am such an AUTHORITY.

I just wish I could figure out how to build 1.8 without running out of memory. Andy has some hints for 1.6. Fails for me. Well, 1.4 seems to still work enough to update WordPress. Good.

Wordbooker is dead

Wordbooker is a WordPress plugin to post to Blog and Facebook at the same time? Saves time.

Steve the author decided it wasn’t worth it — free support and complaining jerks. Bummer. When it worked it saved time. I guess that’s what happens when you don’t pay for software.

Requiescat in pace.

New Windows desktop computer with full C drive? Check OS hibernate settings.

On my new work desktop computer with Windows 7, I noticed a 30Gb file hiberfil.sys filling drive C. Since I don’t use the hibernate function, I can disable it.

From a command shell as Administrator
G:\> PowerCfg.exe -H off

The file disappears.

lineman-angular updated to ng-annotate

We use LinemanJS to automate the build process of various AngularJS projects. Two newer projects use the most excellent UI-router package, and I had some issues. The resolve section required manual protection for minification; ngmin, the automatic minify protector included with lineman-angular, did not handle resolves correctly. So this code:

resolve: {
     liveConfig: function(ServerConfigService) {
       return ServerConfigService.fetchFutureConfig();
     liveLocations: [ "PickSchoolService", function(PickSchoolService) {
        return PickSchoolService.fetchSchools();

would not work, as the minifier would convert the ServerConfigService object to, say, a, and that would obviously not match the injected service. Blam.

 liveConfig: function(a) {  // what the heck is a??
      return a.fetchFutureConfig();

There has been a feature request outstanding on this for a while, So yesterday on a longer car ride, I finally got ng-annotate to work on my local project. I was all ready to grab the source for lineman-angular and submit a PR, and found davemo beat me to it:

davemo authored replaces ngmin with ng-annotate 2386ab76016b485a03dfbf684c4639e9235f8a4d

updated my local package.json to 0.3.0 and lineman build. Nice. Now I can rip out all that icky brackety stuff.

Now to make sure – I found that chaining

angular.module("app", ["ui.router", "", "ngStorage"])

.run(function ($rootScope) {
.run(function($log, $state, $localStorage, $timeout) {
.run(function ($rootScope, $state, $log, PickSchoolService) {
.config(['$logProvider', function ($logProvider) {
.config(['$httpProvider', function ($httpProvider) {

also had issues in minification. I had to break some files up with the explicit module statement for it to work.

angular.module("app")  // require redeclaring for ng-min support
    .config(function($httpProvider) {

angular.module("app")  // require redeclaring for ng-min support
    .run(function ($rootScope) {

I mashed them back together. Seems to work great now. Nice work, all.

Wise counsel, indeed

“If you are going to eat shi*, don’t nibble,” he says, in a phrase that should be immortalised in corporate finance textbooks.

Quoted from a Horowitz financial controller, from the review of The Hard Thing About Hard Things by Ben Horowitz, venture capitalist, in The Economist, 15 March 2014.