PHP Object Inheritance Cascading Defaults

I’m still new to some aspects of object oriented programming.  I’ve been stuck on this one problem for quite a bit now.  I’d like to build a hierarchy of objects, where the child object inherit’s it’s parents and grandparents default property.

It seemed like such a simple thing to do, but the more I messed with it, the more it boggled my mind.  I was trying to extend a base classes and merge the defaults while i add more information to every extended class.   Take for example the following code:

I wanted class C to have the defaults of all parent classes. The above code works and outputs:

Array ( [a] => A [b] => B [c] => C )

Thanks to Stephan Miller for helping me figure this out.

IMG_20140517_235628

Powerman 5000

Powerman 5000 @ Aftershock, Merriam, KS May 17, 2014

I recently got to see Powerman 5000.  This was a good show.  If, you’re like me, and listened to a couple of their albums back in the day, but didn’t know they were still in existence.  Then this will be a pleasant surprise.  They put on a great show.  The energy is great, the opening bands were awesome.  All around this was a terrific evening at After Shock.

Powerman 5000 @ Aftershock, Merriam, KS May 17, 2014

Now, before I go to a show. I like to load up the headlining band’s discography and listen through all their music.  I like to familiarize myself with the music before the show.  So I made a play list on my Google Music account of every song they’ve done in order from newest, to oldest.  The newest single was pretty damn good, and sounded like the Powerman 5000 I knew.

I was super surprised to find the next album was comprised completely of 80′s hair band covers.  Some were pretty good, some were not.  Then the next album in line was mostly a rap album.  This kind of put me off, because this was not the Powerman 5000 I knew.  Well, needless to say I never finished the discography, but I went to the show and it was way better than I could have imagined.

Razor Wire Halo

Razor Wire Halo @ Aftershock, Merriam, KS May 17, 2014

As for the opening acts, Razor Wire Halo killed it.  They always put on a great show, and have lots of energy.  9 Electric was sound pretty good as well.  9 Volt Junkie definitely got the crowds attention and I thoroughly enjoyed their Killswitch Engage cover.

MySQL Current Configuration File

Windows 7 Partitioning

Having trouble getting a windows partitions bigger than 2 Terabytes?  It all comes down to cluster size.  For some reason my windows 7 is using 512 Byte cluster sizes.  When formatting a drive you can change the cluster size to be much larger than 512 Bytes.  They can be set up to 65,536 Bytes.

Cluster size Maximum NTFS Volume Size (bytes RAW)
512 2,199,023,255,040 (2TB)
1,024 4,398,046,510,080 (4TB)
2,048 8,796,093,020,160 (8TB)
4,096 17,592,186,040,320 (16TB)
8,192 35,184,372,080,640 (32TB)
16,384 70,368,744,161,280 (64TB)
32,768 140,737,488,322,560 (128TB)
65,536 281,474,976,645,120 (256TB)

 

To format a volume with an 8192 Byte cluster, use the following command:

format d: /fs:ntfs /a:8192

Replace 8192 with the cluster size you wish to use.

These commands must be ran as Administrator.

To check the cluster size of your current drive volumes, use:

fsutil fsinfo ntfsinfo c:

Replace c: with the volume you wish to check.

 

 

 

 

 

 

 

 

 

 

Source: http://support.microsoft.com/kb/302873

Run as Administrator

To run software with Admin privileges, simply hold ctrl+shift when you launch the application.  If you have UAC enabled, it will prompt you at this point before opening the software.

If you wish to use the mouse, simply locate the software in your start menu. Simply right click on the software and choose Run as Administrator.