<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Liquid Change</title>
	<atom:link href="http://liquid06.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://liquid06.wordpress.com</link>
	<description>I do internet sometimes.</description>
	<lastBuildDate>Thu, 30 Jun 2011 05:34:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='liquid06.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Liquid Change</title>
		<link>http://liquid06.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://liquid06.wordpress.com/osd.xml" title="Liquid Change" />
	<atom:link rel='hub' href='http://liquid06.wordpress.com/?pushpress=hub'/>
		<item>
		<title>CSS for the ::selection pseudo-element</title>
		<link>http://liquid06.wordpress.com/2011/06/21/selection-pseudo-element/</link>
		<comments>http://liquid06.wordpress.com/2011/06/21/selection-pseudo-element/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 05:01:47 +0000</pubDate>
		<dc:creator>liquid06</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://liquid06.wordpress.com/?p=380</guid>
		<description><![CDATA[Selecting an element that has a text-shadow applied can make the text look less readable. I wanted to include some detailed selection styles to remove the text shadow and add a background color that matches the colors throughout the rest of the site, so I added this to my stylesheet: ::-moz-selection, ::selection { text-shadow: none; <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=380&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Selecting an element that has a text-shadow applied can make the text look less readable. I wanted to include some detailed selection styles to remove the text shadow and add a background color that matches the colors throughout the rest of the site, so I added this to my stylesheet:</p>
<p><code><br />
::-moz-selection,<br />
::selection {<br />
  text-shadow: none;<br />
  background: #4F74C5;<br />
  color: #FFF;<br />
}<br />
</code></p>
<p>I wrote that after reading <a href="https://developer.mozilla.org/En/CSS/%3A%3Aselection">these notes</a> from Mozilla&#8217;s documentation, and I thought it would cover all browsers, but I wasn&#8217;t seeing the change applied in Firefox. After clearing the browser cache, refreshing a bunch of times, clearing the Drupal site cache and refreshing a bunch more times, I tried changing my CSS file like this:</p>
<p><code><br />
::-moz-selection {<br />
  text-shadow: none;<br />
  background: #4F74C5;<br />
  color: #FFF;<br />
}<br />
::selection {<br />
  text-shadow: none;<br />
  background: #4F74C5;<br />
  color: #FFF;<br />
}<br />
</code></p>
<p>And then it was applied in all browsers. Hm. Redundant, but OK. Why?</p>
<p>Because while unknown properties are ignored individually (rgba, -moz and -webkit,) selectors are ignored as a group. So if there is one selector in the comma-separated list that the browser didn&#8217;t understand it would ignore the whole group.</p>
<p>:)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/liquid06.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/liquid06.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/liquid06.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/liquid06.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/liquid06.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/liquid06.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/liquid06.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/liquid06.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/liquid06.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/liquid06.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/liquid06.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/liquid06.wordpress.com/380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/liquid06.wordpress.com/380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/liquid06.wordpress.com/380/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=380&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://liquid06.wordpress.com/2011/06/21/selection-pseudo-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf86965b37c3b4a589847fa78d0b3824?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">liquid06</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu 10.10 uses an amazing font by default</title>
		<link>http://liquid06.wordpress.com/2010/12/19/ubuntu-10-10-uses-an-amazing-font-by-default/</link>
		<comments>http://liquid06.wordpress.com/2010/12/19/ubuntu-10-10-uses-an-amazing-font-by-default/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 05:26:13 +0000</pubDate>
		<dc:creator>liquid06</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Ubuntu 10.10]]></category>

		<guid isPermaLink="false">http://liquid06.wordpress.com/?p=346</guid>
		<description><![CDATA[When you&#8217;re making something that other people are going to use to make things, helping them make something beautiful by default means that they&#8217;ll make more things and enjoy your product more. I installed Ubuntu 10.10 out of necessity. It hadn&#8217;t been that long since I upgraded to 10.04, but I have a Dell Inspiron <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=346&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re making something that other people are going to use to make things, helping them make something beautiful by default means that they&#8217;ll make more things and enjoy your product more.</p>
<p>I installed Ubuntu 10.10 out of necessity. It hadn&#8217;t been that long since I upgraded to 10.04, but I have a Dell Inspiron 1545 and the screen flicker problem that persists in 10.04 was too annoying for me. I can&#8217;t get anything done if I keep getting distracted by the bottom half of my display suddenly becoming red horizontal lines like some strange flash on the screen in a movie when they&#8217;re trying to portray the main character losing their grip on sanity.</p>
<p>Anyway, I am so impressed by 10.10 because of <a href="https://launchpad.net/ubuntu-font-family">the ubuntu font family</a>. With <a href="https://chrome.google.com/extensions/detail/gmpnnplimbnbmdaigmnajmbdcinhpddj">the Chrome extension </a>that displays all web pages in the new typeface, everything is suddenly important and beautiful. It feels light and airy, and I don&#8217;t feel like I am worthy of writing this post. My words are not beautiful, true, or important enough to be expressed by these letterforms.</p>
<p>OK, maybe that&#8217;s a little melodramatic. But I&#8217;m <em>really</em> happy about it!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/liquid06.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/liquid06.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/liquid06.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/liquid06.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/liquid06.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/liquid06.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/liquid06.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/liquid06.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/liquid06.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/liquid06.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/liquid06.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/liquid06.wordpress.com/346/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/liquid06.wordpress.com/346/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/liquid06.wordpress.com/346/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=346&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://liquid06.wordpress.com/2010/12/19/ubuntu-10-10-uses-an-amazing-font-by-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf86965b37c3b4a589847fa78d0b3824?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">liquid06</media:title>
		</media:content>
	</item>
		<item>
		<title>Pet peeve: Referring to your layout in your copy</title>
		<link>http://liquid06.wordpress.com/2010/12/18/pet-peeve-referring-to-your-layout-in-your-copy/</link>
		<comments>http://liquid06.wordpress.com/2010/12/18/pet-peeve-referring-to-your-layout-in-your-copy/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 05:17:52 +0000</pubDate>
		<dc:creator>liquid06</dc:creator>
				<category><![CDATA[Web design]]></category>
		<category><![CDATA[copywriting]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[user experience]]></category>
		<category><![CDATA[web Design]]></category>

		<guid isPermaLink="false">http://liquid06.wordpress.com/?p=348</guid>
		<description><![CDATA[Copywriting for the web is not easy &#8211; that&#8217;s why there are smart and talented people who get paid to take care of this important and delicate aspect of communication. But not every design/development shop/department is staffed with these sorts of people. I&#8217;m no professional when it comes to any kind of writing, but I <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=348&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Copywriting for the web is not easy &#8211; that&#8217;s why there are smart and talented people who get paid to take care of this important and delicate aspect of communication. But not every design/development shop/department is staffed with these sorts of people. I&#8217;m no professional when it comes to any kind of writing, but I think one of my pet peeves from the perspective of a user can serve as good advice for do-it-yourself copywriters.</p>
<h2>Here&#8217;s my non-professional advice</h2>
<p>Don&#8217;t include the visual location of elements of your layout in your copy text. </p>
<p>If someone can&#8217;t find the button you want them to click, then that&#8217;s a usability problem. As a general rule of thumb: if you feel you need to add instructions, maybe you should re-think the design. Users want to feel powerful &#8211; like they know what to do. They want to feel smart &#8211; when you walk them though every step, that does <em>not</em> make them feel smart. But that&#8217;s beside the point. Back to referring to layout in your copy.</p>
<p>One of the main reasons that you should avoid referring to your layout in your copy is that the layout won&#8217;t stay the same forever. Hopefully there are people managing the website who want to continue making it better &#8211; if they&#8217;re making it better, there&#8217;s a chance that they&#8217;re going to change the layout. If you&#8217;ve got instructions that refer to the old layout, then the user experience for those that need the instructions can be rather annoying and sometimes confusing. You could update the directions to refer to the new layout, but do you want to do that every time? Why not make it so easy that you don&#8217;t need any instructions at all?</p>
<h2>Example 1 &#8211; a personal blog</h2>
<p>I saw one example on a personal blog. I can&#8217;t find the link at the moment, but the text read something like &#8220;To see the blogs that I like, check out the blogroll in the right sidebar.&#8221; </p>
<h4>Problems</h4>
<ol>
<li>the site had been redesigned since that had been written, and the blogroll was actually on the left.</li>
<li>I&#8217;m not sure that the body of the page is the best place to describe what your blogroll is. If you don&#8217;t think your audience is going to know what &#8220;blogroll&#8221; means, then maybe you could instead
<ul>
<li>Include that statement in the same area as the links to other blogs (proximity)</li>
<li>Change the label &#8220;blogroll&#8221; to something else that&#8217;s more easy to understand.</li>
</ul>
</li>
</ol>
<h2>Example 2 &#8211; a calendar on a computer training website</h2>
<p>This website sells training in programming-related topics. Since I&#8217;m seeking training for work, and the site was recommended by a colleague, my expectation was that the site would be really professional. This bit of copy really didn&#8217;t make a very good impression on me. (I had intended to go get a screengrab to demonstrate the layout, but when I tried the link today it had an error 500 and I couldn&#8217;t access it!) Anyway, the copy went like this:</p>
<blockquote><p>
&#8220;We also provide course calendar information in the form of an RSS feed. This feed allows you to create a bookmark in some browsers, that is dynamically updated with our latest course calendar. If you are using a browser, such as Firefox, that supports this feature, click on the RSS button  at the bottom of your browser window to add a &#8220;live&#8221; bookmark to our calendar.&#8221;
</p></blockquote>
<p> &#8212; http://www.otg-nc.com/training-course-calendar/</p>
<h4>Problems</h4>
<ol>
<li>Browsers change. The most recent version of Firefox actually displays the RSS icon in the address bar, and Opera displays an icon there but doesn&#8217;t offer live bookmarks. Chrome doesn&#8217;t offer this feature, and I refuse to open IE to see what it does.</li>
<li>It seems rather noble to provide such instructions &#8211; you&#8217;re educating them! But it also hints that live bookmarks are the only way or the best way to use an RSS feed &#8211; we&#8217;re not getting the whole story here.</li>
<li>It doesn&#8217;t seem like the target customers of the site will actually need these instructions.</li>
</ol>
<h2>Example 3 &#8211; Dryad data</h2>
<p>I was curious about this dryad site &#8211; I followed a link from somewhere else so I was clicking around in the informational pages. Including explicit instructions here seemed appropriate, but the text read:</p>
<blockquote><p>
&#8220;The best way to find data in Dryad is to search, using the search box at the top left of the page.&#8221;
</p></blockquote>
<p>&#8211; http://www.datadryad.org/using</p>
<p>Hmmm. I see a search box in the top right of the page. I think this could have been communicated just as clearly without referring to the visual location of the search box.</p>
<h2>What if I don&#8217;t have a top-left corner on my page?</h2>
<p>I&#8217;m a sighted user, but I know not all users are. How does referring to the visual location of an element in your instructional copy further confuse and waste the time of a user browsing the web using a screen reader, or using an alternate layout to zoom the text?</p>
<h2>My two cents</h2>
<p>Don&#8217;t refer to areas of your layout in your site copy. If you feel like you have to include instructions (especially for end-users), there&#8217;s probably a larger problem that you&#8217;re trying to band-aid. You should fix the problem instead of covering it over with words. Referring to the visual location of something leaves you with copy that&#8217;s out of date if you ever change the layout, and it doesn&#8217;t work if your users are browsing with a screenreader or another method that displays your page differently than you see it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/liquid06.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/liquid06.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/liquid06.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/liquid06.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/liquid06.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/liquid06.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/liquid06.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/liquid06.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/liquid06.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/liquid06.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/liquid06.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/liquid06.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/liquid06.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/liquid06.wordpress.com/348/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=348&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://liquid06.wordpress.com/2010/12/18/pet-peeve-referring-to-your-layout-in-your-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf86965b37c3b4a589847fa78d0b3824?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">liquid06</media:title>
		</media:content>
	</item>
		<item>
		<title>Multisite Drupal installation in a subdirectory</title>
		<link>http://liquid06.wordpress.com/2010/12/11/multisite-drupal-installation-in-a-subdirectory/</link>
		<comments>http://liquid06.wordpress.com/2010/12/11/multisite-drupal-installation-in-a-subdirectory/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 15:44:42 +0000</pubDate>
		<dc:creator>liquid06</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://liquid06.wordpress.com/?p=343</guid>
		<description><![CDATA[I&#8217;ve forgotten the little details of this so often&#8230;hey, maybe I should write it down! liquid06@ocelot:/var/www$ drush dl drupal Project drupal (6.19) downloaded to /var/www/drupal-6.19/. [success] liquid06@ocelot:/var/www$ mv drupal-6.19 coolsite liquid06@ocelot:/var/www$ cd coolsite/sites/default liquid06@ocelot:/var/www/coolsite/sites/default$ cp default.settings.php settings.php liquid06@ocelot:/var/www/coolsite/sites/default$ cd ../ liquid06@ocelot:/var/www/coolsite/sites$ cp -R default localhost.coolsite.subsite liquid06@ocelot:/var/www/coolsite/sites$ sudo chown -R liquid06.www-data * liquid06@ocelot:/var/www/coolsite/sites$ sudo chmod -R <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=343&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve forgotten the little details of this so often&#8230;hey, maybe I should write it down!<br />
<code><br />
liquid06@ocelot:/var/www$ drush dl drupal<br />
Project drupal (6.19) downloaded to /var/www/drupal-6.19/.           [success]<br />
liquid06@ocelot:/var/www$ mv drupal-6.19 coolsite<br />
liquid06@ocelot:/var/www$ cd coolsite/sites/default<br />
liquid06@ocelot:/var/www/coolsite/sites/default$ cp default.settings.php settings.php<br />
liquid06@ocelot:/var/www/coolsite/sites/default$ cd ../<br />
liquid06@ocelot:/var/www/coolsite/sites$ cp -R default localhost.coolsite.subsite<br />
liquid06@ocelot:/var/www/coolsite/sites$ sudo chown -R liquid06.www-data *<br />
liquid06@ocelot:/var/www/coolsite/sites$ sudo chmod -R 775 *<br />
liquid06@ocelot:/var/www/coolsite/sites$ cd ../<br />
liquid06@ocelot:/var/www/coolsite$ ln -s . subsite<br />
liquid06@ocelot:/var/www/coolsite$ mysql -u root -p<br />
mysql&gt; create database coolsite;<br />
Query OK, 1 row affected (0.03 sec)</p>
<p>mysql&gt; create database coolsite_subsite;<br />
Query OK, 1 row affected (0.00 sec)</p>
<p>mysql&gt; grant all on coolsite.* to cooluser@localhost identified by 'password';<br />
Query OK, 0 rows affected (0.05 sec)</p>
<p>mysql&gt; grant all on coolsite_subsite.* to subsiteuser@localhost identified by 'password';<br />
Query OK, 0 rows affected (0.00 sec)<br />
</code></p>
<p>Next, open up a web browser, visit localhost/coolsite and run the install script. Then visit localhost/coolsite/subsite and run the install script there.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/liquid06.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/liquid06.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/liquid06.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/liquid06.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/liquid06.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/liquid06.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/liquid06.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/liquid06.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/liquid06.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/liquid06.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/liquid06.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/liquid06.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/liquid06.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/liquid06.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=343&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://liquid06.wordpress.com/2010/12/11/multisite-drupal-installation-in-a-subdirectory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf86965b37c3b4a589847fa78d0b3824?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">liquid06</media:title>
		</media:content>
	</item>
		<item>
		<title>Recovering From Bad Block Code</title>
		<link>http://liquid06.wordpress.com/2010/12/04/recovering-from-bad-block-code/</link>
		<comments>http://liquid06.wordpress.com/2010/12/04/recovering-from-bad-block-code/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 13:00:57 +0000</pubDate>
		<dc:creator>liquid06</dc:creator>
				<category><![CDATA[Drupal6]]></category>
		<category><![CDATA[supporting technologies]]></category>
		<category><![CDATA[blocks]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[eval'd code]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wsod]]></category>

		<guid isPermaLink="false">http://liquid06.wordpress.com/?p=354</guid>
		<description><![CDATA[So, I&#8217;m a newb &#8211; I don&#8217;t know how to write PHP code properly. I get error messages frequently and they give me hints as to where I&#8217;ve screwed up. But I&#8217;m not totally new to Drupal. I know that custom blocks with PHP code are possible, and I&#8217;ve had quite a few that worked <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=354&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m a newb &#8211; I don&#8217;t know how to write PHP code properly. I get error messages frequently and they give me hints as to where I&#8217;ve screwed up. But I&#8217;m not totally new to Drupal. I know that custom blocks with PHP code are possible, and I&#8217;ve had quite a few that worked just fine. Most of that code was terribly simple &#8211; printing the base path and the path to the theme to get the src for an image. It seemed so innocent! But when I made one little typo, I learned that any PHP blocks, no matter how simple, might not be a good idea. From terribly simple to simply terrible.</p>
<p>White screen of death on the entire site! Fantastic!</p>
<p>Helpful drupal.org node number <a href="http://drupal.org/node/166556">166556</a> gave me a hint &#8211; oh, I just need to disable the problem block in the blocks table. Of course! From selecting around in the blocks table, I figured out my problem block&#8217;s ID number, but the status column was already set to zero. Ah, right. That&#8217;s because I&#8217;m too cool for admin/build/block since I learned about <a href="http://drupal.org/project/context">context</a>. I guess I expected the content of my block to be stored in the blocks table, well, just because of the name, but as it turns out the block body isn&#8217;t kept there.</p>
<p>Context keeps its stuff in a table, but I soon read through the serialized array far enough to see that the status of the block I was interested in was already set to <code>'0'</code>. I could delete the block from the <code>blocks</code> table, but what would happen to that context record? What a mess.</p>
<p>It seemed like the easiest thing to would be to correct the typo in the actual body of the block code&#8230;If I could just <em>find</em> it.</p>
<p>I probably picked the most awkward way to figure out which table I was looking for: I made a mysqldump and searched for a string that I knew was part of the bad block code. Well, it worked! I finally figured out that the body of a custom block gets stored in the <code>boxes</code> table. Huh, I guess I didn&#8217;t see it because of all those <code>content_field_*</code> tables crowding up the <code>show tables</code> listing.</p>
<p>OK, I&#8217;ve learned something though: Block content is stored in the boxes table. Once I knew that, I updated the &#8216;body&#8217; field for the problem block and was able to regain control of my site.</p>
<p>But now I understand one of the reasons why PHP code in blocks <em>really</em> isn&#8217;t a good idea!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/liquid06.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/liquid06.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/liquid06.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/liquid06.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/liquid06.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/liquid06.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/liquid06.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/liquid06.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/liquid06.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/liquid06.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/liquid06.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/liquid06.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/liquid06.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/liquid06.wordpress.com/354/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=liquid06.wordpress.com&amp;blog=583971&amp;post=354&amp;subd=liquid06&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://liquid06.wordpress.com/2010/12/04/recovering-from-bad-block-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf86965b37c3b4a589847fa78d0b3824?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">liquid06</media:title>
		</media:content>
	</item>
	</channel>
</rss>
