Category Archives: Uncategorized

I wrote my first JavaScript embed widget.

Configurable via the div in the code, you can change the width of the widget, and how many stories show. This is done through the data attributes: data-width and data-count. For the data-width you can specify px, % or vw.

 

 

A New Plugin – Plugin’s Last Updated Column

So Karissa asked me at WordPressKc’s Meetup group if I knew of a plugin that would show when plugins were last updated on the admin plugin’s page.  Right now you’d have to search up the plugin on wordpress.org to find this information.  I didn’t know of a plugin with this functionality, so Karissa suggested that would be a good idea for a plugin.  I told her I would look into this when I get some time.

I finally had some time yesterday to sit down and figure this out.  3 Hours after I started, it was done.  I’ve submitted this to WordPress.org’s plugin repository.

https://wordpress.org/plugins/plugins-last-updated-column/

More information can be found: http://stevenkohlmeyer.com/plugins-last-updated-column/

PHP Cascading Object Inheritance 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.

Danger Zone

Scripts I’m using in current projects

Coffee / Jade / SASS

 

coffee -o ./js -cw coffee

 

jade –watch -O . ./jade/*.jade

 

compass watch

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