Categories

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.

Google Nexus 6P

I finally decided my old Google Galaxy Nexus was done. I couldn’t use the phone in the house, it was having random meltdowns where apps would kill the battery in 4 hours, and was getting text messages duplicated inbound and outbound. Surfing was a slow nightmare. I just could not trust it as I could when it was new, and could not use it reliably for texting. I don’t text a lot, but I do need it to work.

So after reading a gob of reviews, I decided to go Google Nexus 6P, the new Huawei Nexus version in the phone form factor. I ordered the 64Gb version, and the Speck case in black and white. It quickly arrived.

Phone? More like a surfboard. Large, about halfway between the Galaxy Nexus and Nexus 7 Tablet. Fits into my hand, barely. Gorgeous display. I downloaded a selection of apps, redid the 2-factor setups on several accounts, restored a backup using Helium (was Carbon). Called Consumer Cellular (AT&T MVNO) to transfer the number – had to go to local Sears first to get the Nano-SIM, my existing Micro-SIM did not fit. After a bit I had to order cables – it uses the new Type-C USB format, and I needed USB to USB Type-C for connection to a laptop and car charger. Love the format, hate having to buy new cables, but now I won’t ever again.

It calls and texts in the basement in my pocket. Old phone did not. I spilled coffee on it today. The Speck case seals around the edge, and a ArmorSuit Military Grade screen protector prevented anything from touching the screen. I have dropped it several times, no problem. I did get the insurance.

Pros

  • Fast charge, good battery life. Phone used for 10 mins/day, some surfing, mostly WiFi.
  • Great display.
  • Fingerprint unlock is the best. Grab, unlock, go. I would never go back.
  • Android 6 Marshmallow works and looks great for fans of stock Android. No crapware.
  • Unlocked and compatible with Verizon AND AT&T. Can’t wait to try in Canada or Europe.

Cons

  • Big, sometimes gets away from you. If have small hands, it won’t be an easy one-hander. Hard to stow in pockets.
  • New cables required for USB Type-C
  • Expensive
  • That’s it. Great phone.

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

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

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", "mm.foundation", "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.