<?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:blogger='http://schemas.google.com/blogger/2008' 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-28350022</id><updated>2026-10-18T16:13:54.574-05:00</updated><category term="brain tumor"/><category term="PHP"/><category term="performance"/><category term="drupal"/><category term="facebook"/><category term="seo"/><category term="Adobe"/><category term="css"/><category term="mysql"/><category term="sloppy"/><category term="APC"/><category term="DST"/><category term="Flash"/><category term="HTTP"/><category term="Nextel"/><category term="OpenSolaris"/><category term="PDF"/><category term="PHP header location redirect refresh 301 HTTP protocols"/><category term="Solaris"/><category term="Sprint"/><category term="Sprint Sucks"/><category term="Tips"/><category term="Un*x"/><category term="Unix"/><category term="XSS"/><category term="bytecode"/><category term="cache"/><category term="celebrityaccess"/><category term="chicago"/><category term="constantcontact"/><category term="cook country"/><category term="daylight savings time"/><category term="donate"/><category term="download"/><category term="home ownership"/><category term="html"/><category term="lumni I likovski"/><category term="myspace"/><category term="optimization"/><category term="profiling"/><category term="putty"/><category term="rhel"/><category term="screen"/><category term="search"/><category term="search engine"/><category term="social networking sites"/><category term="spam"/><category term="sucks"/><category term="taxes"/><category term="terminal"/><category term="vi"/><category term="vim"/><category term="xdebug"/><title type='text'>Rich&#39;s Rants</title><subtitle type='html'>Wherein I occasionally rant on various topics including, but not limited to, PHP, Music, and whatever other Topics I find interesting at the moment, including my &lt;a href=&quot;http://richardlynch.blogspot.com/search/label/brain%20tumor&quot;&gt;brain tumor&lt;/a&gt; surgery of August 2010.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>40</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-28350022.post-2838171262910325209</id><published>2014-02-07T13:55:00.000-06:00</published><updated>2014-02-07T13:56:29.309-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>8-hour ordeal. 17-minute interview</title><content type='html'>Yesterday, I went to my interview for the Paratransit (door to door ADA service).&lt;br /&gt;
&lt;br /&gt;
I set it up while I could still &quot;walk&quot; down my seven front stairs in 1/2 an hour.&lt;br /&gt;
&lt;br /&gt;
Wheelchair-bound now.&lt;br /&gt;
&lt;br /&gt;
Several days of big snow.&lt;br /&gt;
&lt;br /&gt;
Shoveled by &quot;the love of my life&quot; who&#39;s going on weeks of 15-minute catnaps 24/7 to care of me. &lt;br /&gt;
&lt;br /&gt;
Three big burly guys in two shifts to haul my wheelchair down and up stairs:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Mike DeWhite&lt;/li&gt;
&lt;li&gt;Duli&lt;/li&gt;
&lt;li&gt;Robert Owens&lt;/li&gt;
&lt;/ul&gt;
My sister drove me to-and-fro.&lt;br /&gt;
Actually, Mike DeWhite with help from my sis (torn rotator cuff) and my SO (6 pins holding a steel plate in her broken collar bone) deserve special mention: Mike DeWhite man-handled me upstairs, with guidance from sis and SO.&lt;br /&gt;
&lt;br /&gt;
Eight-hour ordeal. 17-minute Interview. Including snapping a photo for my ID badge.&lt;br /&gt;
&lt;br /&gt;
My front lawn is way too short for a ramp.&amp;nbsp; Now I &quot;just&quot; need a $5,000 to $10,000 chair lift...&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/2838171262910325209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/2838171262910325209' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2838171262910325209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2838171262910325209'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2014/02/yesterday-i-went-to-my-interview-for.html' title='8-hour ordeal. 17-minute interview'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-279608049421228983</id><published>2014-01-26T13:23:00.001-06:00</published><updated>2014-01-28T15:57:05.020-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>End Game</title><content type='html'>&lt;span style=&quot;font-size: small;&quot;&gt;Well we knew it had to happen in the end.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The brain cancer has won.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;You know how they say in the old movies, &quot;Get your affairs in order, you have 3 to 6 months to live?&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Well they phrase the first part differently, the last part is the same. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I have been given 3 to 6 months to live by the doctors.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Well I don&#39;t think the doctors know everything, and I&#39;m trying this funny-looking headgear that makes me look like an Irish Rabbi. Things look bad.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUy4-GVZkxHGC-SS4ADr7Q-DurINpuzbggYDuQnX-bpCsYjIHfLVNYA575YHO9zMOjPdkBzwZFzUvDKl40M8JsNtvasyD9KPRIxFMvjde182wP5NbjuuCxeYigR5kMuarHGz8Z0A/s1600/photo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUy4-GVZkxHGC-SS4ADr7Q-DurINpuzbggYDuQnX-bpCsYjIHfLVNYA575YHO9zMOjPdkBzwZFzUvDKl40M8JsNtvasyD9KPRIxFMvjde182wP5NbjuuCxeYigR5kMuarHGz8Z0A/s1600/photo.JPG&quot; height=&quot;239&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I have granted powers of attorney, made out my will, blah blah blah.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;I&#39;m just gonna let them foreclose the house I love.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I quit my job because I can&#39;t type, and a programmer who can&#39;t type is not a programmer.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;[I&#39;m dictating this to my daughter, who&#39;s taken such good care of me.]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The love of my life hasn&#39;t slept for days taking care of me, and my family has had to bear the brunt of my care. I thank them for standing by me during this period.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I hate to beg for money, but I am in dire financial strates. There&#39;s a PayPal link in the top corner. Any financial help would be a blessing.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;PS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I am maintaining a &lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;a href=&quot;http://6112northwolcott.com/thanks.htm&quot; target=&quot;_blank&quot;&gt;THANK YOU&lt;/a&gt;&lt;/span&gt; page, but forgive if I don&#39;t update frequently... &lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/279608049421228983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/279608049421228983' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/279608049421228983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/279608049421228983'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2014/01/end-game.html' title='End Game'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUy4-GVZkxHGC-SS4ADr7Q-DurINpuzbggYDuQnX-bpCsYjIHfLVNYA575YHO9zMOjPdkBzwZFzUvDKl40M8JsNtvasyD9KPRIxFMvjde182wP5NbjuuCxeYigR5kMuarHGz8Z0A/s72-c/photo.JPG" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-7571964647813417005</id><published>2013-02-11T20:37:00.000-06:00</published><updated>2013-02-11T20:37:12.437-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Facebook Scrollbars</title><content type='html'>For reasons beyond my ken, Facebook has a fluid-height IFRAME that seems to &quot;not work&quot; for a lot of people.&lt;br /&gt;
&lt;br /&gt;
Probably people like me who know just enough CSS to be dangerous.&lt;br /&gt;
&lt;br /&gt;
You can &lt;a href=&quot;https://www.google.com/search?q=facebook+canvas+height+fluid+not+working&quot; target=&quot;_blank&quot;&gt;Google&lt;/a&gt; for various wordings of the problem, and find half a dozen equally good solutions.&lt;br /&gt;
&lt;br /&gt;
Except the ones that use FB.Canvas.setAutoSize, because that&#39;s been replaced by the seemingly the same behavior &lt;a href=&quot;http://developers.facebook.com/docs/reference/javascript/FB.Canvas.setAutoGrow/&quot; target=&quot;_blank&quot;&gt;FB.Canvas.setAutoGrow&lt;/a&gt;.&amp;nbsp; So you have to change your code for a (meaningless?) backwards incompatible change. Thanks Facebook. Again. But I digress.&lt;br /&gt;
(I welcome comments that explain why this function was renamed.)&lt;br /&gt;
&lt;br /&gt;
You can Google for the FB.Canvas.setAutoGrow solution, but here&#39;s a TIP:&lt;br /&gt;
&lt;br /&gt;
If you attempted to get your application to &quot;fill&quot; the page by adding height: 100%; to your CSS, it sort of worked sometimes, but not others, and so you turn to the real solution above...&lt;br /&gt;
&lt;br /&gt;
When you do that, it does NOT work. The 100% &quot;fights with&quot; the FB code to produce, shall we say, less than desirable results, like making your page roughly a mile high.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TIP&lt;/b&gt; Rip out those &quot;height: 100%;&quot; CSS attributes.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/7571964647813417005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/7571964647813417005' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/7571964647813417005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/7571964647813417005'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2013/02/facebook-scrollbars.html' title='Facebook Scrollbars'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-309949461714580187</id><published>2012-10-24T11:36:00.001-05:00</published><updated>2012-10-24T11:36:54.754-05:00</updated><title type='text'>Using Visioneer 7300 USB scanner with Mac OSX</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
Using Visioneer 7300 USB scanner with Mac OSX&lt;/div&gt;
&lt;br /&gt;
So I have this Visioneer 7300 USB scanner that was acquired from a firing from a former job, since the owner didn&#39;t even want it back.&lt;br /&gt;
&lt;br /&gt;
It&#39;s kind of a nice scanner, lightweight, with five programmable buttons on the front, such as scan and print with one click.&lt;br /&gt;
&lt;br /&gt;
The UI for the button programming is about as bad as I&#39;ve seen. I refuse to provide instructions because I basically click around semi-randomly when I try to program a button until it works. Kind of like Windows.&lt;br /&gt;
&lt;br /&gt;
Anyway, I wanted to hook it up to my MacBook Pro, but it never seemed to work.&lt;br /&gt;
&lt;br /&gt;
Then an upgrade to Windows made it not work there either because there was no driver allegedly, but I found that gimp could use something to make it work.&lt;br /&gt;
&lt;br /&gt;
Actually, I think the driver for the PaperPort software was at fault, but I like gimp interface better anyway. Though gimp does take a long time to start up. Oh well. &lt;br /&gt;
&lt;br /&gt;
So then I tried gimp on the Mac. With a bit of effort, I made it work.&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Starting on the &lt;a href=&quot;http://www.sane-project.org/&quot; target=&quot;_blank&quot;&gt;sane homepage&lt;/a&gt; I found a supported devices link.&lt;/li&gt;
&lt;li&gt;I clicked through to the &lt;a href=&quot;http://www.sane-project.org/sane-mfgs.html&quot; target=&quot;_blank&quot;&gt;vendor-ordered devices&lt;/a&gt; and found my device.&lt;/li&gt;
&lt;li&gt;I then did the usual &quot;sudo port search&quot; to find sane stuff.&lt;/li&gt;
&lt;li&gt;I then did my usual &quot;install everything that looks useful&quot;:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;sudo port install sane-backends sane-frontends twain-sane xsane&lt;/li&gt;
&lt;li&gt;You may not be that indiscriminate however. Good luck.&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;I tried gimp in a terminal, and it wouldn&#39;t start.&lt;/li&gt;
&lt;li&gt;So I did &quot;sudo port install gimp&quot; to re-install that.&lt;/li&gt;
&lt;li&gt;Again typing &quot;gimp&quot; in a terminal seemed to work...&lt;/li&gt;
&lt;li&gt;However, while I had an Xsane dialog... in my gimp &quot;Create&quot; menu...&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;It couldn&#39;t find my device.&lt;/li&gt;
&lt;li&gt;The console log in the terminal said:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;Couldn&#39;t open firmware file (`/opt/local/share/sane/gt68xx/Cis3r5b1.fw&#39;): No such file or directory&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;So I went on a hunt for Cis3r5b1.fw&lt;/li&gt;
&lt;li&gt;I found a download on a &lt;a href=&quot;http://chomikuj.pl/zulus78/do+Linuksa/plustek+Optic+Slim+2400/cis3R5B1,195815454.fw&quot; target=&quot;_blank&quot;&gt;Polish (?) site&lt;/a&gt;: Despite my complete lack of understanding of Polish, the download button was rather obvious.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;&lt;ul&gt;
&lt;li&gt;Anybody remember when the internet was almost all English, and the Russian site &#39;demos&quot; opened up and everybody and their brother sent them &quot;welcome&quot; emails and wanted to know what kind of demos they were working on and it was &quot;Demos&quot; the moon of Mars... I think they were astronomers or something. Sorry. I digress.&amp;nbsp; &lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;li&gt;I created the gt86xx director in /opt/local/share/sane/ and downloaded the file there.&lt;/li&gt;
&lt;li&gt;A restart of X11 and gimp and Bob&#39;s your uncle.&lt;/li&gt;
&lt;li&gt;I made a test scan, and it took forever, and the white/black/grey scale was all whack.&lt;/li&gt;
&lt;li&gt;But the next scan seemed to go faster, and I assume I can tweak settings more or less at random until the colors/grays come out right.&lt;/li&gt;
&lt;/ol&gt;
Anyway, that&#39;s how I did it, and it might work for you, or not. And it even might be helpful for a different scanner. Or not.&lt;br /&gt;
&lt;br /&gt;
Or even a different platform that can use sane. Or not.&lt;br /&gt;
&lt;br /&gt;
I may have left out a minor step here or there. I&#39;m horrible at taking notes because I usually figure I won&#39;t get it to work anyway.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/309949461714580187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/309949461714580187' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/309949461714580187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/309949461714580187'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2012/10/using-visioneer-7300-usb-scanner-with.html' title='Using Visioneer 7300 USB scanner with Mac OSX'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-588583763399588958</id><published>2012-07-27T12:40:00.000-05:00</published><updated>2012-07-27T12:40:44.026-05:00</updated><title type='text'>The Cost of Connectivity</title><content type='html'>&lt;h1&gt;The Cost of Connectivity&lt;/h1&gt;
&lt;p&gt;synopsis: &lt;strong&gt;The US Sucks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://oti.newamerica.net/publications/policy/the_cost_of_connectivity&quot;&gt;&lt;/a&gt;

