{"id":108,"date":"2004-01-28T18:04:46","date_gmt":"2004-01-28T18:04:46","guid":{"rendered":"http:\/\/grind.rpol.net\/?p=108"},"modified":"2010-03-15T23:41:14","modified_gmt":"2010-03-15T23:41:14","slug":"insomnia-thoughts-and-rambling-oh-my","status":"publish","type":"post","link":"https:\/\/grind.rpol.net\/?p=108","title":{"rendered":"Insomnia, thoughts and rambling!  Oh my!"},"content":{"rendered":"<p>6:30pm I was napping on the study floor, I kid you not. \u00a0Bed probably would have been a more comfortable choice, however if I&#8217;d done that I would not have made my 7:30 squash game. \u00a0Setting an alarm is just way too complicated.<\/p>\n<p>So now it&#8217;s 1:30am, and of course I&#8217;m awake. \u00a0I knew this would happen, ready to fall asleep on my feet in the afternoon, wide awake at night. \u00a0It&#8217;s part of being a techie I believe, but really, I don&#8217;t enjoy it overly much.<\/p>\n<p>It was Australia Day on Monday. \u00a0A day of national pride, where we can all get together and celebrate our Australian-ness and what makes us and our Island\/Continent so damn excellent. \u00a0In Western Australia this all comes to a head at 8pm when we have the fireworks over the river, and event watched by pretty much everyone in one for or another.<\/p>\n<p>However over one thousand individuals thought rather than feel proud and stand tall it&#8217;d be a better idea to have a <em>mass brawl<\/em> while another group thought it&#8217;d be jolly great sporting fun (wot wot) to throw beer bottles at each other (as IronSite asked me, how does a fight involving throwing bottles start?). \u00a0So rather than national pride, I&#8217;m now filled with a deep sense of shame and embarrassment on the behalf of those involved, because I&#8217;m sure they don&#8217;t have the decency to have any such notions.<\/p>\n<p>Lastly, the more I work on RPoL the more I get the feeling it needs a proper database administrator, a proper web developer, a proper coder and a proper graphic designer. \u00a0I don&#8217;t fit into any of those categories.<\/p>\n<p>I&#8217;ve been working on a few things on the site of late, but this one has annoyed me the most.<\/p>\n<p>While looking at changing to XHTML I discovered\/realised that my document type at the start of the HTML was actually incomplete, currently saying;<\/p>\n<p><tt>&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\"&gt;<\/tt><\/p>\n<p>When what I really need is<\/p>\n<p><tt>&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\"<br \/>\n\"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\"&gt;<\/tt><\/p>\n<p>Though what I had before was valid, the lack of &#8216;dtd&#8217; file puts most browsers into &#8216;quirks&#8217; mode. \u00a0So I added it in, surely the full thing would be better, hopefully more uniform rendering across all browsers.<\/p>\n<p>So I added it in. \u00a0Now every single table cell defaults to <em>centre<\/em> aligned, rather than left. \u00a0I blamed this on XHTML at first, but then I realised it did it with HTML when I specified the dtd.<\/p>\n<p>So I can either go through and tell every table cell with no alignment that it&#8217;s now left, but there&#8217;s a <span style=\"text-decoration: underline;\">lot<\/span> of them, and apparently that&#8217;s not what you do any more, you use style sheets.<\/p>\n<p>So I can set the default in the style sheet so the cells are left aligned, easy. \u00a0Except for the small fact that the style sheet takes precedence over the &#8220;align=&#8217;center'&#8221; and &#8220;align=&#8217;right'&#8221; I had to align the cells, so they&#8217;re all left aligned regardless.<\/p>\n<p>I can, of course, make two special style sheet cases to align the text to the centre and right, and (having called these &#8216;centre&#8217; and &#8216;right&#8217;) go through and change all instances of &#8220;align=&#8217;center'&#8221; and &#8220;align=&#8217;right'&#8221; to &#8220;class=&#8217;center'&#8221; and &#8220;class=&#8217;right'&#8221;, respectively. \u00a0However I cannot do a global search and replace because &#8220;align=&#8217;center'&#8221; and &#8220;align=&#8217;right'&#8221; occur in more than just table cells.<\/p>\n<p>Anyone want a job of manual search and replace?<\/p>\n<p>And did I mention that the nice nifty CSS command to hide the side scrollbar (unless it&#8217;s needed) no longer works when I specify the dtd? \u00a0I&#8217;m really beginning to question if it&#8217;s worth it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>6:30pm I was napping on the study floor, I kid you not. \u00a0Bed probably would have been a more comfortable choice, however if I&#8217;d done that I would not have made my 7:30 squash game. \u00a0Setting an alarm is just way too complicated. So now it&#8217;s 1:30am, and of course I&#8217;m awake. \u00a0I knew this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-default-ramblings","tag-rpol"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/grind.rpol.net\/index.php?rest_route=\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/grind.rpol.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/grind.rpol.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/grind.rpol.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/grind.rpol.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108"}],"version-history":[{"count":1,"href":"https:\/\/grind.rpol.net\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/grind.rpol.net\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/grind.rpol.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/grind.rpol.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/grind.rpol.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}