<?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/"
	>

<channel>
	<title>Geek Rant dot org &#187; Web pages</title>
	<atom:link href="http://www.geekrant.org/category/code/web-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekrant.org</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 10:44:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Remote server frustration</title>
		<link>http://www.geekrant.org/2011/12/30/remote-server-frustration/</link>
		<comments>http://www.geekrant.org/2011/12/30/remote-server-frustration/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 21:41:47 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Web pages]]></category>

		<guid isPermaLink="false">http://www.geekrant.org/?p=2100</guid>
		<description><![CDATA[I can understand the principle of locking down web browsers on server machines, but there should at least be a straightforward way of overriding it. The other week we were connected to a remote server trying to debug some ASPX code. That&#8217;s remote as in: on another continent, and not using the fastest connection. (It [...]]]></description>
			<content:encoded><![CDATA[<p>I can understand the principle of locking down web browsers on server machines, but there should at least be a straightforward way of overriding it.</p>
<p>The other week we were connected to a remote server trying to debug some ASPX code. That&#8217;s remote as in: on another continent, and not using the fastest connection. (It was designed to be fast for a remote population of users, not us.)</p>
<p>A good way to debug the code without switching on debug errors for everybody is to RDP onto the box and browse it from there.</p>
<p>This didn&#8217;t work because, despite Windows 2008 IE ESC (<a href="http://msdn.microsoft.com/en-us/library/ms537180.aspx">Internet Explorer Enhanced Security Configuration</a>) not being enabled, it was blocking cookies, and every option I could find to try and turn it back on was either disabled, or did nothing.</p>
<p>&#8216;Cos you know, browsing localhost (which has your own code on it ferchrissake) is a terrible security risk. Sigh.</p>
<p>In a rush to resolve it, we eventually resorted to downloading and installing Firefox on the machine. (I love Chrome, but its automatic updates and things scare me slightly; probably not good for a server. Some day I&#8217;ll dig around and figure out if it can be turned off. Come to think of it I should make sure FF doesn&#8217;t do the same thing.)</p>
<p>Firefox brought its own problems. Straight after installation, it decided to load up some hideously slow (on this less than ideal link) page with video. No, actually, two pages &#8212; using two tabs &#8212; and despite it proclaiming how fast and responsive it is, wouldn&#8217;t respond. Blargh. Thanks a bundle, Mozilla.</p>
<p>It must have taken a minute or more to come back &#8212; a long frustrating time when you&#8217;re in a hurry.</p>
<p>This solution did, however, work &#8212; we could finally see the debug messages, thank goodness.</p>
<p>Is there an official way of getting IE to behave itself?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekrant.org/2011/12/30/remote-server-frustration/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Census night is coming</title>
		<link>http://www.geekrant.org/2011/08/03/census-night-is-coming/</link>
		<comments>http://www.geekrant.org/2011/08/03/census-night-is-coming/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 07:16:29 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Archiving]]></category>
		<category><![CDATA[AU]]></category>
		<category><![CDATA[Web pages]]></category>

		<guid isPermaLink="false">http://www.geekrant.org/?p=2040</guid>
		<description><![CDATA[The census delivery chick turned up and offered us the option of paper or electronic form. Two programmers looked at each other, thought about how they value their time and the response was a no-brainer: &#8220;We&#8217;re programmers,&#8221; I explained, &#8220;we&#8217;ll take the paper form.&#8221; &#8220;There&#8217;s a phone number you can call if you have any [...]]]></description>
			<content:encoded><![CDATA[<p>The census delivery chick turned up and offered us the option of paper or electronic form.</p>
<p>Two programmers looked at each other, thought about how they value their time and the response was a no-brainer:</p>
<p>&#8220;We&#8217;re programmers,&#8221; I explained, &#8220;we&#8217;ll take the paper form.&#8221;</p>
<p>&#8220;There&#8217;s a phone number you can call if you have any trouble filling out the electronic form&#8221; reassures the collector.</p>
<p>Cathy thinks: &#8220;Sure, that line won&#8217;t have any trouble when twenty million Australians simultaneously log into the web site to fill in the forms via a broken SSL link, using IE specific controls (that only work under some versions Windows assuming they&#8217;re correctly patched and have the right libraries loaded), demanding full round-trips to the underspec&#8217;d Windows servers to populate unnecessarily complex custom controls, some of which will no doubt demand Flash or COM.  Come to think of it, it probably won&#8217;t even be web based, and we&#8217;ve only got two Windows boxes, one of which is tucked under a table (Yay! Census night on the floor swearing at the ABS&#8217;s programmers!) and the other has a screen resolution that went out with buggy whips (I&#8217;ve had programs barf and refuse to run because the resolution was unacceptable).&#8221;</p>
<p>We chose paper.  For another view of the world, I&#8217;m looking forward hearing to how census night worked for Daniel&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekrant.org/2011/08/03/census-night-is-coming/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Pressing a button does not demand JavaScript</title>
		<link>http://www.geekrant.org/2010/06/05/pressing-a-button-does-not-demand-javascript/</link>
		<comments>http://www.geekrant.org/2010/06/05/pressing-a-button-does-not-demand-javascript/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 13:48:24 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Site design]]></category>

		<guid isPermaLink="false">http://www.geekrant.org/?p=1740</guid>
		<description><![CDATA[The state of software produced by web developers is highly variable.  The things the good programmers can do is little short of astonishing, as it always has been with limited environments.  But the bad programmers&#8230; Fifteen years ago I did a Microsoft certification thingy, and now they want me to do a satisfaction survey on it &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>The state of software produced by web developers is highly variable.  The things the good programmers can do is little short of astonishing, as it always has been with limited environments.  But the bad programmers&#8230;</p>
<p>Fifteen years ago I did a Microsoft certification thingy, and now they want me to do a satisfaction survey on it &#8211; for no compensation.  I think not.  But I notice an unsubscribe link at the bottom of the email, so I follow it: <a title="Not my real details, but the page works regardless" href="http://www.mailingsvcs.com/optout.aspx?type=email&amp;optout=1&amp;service=1&amp;networkid=9001&amp;id=josh@example.com&amp;pid=p53457652">http://www.mailingsvcs.com/optout.aspx?type=email&amp;optout=1&amp;service=1&amp;networkid=9001&amp;id=josh@example.com&amp;pid=p53457652</a>, see the Submit button, click on it&#8230; and nothing happens.  And then I realise &#8211; it needs JavaScript to press.  A button, one of those things right at the heart of HTML 2.0.  What is this, amateur hour?  Turns out, yes it is because if you follow the hacked URL above &#8212; which if filled with bogus data &#8212; and click on the Submit data, the back end proceeds happily without validating any of the data, and asks you another question before confirming that it&#8217;s done:</p>
<blockquote>
<div>We&#8217;re sorry you no longer want to receive e-mails from us. Please allow one week for us to process this request, during which time you may still receive e-mails from us. We apologize for any inconvenience.</div>
<div>To help us improve our service, please tell us <strong>the primary reason</strong> why you no longer wish to receive our messages:</div>
</blockquote>
<p>There appears to be some kind of problem with their computers.  Last time I checked, the time it takes a computer to remove a record from a database is in the vicinity of &#8220;I&#8217;m already finished&#8221;, not <em>one week</em>.</p>
<p>I&#8217;m of the opinion that people who construct software ought to be required to put their name on it in a visible way, so they can go on my list of people to <span style="font-size: large;">smack in the face</span> when I meet them.  It&#8217;s for the best.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekrant.org/2010/06/05/pressing-a-button-does-not-demand-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Django MVC doing it wrong?</title>
		<link>http://www.geekrant.org/2010/06/04/is-django-mvc-doing-it-wrong/</link>
		<comments>http://www.geekrant.org/2010/06/04/is-django-mvc-doing-it-wrong/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 13:24:26 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[HTML-CSS]]></category>

		<guid isPermaLink="false">http://www.geekrant.org/?p=1715</guid>
		<description><![CDATA[I&#8217;ve just starting fooling around with Django (a Python web framework), and was looking to produce a form. Bear in mind that Django doesn&#8217;t really do MVC, but follows the philosophy &#8211; separation of logic, representation and appearance: class BookForm(forms.Form): title = forms.CharField() def BookView(request): form = BookForm() return render_to_response('book.html', {'form': form}) With boot.html containing [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just starting fooling around with Django (a Python web framework), and was looking to produce a form.  Bear in mind that Django doesn&#8217;t really do MVC, but follows the philosophy &#8211; separation of logic, representation and appearance:<br />
<code></p>
<pre>class BookForm(forms.Form):
    title = forms.CharField()

def BookView(request):
    form = BookForm()
    return render_to_response('book.html', {'form': form})</pre>
<p></code>With boot.html containing (amongst other things):<code></p>
<pre>&lt;form action="" method="get"&gt;
{{ form.as_table }}
&lt;input type="submit" value="Search" /&gt;
&lt;/form&gt;</pre>
<p></code>Which is great!  MVC, separation of data, presentation and business logic.  Now, how do you get a CSS class onto that title field?  CSS, being the way of separating out the presentation part of a HTML page from the data that&#8217;s embedded in it? As above, but chuck it in as such:<code>
<pre>class BookForm(forms.Form):
    title = forms.CharField(
        widget=forms.TextInput(attrs={'class':'title-field'}))</pre>
<p></code>Seeing this crunched the gearbox in my mind.  All that messy designer stuff, where they make things look nice, that&#8217;s worming it&#8217;s way into my business logic?  Perhaps it&#8217;s not so wrong, as the business logic does indeed know that this is a <em>title-field</em>.  But it doesn&#8217;t quite sit right with me.  I&#8217;m not convinced it&#8217;s wrong, but if you were, you could instead do this in your CSS and HTML:<code>
<pre>&lt;style&gt;
.title-field input {background:#ccC68f;}
&lt;/style&gt;
&lt;form action="" method="get"&gt;
&lt;table&gt;
&lt;tr&gt;&lt;td class="title-field"&gt; {{ form.title }} &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;input type="submit" value="Search" /&gt;
&lt;/form&gt;</pre>
<p></code>Which pretty much forces you to individually place fields &#8212; you get to specify the order of fields plus their individual CSS classes.</p>
<p>I&#8217;m not sure what the answer is here.  Anyone care to enlighten this noob? Bear in mind that there&#8217;s a thing to magically tie a model to a form meaning you don&#8217;t even need to specify the fields in both the form and model, which you can&#8217;t use if you start tossing styles into each field.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekrant.org/2010/06/04/is-django-mvc-doing-it-wrong/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Chrome doesn&#8217;t sandbox the CPU; Goggle docs waits really hard</title>
		<link>http://www.geekrant.org/2010/05/19/chrome-doesnt-sandbox-the-cpu-goggle-docs-waits-really-hard/</link>
		<comments>http://www.geekrant.org/2010/05/19/chrome-doesnt-sandbox-the-cpu-goggle-docs-waits-really-hard/#comments</comments>
		<pubDate>Wed, 19 May 2010 06:31:45 +0000</pubDate>
		<dc:creator>josh</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[Google and Gmail]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.geekrant.org/2010/05/19/chrome-doesnt-sandbox-the-cpu-goggle-docs-waits-really-hard/</guid>
		<description><![CDATA[Chrome doesn&#8217;t attempt to sandbox CPU consumption. I just closed an inactive Google docs spreadsheet, and saw CPU fall from pegged-at-100% to bubbling along at 10%. Does it really need each available CPU cycle to wait for the other end to do something? Apparently so, in the way it&#8217;s coded. Google: not as clever as [...]]]></description>
			<content:encoded><![CDATA[<p>Chrome doesn&#8217;t attempt to sandbox CPU consumption.  I just closed an inactive Google docs spreadsheet, and saw CPU fall from pegged-at-100% to bubbling along at 10%.</p>
<p>Does it really need each available CPU cycle to wait for the other end to do something?  Apparently so, in the way it&#8217;s coded.</p>
<p>Google: not as clever as the press release makes out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekrant.org/2010/05/19/chrome-doesnt-sandbox-the-cpu-goggle-docs-waits-really-hard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