&lt;quote&gt;Public interest and consumer advocates have cited the U.S.’s recent decline in global competitiveness as evidence of the need for policy reforms that will spur greater competition and investment from the nation’s Internet providers. Meanwhile, opponents of this view have dismissed these international rankings as deeply flawed and akin to comparing apples and oranges. &lt;strong&gt;They cite the United States&#39; significantly lower population density and larger geographic size relative to other nations at the top of the rankings,which tend to have smaller land areas and greater population densities.&lt;/strong&gt;
&lt;emphasis&gt;emphasis mine&lt;/emphasis&gt;
&lt;/quote&gt;
&lt;p&gt;Are the opponents of fair competition seriously suggesting that a survey of &lt;strong&gt;major cities&lt;/strong&gt; around the world is biased to a great effect by population density?&lt;/p&gt;
&lt;p&gt;Yes, USA has a serious &quot;urban sprawl&quot; effect. One has to only look at L.A., New York Metro and Chicago to see that.&lt;/p&gt;
&lt;p&gt;But, really, is it any easier in Hong Kong, Tokyo, Seoul, Paris, Berlin, London or Amsterdam to tear up streets and install fiber?&lt;/p&gt;
&lt;p&gt;Actually, if you think about it, the &quot;urban sprawl&quot; makes it &lt;strong&gt;easier&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Sure, buying the fiber and running it a longer distance is more expensive.&lt;/p&gt;
&lt;p&gt;But they&#39;ve got more &quot;elbow&quot; room in those cities.&lt;/p&gt;
&lt;p&gt;How in the world did they find any room in Tokyo to run fiber? The whole city is a spire with tiny apartments/condos crammed on top of each other like a Jenga game.&lt;/p&gt;
&lt;p&gt;Have you ever seen the traffic in Paris or London?&lt;/p&gt;
&lt;p&gt;Hong Kong? You can&#39;t even breathe without invading somebody&#39;s personal space.&lt;/p&gt;
&lt;p&gt;The US doesn&#39;t even have a single city in the top 50. &lt;a href=&quot;http://www.citymayors.com/statistics/largest-cities-density-125.html&quot;&gt;&lt;/a&gt; You have to scan down to top 90 to hit Los Angeles.&lt;/p&gt;
&lt;p&gt;Does that prove their point? Or does that population density make it much more expensive to run fiber?&lt;/p&gt;
&lt;p&gt;In fact, if you Google for prices of laying fiber, you will find the same answer everywhere:  Population density is the #1 cost factor. They&#39;re running fiber inside sewers just to avoid dealing with tearing up streets!&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/588583763399588958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/588583763399588958' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/588583763399588958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/588583763399588958'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2012/07/the-cost-of-connectivity.html' title='The Cost of Connectivity'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-9041262353480281896</id><published>2012-06-04T15:41:00.001-05:00</published><updated>2012-06-04T15:41:20.519-05:00</updated><title type='text'>[Bleep]y Error Messages</title><content type='html'>[Bleep]y Error Messages.&lt;br /&gt;
(My daughters might read this blog, so I need to keep it G audience.) &lt;br /&gt;
&lt;br /&gt;
I encountered yet another useless error message today.&lt;br /&gt;
&lt;br /&gt;
Not that I&#39;ve blogged before about this, but any developer, any &lt;b&gt;user&lt;/b&gt; has experienced this, so I mean yet another useless error message from the corpus of all useless error messages inflicted upon any user anywhere, any time.&lt;br /&gt;
&lt;br /&gt;
And they are legion.&lt;br /&gt;
&lt;br /&gt;
So I won&#39;t point out the specific vendor/software/whatever.&amp;nbsp; I&#39;ll just rant about what makes a &lt;b&gt;GOOD&lt;/b&gt; error message.&lt;br /&gt;
&lt;br /&gt;
Are you smarter than a 5&lt;sup&gt;th&lt;/sup&gt; grader?&lt;br /&gt;
&lt;br /&gt;
Maybe it was just my school, but we learned the basic Journalism/Essay rules in 5&lt;sup&gt;th&lt;/sup&gt; grade: &lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Who&lt;/li&gt;
&lt;li&gt;What&lt;/li&gt;
&lt;li&gt;Where&lt;/li&gt;
&lt;li&gt;When&lt;/li&gt;
&lt;li&gt;Why&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
5&lt;sup&gt;th&lt;/sup&gt; Grade. Five Ws.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s apply this to Error Messages:&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
WHO&lt;/h2&gt;
&lt;br /&gt;
Exactly WHO is throwing this error message at me?&lt;br /&gt;
For some kind of device, like coffee maker, router, car, ok, this should be obvious.&lt;br /&gt;
Maybe.&lt;br /&gt;
Some routers have mini-web-servers built in, so maybe not...&lt;br /&gt;
Maybe the coffee-maker has different components.&lt;br /&gt;
Certainly today&#39;s cars are complicated enough. &lt;br /&gt;
At any rate, all the software/hardware involved should identify WHO they are in the error message:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;OS Error: Permission Denied.&lt;/li&gt;
&lt;li&gt;MySQL&amp;nbsp; Error: Permission Denied.&lt;/li&gt;
&lt;li&gt;PHP Error: Permission Denied.&lt;/li&gt;
&lt;li&gt;XYZ (application) Error: Permission Denied. &lt;/li&gt;
&lt;/ul&gt;
Every one of those would require radically different approaches to diagnose and correct.&lt;br /&gt;
&lt;br /&gt;
If you, the software/hardware developer are bubbling up or passing on error messages, or to be kosher to an end user, suppressing the error message in favor of a &quot;Something Went Wrong&quot; error message, and logging the real message somewhere for Developers to look at, you still can at least tell the end user WHO is throwing the error message.&lt;br /&gt;
&lt;br /&gt;
Even if you want to hide the inner implementation (E.g. particular Database vendor), at least tell me it&#39;s a database error that went wrong!&lt;br /&gt;
&lt;br /&gt;
As a user, I can make an educated guess what course of action to take, or whom to contact within your/my/our organization.&lt;br /&gt;
&lt;br /&gt;
And if the error message is for a Developer or needn&#39;t be masked for Security, I need to know who is throwing the error message. &lt;br /&gt;
&lt;br /&gt;
Today&#39;s systems are too complex and too many error messages are being passed through, with all context lost.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&amp;nbsp;WHAT&lt;/h2&gt;
What exactly went wrong? I need context. I&#39;m not knee-deep into your code, hardware, architecture. I need enough context that I can figure out what actually happened, from Square One of knowledge.&lt;br /&gt;
&lt;br /&gt;
All too often you find an error message that makes zero sense to anybody not intimately familiar with the software.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
WHERE&lt;/h2&gt;
I don&#39;t need just filename, I need the line number.&lt;br /&gt;
I don&#39;t need just filename, I need the full path.&lt;br /&gt;
In all probability, whatever you choose for a filename is going to be used by somebody else as well.&lt;br /&gt;
Let me know exactly where the error originates.&lt;br /&gt;
Is it configuration?&amp;nbsp; Business logic? Resources?&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
WHEN&lt;/h2&gt;
I can read the calendar and a clock, so if the error is in real-time, I don&#39;t mean that.&lt;br /&gt;
Even for an asynchronous error&amp;nbsp; generated/read, I still need...&lt;br /&gt;
When did this error occur relative to what the software was trying to do.&lt;br /&gt;
Was it reading the disk, writing to RAM, reading an RSS feed, or trying to feed the pigeons.&lt;br /&gt;
I can&#39;t begin to diagnose what went wrong with whatever you were doing if I don&#39;t know when it happened, relative to your workflow.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
WHY&lt;/h2&gt;
Why are we here? Not in a philosophical sense,&amp;nbsp; but why is this an error in the first place? Why do you need whatever you need to carry on what you are doing? Maybe your idea of the one true source of what you need doesn&#39;t match mine. Perhaps I can provide an alternate source.&lt;br /&gt;
&lt;br /&gt;
And a bonus one:&lt;br /&gt;
&lt;h2&gt;
WHAT NEXT?&lt;/h2&gt;
If you&#39;re going to tell me something went wrong, you probably have a pretty good idea what I should do to correct it. So why not tell me what to do next, or at least list some actions that will probably be useful.&lt;br /&gt;
Whether I have to sacrifice a rubber chicken or poke a voodoo doll or tighten the wing nut, let me know.&amp;nbsp; Odds are you already know what I need to do.&amp;nbsp; Tell me. Don&#39;t make me spend an hour googling and researching all about your software/hardware/whatever to find out I only have to turn the amp up to 11.&lt;br /&gt;
Give me very specific instructions. If it&#39;s really long and complicated, give me the references I need to get the instructions.&amp;nbsp; Preferably multiple references.&amp;nbsp; I may not have the user manual.&amp;nbsp; I may not have Internet access. Don&#39;t tell me of only one of the two resources. List both.&lt;br /&gt;
&lt;br /&gt;
Maybe I&#39;m just getting too old and turning into a grumpy old man. But I&#39;m very weary of spending my time researching your error messages because you can&#39;t communicate. For the same effort, word-count, whatever, except possible thought on your part, you can give me a better error message.&lt;br /&gt;
&lt;br /&gt;
Maybe you think I&#39;m being lazy.&lt;br /&gt;
Maybe you think I should just shut up and take it, just like everybody else. &lt;br /&gt;
&lt;br /&gt;
Maybe you think I&#39;m asking to be spoon-fed everything.&lt;br /&gt;
&lt;br /&gt;
After 20+ years of software development, I&#39;ve served my time reading [bleep]y error messages and trying to make some sense of them.&lt;br /&gt;
&lt;br /&gt;
What we have here is a failure to communicate.&lt;br /&gt;

&lt;br /&gt;

It&#39;s not me.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/9041262353480281896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/9041262353480281896' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/9041262353480281896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/9041262353480281896'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2012/06/bleepy-error-messages.html' title='[Bleep]y Error Messages'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-6518831888037560660</id><published>2012-05-22T12:34:00.000-05:00</published><updated>2012-05-22T12:36:10.024-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APC"/><category scheme="http://www.blogger.com/atom/ns#" term="bytecode"/><category scheme="http://www.blogger.com/atom/ns#" term="cache"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP Caches (APC et al)</title><content type='html'>I occasionally still see people referencing ancient misinformation that various PHP bytecode caches are giving huge performance boosts by caching the bytecode so the PHP bytecode parser/compiler doesn&#39;t have to do the monumental task of reading PHP source and converting it into bytecode to be run by the Zend Engine.&lt;br /&gt;
&lt;br /&gt;
Nothing could be further from the truth. &lt;br /&gt;
&lt;br /&gt;
Okay, there is one tiny bit of truth in there.&lt;br /&gt;
&lt;br /&gt;
The php process/program/runtime, without a bytecode cache, is in fact a JIT parser/compiler to a bytecode, which is then run by the Zend Engine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Amd. okay, the various caches all cache the bytecode as part of the process of gaining huge performance boosts for most PHP web applications.&lt;br /&gt;
&lt;br /&gt;
So that&#39;s two &lt;b&gt;tiny&lt;/b&gt; bits of truth in a monumentally flawed statement. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But the significant boost is &lt;b&gt;not&lt;/b&gt; from bypassing the parser/compiler.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://php.net/manual/en/book.apc.php&quot;&gt;APC&lt;/a&gt; and other caching mechanisms save a great deal of time by not hitting the hard disk to load the script, but keeping it in RAM, if possible. Hard disks are slow.&amp;nbsp; RAM is fast.&lt;br /&gt;
&lt;br /&gt;
The bytecode is saved in cache instead of source, which does bypass the PHP parser/compiler.&lt;br /&gt;
&lt;br /&gt;
But that&#39;s just &quot;gravy&quot;&lt;br /&gt;
&lt;br /&gt;
Compare two following psuedo code samples that describe the difference the APC (or other cache) makes:&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;



Code Listing #1&lt;/h3&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;b&gt;//save hitting the hard disk
if ( $source_code = in_cache($path) ){
  //got the source code from cache, do nothing
}
else{
  //file_get_contents = super-duper slow!!!
  $source_code = file_get_contents($path);
}
$bytecode = zend_parse($source_code);
zend_execute($bytecode);&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;h3&gt;



