Thursday, February 21, 2013

Wiping Hard Drives

I wanted to wipe a hard drive on my old netbook before selling it.  I had success by creating a bootable USB stick with DBAN - Darik's Boot and Nuke.

Pen Drive Linux :  Installs a OS image (iso) to a USB stick and makes it bootable
http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

DBAN :  a small Linux Distro for Nuking Hard disks.
http://sourceforge.net/projects/dban/

DBAN 'autonuke' wipes all drives on the system, including the DBAN USB stick, would be nice to know how to only wipe specified drives....maybe next time.

This looks like a useful tool to have in the box:
http://www.ultimatebootcd.com/

Thursday, January 10, 2013

Itunes Sync: X items could not be synced. See itunes.....

Try Making more space on the device, even if the usage bar in itunes may not be accurate.
Try deleting ipod photo cache.

Tuesday, May 22, 2012

StaticWeaveAntTask No source was specified for weaving

Getting the error below when running in Eclipse?

Exception Description: An exception was thrown while weaving: XXXXX
Internal Exception: Exception [EclipseLink-40002] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.StaticWeaveException
Exception Description: No source was specified for weaving

      
 Try running in a separate JRE:
     Ant View, Right Click entry, Run As >> External tools configuration
     Select this build.xml, JRE, Separate JRE

Wednesday, May 2, 2012

Postgres puttycyg no password prompt

I couldn't figure out why I would never get a password prompt when issuing postgres commands in puttycyg/cygwin terminal.  Sounds alot like this issue from 7 years ago.

http://archives.postgresql.org/pgsql-general/2005-11/msg00295.php

Solutions:
Put passwords in  here: /AppData/Roaming/postgresql/pgpass.conf

or use the Windows CMD shell.

Monday, April 16, 2012

Postgres not starting due to 1069 error

Problem: The postgres service fails to start with a 1069 (logon failure) error, even after I reset the password for the service login (postgres). Windows 7

Solution: The account was locked. Unlock it using the User and Groups tool, right click the user and look for the 'Account is locked out' checkbox.

Friday, March 23, 2012

Vaadin Sub-Window Scroll Bars not Appearing

Create a Sub-Window. Add more content than what fits in view. No scroll bars appear and I can't see some of the content. Why?

The cause: I was using VerticalLayout as the content of the Window and I had called setSizeFull(). VerticalLayout.setSizeFull() sets the Height to 100%. This effectively disables scolling in the sub-window. It seems that sub window content should always have undefined height.

From the Book of Vaadin: https://vaadin.com/book/-/page/layout.settings.html
The default layout of Window and Panel is VerticalLayout with undefined height. If you insert enough components in such a layout, it will grow outside the bottom of the view area and scrollbars will appear in the browser. If you want your application to use all the browser view, nothing more or less, you should use setFullSize() for the root layout.

Friday, February 24, 2012