Sononaco: The Blog

2010

Search PHP functions from your browser

Granted we have code hinting and autocomplete in our IDEs but sometimes you just need to jump over to the PHP site to reference some function.  To save some time I came up with the following bookmark that I keep in my bookmarks bar which I have labeled ¿php? (with the upside-down question mark):

javascript:q=prompt(‘PHP%20Reference:’,”);if(q)location.href=’http://www.php.net/manual-lookup.php?lang=en&function=’+escape(q)

It’s straight-up simple.  Add it, click it, enter your function (mktime, for example) and you’re whisked away to the PHP web site to the mktime page.

Mail Maintenance 12/16 10PM-11PM

The mail system will be offline momentarily this evening between 10 & 11PM for routine maintenance.  You will not be able to send or receive e-mail during this period.  All incoming e-mail will be held for delivery after the maintenance window.

Other services such as Calendar, Instant Messaging, File Sharing and Documents will not be available during this period.

Web sites and payment/donations gateways are not affected by this maintenance window.

If you have any questions about this maintenance please let us know.  And if you want to see some of the features coming up in the next version of the Mail/Calendar server (version 7.0), have a look here. And if you haven’t had the chance to download the new version of Zimbra Desktop it’s a free download!  You can get here for Mac, Linux and Windows.

Note: As with any milestone software release we will likely wait until version 7.0.1 before deploying it for everyone.

Shutting down web hosting server SO3

We are finalizing the process of phasing out one of our older web hosting servers.

I have been in direct contact with everyone impacted by this move and your sites have been transferred to the new hosting server.

We will be slowly phasing out the operations on the server by taking down the database and web servers today (Nov. 29th) at noon with the server finally being taken offline permanently Friday December 3rd around Noon.

If you manage your own DNS settings and have not had a chance to make the changeover to the new server, please contact us so we can coordinate the change as soon as possible.

Open links in new windows & keep valid HTML with jQuery

As you may not know, adding target=”_blank” to an “a” tag breaks the validation.

I wrote a few years ago about how to use MooTools to generate w3c valid XHTML while still opening links in new windows.  Since MooTools decided to make their documentation difficult to comprehend and reduced their examples to nearly nothing we decided to move to jQuery.  Fight about which one is better elsewhere.

Here is how to use jQuery to open your links in a new window or target but still pass w3c validation.

All you need to do is add a class to your links, such as:

<a href=”http://www.sononaco.com” class=”new_window”>Sononaco.com</a>

Then in your ready() function:

	if($('a.new_window').length > 0)
	{
		$('a.new_window').each(function(){
			$(this).click(function(e){
				e.preventDefault();
				window.open($(this).attr('href'), '_blank');
			});
		});
	}

Enjoy being valid.

All information © 2010 Sononaco, Inc.