//Code Listing #2&lt;/h3&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&lt;b&gt;//save hitting the hard disk
//and a small bonus, cache the bytecode, not source:
if ( $bytecode = in_cache($path) ){
  //got the bytecode from cache, do nothing
}
else{
  //file_get_contents = super-duper slow!!!
  $source_code = file_get_contents($path);
  $bytecode = zend_parse($source_code);
}
zend_execute($bytecode);
&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
As you can see, both code listings bypass the hard drive access which is super-duper slow.&lt;br /&gt;
&lt;br /&gt;
But the second one also bypasses the PHP parser/compiler, simply because it&#39;s such a trivial difference, just moving one single line of code into the conditional, to cache $bytecode versus $source_code.&lt;br /&gt;
&lt;br /&gt;
The savings from parsing is chump change compared to disk I/O.&lt;br /&gt;
&lt;br /&gt;
It&#39;s also trivial chump change to implement.&lt;br /&gt;
&lt;br /&gt;
But every ounce counts, so all the &quot;bytecode caching&quot; (sic) mechanisms do it this way.&lt;br /&gt;
&lt;br /&gt;
They should all really be called &quot;RAM caching, with bytecode gravy&quot; or even &quot;RAM caching&quot; and just ignore the minimal difference between source versus bytecode.&lt;br /&gt;
&lt;br /&gt;
I&#39;m sure this post is going to make all the caching implementers run out and change their documentation etc. :-)&lt;br /&gt;
&lt;br /&gt;
Well, at least you now understand what &quot;bytecode cache&quot; really means. I&#39;ll call it a &quot;win&quot;.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/6518831888037560660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/6518831888037560660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/6518831888037560660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/6518831888037560660'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2012/05/php-caches-apc-et-al.html' title='PHP Caches (APC et al)'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-4131576351658297548</id><published>2012-02-06T10:32:00.001-06:00</published><updated>2012-02-06T14:33:32.167-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="drupal"/><title type='text'>Rebuild theme registry on every page.</title><content type='html'>&lt;p&gt;&lt;b&gt;Rebuild theme registry on every page.&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;During theme development, it can be very useful to continuously rebuild the theme registry. WARNING: this is a huge performance penalty and must be turned off on production websites.&lt;/blockquote&gt;&lt;/p&gt;&lt;p&gt;The last couple weeks, I have found out the hard way exactly what this is talking about... :-(&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;You probably won&#39;t really notice it on page load, unless your site is high traffic.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;But even a LOW traffic site, with MySQL replication set up, your MASTER hard drive is going to fill up very quickly.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;We were generating 4.4G per day on a low-traffic site.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;This is because re-building the theme registry on every page deletes all the {variables} and the whole theme registry and then re-INSERTs them all on every page hit.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;Just flipping that off on ONE low-traffic site brought disk usage down to 400M per day.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;When keeping several days&#39; worth of mysql binary logs, that difference adds up quickly.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;Note that only SOME themes even have such a checkbox in their &quot;Configuration&quot; panel. The most notable one (that I know of) is Zen or any theme built on Zen.&lt;br /&gt;
&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/4131576351658297548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/4131576351658297548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/4131576351658297548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/4131576351658297548'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2012/02/rebuild-theme-registry-on-every-page.html' title='Rebuild theme registry on every page.'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-3995530533229105078</id><published>2011-10-11T09:50:00.000-05:00</published><updated>2011-10-11T09:50:58.571-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><title type='text'>Drupal 6 Performance, Part 3</title><content type='html'>After weeks of no problems in STAGING and loadtests looking great, it turns out there&#39;s just one teensy little flaw in caching Drupal pages longer than a couple days...&lt;br /&gt;
&lt;br /&gt;
Drupal nukes the CSS/JS optimized/consolidated temp files every couple days.&lt;br /&gt;
&lt;br /&gt;
So the monitoring sees a nice valid HTML from an HTTP 200, but humans see a theme-less site.&lt;br /&gt;
&lt;br /&gt;
Worse, the thing corrects itself somehow, or our guys jump on it and flush the cache, and it&#39;s all good...&lt;br /&gt;
&lt;br /&gt;
For a couple days.&lt;br /&gt;
&lt;br /&gt;
Rinse, repeat.&lt;br /&gt;
&lt;br /&gt;
Digging into the Drupal caching source code even deeper, and I&#39;m convinced:  This things wasn&#39;t architected; It just grew.&lt;br /&gt;
&lt;br /&gt;
It&#39;s a spaghetti code mess.&lt;br /&gt;
&lt;br /&gt;
I defy any Drupal core dev to correctly describe the caching &quot;architecture&quot; of D6 pages, CSS, JS, blocks, views, etc in any coherent way.&lt;br /&gt;
&lt;br /&gt;
I officially give up now.&lt;br /&gt;
&lt;br /&gt;
When the VP of Marketing complains the site is slow, I&#39;ll just say &quot;Yes, it is. That&#39;s Drupal.&quot;&lt;br /&gt;
&lt;br /&gt;
We&#39;ll have to spider the silly thing after every cron job, actually, instead of doing that. Which sucks, but there it is.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/3995530533229105078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/3995530533229105078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3995530533229105078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3995530533229105078'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2011/10/drupal-6-performance-part-3.html' title='Drupal 6 Performance, Part 3'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-771095284333961410</id><published>2011-09-14T10:01:00.004-05:00</published><updated>2011-09-14T10:20:44.243-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="sloppy"/><title type='text'>Drupal 6 Performance, Part 2</title><content type='html'>First, I was &lt;a href=&quot;http://richardlynch.blogspot.com/2011/09/drupal-6-performance.html&quot;&gt;wrong&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I was wrong on two points.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Number 1 Mistake:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I thought that there would be a slow query in the mysql slow query log that, with an index, would magically make Drupal 6 faster.&lt;br /&gt;
&lt;br /&gt;
There wasn&#39;t.&lt;br /&gt;
&lt;br /&gt;
There were a few slow queries, but they had perfectly good indexes, and they were slow, as far as I can tell from the symptoms, due to thread contention, as described here:&lt;br /&gt;
&lt;a href=&quot;http://www.facebook.com/notes/mysqlfacebook/using-pmp-to-double-mysql-throughput-part-1/404965725932&quot;&gt;Facebook Doubles MySQL Throughput with PMP&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Unfortunately, there are three problems with the solution there.&lt;br /&gt;
1) It would take me forever to figure out what those guys are really doing&lt;br /&gt;
2) We&#39;d never be able to run un-approved MySQL patches like that&lt;br /&gt;
3) There&#39;s no way my VP of Marketing is pounding our server hard enough for this to be the problem I&#39;m trying to solve.&lt;br /&gt;
&lt;br /&gt;
So as much as I&#39;d love to dive in and follow in Domas&#39; and Mark&#39;s footsteps, that&#39;s not going to happen.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Number 2 Mistake:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In my previous article, I stated that I had attempted to eliminate some obvious candidates, and one of those was:&lt;br /&gt;
&lt;a href=&quot;http://richardlynch.blogspot.com/2011/09/drupal-6-performance.html&quot;&gt;&quot;It only fails after a cache flush? No.&quot;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I was wrong.&lt;br /&gt;
&lt;br /&gt;
So very very wrong.&lt;br /&gt;
&lt;br /&gt;
I had eliminated the manual cache flushes done by our team as a source of the problem.&lt;br /&gt;
&lt;br /&gt;
What I didn&#39;t know was that Drupal 6 (and 7) has a brain-dead hard-wired notion that a &quot;Page&quot; in cache_page should be flushed &lt;b&gt;every time cron runs&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Yes, there is a setting for cache_lifetime on your admin &quot;Performance&quot; page, but page_set_cache &lt;b&gt;ignores&lt;/b&gt; that silly little administrative option.&lt;br /&gt;
(What actually &lt;b&gt;honors&lt;/b&gt; that setting is perhaps an even more &lt;i&gt;interesting&lt;/i&gt; architectural decision than flushing the Page cache every cron run.)&lt;br /&gt;
&lt;br /&gt;
This is apparently a known issue as described here:&lt;br /&gt;
&lt;a href=&quot;http://www.metaltoad.com/blog/how-drupals-cron-killing-you-your-sleep-simple-cache-warmer&quot;&gt;Drupals cron kills you&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Note that a couple high-profile Drupal community members who should know better make blatantly wrong statements in the Comments.&lt;br /&gt;
&lt;br /&gt;
I have broken the rules and patched Drupal core, and probably broken polls (we don&#39;t use them).&lt;br /&gt;
&lt;br /&gt;
In your includes/common.inc file, you can apply a patch like this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;pre&gt;cat common.inc.patch_cache_page_honor_cache_lifetime 
--- common.inc.original 2011-09-13 09:37:30.000000000 -0500
+++ common.inc  2011-09-13 09:39:04.000000000 -0500
@@ -2701,7 +2701,7 @@
         $data = gzencode($data, 9, FORCE_GZIP);
       }
       ob_end_flush();
-      cache_set($base_root . request_uri(), $data, &#39;cache_page&#39;, CACHE_TEMPORARY, drupal_get_headers());
+      cache_set($base_root . request_uri(), $data, &#39;cache_page&#39;, variable_get(&#39;cache_lifetime&#39;, CACHE_TEMPORARY), drupal_get_headers());
     }
   }
 }
