Author Archives: slopjong

Accessing the right method in Java

A inner class can call methods of an outer class.

public class Dummy1
{
	private class Dummy2
	{
		public Dummy2()
		{
			method();
		}
	}

	private void method() { }
}

So far so good but if the inner class has the same method this will be called instead. To avoid this ambiguity one can call the method in a more specific way. To be able to call the method of the outer class the prefix Dummy1.this can be added.

public class Dummy1
{
	private class Dummy2
	{
		public Dummy2()
		{
			Dummy1.this.method();
		}

		private void method() { }
	}

	private void method() { }
}
  • Delicious
  • Digg
  • Technorati Favorites
  • Reddit
  • LinkedIn
  • Facebook
  • Spurl
  • Twitter
  • Webnews
  • YiGG
  • MySpace
  • Yahoo Bookmarks
  • FriendFeed
  • Google Bookmarks
  • LiveJournal
  • Share/Bookmark

Lost connection of the hard drive

Once again I have some trouble with my backup drive today. The problem is that at any time the connection to my external hard drive gets interrupted. This is very bad if Time Machine, the backup software, is writing to the disk at the same time and there’s absolutely no rule when this appears. One more bad thing is that the system recognizes the lost connection but it hangs up until the cable is unplugged. It looks like the hard drive is going into a sleep mode but you can still hear the disk rotating. There’s a WD Caviar Green inside and after my research I’m sure that the case is the evildoer. This is a MacPower Pleiades 3.5″ FW400/USB I bought in last August.

These and those have the same problem with their Pleiades case and here’s a video of a guy getting nervous like me:

  • Delicious
  • Digg
  • Technorati Favorites
  • Reddit
  • LinkedIn
  • Facebook
  • Spurl
  • Twitter
  • Webnews
  • YiGG
  • MySpace
  • Yahoo Bookmarks
  • FriendFeed
  • Google Bookmarks
  • LiveJournal
  • Share/Bookmark

What does “attaboy” mean?

With granted permission of Paul Smith.

  • Delicious
  • Digg
  • Technorati Favorites
  • Reddit
  • LinkedIn
  • Facebook
  • Spurl
  • Twitter
  • Webnews
  • YiGG
  • MySpace
  • Yahoo Bookmarks
  • FriendFeed
  • Google Bookmarks
  • LiveJournal
  • Share/Bookmark

What does “rehearsal” mean?

With granted permission of Paul Smith.

  • Delicious
  • Digg
  • Technorati Favorites
  • Reddit
  • LinkedIn
  • Facebook
  • Spurl
  • Twitter
  • Webnews
  • YiGG
  • MySpace
  • Yahoo Bookmarks
  • FriendFeed
  • Google Bookmarks
  • LiveJournal
  • Share/Bookmark

What does “leave well enough alone” mean?

With granted permission of Paul Smith.

  • Delicious
  • Digg
  • Technorati Favorites
  • Reddit
  • LinkedIn
  • Facebook
  • Spurl
  • Twitter
  • Webnews
  • YiGG
  • MySpace
  • Yahoo Bookmarks
  • FriendFeed
  • Google Bookmarks
  • LiveJournal
  • Share/Bookmark