<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5716956509985149596</id><updated>2011-07-30T14:42:14.582-07:00</updated><category term='prototype.js bubble events'/><title type='text'>nathfy.com</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-1735617890313491366</id><published>2010-06-15T10:52:00.000-07:00</published><updated>2010-06-15T10:57:17.206-07:00</updated><title type='text'>Byte Order mark (BOM) woes</title><content type='html'>PHP seems to suffer from the BOM problem on windows more than most - here is some code I found that will look through your files and tell you which ones have the evil mark...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://pastebin.com/dHbqjUNy"&gt;http://pastebin.com/dHbqjUNy&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;? php&lt;br /&gt;define('STR_BOM', "\xEF\xBB\xBF");&lt;br /&gt;$file = null;&lt;br /&gt;$directory = getcwd();&lt;br /&gt;&lt;br /&gt;$rit = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory), RecursiveIteratorIterator::CHILD_FIRST);&lt;br /&gt;try {&lt;br /&gt; foreach ($rit as $file) {&lt;br /&gt;  if ($file-&gt;isFile()) {&lt;br /&gt;   $path_parts = pathinfo($file-&gt;getRealPath());&lt;br /&gt;&lt;br /&gt;   if ('php' == $path_parts['extension']) {&lt;br /&gt;    $object = new SplFileObject($file-&gt;getRealPath());&lt;br /&gt;&lt;br /&gt;    if (false !== strpos($object-&gt;getCurrentLine(), STR_BOM)) {&lt;br /&gt;     print $file-&gt;getRealPath()."\n";&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;} catch (Exception $e) {&lt;br /&gt; die ('Exception caught: '. $e-&gt;getMessage());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;remember to wrap it in php tags - they are being removed by blogger so i can't show them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-1735617890313491366?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/1735617890313491366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=1735617890313491366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/1735617890313491366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/1735617890313491366'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2010/06/byte-order-mark-bom-woes.html' title='Byte Order mark (BOM) woes'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-8717911852650460954</id><published>2010-02-24T09:33:00.000-08:00</published><updated>2010-02-24T09:37:24.472-08:00</updated><title type='text'>retrieve emails as plain text from exchange webservices</title><content type='html'>basically create a new propertyset with the schema you need to retrieve, and then set the 'RequestedBodyType' of the 'propertyset' to 'BodyType.Text'&lt;br /&gt;&lt;br /&gt;code example:&lt;br /&gt;&lt;br /&gt;PropertySet myPropertySet = new PropertySet(&lt;br /&gt;ItemSchema.Importance,&lt;br /&gt;ItemSchema.Subject,&lt;br /&gt;ItemSchema.Body,&lt;br /&gt;ItemSchema.DateTimeReceived,&lt;br /&gt;ItemSchema.HasAttachments,&lt;br /&gt;EmailMessageSchema.From,&lt;br /&gt;EmailMessageSchema.ToRecipients,&lt;br /&gt;EmailMessageSchema.DisplayTo&lt;br /&gt;                &lt;br /&gt;);&lt;br /&gt;myPropertySet.RequestedBodyType = BodyType.Text;&lt;br /&gt;service.LoadPropertiesForItems(findResults.Items, myPropertySet);&lt;br /&gt;&lt;br /&gt;foreach (Item myItem in findResults.Items)&lt;br /&gt;{&lt;br /&gt;   //etc&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-8717911852650460954?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/8717911852650460954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=8717911852650460954' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/8717911852650460954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/8717911852650460954'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2010/02/retrieve-emails-as-plain-text-from.html' title='retrieve emails as plain text from exchange webservices'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-994324591838740514</id><published>2009-08-06T07:36:00.000-07:00</published><updated>2009-08-06T07:40:27.113-07:00</updated><title type='text'>MySQL server has gone away Error on restore from backup</title><content type='html'>when you are restoring from a backup of a large db you get this strange error from mysql: "MySQL server has gone away Error"&lt;br /&gt;&lt;br /&gt;to cure it open mysql admin&gt;startup variables&gt;advanced networking and change the max_allowed_packet to 16M (or higher)&lt;br /&gt;&lt;br /&gt;restart mysql and try the restore again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-994324591838740514?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/994324591838740514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=994324591838740514' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/994324591838740514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/994324591838740514'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2009/08/mysql-server-has-gone-away-error-on.html' title='MySQL server has gone away Error on restore from backup'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-322576366286878753</id><published>2009-07-31T07:46:00.000-07:00</published><updated>2009-08-07T01:53:51.020-07:00</updated><title type='text'>MSSQL Linked server to MySQL</title><content type='html'>First download the connector:&lt;br /&gt;&lt;a href="http://dev.mysql.com/downloads/connector/odbc/5.1.html"&gt;http://dev.mysql.com/downloads/connector/odbc/5.1.html&lt;/a&gt;&lt;br /&gt;Then the MySQL GUI tools&lt;br /&gt;&lt;a href="http://dev.mysql.com/downloads/gui-tools/5.0.html"&gt;http://dev.mysql.com/downloads/gui-tools/5.0.html&lt;/a&gt;&lt;br /&gt;install both on the MSSQL server&lt;br /&gt;&lt;br /&gt;Go to the MySQL server a create a user: &lt;br /&gt;&lt;span style="font-style:italic;"&gt;mssqllink&lt;/span&gt;&lt;br /&gt;Give them permissions to access, update etc the tables you need. To make sure they have remote access from another ip or hostname, right click on the user in the administrator and "add hostname". Fill in the hostname or IP of the MSSQL server.&lt;br /&gt;&lt;br /&gt;Go back to the MSSQL server and connect to the MySQL server via MySQL Administrator. Use the username and the password you set for that user. If you can't connect then go back and check the user details on the MySQL server. No connection here, no connection from MSSQL&lt;br /&gt;&lt;br /&gt;Go to the windows control panel&gt;administrative tools&gt;ODBC datasource and click on the system DSN tab. Click 'Add' and choose the MySQL ODBC driver - fill in the details with the username and password you used to connect from MySQL Administrator. Click test and it should come back ok. Save the datasource name so you can use it below.&lt;br /&gt;&lt;br /&gt;Open SQL server management studio and go to Server objects&gt;linked servers&lt;br /&gt;Add a new linked server, choose the &lt;span style="font-style:italic;"&gt;microsoft OLE DB provider for ODBC drivers&lt;/span&gt; Provider and fill in the details. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NOTE&lt;/span&gt; if this isn't present then you'll need to install it, for 64 bit servers MS has released it as a hotfix:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.msdn.com/data/archive/2008/04/07/64-bit-oledb-provider-for-odbc-msdasql-is-now-available-for-windows-server-2003.aspx"&gt;http://blogs.msdn.com/data/archive/2008/04/07/64-bit-oledb-provider-for-odbc-msdasql-is-now-available-for-windows-server-2003.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now on to the connection string. The connection string for MySQL connector 5.1 is: &lt;br /&gt;&lt;span style="font-style:italic;"&gt;Driver={MySQL ODBC 5.1 Driver};Server=myServerAddress;Database=myDataBase;User=myUsername; Password=myPassword;Option=3;&lt;/span&gt; &lt;br /&gt;more info here: &lt;a href="http://www.connectionstrings.com/mysql#31"&gt;connectionstrings.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Replace the myServerAddress, myUsername and myPassword as before for MySQL. Note i found that adding the database parameter caused it to fail, so if you have problems try omitting that one ("Database=;"). Finally add the name of the system DSN you created.&lt;br /&gt;&lt;br /&gt;Phew! click ok and it will all work as expected. if not then check all the connections and things and make sure you can connect via MySQL administrator using that username and password.&lt;br /&gt;&lt;br /&gt;to select data from the tables on the MySQL server you must use the &lt;br /&gt;&lt;span style="font-style:italic;"&gt;select * from OPENQUERY(LINKNAME,'Select * from x')&lt;/span&gt; &lt;br /&gt;syntax as the connector doesn't support the 4 part name access. Get around this by using views in your MSSQL db of the MySQL tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-322576366286878753?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/322576366286878753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=322576366286878753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/322576366286878753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/322576366286878753'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2009/07/mssql-linked-server-to-mysql.html' title='MSSQL Linked server to MySQL'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-42067915371190664</id><published>2009-06-18T06:59:00.000-07:00</published><updated>2009-06-18T07:00:43.725-07:00</updated><title type='text'>Coldfusion query error - INSERT failed because the following SET options have incorrect settings: 'ARITHABORT'</title><content type='html'>You can avoid this by setting your database options.&lt;br /&gt;1. Right click your database&lt;br /&gt;2. Click Properties&lt;br /&gt;3. Click Options on the Left pane&lt;br /&gt;4. Turn "Arithmetic Abort Enabled" to "True"&lt;br /&gt;&lt;br /&gt;Execute your cfm page again and it should work properly&lt;br /&gt;&lt;br /&gt;and info here: http://support.microsoft.com/kb/305333&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-42067915371190664?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/42067915371190664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=42067915371190664' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/42067915371190664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/42067915371190664'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2009/06/coldfusion-query-error-insert-failed.html' title='Coldfusion query error - INSERT failed because the following SET options have incorrect settings: &apos;ARITHABORT&apos;'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-7702322340449411546</id><published>2009-03-24T04:56:00.000-07:00</published><updated>2009-03-24T04:59:17.693-07:00</updated><title type='text'>ASP.NET control referencing in jquery</title><content type='html'>ASP.NET controls often render with client-side IDs different than what's declared in your aspx code. &lt;br /&gt;&lt;br /&gt;If your using jquery the easiest way is to use the [attribute$=value] method - an example to get the aspx made link id, from your coded id:&lt;br /&gt;&lt;br /&gt;//include jquery.js then:&lt;br /&gt;$(document).ready(function(){$("a[id$='login_link']").click(function(event){tester(event,this)});});&lt;br /&gt;function tester(event, el){&lt;br /&gt; event.preventDefault();&lt;br /&gt; alert($(el).attr("id"));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//for element:&lt;br /&gt;&lt;asp:HyperLink NavigateUrl="~/login.cfm" Text="login" Id="login_link" runat="server" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-7702322340449411546?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/7702322340449411546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=7702322340449411546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/7702322340449411546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/7702322340449411546'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2009/03/aspnet-control-referencing-in-jquery.html' title='ASP.NET control referencing in jquery'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-9108215873577481416</id><published>2008-03-05T05:03:00.000-08:00</published><updated>2008-03-05T05:10:53.895-08:00</updated><title type='text'>Prototype.js get checked elements</title><content type='html'>To get the checked elements from a group of checkboxes you can use the select and css3 selectors shortcut:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-family:courier new;" &gt;var checked_el=surrounding_el.select('input:checked').each(function(checked_el) {    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-family:courier new;" &gt;         //do something with only the selected elements&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-family:courier new;" &gt;         alert("checked_element: "+checked_element.id);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family: arial;"&gt;});&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;/* &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-weight: bold;"&gt;checked_el&lt;/span&gt; is a array holding the found elements&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:courier new;" &gt;&lt;span style="font-weight: bold;"&gt;surrounding_el&lt;/span&gt; is a fieldset or div that encloses the checked boxes&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:courier new;" &gt;&lt;span style="font-weight: bold;"&gt;select('input:checked')&lt;/span&gt; - select all with a CSS3 seletor type&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;font-family:courier new;" &gt;of checked (&lt;a href="http://www.w3.org/TR/css3-selectors/"&gt;http://www.w3.org/TR/css3-selectors/&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-weight: bold;"&gt;.each(function(checked_el) &lt;/span&gt;- loops on all the ones that are found&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;*/&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-9108215873577481416?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/9108215873577481416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=9108215873577481416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/9108215873577481416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/9108215873577481416'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2008/03/prototypejs-get-checked-elements.html' title='Prototype.js get checked elements'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-6828420930649236948</id><published>2008-02-20T09:46:00.000-08:00</published><updated>2008-02-20T09:53:44.161-08:00</updated><title type='text'>google maps marker z index</title><content type='html'>Google have now prevented access to marker.setZIndex() (which was undocumented method anyway) A work around to get your marker to the top is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;function add_marker(){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    var marker = new GMarker(point,{zIndexProcess:importanceOrder});&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    marker.importance = 2; //higher importance = higher marker z index&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;    the_map.addOverlay(marker);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;function importanceOrder (marker,b) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    return GOverlay.getZIndex(marker.getPoint().lat()) + marker.importance*1000000;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: georgia;"&gt;which moves the marker higher up - note you'll need to do this after you've added all the markers to the map. Otherwise the next z-index will continue after the last one you added (effectively cancelling out your increase in z-index)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-6828420930649236948?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/6828420930649236948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=6828420930649236948' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/6828420930649236948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/6828420930649236948'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2008/02/google-maps-marker-z-index.html' title='google maps marker z index'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-4927105941428301919</id><published>2008-01-24T03:06:00.000-08:00</published><updated>2008-01-24T03:11:13.972-08:00</updated><title type='text'>Coldfusion query column to array</title><content type='html'>&lt;p&gt;The normal method of converting Coldfusion query column to array is to use a valuelist and list to array:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;the_array=listtoarray("#valueList(the_query.the_column)#")&lt;/span&gt;&lt;/p&gt;&lt;p&gt;But this strips out any cells with empty strings in. To get around this use:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;the_array=duplicate(the_query[column_name]);&lt;br /&gt;   ArrayPrepend(the_array,the_query[column_name][1]);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;   why the ArrayPrepend() call afterwards? Because CF arrays start at 1 and Java (the underlying language) starts at 0, so the duplicate function misses off the first row of the column.&lt;/p&gt;&lt;p&gt;nice.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-4927105941428301919?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/4927105941428301919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=4927105941428301919' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/4927105941428301919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/4927105941428301919'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2008/01/coldfusion-query-column-to-array.html' title='Coldfusion query column to array'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-7325019721245758371</id><published>2007-11-07T04:08:00.000-08:00</published><updated>2007-11-07T04:12:08.049-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='prototype.js bubble events'/><title type='text'>stop event bubbling in js and prototype.js</title><content type='html'>Prototype.js has the stop() function, which also stops the default behaviour of an action. sometimes you want to just stop the bubble rather than the default action (for example on checkboxes)&lt;br /&gt;&lt;br /&gt;so cross browser function to do it:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;function cancel_bubble_event(event) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    //cancel the bubble but not the default action&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    if (event.stopPropagation){&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;        event.stopPropagation(); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;     }else{                   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;        event.cancelBubble = true;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;called by:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;    window.cancel_bubble_event(event);&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-7325019721245758371?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/7325019721245758371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=7325019721245758371' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/7325019721245758371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/7325019721245758371'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2007/11/stop-event-bubbling-in-js-and.html' title='stop event bubbling in js and prototype.js'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-2421132807868591293</id><published>2007-10-24T04:14:00.000-07:00</published><updated>2007-10-24T04:17:13.138-07:00</updated><title type='text'>Update multiple rows from a query</title><content type='html'>use the following SQL as an example:&lt;br /&gt;&lt;br /&gt;UPDATE the_table&lt;br /&gt;SET a_column=a.other_column&lt;br /&gt;FROM (&lt;br /&gt; select other_id,other_column from other_table  &lt;br /&gt;)as a&lt;br /&gt;&lt;br /&gt;WHERE   &lt;br /&gt;the_table.id = a.other_id&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-2421132807868591293?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/2421132807868591293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=2421132807868591293' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/2421132807868591293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/2421132807868591293'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2007/10/update-multiple-rows-from-query.html' title='Update multiple rows from a query'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-953329405411389636</id><published>2007-08-07T02:24:00.000-07:00</published><updated>2007-08-07T02:30:54.330-07:00</updated><title type='text'>Create PDF forms and documents for free</title><content type='html'>Use Openoffice (&lt;a href="http://download.openoffice.org/2.2.1/index.html"&gt;http://download.openoffice.org/2.2.1/index.html&lt;/a&gt;) to create a document, adding any form fields you need then export as PDF.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note:&lt;/span&gt; form fields in PDF forms shouldn't contain any underscore (_) characters, or else the values aren't sent to the processing webserver. Or at least that is the case with PDF forms created via Openoffice - so avoid anything other than normal letters and numbers in form field names&lt;br /&gt;&lt;br /&gt;Table of contents can be created on OpenOffice, as well as specifying the default opening mode of PDF files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-953329405411389636?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/953329405411389636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=953329405411389636' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/953329405411389636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/953329405411389636'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2007/08/create-pdf-forms-and-documents-for-free.html' title='Create PDF forms and documents for free'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-4911135350492641961</id><published>2007-08-07T02:18:00.000-07:00</published><updated>2007-08-07T02:24:03.598-07:00</updated><title type='text'>Multiple images as multipage pdf</title><content type='html'>Install &lt;span style="font-weight: bold;"&gt;PDFcreator &lt;/span&gt;(&lt;a href="http://www.pdfforge.org/products/pdfcreator/download"&gt;http://www.pdfforge.org/products/pdfcreator/download&lt;/a&gt;) then open the image in the windows picture and fax viewer - usually the default viewer when you double click it.&lt;br /&gt;&lt;br /&gt;If all the images are in the same folder you'll be able to select them all on the printing wizard, then choose PDFcreator as the printer and save the output - Multiple images as multipage pdf.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-4911135350492641961?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/4911135350492641961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=4911135350492641961' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/4911135350492641961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/4911135350492641961'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2007/08/multiple-images-as-multipage-pdf.html' title='Multiple images as multipage pdf'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5716956509985149596.post-4460942218450382766</id><published>2007-08-07T01:26:00.000-07:00</published><updated>2008-12-10T02:56:11.424-08:00</updated><title type='text'>Edit setup image with Orca.exe</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_uNv1vMA6Y-s/Rrgtpf8b7dI/AAAAAAAAAAM/3POnEy6KBjQ/s1600-h/orca1.gif"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://3.bp.blogspot.com/_uNv1vMA6Y-s/Rrgtpf8b7dI/AAAAAAAAAAM/3POnEy6KBjQ/s320/orca1.gif" alt="" id="BLOGGER_PHOTO_ID_5095873169342590418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;To edit the setup image of an .msi in ORCA.exe use the &lt;span style="font-weight: bold;"&gt;binary&lt;/span&gt; table then edit the &lt;span style="font-weight: bold;"&gt;DefBannerBitmap &lt;/span&gt;key, by double clicking on it. This will show the 'Edit binary stream' screen.  Navigate to the .bmp file you saved earlier and click 'OK' to update it, then save the new MSI file. You can also write the original to file here to, in order to edit it in PS or where-ever.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note&lt;/span&gt; the .bmp must be a 500px (wide) by 70px (heigh)  image, saved as index colour (8 bit) bmp file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5716956509985149596-4460942218450382766?l=nathfy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nathfy.blogspot.com/feeds/4460942218450382766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5716956509985149596&amp;postID=4460942218450382766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/4460942218450382766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5716956509985149596/posts/default/4460942218450382766'/><link rel='alternate' type='text/html' href='http://nathfy.blogspot.com/2007/08/edit-setup-image-with-orcaexe.html' title='Edit setup image with Orca.exe'/><author><name>nath</name><uri>http://www.blogger.com/profile/14103981813281349448</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uNv1vMA6Y-s/Rrgtpf8b7dI/AAAAAAAAAAM/3POnEy6KBjQ/s72-c/orca1.gif' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