&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Our Drupal pages now are cached honoring the cache_lifetime setting in Performance (as I expected for the past 18+ months) and we got consistent 100 requests per second across 15 multisites in loadtests last night, as we should.&lt;br /&gt;
&lt;br /&gt;
I probably should have run more nights of loadtests before posting this, but I wanted to get this typed up while it was fresh, and, really, now that I know what&#39;s going on, I&#39;m pretty confident of this solution.&lt;br /&gt;
&lt;br /&gt;
Actually, I might just change that again to CACHE_PERMANENT, as caching a page only for a day when they change very seldom is just silly.  But that&#39;s probably just us.  Most Drupal users probably expect the behaviour of the patch above, based on the UI.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s one site&#39;s zoomed in graph comparing the 13th (with Drupal pages at 0 for failing to respond at all to 90% of my ab -n 1000 -c 100) but on the 14th, similar pages get ~100 requests per second.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha7JNTzbhxuCsYfCzC68s8viPQPQSRLr6qs2uhe6qcDD-Gr3NVnDwyDJBNz2SvRhjAzz7Oi1tW3TYVnu6tACIlGw54Ufarcbca5OHd_EgBqekQRGpK14eEai1WkNkZ5Z125X1_fA/s1600/loadtest_patched.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;49&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha7JNTzbhxuCsYfCzC68s8viPQPQSRLr6qs2uhe6qcDD-Gr3NVnDwyDJBNz2SvRhjAzz7Oi1tW3TYVnu6tACIlGw54Ufarcbca5OHd_EgBqekQRGpK14eEai1WkNkZ5Z125X1_fA/s400/loadtest_patched.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Note that the highest peaks in the above graph are static images and JS/CSS files, not Drupal pages.&lt;br /&gt;
&lt;br /&gt;
I&#39;m expecting my loadtest graphs to get much smoother now, with no 0s littered everywhere.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/771095284333961410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/771095284333961410' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/771095284333961410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/771095284333961410'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2011/09/drupal-6-performance-part-2.html' title='Drupal 6 Performance, Part 2'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha7JNTzbhxuCsYfCzC68s8viPQPQSRLr6qs2uhe6qcDD-Gr3NVnDwyDJBNz2SvRhjAzz7Oi1tW3TYVnu6tACIlGw54Ufarcbca5OHd_EgBqekQRGpK14eEai1WkNkZ5Z125X1_fA/s72-c/loadtest_patched.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-2545923000542628152</id><published>2011-09-08T10:48:00.006-05:00</published><updated>2011-09-08T11:05:29.702-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="sloppy"/><title type='text'>Drupal 6 Performance</title><content type='html'>There are a lot of things I like about Drupal.&lt;br /&gt;
&lt;br /&gt;
Performance, however, is not one of them.&lt;br /&gt;
&lt;br /&gt;
Yes, I turned caching on.&lt;br /&gt;
Yes, CSS and JS Optimization are on.&lt;br /&gt;
Yes, I used YSlow.&lt;br /&gt;
Yes, the GA code is at the bottom.&lt;br /&gt;
Yes, the images are small.&lt;br /&gt;
Yes, our custom HTML templates validate.&lt;br /&gt;
Yes, I have fought off the business unit&#39;s demands to install modules recommended by SEO &quot;experts&quot; (cough, cough) which are completely inapplicable to our situation. (Example: When all your content is input by staff, you really don&#39;t need that spam detector in the cloud service module. If our staff start putting in Viagra ads, we&#39;ll just fire them.)&lt;br /&gt;
&lt;br /&gt;
And, yes, I have a problem.&lt;br /&gt;
&lt;br /&gt;
Well, several problems, actually, but if the preceding example didn&#39;t already clue you in that the business process is quite disfunctional, and that was only the tip of the iceberg, you haven&#39;t worked for enough large corporations, and there is nowhere near enough room in this blog post to pull that iceberg into view. I&#39;ll get back on focus now.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s the thing: Most of the time, Drupal is hitting its built-in cache with an indexed query of the entire HTML page for an anonymous user.&lt;br /&gt;
This is, naturally, quite acceptable, as it simply bootstraps a few too many PHP files (minor annoyance) and runs a single indexed query on a URL-&amp;gt;HTML relationship and spits out the page and exits.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, my performance &quot;pre-emptive monitoring. quasi-loadtest, and let&#39;s make sure none of these sites will make PRODUCTION fall over, and let&#39;s catch when the Drupal guy didn&#39;t turn caching on&quot; ad hoc process, indicates that occasionally, some URL is performing abysmally [viz].&lt;br /&gt;
&lt;br /&gt;
I am not an expert in testing, nor Drupal, nor mysql. But I have spent 25+ years specializing in PHP applications, so know a little bit about all those things.  If my methodology is a bit &quot;off&quot;, I am pretty confident the results are still &quot;close enough&quot;.&lt;br /&gt;
&lt;br /&gt;
Specifics:&lt;br /&gt;
&lt;br /&gt;
I have 15 multisites same-codebase different-database D6 sites on a STAGING box, where business units QA (sort of) and approve (or not, or shouldn&#39;t have but did) before launch to PRODUCTION. Staging is a 2-tier setup, with 1 www node and 1 mysql node. We&#39;re running stock RHEL plus EPEL builds for the most part.  PHP 5.3, MySQL 5.1.  If you&#39;ve done Drupal multisite, I haven&#39;t done anything particularly weird or interesting here.&lt;br /&gt;
&lt;br /&gt;
There are also a couple &quot;baseline&quot; sites, with just static HTML pages, &quot;phpinfo();&quot;, and a &quot;mysql_connect(); mysql_query(&#39;select version&#39;);&quot; for comparison purposes with the real sites, just so I know that there&#39;s nothing inherently wrong with Apache, PHP, nor PHP-to-mysql.&lt;br /&gt;
&lt;br /&gt;
At night, while real people sleep, I spider each site on a configurable schedule, mostly weekly, and store all the URLs in a flat file per site. In addition, every 5 minutes, an ab loadtest fires for the &quot;next&quot; site in a queue for a randomly-selected URL from that site:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
ab -n 1000 -c 100 $random_url_here&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Some of the URLs are images. Some are CSS/JS. Some are actual Drupal nodes.&lt;br /&gt;
&lt;br /&gt;
I record the ab result files, prepending a line to tell me which URL was requested.&lt;br /&gt;
&lt;br /&gt;
I also log the requests per second in a database table, counting a big fat 0 for any errors I can detect. For example, if there were &lt;strong&gt;any&lt;/strong&gt; non-2xx HTTP response codes, it&#39;s counted a complete failure in my book. If &lt;strong&gt;any&lt;/strong&gt; of the 1000 requests never came back, again, big fat 0. (This is where testing experts are probably crying in their coffee. Sorry.)&lt;br /&gt;
&lt;br /&gt;
I have some kludgy-hand made PHP|GD graphs.&lt;br /&gt;
(Yes, I&#39;m old-school and can visualize and draw a halfway decent graph in PHP code faster than I can fight your fancy new-fangled tools to get a really nice graph.  Sorry.)&lt;br /&gt;
&lt;br /&gt;
Here is what a sample site graph looks like:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid3CNfftcwIs3o-G2_8Oc5wh44845SFEib32YaFvlKu3hQsfF4KVykhSd4fi0m5IRbQEXk3JRTy5ZGr_gT5wM5SlYoTmzXDl35wJelO36lJ_eA1Wxr0GBeRF8AfJRrQolgPs1QWA/s1600/loadtest.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;147&quot; width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid3CNfftcwIs3o-G2_8Oc5wh44845SFEib32YaFvlKu3hQsfF4KVykhSd4fi0m5IRbQEXk3JRTy5ZGr_gT5wM5SlYoTmzXDl35wJelO36lJ_eA1Wxr0GBeRF8AfJRrQolgPs1QWA/s400/loadtest.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
(The density on the left is because I used to run the loadtests all day every day, but scaled back to night-time in the middle of this process. Yes, testing experts everywhere are crying in their coffee. Sorry.)&lt;br /&gt;
&lt;br /&gt;
First thing to look at is the bottom center stats min/avg/max: 0/265/1010&lt;br /&gt;
That means this site is getting a very acceptable &quot;average&quot; 265 requests per second across all the ab runs you see in the graph.&lt;br /&gt;
And that 1010 means that one URL excelled and had 1,010 requests per second in an ab run.&lt;br /&gt;
Alas, there is a 0 for that min, and that&#39;s the problem.&lt;br /&gt;
&lt;br /&gt;
In fact, looking at the green lines of the graph itself, you see a fair number of 0 data points.&lt;br /&gt;
&lt;br /&gt;
I won&#39;t bore you with hundreds of ab text outputs, nor the tedious process of matching them up with the dots on the graph, but here&#39;s the basic trend:&lt;br /&gt;
Static CSS/JS and even images come in first place with the peaks in the hundreds of requests per second.&lt;br /&gt;
Most Drupal URLs come in acceptable levels around 100 requests per second.&lt;br /&gt;
Occasional Drupal URLs just plain bomb out with, for example, only 8 successful requests, and 992 failures and get the big fat 0.&lt;br /&gt;
&lt;br /&gt;
I have also attempted to eliminate the following:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;The same URL fails all the time? No.&lt;/li&gt;
&lt;li&gt;It only fails after a cache flush? No.&lt;/li&gt;
&lt;li&gt;It only fails when a loadtest runs so long it concurs with another? No, I added code to insure only one loadtest at a time. (Testing experts crying over coffee. Sorry.)&lt;/li&gt;
&lt;li&gt;Only certain sites? No.&lt;/li&gt;
&lt;li&gt;MySQL hasn&#39;t been tuned? No. We tuned it.&lt;/li&gt;
&lt;li&gt;APC isn&#39;t working? No. It&#39;s fine.&lt;/li&gt;
&lt;li&gt;Uncached Drupal performance isn&#39;t &lt;strong&gt;that&lt;/strong&gt; bad. Yes. It is. I measured it with the same (sloppy) metrics above. A simple minimal setup with stock D6 and a few pages / modules falls over after 8 requests in heavy load, without caching.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
So my theory, and I admit it&#39;s not really &lt;strong&gt;proven&lt;/strong&gt;, since I don&#39;t have the mad Drupal skillz to log the info to prove it, is that the setting in Performance &quot;Minimum cache lifetime: &amp;lt;none&amp;gt;&quot; does not, in fact, keep URLs in the cache indefinitely, and something in Drupal purges them, for reasons beyond my ken.&lt;br /&gt;
&lt;br /&gt;
NOTE:&lt;br /&gt;
These are brochureware sites with a hundred nodes each, and a couple webforms.  There are the usual Drupal modules one would expect for that. Plus all the modules I was forced to add that they never actually figure out how to configure and use that the SEO &quot;experts&quot; (cough, cough) told them they need.&lt;br /&gt;
&lt;br /&gt;
A lot of Drupal experts have recommended PressFlow and varnish and so on. We are considering that.  But even a drop-in replacement isn&#39;t that easy to manage when we are rapid-fire launching a new multisite each week. We simply don&#39;t have the bandwidth for that right now.&lt;br /&gt;
&lt;br /&gt;
And, ultimately, I find it offensive that uncached Drupal falls over after 8 requests on a 2-tier php/mysql 6G RAM setup. (Assuming my theory is correct.)&lt;br /&gt;
&lt;br /&gt;
It&#39;s like somebody bolted a billboard to the back of our Maserati.&lt;br /&gt;
&lt;br /&gt;
Then tossed some kind of broadcast instant replay device named &quot;cache&quot; in front of the billboard to mask the problem.&lt;br /&gt;
&lt;br /&gt;
And are now recommeding &lt;em&gt;another&lt;/em&gt; broadcast replay device in front of the &quot;cache&quot; called &quot;varnish&quot;.&lt;br /&gt;
&lt;br /&gt;
So am I just going to whine about it? No. I&#39;m going to start analyzing queries in log_slow_queries from MySQL and whatever else I can find, and try to see if I can add some indexes to make uncached Drupal reasonably performant.&lt;br /&gt;
&lt;br /&gt;
Of course, real Drupal developers are all madly coding Drupal 8, since Drupal 7 was released a few months ago, and Drupal 6, to them, is just not worth patching, so my efforts will probably be largely irrelevant to the Drupal community at large. Sorry.&lt;br /&gt;
&lt;br /&gt;
You&#39;ll have to wait for the next blog post to see if that succeeds or not. I may even have to eat some crow if I can&#39;t make any improvement at all.&lt;br /&gt;
&lt;br /&gt;
Again, I do like a lot of things about Drupal.  Performance, however, and the architecture to make it performant, is not one of them.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/2545923000542628152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/2545923000542628152' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2545923000542628152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2545923000542628152'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2011/09/drupal-6-performance.html' title='Drupal 6 Performance'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid3CNfftcwIs3o-G2_8Oc5wh44845SFEib32YaFvlKu3hQsfF4KVykhSd4fi0m5IRbQEXk3JRTy5ZGr_gT5wM5SlYoTmzXDl35wJelO36lJ_eA1Wxr0GBeRF8AfJRrQolgPs1QWA/s72-c/loadtest.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-3201329224711615753</id><published>2011-08-16T13:42:00.004-05:00</published><updated>2011-08-22T09:03:32.724-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="optimization"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="profiling"/><category scheme="http://www.blogger.com/atom/ns#" term="rhel"/><category scheme="http://www.blogger.com/atom/ns#" term="xdebug"/><title type='text'>Xdebug and RHEL 5.7</title><content type='html'>Much ado and misinformation about how to really profile or performance analyze PHP is all over the Internet.&lt;br /&gt;
&lt;br /&gt;
Rebuffs also exist to much of that misinformation all over the Internet.&lt;br /&gt;
&lt;br /&gt;
How to actually really set yourself up to properly profile PHP, not so much...&lt;br /&gt;
&lt;br /&gt;
So, here&#39;s an attempt to provide a step-by-step process, at least for RHEL 5.7&lt;br /&gt;
&lt;br /&gt;
If you run something else, you&#39;ll have to improvise a bit.&lt;br /&gt;
&lt;br /&gt;
It&#39;s not like I really picked RHEL, so that probably deserves some background...&lt;br /&gt;
&lt;br /&gt;
I&#39;m mostly an old school compile from source guy for Apache, MySQL and PHP to get what I want.&lt;br /&gt;
&lt;br /&gt;
I used to use RedHat/Fedora for the base Linux / desktop, and then download source for Apache, PHP, MySQL.&lt;br /&gt;
&lt;br /&gt;
I switched to gentoo a few years ago, and admit I pretty much fail to update very often, but whatever.&lt;br /&gt;
&lt;br /&gt;
I only have to maintain a handful of boxes, and update when there is a real need.&lt;br /&gt;
&lt;br /&gt;
In my workplace, the sysadmin is a stock RHEL guy, but then he has to maintain hundreds of servers with puppet and monitor them with Nagios and...&lt;br /&gt;
&lt;br /&gt;
Well, let&#39;s just say I completely understand that need.&lt;br /&gt;
&lt;br /&gt;
And he HAS opened up to Dag&#39;s repos and a UIC or ULC or somesuch to get something I needed.&lt;br /&gt;
&lt;br /&gt;
Alas, when you want to do serious debugging, profiling, or performance analysis, that&#39;s not good enough.&lt;br /&gt;
&lt;br /&gt;
So I recently embarked on a task to build a &quot;debug&quot; desktop with the following goals:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;have debug builds of php, apache, and mysql&lt;/li&gt;
&lt;li&gt;have xdebug&lt;/li&gt;
&lt;li&gt;have kCacheGrind / valgrind / callgrind to visualize bottlenecks&lt;/li&gt;
&lt;li&gt;this box is used for debug build, nothing else, no other users but me&lt;/li&gt;
&lt;li&gt;stray no further from our stock build than I &lt;b&gt;have&lt;/b&gt; to&lt;/li&gt;
&lt;/ul&gt;Of course, just installing the GUI is a pretty far straying, and I let RHEL push me into gnome rather than KDE. Not sure that was wise, but there it is.&lt;br /&gt;
&lt;br /&gt;
Still, I tried to have minimal impact on the build.&lt;br /&gt;
&lt;br /&gt;
Testing Experts/Pundits:&lt;br /&gt;
Note that I&#39;ll exit X windows once I&#39;m ready to really test, and then fire it up again to examine the results.  If having the X binaries on the box screws up my tests, so be it. I&#39;m already replacing the &lt;b&gt;REAL&lt;/b&gt; binaries of the code with these debug-enhanced ones anyway, so at that level, it&#39;s not &quot;the same&quot; anyway. Having a separate desktop with all these tools on it just didn&#39;t seem practical in my case. Your needs may vary.&lt;br /&gt;
&lt;br /&gt;
I first attempted to get the debug builds of at least PHP, and hopefully Apache and MySQL, just in case.&lt;br /&gt;
&lt;br /&gt;
Everything seemed to work with yum, but I spun my wheels for hours checking phpinfo() configure line for --disable-debug and trusting its output about debug build.&lt;br /&gt;
&lt;br /&gt;
It turns out that the RHEL debug builds are actually &lt;b&gt;not&lt;/b&gt; built into the same binary files that ./configure --enable-debug would do. Instead, the debugging symbols are installed in separate binaries in /usr/lib/debug, and tools like gdb and strace and the all-important (to me) &quot;httpd -X&quot; just &quot;know&quot; to look in there and load those debug symbols in on top of the non-debug binaries in the usual places.&lt;br /&gt;
&lt;br /&gt;
That kind of blew my mind, but whatever, you know?&lt;br /&gt;
&lt;br /&gt;
And why the httpd startup scripts and PHP don&#39;t know to look there is beyond me, but I suppose if I really need to force them to do it, I could find a way... I doubt I&#39;ll need that, as you&#39;ll see shortly.&lt;br /&gt;
&lt;br /&gt;
Anyway, in order to actually &lt;b&gt;get&lt;/b&gt; these debug builds, you have to do something like this:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
yum install --enable-repo=rhel-debuginfo httpd-debuginfo mysql-debuginfo php53-debuginfo&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Note that this installs &lt;b&gt;only&lt;/b&gt; the debugging symbol binaries into /usr/lib/debug. If you actually want to install the software itself, you still need to do these if you didn&#39;t already:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
yum install httpd mysql php53&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You also want to install valgrind, which basically allows you to run your binaries under debugging conditions with a whole suite of tools.  We&#39;ll look at just one tool, callgrind, because a) it&#39;s the only one I know so far and b) it&#39;s the one that makes pretty pictures that make it blindingly obvious where your bottlenecks are in your code.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
yum install valgrind&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Just to be sure you installed Apache and PHP, set up your usual PHP script for testing purposes:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
echo &quot;&amp;lt;?php phpinfo();?&amp;gt;&quot; &amp;gt; /var/www/html/index.php&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
(Or edit /var/www/html/index.php with your favorite editor.)&lt;br /&gt;
&lt;br /&gt;
Surf to http://localhost/ and see the PHP status page with lots of blue tables telling you everything you ever needed to know about your PHP install.&lt;br /&gt;
&lt;br /&gt;
Now to prove you can generate a callgrind script, to generate a visual representation of where your code spends all its time:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
/etc/init.d/httpd stop&lt;br /&gt;
valgrind --tool=callgrind --dump-instr=yes -v /usr/sbin/httpd -X&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
(Someday, RHEL will catch up to the rest of the world and that httpd will change to apache or apache2...)&lt;br /&gt;
&lt;br /&gt;
Note that you are now running a single httpd instance/child/thread with debugging on full blast, instead of your usual high-performance httpd process.&lt;br /&gt;
&lt;br /&gt;
You &lt;b&gt;definitely&lt;/b&gt; do not want to do this on a production box, or even a shared dev box.&lt;br /&gt;
&lt;br /&gt;
You need to be doing this on a sandbox all your own.&lt;br /&gt;
Really.&lt;br /&gt;
If you can&#39;t figure out why, stop reading now and go do something else.&lt;br /&gt;
&lt;br /&gt;
Now, reload that phpinfo page in your browser.&lt;br /&gt;
&lt;br /&gt;
Finally, kill that httpd process.  Open another shell and do:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;strike&gt; killall -9 httpd&lt;/strike&gt;&lt;br /&gt;
callgrind_control -k&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
If you kill the process, and it&#39;s built up a HUGE file of data, it just dies before it writes the data. Don&#39;t do that.&lt;br /&gt;
&lt;br /&gt;
Back in the shell where you did that valgrind command, it will have exited. It will also have dumped a file whose name starts with callgrind.out. and ends with the PID (process ID) of the httpd process that was started.&lt;br /&gt;
&lt;br /&gt;
You can just safely assume it&#39;s a random number, if you are not familiar with process IDs. Actually, if you&#39;re not familiar with process IDs, this article is way too advanced for you. Oh well.&lt;br /&gt;
&lt;br /&gt;
You can open that file up in an editor if you like.&lt;br /&gt;
&lt;br /&gt;
It won&#39;t make much sense, really, but it&#39;s kind of cool to see it.&lt;br /&gt;
&lt;br /&gt;
Don&#39;t &lt;b&gt;change&lt;/b&gt; anything in that file, for goodness&#39; sake. We&#39;ve worked very hard to build it.&lt;br /&gt;
&lt;br /&gt;
Since you can&#39;t read the silly thing, let&#39;s install some software that can: kCacheGrind:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
yum install kdesdk&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Don&#39;t ask me how you&#39;re supposed to figure out that kCacheGrind comes as a part of the KDE SDK tool-suite. I used Google. A lot.&lt;br /&gt;
&lt;br /&gt;
Now you can run that tool to see how phpinfo() spends all its time:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
kcachegrind callgrind.out.*&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
You have to do this in the same shell/directory where you did the valgrind, just in case you didn&#39;t figure that out on your own.&lt;br /&gt;
&lt;br /&gt;
You ought to see something not unlike this:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC_HmCdaLCiwW8SA1TefgZPPqkO9Ql07aiNXDS0grha4r8ll7fO75cZZWPbeM-HpaIf4SHfP0tyPg-jarRXs8bBayQQedC8aAEY3HpVyN37Yvz9GwAl1JueoIun3i_HXeGqXIyCg/s1600/kCacheGrind.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC_HmCdaLCiwW8SA1TefgZPPqkO9Ql07aiNXDS0grha4r8ll7fO75cZZWPbeM-HpaIf4SHfP0tyPg-jarRXs8bBayQQedC8aAEY3HpVyN37Yvz9GwAl1JueoIun3i_HXeGqXIyCg/s320/kCacheGrind.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Whoa!&lt;br /&gt;
What&#39;s all that, you ask?&lt;br /&gt;
&lt;br /&gt;
Focus on the big splotches of color. The bigger the rectangle, the more time PHP spent in that function.&lt;br /&gt;
&lt;br /&gt;
As you can see, PHP spent a lot of time calling various _dl_* functions, presumably loading up code binaries, or double-secret internal functions you should ignore for now.&lt;br /&gt;
&lt;br /&gt;
But you can also see a big chunk for good old &lt;a href=&quot;http://php.net/strlen&quot;&gt;strlen&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now, obviously, you are not likely to jump in and edit PHP&#39;s strlen function and make it faster, but the point is that you now &lt;b&gt;know&lt;/b&gt; where PHP is spending all its time in your PHP script.&lt;br /&gt;
&lt;br /&gt;
Of course, with phpinfo() as the only function call, that&#39;s pretty boring.&lt;br /&gt;
&lt;br /&gt;
Install your favorite framework or large application project (Drupal, WordPress, Zend Framework) or your own home-brew MVC, and load a few test pages.&lt;br /&gt;
&lt;br /&gt;
Heck, just copy a whole site that you think is &quot;too slow&quot; onto this box in /var/www/html/ and fire it up and find out!&lt;br /&gt;
&lt;br /&gt;
But wait, you say, I&#39;m just a PHP developer. I&#39;m not going to be re-writing PHP internals!&lt;br /&gt;
&lt;br /&gt;
Well, guess what?&lt;br /&gt;
&lt;br /&gt;
This genius Derick Rethans has a tool called &lt;a href=&quot;http://xdebug.org/&quot;&gt;Xdebug&lt;/a&gt; that you can use to do this same thing for &lt;b&gt;your&lt;/b&gt; PHP code.&lt;br /&gt;
&lt;br /&gt;
You&#39;ll have to compile it from source, because there are no packages for Xdebug yet.&lt;br /&gt;
&lt;br /&gt;
Or use PECL, if you&#39;ve managed to install that.&lt;br /&gt;
&lt;br /&gt;
I have not installed PECL yet, so I just downloaded the &quot;source&quot; and did the usual:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
make install&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Oh yeah.  Something should be said here about libedit if you want readline-like abilities in the debugclient.&lt;br /&gt;
&lt;br /&gt;
I pretty much said &quot;Meh.&quot; and went on with life, once I realized that I&#39;d have to fight RHEL for another hour or two to get that.&lt;br /&gt;
&lt;br /&gt;
If you &lt;b&gt;need&lt;/b&gt; that feature in our PHP debugger, you&#39;re on your own. Sorry.&lt;br /&gt;
&lt;br /&gt;
Now, add a few settings anywhere you like in /etc/php.ini:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
; Added xdebug settings&lt;br /&gt;
zend_extension=&quot;/root/installers/xdebug-2.1.2/modules/xdebug.so&quot;&lt;br /&gt;
&lt;br /&gt;
; Disallow usage of @ to suppress errors&lt;br /&gt;
xdebug.scream = 1&lt;br /&gt;
&lt;br /&gt;
; Turn on profiling&lt;br /&gt;
xdebug.profiler_enable = 1&lt;br /&gt;
&lt;br /&gt;
; Dump the enormous files here&lt;br /&gt;
xdebug.profiler_output_dir = &quot;/tmp/xdebug&quot;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
And, so apache can dump the files there a couple shell commands:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
mkdir /tmp/xdebug&lt;br /&gt;
chown apache /tmp/xdebug&lt;br /&gt;
chmod 775 /tmp/xdebug&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You have to restart apache for the php.ini changes to take effect:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
/etc/init.d/httpd restart&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Oh. It wasn&#39;t started because we killed it and ran it with valgrind before.&lt;br /&gt;
Oh well.&lt;br /&gt;
&lt;br /&gt;
Anyway, reload your phpinfo() page (or other) from http://localhost/index.php&lt;br /&gt;
&lt;br /&gt;
Now go look in your /tmp/xdebug directory for some callgrind.out.* files, and load them up into kCacheGrind.&lt;br /&gt;
&lt;br /&gt;
Voila! You now &lt;b&gt;know&lt;/b&gt; where your PHP code is spending all its time, just by looking for the &quot;big&quot; rectangles.&lt;br /&gt;
&lt;br /&gt;
kCacheGrind has a zillion options and tools to slice and dice your data, and different ways to show it off.&lt;br /&gt;
&lt;br /&gt;
It also can export the pretty pictures, if you have graphviz and kghostview.&lt;br /&gt;
&lt;br /&gt;
GraphViz is pretty easy. Snag the repo definitions from &lt;a href=&quot;http://www.graphviz.org/graphviz-rhel.repo&quot;&gt;GraphViz RHEL Repo&lt;/a&gt; and put it in /etc/yum.repos.d/graphviz-rhel.repo file.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
yum install graphviz&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Finding kGhostView was quite frustrating. It seems like RHEL is intent on stamping out KDE, and kGhostView in particular since 2002 or so. I found all kinds of rpms from that era, and not much after.&lt;br /&gt;
&lt;br /&gt;
So we turn to our friends at EPEL, and use their rpm which installs and maintains their repo definitions into /etc/yum.repos.d. Did you follow that?&lt;br /&gt;
&lt;br /&gt;
Just download the appropriate rpm from here:&lt;br /&gt;
&lt;a href=&quot;http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F&quot;&gt;EPEL rpm to expand yum&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Now at this point, with EPEL installed, I pretty much opened myself up to straying &lt;b&gt;very&lt;/b&gt; far from RHEL, but all I want is kghostview so kCacheGrind can export pretty images:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
yum install kghostview&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Woof.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I&#39;m pondering if I should now uninstall the EPEL stuff, just to stay on the straight and narrow, and let kghostview lag, or try to remember to only use EPEL in dire circumstances...&lt;br /&gt;
&lt;br /&gt;
Well, anyway, you probably don&#39;t care about that bit.&lt;br /&gt;
&lt;br /&gt;
You now should have a very powerful tool suite to &lt;b&gt;really&lt;/b&gt; find the bottlenecks in your PHP code, instead of trying some Voodoo Analysis to &quot;optimize&quot; things like changing all &quot;&quot; to &#39;&#39; or using a single (un-indexed) query instead of two (indexed) queries, because running more queries is slower, or...&lt;br /&gt;
&lt;br /&gt;
I know, I promised not to go there in the first paragraph, so I&#39;ll shut up now.&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/3201329224711615753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/3201329224711615753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3201329224711615753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3201329224711615753'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2011/08/xdebug-and-rhel-57.html' title='Xdebug and RHEL 5.7'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC_HmCdaLCiwW8SA1TefgZPPqkO9Ql07aiNXDS0grha4r8ll7fO75cZZWPbeM-HpaIf4SHfP0tyPg-jarRXs8bBayQQedC8aAEY3HpVyN37Yvz9GwAl1JueoIun3i_HXeGqXIyCg/s72-c/kCacheGrind.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-2290450473228015067</id><published>2010-09-13T13:16:00.000-05:00</published><updated>2014-01-26T13:25:41.823-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>Brain Surgery</title><content type='html'>On August 31, 2010, I went into brain surgery.&lt;br /&gt;
&lt;br /&gt;
This is a &quot;delayed&quot; blog post about that.&lt;br /&gt;
&lt;br /&gt;
It got rather long, I&#39;m afraid, which is why it took so long to get up here...&lt;br /&gt;
&lt;br /&gt;
Plus I&#39;ve been kind of busy until now, where I have a 2-week lull between post-op and Radiation.&lt;br /&gt;
&lt;br /&gt;
But people seem more interested in the actual surgery than anything else, so here is a play-by-play of what I remember from it.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oy7E8ol9-XIatUAg0ENyslNKsPF0VAD6p_Nk8-BMxj49NeYA8Ke1lDooro7SKpvzhEzDo6L0rTq2rIXFVZ3QYNRwghWtMRHmOrjlFS8W-Nnr1dB8MPfcnMvTZNY4PFJj6MsPtA/s1600/mri_gps_map_head.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oy7E8ol9-XIatUAg0ENyslNKsPF0VAD6p_Nk8-BMxj49NeYA8Ke1lDooro7SKpvzhEzDo6L0rTq2rIXFVZ3QYNRwghWtMRHmOrjlFS8W-Nnr1dB8MPfcnMvTZNY4PFJj6MsPtA/s200/mri_gps_map_head.jpg&quot; width=&quot;153&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
The day started early, with a 5:45am arrival for a brain-mapping &lt;a href=&quot;http://richardlynch.blogspot.com/2010/09/brain-surgery-survivor.html&quot;&gt;GPS MRI scan&lt;/a&gt; &lt;br /&gt;
and 7:30 surgery. I had been warned I might lose my hands for a week, as they were probably going to &quot;nudge&quot; my motor strip in that area when they cut out the tumor.&lt;br /&gt;
&lt;br /&gt;
After they put all those circular markers on my head, they scanned me, and then I guess dumped a map of my brain to the surgeon&#39;s computer.&lt;br /&gt;
&lt;br /&gt;
I was then wheeled into Pre-op which is a fancy word for hallway with curtains. &lt;br /&gt;
Felt kind of like being in the wings of a particularly clean Theatre stage for any&lt;br /&gt;
Old Troopers. I guess it makes sense for resource management, but it sure doesn&#39;t seem very nice.  I was lucky not to be too back-logged I guess. I imagine on a bad day, you could end up waiting there for hours and hours.&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://www.nmff.org/phys_images/F88718.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://www.nmff.org/phys_images/F88718.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Dr James P. Chandler&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Then started the introductions. I had already met the surgeon &lt;a href=&quot;http://www.feinberg.northwestern.edu/neurosurgery/faculty-and-staff/chandler.htm&quot;&gt;Dr Chandler&lt;/a&gt;, but was introduced to at least three anesthesiologist including &lt;a href=&quot;http://www.feinberg.northwestern.edu/anesthesiology/faculty/nmh/koht2.html&quot;&gt;Dr. Koht&lt;/a&gt; and his two assistants, and the Chief Resident, &lt;a href=&quot;http://www.feinberg.northwestern.edu/neurosurgery/research/team/&quot;&gt;Ryan Halpin&lt;/a&gt;, who turned out was my &quot;coach&quot; for the surgery (viz) and he seemed to be the one watching the heart and other squiggly lines monitor that I could also see. Though I daresay there were many others monitoring all kinds of stuff I never even saw.&lt;br /&gt;
&lt;br /&gt;
I think I got re-introduced to some doctors/nurses, and I&#39;m told surgery started 2 hours late, but I didn&#39;t notice, so maybe that was their plan... Just keep me trying to remember names and faces and distract me :-)&lt;br /&gt;
&lt;br /&gt;
Anyway, they wheeled me in, hooked up an IV or two, and conked me out. They apparently locked down my head and connected some plumbing then, for which I&#39;m quite thankful I was not awake. That probably seems normal enough for any surgery. Then they woke me up, still on the table!&lt;br /&gt;
&lt;br /&gt;
They had me move my fingers around and monitored stuff on their computers to make sure things looked right. They cut open my scalp and chopped a hole in my skull. Did I mention I was still awake?!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpk1Lb73bSPxgwrUN57XJjaSaLUOsvNbEM6rv4K49CN3zbOUatYwt2wpWmSZ_3jmE_5ZB6kDfCwUH7SyIyNEaBzecGEm94UbcUdiHufGJIe7rJ-MCMh_7InfXQHw6hdhNtiEq07Q/s1600/tumor.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpk1Lb73bSPxgwrUN57XJjaSaLUOsvNbEM6rv4K49CN3zbOUatYwt2wpWmSZ_3jmE_5ZB6kDfCwUH7SyIyNEaBzecGEm94UbcUdiHufGJIe7rJ-MCMh_7InfXQHw6hdhNtiEq07Q/s200/tumor.png&quot; width=&quot;193&quot; /&gt;&lt;/a&gt;So then I presume he moved the protective water balloon brain sac aside, and went in through the vein above that red arrow, or moved some brain bits aside...&lt;br /&gt;
&lt;br /&gt;
Then they had me touch each finger to my thumb and said they were getting signals on that.&lt;br /&gt;
&lt;br /&gt;
Then he hooked up a wire to my brain and made a nerve in my right wrist&amp;nbsp; twitch at 60 Hz and asked &quot;Can you feel that?&quot; Surreal!&lt;br /&gt;
&lt;br /&gt;
If you&#39;ve ever gotten a light tremor from house current running through you for a few seconds, it was just like that.&amp;nbsp; Only direct from my brain. And on purpose. &lt;br /&gt;
&lt;br /&gt;
They also confirmed on some med computer that they were seeing the same signal.&lt;br /&gt;
&lt;br /&gt;
Repeated the process, for my right ankle. Then the left ankle. Each time they asked me &quot;Can you feel that?&quot;, and confirmed signal with each other.&lt;br /&gt;
&lt;br /&gt;
They didn&#39;t do my left wrist, which was disconcerting, but I&#39;m not sure I was able to voice that concern well.&lt;br /&gt;
&lt;br /&gt;
Then they warned me that they were going to do a few more that I wouldn&#39;t feel.&lt;br /&gt;
&lt;br /&gt;
There&#39;s not supposed to be any nerves inside the brain, but I WAS able to sense each probe in turn as a sort of cool prick. I told them all about it, apparently in more detail than they required: I believe this was the first time they politely told me to be quiet and focus on taking nice deep breaths.&lt;br /&gt;
&lt;br /&gt;
That would be Dr. Ryan Halpin, the &quot;coach&quot; and I have to say he has the patience of a saint. He managed to put up with me and keep me on task while I was halfway zonked out, which is a miracle.&lt;br /&gt;
&lt;br /&gt;
They ran through all the signals again, confirming I could feel the nerve twitching at 60Hz and seeing the signals on their computers. Apparently &quot;measure twice, cut once&quot; applies to brain surgery as well as lumber.&lt;br /&gt;
&lt;br /&gt;
Come to think of it, counting up MRIs (regular, functional, spectroscopic, and mapping) as well as CT scans and the probes, it was more like &quot;measure 10X, cut once.&quot; Same principle at least, but I suppose a factor of 10 for Brain Surgery makes sense.&amp;nbsp; I mean, tossing a 2x4 out is one thing... :-)&lt;br /&gt;
&lt;br /&gt;
Then Dr Chandler cut out the actual tumor. I think this may have been another time I was politely told to shut up and breathe. It seemed like the actual tumor removal only took 10 minutes, but my time sense wasn&#39;t exactly perfect, eh?&lt;br /&gt;
&lt;br /&gt;
Finally they started putting things back together.  There&#39;s a chunk of skull held in by titanium plates and screws (Looking for a pic of these). No MRI or airport restrictions on those, which is nice.&lt;br /&gt;
&lt;br /&gt;
There is apparently some glue in there holding something together as well.&amp;nbsp; I wonder if they have a $10,000 hot glue gun just like my $20 one at home, or if it&#39;s some kind of packet like a condiment they use.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiasNpj8I-KTI4ur74O_B-5UtenFOTLFzFcxLytlK7OGXOq61IA1WzQ9JcRxa-Im7f2WGJJXIYE9KAV2rbjn9hpvZh_llSem0smWrodyvb09yrV9txm_E74f-yTVXYsnS-ePpn7Tg/s1600/sutures_staples_1708.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiasNpj8I-KTI4ur74O_B-5UtenFOTLFzFcxLytlK7OGXOq61IA1WzQ9JcRxa-Im7f2WGJJXIYE9KAV2rbjn9hpvZh_llSem0smWrodyvb09yrV9txm_E74f-yTVXYsnS-ePpn7Tg/s200/sutures_staples_1708.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Then the scalp was stapled shut, as you can see to the right: &lt;br /&gt;
I kind of expected some stitches, but if I have any, I sure can&#39;t find them, even now that the staples are out.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At some point the doc asked for a 1x3, but the nurse only had a 2x2. They went back and forth a few times on that, which was disconcerting. I mean, who cares about the shape of the scar or whatever, but the wrong size screws or plate inside?... I didn&#39;t know exactly what stage of re-assembly we were in, so I tried to make a joke about lumber, but it fell flat. Oh well.  Tough crowd I guess.&lt;br /&gt;
&lt;br /&gt;
(Weeks later I found out it was just a gauze swab to wipe out some blood or something.  Whew!)&lt;br /&gt;
&lt;br /&gt;
They also didn&#39;t like when I broke into a song lyric with a trigger word/phrase somebody said; which anybody who knows me is a habit of mine.  Guess I don&#39;t sing any better while in &quot;twilight&quot; anesthesia. But I only did that once, so that&#39;s not so bad! A musician friend of mine tells me she had the whole operating room staff singing with her. That was definitely one of the times I was politely told to shut up and breathe deeply.&lt;br /&gt;
&lt;br /&gt;
Then they wheeled me out to post-op (read: hallway curtains) where I spent 2 hours needing to be there, and six more hanging around waiting for a room, thanks to construction... I&#39;ve got a few pithy comments about post-op and a certain nurse, but will save those as I&#39;ve already made this quite long.&lt;br /&gt;
&lt;br /&gt;
Anyway, that&#39;s all the bits I can remember from nearly 3 hours of brain surgery. I apologize if it&#39;s out of order, or I&#39;ve managed to completely mess up what they did.  All I know is, it was surreal, but they got the tumor out, and over-delivered as my hands worked just fine, albeit with a bit of tingling and numbness now and then. I&#39;m calling it a &quot;win&quot;&lt;br /&gt;
&lt;br /&gt;
Honestly, the only things I could have asked for:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Advance notice that my main job would be deep breathing.&amp;nbsp; They had described the finger / nerve twitching process in advance. But perhaps the breathing thing is case-by-case. I probably could have kept more quiet and done more breathing if they had.&lt;/li&gt;
&lt;li&gt;Check that left wrist, or tell me we don&#39;t need to.&lt;/li&gt;
&lt;li&gt;Let me know what is going on when the doc asks for a 1x3 and they ain&#39;t got it, so I&#39;m not worried about it.&lt;/li&gt;
&lt;/ul&gt;Considering everything else going on, these seem awfully petty!</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/2290450473228015067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/2290450473228015067' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2290450473228015067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2290450473228015067'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/09/brain-surgery.html' title='Brain Surgery'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oy7E8ol9-XIatUAg0ENyslNKsPF0VAD6p_Nk8-BMxj49NeYA8Ke1lDooro7SKpvzhEzDo6L0rTq2rIXFVZ3QYNRwghWtMRHmOrjlFS8W-Nnr1dB8MPfcnMvTZNY4PFJj6MsPtA/s72-c/mri_gps_map_head.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-8311182476395143273</id><published>2010-09-10T18:55:00.001-05:00</published><updated>2014-01-26T13:25:41.836-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>Brain Surgery Staples Removed</title><content type='html'>&lt;iframe bordercolor=&quot;#000000&quot; frameborder=&quot;0&quot; height=&quot;150&quot; hspace=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6534930.269;sz=180x150;ord=[timestamp]?;lid=41000000005617196;pid=8083180;usg=AFHzDLtZfstxWEJhMyJA-cWyMuM2Bfs8Eg;adurl=http%253A%252F%252Fwww.finishline.com%252Fstore%252Fcatalog%252Fproduct.jsp%253FproductId%253Dprod654964%2526POWER%252520BALANCE%253D%2526003%253D17163257%2526010%253D654964;pubid=545196;price=%2429.95;title=POWER+BALANCE+Silicone...;merc=Finish+Line;imgsrc=http%3A%2F%2Fwww.finishline.com%2Fstore%2Fimages%2Fproducts%2Fxlsilblk-lblk.jpg;width=85;height=85&quot; vspace=&quot;0&quot; width=&quot;180&quot;&gt;&lt;/iframe&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKN5smBR7ifaoDpb8fcBFhMPKJUA_LIKM1_xRbT50AK5U2EkqpPqA2UbVv2EwLw-kzYpp1MpbHJp_LIeC4LQRvaWhqHqHKQImK4H-9iczl3GOvL0s373TrsMNc6ambHTltaqyfqA/s1600/IMG00067-20100910-1211.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKN5smBR7ifaoDpb8fcBFhMPKJUA_LIKM1_xRbT50AK5U2EkqpPqA2UbVv2EwLw-kzYpp1MpbHJp_LIeC4LQRvaWhqHqHKQImK4H-9iczl3GOvL0s373TrsMNc6ambHTltaqyfqA/s320/IMG00067-20100910-1211.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
I got my staples removed yesterday, so here&#39;s what it looks like today...&lt;br /&gt;
&lt;br /&gt;
So, what I&#39;ve got going for me:&lt;br /&gt;
I&#39;m relatively young, in good health other than this cancer in my brain, and a wild guess estimate is 90% of it was in the tumor they already took out.&lt;br /&gt;
I&#39;ve got just about the most supportive family, friends, and workplace anybody could ask for.&lt;br /&gt;
&lt;br /&gt;
On the downside, if you lump me in with males up to age 90 with brain cancer, my &quot;live expectancy&quot; is a couple years...&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;But, hey, let&#39;s Do The Math:&lt;br /&gt;
&lt;br /&gt;
A guy 90 years old, already has not much more on &quot;life expectancy&quot;...&amp;nbsp; There&#39;s no numbers I can find breaking it down by decade or anything,&amp;nbsp; so let&#39;s assume it&#39;s some kind of curve, and I&#39;m on the right end of the curve.&lt;br /&gt;
&lt;br /&gt;
It blew up fast, over the course of a couple months or even weeks, so there was not much more that could have been done for &quot;early detection&quot;.&lt;br /&gt;
&lt;br /&gt;
The docs have caught it in time to get 90% out already, and will radiate and chemo the other 10%.&amp;nbsp; It will try to grow back, but we&#39;ll MRI it every couple months and catch it and chemo it some more, beating it back into submission.&amp;nbsp; So we have a game plan to keep this under control indefinitely.&lt;br /&gt;
&lt;br /&gt;
Do I expect to make it to 70+, like my dad, as I once did?&lt;br /&gt;
&lt;br /&gt;
No, not really.&amp;nbsp; I&#39;ll give it my best shot though!&lt;br /&gt;
&lt;br /&gt;
Maybe I&#39;ll only hit 65, like my Mom.&amp;nbsp; Still not a bad run.&lt;br /&gt;
&lt;br /&gt;
So what&#39;s my &quot;life expectancy&quot;?&amp;nbsp; I expect to get as much out of it as I can for as long as I can, same as anybody else!</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/8311182476395143273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/8311182476395143273' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/8311182476395143273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/8311182476395143273'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/09/brain-surgery-staples-removed.html' title='Brain Surgery Staples Removed'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKN5smBR7ifaoDpb8fcBFhMPKJUA_LIKM1_xRbT50AK5U2EkqpPqA2UbVv2EwLw-kzYpp1MpbHJp_LIeC4LQRvaWhqHqHKQImK4H-9iczl3GOvL0s373TrsMNc6ambHTltaqyfqA/s72-c/IMG00067-20100910-1211.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-456329928724889435</id><published>2010-09-08T09:48:00.002-05:00</published><updated>2014-01-26T13:25:41.829-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>Brain Tumor Pathology</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-qd2HOtZgv45xwFVTsZ2f55Yu1keVvXskWIcQjfxDwnNQcNufLGn6Q2jHZl7yAOlugOWL57OWZLzKN1UkRrz7PfQaJt4MQHw6VNJ-DQicLeOYaOO5pdF_LYdsN0BYsKsAR_PwA/s1600/tumor_scatter.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-qd2HOtZgv45xwFVTsZ2f55Yu1keVvXskWIcQjfxDwnNQcNufLGn6Q2jHZl7yAOlugOWL57OWZLzKN1UkRrz7PfQaJt4MQHw6VNJ-DQicLeOYaOO5pdF_LYdsN0BYsKsAR_PwA/s320/tumor_scatter.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Tumor w/ Surrounding &quot;Bad Stuff&quot; in active tissue&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;Brain Tumor Pathology&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;i&gt;(translated from Medical to English)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Malignant.&lt;br /&gt;
Grade 4 (worst)&lt;br /&gt;
The surgeon got the main tumor out.&lt;br /&gt;
But it&#39;s guaranteed to have a splatter effect of Bad Stuff mixed in surrounding brain tissue. &lt;br /&gt;
Aggressive radiation/chemo (6wks/6months respectively) will maybe beat it back.&lt;br /&gt;
Then, ongoing maintenance of MRI scans every couple months, and chemo when more tumors appear, for life.&lt;br /&gt;
&lt;br /&gt;
I guess that&#39;s not as bad as the old school movie &quot;Go home and die&quot; answer, but I think these days it&#39;s about as bad as it gets folks...&lt;br /&gt;
&lt;br /&gt;
On the other hand, the oncologist said that the odds of hearing benign were in the realm of &quot;case study in a journal&quot;.&amp;nbsp; I do wish they had just told me that weeks ago. I&#39;ve been living with a false hope of hearing &quot;benign&quot; and on the hook of not knowing for weeks... Oh well. &lt;br /&gt;
&lt;br /&gt;
I&#39;m staying as positive as I can, but I&#39;m in for a rough ride, and that&#39;s the breaks.&lt;br /&gt;
&lt;br /&gt;
Thanks for all your prayers, support, and donations.&lt;br /&gt;
&lt;br /&gt;
I&#39;ll try to post more on Friday 9/10. Tomorrow 9/9 is a CT scan with some kind of plastic fencing mask to map where the tumor used to be married with the old MRIs to program the linear accelerator for the radiation treatment.&amp;nbsp; Or, at least, that&#39;s my layman&#39;s understanding of what the doctor said...&lt;br /&gt;
&lt;br /&gt;
I think I get my staples out of my scalp tomorrow too.&amp;nbsp; That&#39;s good, as the changing Autumn weather is making them hot/cold expand/contract in an annoying way. That probably sounds silly/petty in the grand scheme of things, but there it is.&lt;br /&gt;
&lt;br /&gt;
Anyway, expect silence Thursday 9/9 from me, almost for sure.&amp;nbsp; I don&#39;t think they let me use my laptop from inside a CT scanner :-)&lt;br /&gt;
&lt;br /&gt;
I also want to thank my employer, &lt;a href=&quot;http://www.rasmussen.edu/&quot;&gt;Rasmussen&lt;/a&gt; who have bent over backwards throughout this ordeal to keep me &quot;employed&quot; and &quot;current&quot; in insurance coverage. I don&#39;t know what I&#39;d do without them. If you are looking for a good place to work in the online education industry, check out the openings and tell them I sent you:&lt;br /&gt;
&lt;a href=&quot;http://www.pcrecruiter.net/pcrbin/regmenu.exe?uid=rasmussen%20college.rasmussen&quot;&gt;Rasmussen Employment Opportunities&lt;/a&gt;&lt;br /&gt;
They&#39;ve done right by me, that&#39;s for sure!</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/456329928724889435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/456329928724889435' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/456329928724889435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/456329928724889435'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/09/brain-tumor-pathology.html' title='Brain Tumor Pathology'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-qd2HOtZgv45xwFVTsZ2f55Yu1keVvXskWIcQjfxDwnNQcNufLGn6Q2jHZl7yAOlugOWL57OWZLzKN1UkRrz7PfQaJt4MQHw6VNJ-DQicLeOYaOO5pdF_LYdsN0BYsKsAR_PwA/s72-c/tumor_scatter.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-3626787333074729821</id><published>2010-09-02T08:40:00.002-05:00</published><updated>2010-09-03T17:31:40.290-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="search"/><category scheme="http://www.blogger.com/atom/ns#" term="search engine"/><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><title type='text'>SEO For Beginners</title><content type='html'>You&#39;re probably even more tired of my posts about Brain Tumor/Surgery than I am, so I&#39;ll go off on a &quot;rant&quot; on another topic :-)&lt;br /&gt;
&lt;br /&gt;
I still need to draw your attention to that Donate button over there... Okay, done.&lt;br /&gt;
&lt;br /&gt;
A Beginner&#39;s Guide To SEO:&lt;br /&gt;
#1: CONTENT IS KING&lt;br /&gt;
Put content on your site that people want, and make it easy to find/browse in your own navigation.&lt;br /&gt;
If you have content people WANT, and people can find it, and search engines can read it (don&#39;t bury it in Flash) then you&#39;re all set.&lt;br /&gt;
If not, you have no &quot;game&quot; and all the SEO in the world won&#39;t do squat for you.&lt;br /&gt;
&lt;br /&gt;
#2&lt;br /&gt;
Follow some common-sense basics like using HTML/CSS properly, with valid markup, and a good TITLE tag matching an H1 tag relating to what&#39;s on the page.&lt;br /&gt;
Put your important content first in the text, and use CSS to position it where you like.&lt;br /&gt;
Try to use a decent domain name that you can shout to a roomful of drunk people that they&#39;ll remember, maybe, the next day.&lt;br /&gt;
Even if your target audience is NOT rooms full of drunken people, it&#39;s still a good metric for the domain name.&lt;br /&gt;
&lt;br /&gt;
#3&lt;br /&gt;
A META Description is good, if it matches the page/site content, and provides a consistent &quot;brand&quot; (theme/mission/image) you want to promote. You&#39;d have to ask some Marketing drone whether it&#39;s a &quot;brand&quot; or an &quot;image&quot;.&lt;br /&gt;
META Keywords haven&#39;t been used by any major search engine in years: Anybody who says different is stupid or out-dated. Or both.&lt;br /&gt;
&lt;br /&gt;
#4&lt;br /&gt;
Don&#39;t try to &quot;game&quot; the system with techniques that misrepresent your content. As soon as the search engine makers figure out what you and all the other idiots are doing, they DEDUCT points for it, and you lose, Game Over.&lt;br /&gt;
Unless they just ban your site completely from the results, in which case you&#39;ve just wasted your oh-so-precious domain name. GAME OVER!!!&lt;br /&gt;
&lt;br /&gt;
#5, #6, #7, #8, #9: See #1&lt;br /&gt;
&lt;br /&gt;
#10&lt;br /&gt;
After you have done that, worry about tweaking the so-called SEO junk to improve your site that last 1%.&lt;br /&gt;
Image ALT keywords, re-positioning&lt;br /&gt;
&lt;br /&gt;
PS&lt;br /&gt;
I believe most SEO &quot;experts&quot; are charlatans, and I refuse to label myself an SEO expert.&lt;br /&gt;
Make of that what you want...</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/3626787333074729821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/3626787333074729821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3626787333074729821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3626787333074729821'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/09/seo-for-beginners.html' title='SEO For Beginners'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-7582113366891311300</id><published>2010-09-01T19:38:00.002-05:00</published><updated>2014-01-26T13:25:41.832-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>Brain Surgery Survivor</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oy7E8ol9-XIatUAg0ENyslNKsPF0VAD6p_Nk8-BMxj49NeYA8Ke1lDooro7SKpvzhEzDo6L0rTq2rIXFVZ3QYNRwghWtMRHmOrjlFS8W-Nnr1dB8MPfcnMvTZNY4PFJj6MsPtA/s1600/mri_gps_map_head.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oy7E8ol9-XIatUAg0ENyslNKsPF0VAD6p_Nk8-BMxj49NeYA8Ke1lDooro7SKpvzhEzDo6L0rTq2rIXFVZ3QYNRwghWtMRHmOrjlFS8W-Nnr1dB8MPfcnMvTZNY4PFJj6MsPtA/s320/mri_gps_map_head.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;I made it!&lt;br /&gt;
Even have fully functional hands.&lt;br /&gt;
I feel about like you&#39;d expect when somebody cuts a hole in one&#39;s head... :-)&lt;br /&gt;
Thanks so much for the prayers of any flavor and donations.&lt;br /&gt;
Followup appointments next week are still in pencil due to doctor schedule conflicts, but at lest one of them should tell me something some time next week, regarding malignant/benign and grade/scale or whatever.&lt;br /&gt;
Had a screamer on the same floor last night, so didn&#39;t sleep much...&lt;br /&gt;
Very tired, so I&#39;ll end this post here.&lt;br /&gt;
Just know I&#39;m alive, and recovering, and will know the Real Story next week...&lt;br /&gt;
&lt;br /&gt;
[EDIT: 2010-09-11]&lt;br /&gt;
I added this photo from my sister&#39;s phone.&amp;nbsp; Those white circles were some kind of GPS markers for an MRI mapping that lets the surgeon match up the brain images of the tumor with what&#39;s actually in my head.&lt;br /&gt;
Had I only known in advance, we probably could have gotten my brain on Google maps! :-)</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/7582113366891311300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/7582113366891311300' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/7582113366891311300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/7582113366891311300'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/09/brain-surgery-survivor.html' title='Brain Surgery Survivor'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Oy7E8ol9-XIatUAg0ENyslNKsPF0VAD6p_Nk8-BMxj49NeYA8Ke1lDooro7SKpvzhEzDo6L0rTq2rIXFVZ3QYNRwghWtMRHmOrjlFS8W-Nnr1dB8MPfcnMvTZNY4PFJj6MsPtA/s72-c/mri_gps_map_head.jpg" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-1421708818910908602</id><published>2010-08-27T19:44:00.005-05:00</published><updated>2014-01-26T13:25:41.821-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>Brain Tumor</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpk1Lb73bSPxgwrUN57XJjaSaLUOsvNbEM6rv4K49CN3zbOUatYwt2wpWmSZ_3jmE_5ZB6kDfCwUH7SyIyNEaBzecGEm94UbcUdiHufGJIe7rJ-MCMh_7InfXQHw6hdhNtiEq07Q/s1600/tumor.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5510263766061273346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpk1Lb73bSPxgwrUN57XJjaSaLUOsvNbEM6rv4K49CN3zbOUatYwt2wpWmSZ_3jmE_5ZB6kDfCwUH7SyIyNEaBzecGEm94UbcUdiHufGJIe7rJ-MCMh_7InfXQHw6hdhNtiEq07Q/s320/tumor.png&quot; style=&quot;cursor: pointer; float: right; height: 320px; margin: 0pt 0pt 10px 10px; width: 310px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Here is a side-view of the actual tumor.&lt;br /&gt;
That darker gray splotch in the top center, shaped somewhat like a guitar pick, only not.&lt;br /&gt;
I added a big red arrow, as I realized the the vein above could be mistaken for the tumor.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/1421708818910908602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/1421708818910908602' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/1421708818910908602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/1421708818910908602'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/08/brain-tumor_27.html' title='Brain Tumor'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpk1Lb73bSPxgwrUN57XJjaSaLUOsvNbEM6rv4K49CN3zbOUatYwt2wpWmSZ_3jmE_5ZB6kDfCwUH7SyIyNEaBzecGEm94UbcUdiHufGJIe7rJ-MCMh_7InfXQHw6hdhNtiEq07Q/s72-c/tumor.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-2410713813411587981</id><published>2010-08-26T20:44:00.004-05:00</published><updated>2014-01-26T13:25:41.825-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><title type='text'>Brain Tumor</title><content type='html'>Quick Update:&lt;br /&gt;
The neurosurgeon says the Functional MRI and MR Spectroscopy point towards a tumor rather than infection.&lt;br /&gt;
Surgery on Tuesday.&lt;br /&gt;
Don&#39;t know what time until Monday night, as they need to keep their schedule flexible until the day before.&lt;br /&gt;
A biopsy for sure, and removal of as much as seems prudent, hopefully all of it.&lt;br /&gt;
He can&#39;t say for sure until he&#39;s in there exactly what can come out and has to stay.&lt;br /&gt;
Apparently I&#39;ll be conscious while he&#39;s operating, so he can double-check various brain bits aren&#39;t tied to anything important based on what twitches when he touches it or something.&lt;br /&gt;
I&#39;d rather just be knocked out and wake up healed, but I&#39;m sure not gonna argue brain surgery.&lt;br /&gt;
I&#39;ll probably/maybe have paralyzed hands for a week or so.&lt;br /&gt;
Won&#39;t have biopsy results for 72 hours after surgery. Guess I&#39;ll have a race with the Doc to see if I can walk out of the hospital before he has answers. :-)&lt;br /&gt;
Don&#39;t be surprised if this blog goes silent from 8/31 through 9/7, give or take...&lt;br /&gt;
Thanks for your generous donations!&lt;br /&gt;
I&#39;ll be swamped in bills soon, so it&#39;s much appreciated.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/2410713813411587981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/2410713813411587981' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2410713813411587981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2410713813411587981'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/08/brain-tumor.html' title='Brain Tumor'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-8831371004110321914</id><published>2010-08-24T13:52:00.005-05:00</published><updated>2014-01-26T13:25:41.838-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brain tumor"/><category scheme="http://www.blogger.com/atom/ns#" term="donate"/><title type='text'>Brain Lesion</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFPaXHXLfHky2IdkqPjPN53ZqQIk4HETKmWGs9SgdkKT48vfdvWbliL2yFL8Kilue3mWLC9uU2JJr5_mLqzeNpMrbGG4CfuINsiHzp9dP9MqfMNtsFdd6DPWUWj12FD-Q6q27mIA/s1600/Screen+shot+2010-08-24+at+3.24.30+PM.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 287px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFPaXHXLfHky2IdkqPjPN53ZqQIk4HETKmWGs9SgdkKT48vfdvWbliL2yFL8Kilue3mWLC9uU2JJr5_mLqzeNpMrbGG4CfuINsiHzp9dP9MqfMNtsFdd6DPWUWj12FD-Q6q27mIA/s320/Screen+shot+2010-08-24+at+3.24.30+PM.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5509076186170800706&quot; /&gt;&lt;/a&gt;&lt;br /&gt;On Thursday August 12, I suffered a seizure.&lt;br /&gt;My daughters found me, got Mama, and they all saved my life.&lt;br /&gt;I was rushed to the hospital, where I suffered 3 convulsions before being stabilized in ICU.&lt;br /&gt;I regained consciousness on Saturday August 14th.&lt;br /&gt;After more blood/brain/body tests and scans than I want to list here, they found a lesion in my brain in the frontal(?) posterior lobe.&lt;br /&gt;Apparently, it&#39;s not called a tumor until they figure out if it&#39;s malignant or not.&lt;br /&gt;I&#39;ve got a functional MRI, and an MRS (MRI Spectroscopy) in upcoming weeks.&lt;br /&gt;My employer is being incredibly gracious about discretionary rules, and bending over backwards to keep my insurance current.&lt;br /&gt;That said, there are deductibles and living expenses and possibly even a gap coming, depending on how much pressure I can exert on hospitals and labs to expedite things.&lt;br /&gt;I don&#39;t really like it, but I&#39;ve added a &quot;Donate&quot; button over on the right; I&#39;d appreciate any help you can give, whatever you can afford.&lt;br /&gt;I&#39;m not a tax lawyer, but as far as I can figure, an individual like me can&#39;t be a non-profit, so it would have to fall under the generic &quot;gift&quot; category on your tax forms...&lt;br /&gt;I&#39;ll be in and out of labs and hospitals for a few weeks; I&#39;m not allowed to drive for 6 months (or longer, if I suffer another seizure) and that&#39;s just the beginnings of how this complicates things.&lt;br /&gt;Thanks for all your prayers (of any flavor) and support!  I&#39;ve had a lot of help already from friends and family, and it is much appreciated!!!</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/8831371004110321914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/8831371004110321914' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/8831371004110321914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/8831371004110321914'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/08/brain-lesion.html' title='Brain Lesion'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFPaXHXLfHky2IdkqPjPN53ZqQIk4HETKmWGs9SgdkKT48vfdvWbliL2yFL8Kilue3mWLC9uU2JJr5_mLqzeNpMrbGG4CfuINsiHzp9dP9MqfMNtsFdd6DPWUWj12FD-Q6q27mIA/s72-c/Screen+shot+2010-08-24+at+3.24.30+PM.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-269963365486172121</id><published>2010-06-01T09:41:00.002-05:00</published><updated>2010-06-01T09:46:20.289-05:00</updated><title type='text'>Sprint Sample Silliness</title><content type='html'>Only Sprint could deliver a camera phone, chock-full of Sample Pictures, which are LOCKED and you cannot DELETE, so you can&#39;t take more than ~6 pictures.&lt;br /&gt;&lt;br /&gt;And their tech support has no idea how to unlock/delete them.&lt;br /&gt;&lt;br /&gt;Innumerable forum threads asking how to delete them exist.&lt;br /&gt;&lt;br /&gt;And the only solution appears to be to download the phone OS, hack into it with a JavaLoader or by mounting it on your computer, finding some oddly-named .cod file, and deleting that file before you install the OS.&lt;br /&gt;&lt;br /&gt;But the name of the file is version-dependent, and deleting the wrong file gives you a dead phone.&lt;br /&gt;&lt;br /&gt;And, really, how tricky can it BE to give users an &quot;unlock&quot; button or just make the sample pictures not locked in the first place?!</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/269963365486172121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/269963365486172121' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/269963365486172121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/269963365486172121'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2010/06/sprint-sample-silliness.html' title='Sprint Sample Silliness'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-6950482186904173510</id><published>2009-10-30T09:58:00.002-05:00</published><updated>2009-10-30T10:06:29.888-05:00</updated><title type='text'>PHP, Frames, and Sessions</title><content type='html'>Any time you try to use frames and PHP sessions, you are likely to run into trouble.&lt;br /&gt;&lt;br /&gt;It&#39;s basically a &lt;a href=&quot;http://en.wikipedia.org/wiki/Race_Condition&quot;&gt;race condition&lt;/a&gt; just waiting to blow up in your face:&lt;br /&gt;&lt;br /&gt;1. Frame A sends HTTP request, with no session Cookie&lt;br /&gt;2. PHP/server processes request, with no session Cookie, so creates NEW session&lt;br /&gt;3. Frame B sends HTTP request, with no session Cookie&lt;br /&gt;4. Frame A receives response, with session Cookie from Step 2.&lt;br /&gt;5. PHP/server processes request, with no session Cookie, so creates NEW session&lt;br /&gt;6. Frame B receives response, with different session Cookie from Step 5.&lt;br /&gt;&lt;br /&gt;See Step 4 the browser *gets* the cookie it needed in step 3 for there to be just ONE session?&lt;br /&gt;&lt;br /&gt;Your best bet is to initialize the session in a frame-less landing page, and then move forward with frames.  Once the user has the session Cookie, all the frames can &quot;share&quot; it.&lt;br /&gt;&lt;br /&gt;You&#39;ll have to redirect a session-less user to that frame-less page and back again, however, which uses up a lot of HTTP connections, and so is resource-intensive.&lt;br /&gt;&lt;br /&gt;Note that Frame A and Frame B steps could actually interleave in ANY order, really. Each request is completely independent of the other.&lt;br /&gt;&lt;br /&gt;And *some* orderings are actually going to &quot;work&quot;, so you may not find this bug until your server gets busy enough that HTTP requests/responses start to lag a little bit.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/6950482186904173510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/6950482186904173510' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/6950482186904173510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/6950482186904173510'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2009/10/php-frames-and-sessions.html' title='PHP, Frames, and Sessions'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-7887422307244817770</id><published>2009-10-27T21:34:00.002-05:00</published><updated>2009-10-27T21:36:11.914-05:00</updated><title type='text'>Tethercommute</title><content type='html'>Being in the job market, I&#39;d like to make a modest proposal to HR and recruiters:&lt;br /&gt;&lt;br /&gt;Please label jobs where telecommute has geographical restrictions such as &quot;same city&quot; as &quot;tethercommute&quot;.&lt;br /&gt;&lt;br /&gt;I realize, of course, that coining such a term is no guarantee that it will be accepted in wide usage, but I doubt that anybody is going to misinterpret it.&lt;br /&gt;&lt;br /&gt;Thanks.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/7887422307244817770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/7887422307244817770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/7887422307244817770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/7887422307244817770'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2009/10/tethercommute.html' title='Tethercommute'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-3428502846090906348</id><published>2009-10-26T09:03:00.004-05:00</published><updated>2009-10-26T09:51:51.102-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="daylight savings time"/><category scheme="http://www.blogger.com/atom/ns#" term="DST"/><category scheme="http://www.blogger.com/atom/ns#" term="Nextel"/><category scheme="http://www.blogger.com/atom/ns#" term="Sprint"/><category scheme="http://www.blogger.com/atom/ns#" term="Sprint Sucks"/><title type='text'>Dear Sprint; Please update your time servers.</title><content type='html'>As you may know, I hate daylight savings.  It doesn&#39;t save anything anymore, if it ever did.&lt;br /&gt;&lt;br /&gt;And it&#39;s a royal pain.&lt;br /&gt;&lt;br /&gt;It&#39;s particularly painful to me, since my cell phone is my alarm clock.&lt;br /&gt;&lt;br /&gt;And apparently, Sprint / Nextel has &lt;span style=&quot;font-weight:bold;&quot;&gt;still&lt;/span&gt; not clued in to the fact that the &lt;br /&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Energy_Policy_Act_of_2005#Change_to_daylight_saving_time&quot;&gt;United States Congress has changed the dates on which clocks are changed&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It is particularly irksome, since I have duly informed Sprint / Nextel of this fact twice a year, every year, since 2007.&lt;br /&gt;&lt;br /&gt;Yes, I know I could change the option to take my cell phone off of network server time, and rely on its internal time clock.  Unfortunately, the cell phone then lags a minute or two eventually, since it is not synched with a reliable time source.&lt;br /&gt;&lt;br /&gt;For $100+ a month, Sprint can find somebody with a clue to update the time zone data on their time servers!&lt;br /&gt;&lt;br /&gt;If anybody reads this post and has any contacts at Sprint that can resolve this, please feel free to contact me.</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/3428502846090906348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/3428502846090906348' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3428502846090906348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/3428502846090906348'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2009/10/dear-sprint-please-update-your-time.html' title='Dear Sprint; Please update your time servers.'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-28350022.post-2934014089825900768</id><published>2009-06-03T11:53:00.003-05:00</published><updated>2009-07-07T10:06:32.329-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="performance"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Facebook Performance</title><content type='html'>I&#39;ve been logging calls to Facebook API servers in my DEV environment for some weeks now.&lt;br /&gt;&lt;br /&gt;I&#39;m pretty disappointed by the performance, overall:&lt;br /&gt;&lt;a href=&quot;http://l-i-e.com/fbapi_stats.htm&quot;&gt;Facebook API Call Performance Stats&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I realize Facebook has scalability issues beyond my ken, but they also have resources beyond my ken as well...&lt;br /&gt;&lt;br /&gt;Facebook doesn&#39;t wait over 4 seconds for my server; Surely I shouldn&#39;t have to wait 30 seconds for theirs! :-)&lt;br /&gt;&lt;br /&gt;In fact, it&#39;s kind of pointless in the context of a canvas page for their servers to bother to respond at all after 4 seconds...&lt;br /&gt;&lt;br /&gt;User --A--&gt; Facebook server request canvas page --B--&gt; Request to my server --C--&gt; API Call to Facebook server.&lt;br /&gt;&lt;br /&gt;If C can detect that we are in the context of a canvas page, and Facebook already &lt;span style=&quot;font-weight:bold;&quot;&gt;knows&lt;/span&gt; that B will not wait more than X seconds, they might as well issue an HTTP 408 Request Timeout or something similar after X seconds, because there&#39;s no real point in them giving me the info they aren&#39;t going to wait for...&lt;br /&gt;&lt;br /&gt;I went ahead and created a Feature Request in Facebook&#39;s Bugzilla. You can vote for it if you think it will help you.&lt;br /&gt;&lt;a href=&quot;http://bugs.developers.facebook.com/show_bug.cgi?id=5528&quot;&gt;#5528&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://richardlynch.blogspot.com/feeds/2934014089825900768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/28350022/2934014089825900768' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2934014089825900768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28350022/posts/default/2934014089825900768'/><link rel='alternate' type='text/html' href='http://richardlynch.blogspot.com/2009/06/facebook-performance.html' title='Facebook Performance'/><author><name>Richard Lynch</name><uri>http://www.blogger.com/profile/03615701995633150243</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkFVIjeJcE4bQ2MoCvWLGCS5lFUBU_nNxrc4FF_6oetYEBCsgqrONUDcjAxCWangHuZYD3r367sS8GeMTvDKCp4xWyS9ZTyvHw16wxC_5FKdIYE_YKP-JCqX-Ch4P8Hk/s220/RichardLynch.jpg'/></author><thr:total>0</thr:total></entry></feed>