the director. [ mike centola's blog ]

11Jan/110

New Review: Lumintop L1C Tactical Flashlight

Just finished up a review on a new flashlight that I picked up at the gun show this past weekend from my friends over at VRI Tactical. It's a great little piece.

Lumintop L1C Flashlight

Check out my review: REVIEW :: Lumintop L1C Tactical Flashlight

6Jan/110

Sweet. MBP. 8GB RAM.

Recently decided to purchase some RAM upgrades for my laptop. It's not that it wasn't that fast with 4GB, but when using a 2GB RAM windows 7 VM (VMware Fusion), things started to slow down. I still need to use windows in a VM for software applications like QuickBooks, and to access the KVM switch we have out in Buffalo. I purchased the upgrade from Other World Computing, aka macsales.com, where it was only about $130 for the upgrade. It was slightly higher than newegg, but OWC had the video card upgrade for my Mac Pro (A whole different fiasco). Anyways, the laptop is running lightning fast :)

RAM Upgrade Screenshot

31May/0926

Saving state with the jQuery Accordion Menu

I have been working on the new True Negative website pretty much non-stop lately and I'm using several differernt things from the jQuery JavaScript library. One of these is the jQuery Accordion Menu, from their User Interface library. It's a great simple menu that can be implemented with very little javascript code.

One thing that it doesn't inherently support is saving the state between webpages, which is something I had wanted since I'm using it as a menu, not just for content display. Functionally, I knew what had to be done in order to get it to save state. It was obvious that I needed to use cookies and some quick javascript to save what menu was open. I then came across the jQuery Cookie plugin, which really simplifies working with cookies in jQuery.

Setting a cookie with the plugin is as simple as follows:

$.cookie('cookiename', 'cookiecontents');

The accordion menu has an event change attribute, which can be set to a function or just inline code. Using both this feature and the cookie plugin, it was very simple to write the code that I needed in order to get the result I wanted. Here is the code and I will explain it below:

// accordion menu
$('#menu').accordion({
	header: 'h3',
	navigation: true,
	active: '.selected',
	autoHeight: false,
	clearStyle: true,
	collapsible: true,
	alwaysOpen: false,
	animated: 'slide',
	change: function(event,ui) {
		var hid = ui.newHeader.children('a').attr('id');
	if (hid === undefined) {
		$.cookie('menustate', null);
	} else {
		$.cookie('menustate', hid, { expires: 2 });
	}
}
});

// check cookie for accordion state
if($.cookie('menustate')) {
	$('#menu').accordion('option', 'animated', false);
	$('#menu').accordion('activate', $('#' + $.cookie('menustate')).parent('h3'));
	$('#menu').accordion('option', 'animated', 'slide');
}

The first section is pretty straightforward. It defines and applies the accordion menu to a div tag with an id of menu. All of the various options are laid out in the Accordion docs and I just set some of the standard ones in order to get the look and feel that I wanted. The important part is the change option:

change: function(event,ui) {
		var hid = ui.newHeader.children('a').attr('id');
	if (hid === undefined) {
		$.cookie('menustate', null);
	} else {
		$.cookie('menustate', hid, { expires: 2 });
	}

Here you can see that I check the value of the menu that is open to see if it is undefined, which would mean the menu is closed. If it is open, it will have a value in there, so I store that in a cookie called "menustate" for use when the page is reloaded.

// check cookie for accordion state
if($.cookie('menustate')) {
         $('#menu').accordion('option', 'animated', false);
         $('#menu').accordion('activate', $('#' + $.cookie('menustate')).parent('h3'));
         $('#menu').accordion('option', 'animated', 'slide');

Upon page reload I have it check the "menustate" cookie to see if it has been set or not. If it is, I first turn off the animation so the visitor does not see it open again, then I call the activate method to open the one with the id that is stored in the cookie. Lastly, I reenable the animation. It works great!

Unfortunately, I have no completed the True Negative site yet, so I do not have an example of this working. As soon as I finish the site, I'll update this blog post with a link to it. Hope this helps anyone trying to do this in a simple way. Thanks for reading!

30Mar/090

Photoshop World 2009

Last week, my intern, Jordan, and I went to Boston for Photoshop World 2009. Having never been to one of these conventions I was a little uncertain about what to expect. With that said, I had a great time at the show! I learned a great deal and was able to polish up some of my skills.

On the first day we took a class on wedding photography with David Ziser, which turned out to be more of a class on lighting. Since we are looking to do some of our own wedding photography, we enjoyed the class very much and learned some good things on lighting in churches, etc.

The following days we took various classes on design, motion graphics, and photography. I really enjoyed the classes on motion graphics with Richard Harrington. I haven't used the puppet tool before, and now I want to play with it haha!

For what it's worth, it was a pretty expensive trip to Boston, but hopefully we can get some good use out of the knowledge gained.

7Feb/092

update to windows 7 benchmarks

Well this is quite odd... after overclocking, the windows experience rating actually went DOWN. Another weird thing was that cinebench stopped being able to work...

I removed all of the partitions, and I'm doing a clean install of Windows 7 to see if that fixes the issue. There is no reason why I should be losing points from overclocking. We'll see how it goes... Updates to follow.

1Nov/080

Allstar Graphics Website Launch

Finally finished the Allstar Graphics site and launched it yesterday. It incorporates PHP, JavaScript, JQuery, AJAX, Flash, and more. I designed it to be optimized for search engines as well as user friendly. There are some more things I need to update on there, but I think it came out great!

Check it out at www.astargraphics.com

14Jul/080

No news is good news?

Well, I haven't updated much on here because I've been busy working, and taking care of personal things. With my wife being pregnant, we've had to do so much around here to get ready for it, which takes up a lot of my personal time.

I've had a lot of work come in lately for Allstar Graphics which is great, but much of it is very time consuming. We have some high volume orders coming in soon that we have to prepare for also. It is fun though. I really do enjoy running Allstar Graphics (West).

I also have been working on a bunch of websites lately for Technotic Media. Some redesigns for previous customers as well as new sites, and a redesign of the Allstar Graphics site.

I've finally made some good progress on my truck, a 2003 Ford F350 PowerStroke. The truck has undergone an extreme transformation, and has been in progress since the end of January. Hopefully within the next few weeks, it will be done, and can go to East Coast Audio for some audio work.

This Wednesday, I'll be going to the drag strip (NYIRP) and running the bike there. It will be the first time this year, also since the gearing change, air filter, exhaust, and tune. I'm hoping to break into the 10's but I suck at launching!

Be back soon with more updates!

26Mar/080

New Flashlight!

So I've been wondering for a while what the clips on the back part of my truck's headliner were for. Someone mentioned to me that it was for a flashlight, but I had trouble finding a flashlight that was large enough. Finally I came across a 6 D-cell Maglite Flashlight. The flash light is definitely large, and will fit into my truck with no problems!

Of course, those who know me well, know that I couldn't leave it "stock." So I researched and found a high-power LED upgrade for the MagLite that puts out over 500 lumens!

Check out the review I wrote on it here: terralux ministar30m led upgrade for maglite flashlights

24Mar/080

Update to the Mac

It's been a while since my last blog about the Mac, and everything has been going great! I decided to take advantage of the falling prices of RAM, and upgraded to 16GB, which is the max that this Mac can take. I don't think I should have any issues now! The WinTec ram was no longer available from Newegg, so I ended up purchasing Transcend. No issues with it, so I would definitely recommend it to anyone looking for an upgrade to their Mac Pro.

I also decided to backup my system and do a clean install of Leopard (OS 10.5). After a few months now of using Leopard, I've been very pleased with it. Everything runs great, and most, if not all, issues that I've had have been resolved!

About this mac

24Jul/070

WinTec RAM

Just wanted to give props to WinTec for taking care of my RAM issue. A while back I ordered RAM from newegg for my Mac Pro, and it sat around until I finally got moved into the building. When I put the RAM in the machine, 2 of the sticks were DoA, and the newegg return period had expired. So I got an RMA through WinTec, and I'm sure you guys are thinking the same thing I did...doesn't even sound like a good company.

Not true. I spoke to a live person right away, got an RMA number, sent it out there, and got it back. All within two weeks, which is good considering it had to go back and forth to Cali.

So +1 for Wintec :)
Now I'm ready to go!!!
Mac Pro RAM