<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>PHP, ASP, SQL, MySQL, XHTML, CSS, Actionscript 3, Linux Multi Media Studio, social media expert.

“Life is really simple, but we insist on making it complicated.” 
- Confucius

Blog to the left and portfolio above, you cant get simpler than that.

          </description><title>Don Roche</title><generator>Tumblr (3.0; @donroche)</generator><link>http://donroche.com/</link><item><title>STOP SOPA</title><description>&lt;p&gt;&lt;a class="tumblr_blog" href="http://watchtowertoarrow.tumblr.com/post/16052638163/jayziti-stop-sopa-for-the-love-of-the" target="_blank"&gt;watchtowertoarrow&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a class="tumblr_blog" href="http://jayziti.tumblr.com/post/16052580066/stop-sopa" target="_blank"&gt;jayziti&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;STOP SOPA.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For the love of the internet and all that has brought so many people and events into our lives!&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://donroche.com/post/16056683696</link><guid>http://donroche.com/post/16056683696</guid><pubDate>Wed, 18 Jan 2012 10:03:11 +0000</pubDate></item><item><title>My Mixes : 20120105</title><description>&lt;p&gt;
&lt;object height="81" width="100%"&gt;
&lt;param name="movie" value="https://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F32785357&amp;show_artwork=false&amp;width=398&amp;color=3b5998&amp;height=84"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/object&gt;
&lt;span&gt;&lt;a href="http://soundcloud.com/donroche/20120105-1" target="_blank"&gt;20120105&lt;/a&gt; by &lt;a href="http://soundcloud.com/donroche" target="_blank"&gt;donroche&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My latest mix of some electronic and rock songs.&lt;/p&gt;</description><link>http://donroche.com/post/15532914678</link><guid>http://donroche.com/post/15532914678</guid><pubDate>Sun, 08 Jan 2012 22:48:12 +0000</pubDate><category>djing</category><category>mixes</category></item><item><title>HTML : Simple back button</title><description>&lt;blockquote&gt;
&lt;p&gt;&lt;a href=”#” onclick=(history.back())&gt;Back&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Enjoy its simplicity.&lt;/p&gt;</description><link>http://donroche.com/post/13921352284</link><guid>http://donroche.com/post/13921352284</guid><pubDate>Thu, 08 Dec 2011 14:40:10 +0000</pubDate><category>HTML</category><category>back button</category></item><item><title>Javascript : scrollIntoView()</title><description>&lt;p&gt;There are two things I hate most in web development; Javascript and Internet Explorer. A stupid amount of my time is wasted trying to find hacks for Internet Explorer. I spent a month trying to fix this annoying little problem. IE for some reason, would not allow anchor links to work in tabs using jQuery after the database has been updated. It was a tiny little problem that I couldnt solve, then I found this one line solution.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a onClick=”document.getElementById(‘linkName’).scrollIntoView();” style=”cursor: pointer;”&gt;Link Name&lt;/a&gt;&lt;/p&gt;
&lt;a id="linkName" name="linkName"&gt; &lt;/a&gt;&lt;/blockquote&gt;
&lt;p&gt;This scrolls down to your anchor link be it in Firefox or Internet Explorer. The style above gives it the right cursor so it looks like a hyper-link.&lt;/p&gt;</description><link>http://donroche.com/post/13542512951</link><guid>http://donroche.com/post/13542512951</guid><pubDate>Wed, 30 Nov 2011 11:38:22 +0000</pubDate><category>javascript</category><category>anchor links</category><category>internet explorer</category></item><item><title>Facebook: I Love Ron Paul</title><description>&lt;p&gt;Interesting piece on info:&lt;/p&gt;

&lt;blockquote&gt;
&lt;h6 class="uiStreamMessage"&gt;&lt;span class="messageBody"&gt;1. Copy the term that comes after the colon: @+[180524488684766:0]&lt;br/&gt; 2. Paste it in the comment box.&lt;br/&gt; 3. Delete the “+” sign.&lt;br/&gt; 4. Press “Enter.”&lt;/span&gt;&lt;/h6&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span class="messageBody"&gt;In doing so produces the comment, “&lt;/span&gt;&lt;span class="commentBody"&gt;I Love Ron Paul&lt;/span&gt;&lt;span class="messageBody"&gt;”. Neat.&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;</description><link>http://donroche.com/post/13220196395</link><guid>http://donroche.com/post/13220196395</guid><pubDate>Wed, 23 Nov 2011 21:36:50 +0000</pubDate><category>ron paul</category><category>2012</category><category>facebook</category></item><item><title>AR Drone: First flight</title><description>&lt;p&gt;Been waiting for this for a year for this. Ordered it over the weekend and it came on the Thursday. I was very tired that day so I struggled to work out how to connect it,  so I left it for the next day.&lt;/p&gt;
&lt;p&gt;Unfortunately there inst any instructions on how to connect it to an Android phone in the manual, but I e-mailed the company and they sent me some instructions. It was a bit tricky but doable.&lt;/p&gt;
&lt;p&gt;I pressed take off in my small room and it flew out of control and crashed. First flight failure. I took it down to the hall way for another go. It is very hard to fly but I got better at controlling it towards the end . Took me awhile to work out that you hold down on the left button to fly forward. I crashed it several times. The battery ran out very quickly but that expected.&lt;/p&gt;
&lt;p&gt;Overall it is fun to play with it and hopefully over time I’ll get better. The worst part was when it got stuck in the corner of the hall way and I tried grabbing it. I hurt my finger on the propeller.&lt;/p&gt;</description><link>http://donroche.com/post/12980552436</link><guid>http://donroche.com/post/12980552436</guid><pubDate>Fri, 18 Nov 2011 21:40:00 +0000</pubDate><category>ar drone</category><category>android</category></item><item><title>Skype: Hidden smoking emoticon</title><description>&lt;p&gt;This is the funniest thing I have found on skype. My favourite emoticon on Skype in the squirrel, but I can now see the hidden smoking to over take it as my favourite. It is not listed in the emoticon menu.&lt;br/&gt;&lt;br/&gt;Open Skype chat and type:&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;(smoking)&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://donroche.com/post/12963311739</link><guid>http://donroche.com/post/12963311739</guid><pubDate>Fri, 18 Nov 2011 09:59:38 +0000</pubDate><category>emoticon</category><category>skype</category></item><item><title>Outlook: 'locate link browser' solution</title><description>&lt;p&gt;There are dozens of websites explaining how to make your Outlook open hyper-links in e-mails that produce this error, ‘locate link browser’. However I cannot find anywhere to explain how to avoid this problem if you send out a newsletter and your receivers do not know how to solve this problem themselves.&lt;br/&gt;&lt;br/&gt;Simples.&lt;br/&gt;&lt;br/&gt;When sending your newsletter, in order to avoid readers from being blocked from opening your newsletter, simply switch “www.” for “http://” in your hyper-links. So open the source of e-mails HTMl code. Look for the hyper-link tag &lt;a href=”www.DonRoche.com”&gt;Link&lt;/a&gt;, and switch it for &lt;a href=”http://DonRoche.com”&gt;Link&lt;/a&lt;/p&gt;</description><link>http://donroche.com/post/10843156587</link><guid>http://donroche.com/post/10843156587</guid><pubDate>Fri, 30 Sep 2011 11:04:26 +0100</pubDate><category>outlook</category><category>locate link browser</category></item><item><title>XHTML: Pop up help box</title><description>&lt;p&gt;JavaScript is handy for making a load of impressive functions but when you are working on a large project it can make your website unnecessarily slow. Take Facebook for example, it takes far too long to load a page and it has a lot of annoying JavaScript features that consumers just do not want. JavaScript also has security issues, and some colleagues suspect that JavaScript may have been invented by the devil(joking).&lt;br/&gt;&lt;br/&gt;Instead try to find CSS and XHTML solutions when you can.&lt;br/&gt;&lt;br/&gt;This is one simple example. There a ton of JavaScript of tutorials out there that show you how to make boxes pop up when you hover some declared element. These can easily customised, but ask yourself, does it really need to that complicate? The below example leaves a simple help question mark for users to hover over, and it pops up a simple title text to display information.&lt;br/&gt;&lt;br/&gt;It is easy and loads quickly.&lt;br/&gt;&lt;br/&gt;&lt;code&gt; &lt;a href="#" title="Simply add any text you want to make a simple pop up help box"&gt;&lt;b&gt;(?)&lt;/b&gt;&lt;/a&gt;&lt;br/&gt;&lt;/code&gt;&lt;/p&gt;</description><link>http://donroche.com/post/10273685609</link><guid>http://donroche.com/post/10273685609</guid><pubDate>Fri, 16 Sep 2011 12:22:43 +0100</pubDate><category>XHTML</category><category>JavaScript</category></item><item><title>Irish Catholic Hacked</title><description>&lt;p&gt;&lt;a target="_blank" href="http://www.irishcatholic.ie"&gt;&lt;a href="http://www.irishcatholic.ie" target="_blank"&gt;http://www.irishcatholic.ie&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;h2&gt;Site off-line&lt;/h2&gt;
&lt;p&gt;The Irish Catholic - Ireland’s biggest and best-selling  Catholic newspaper since 1888 is currently hacked We should be back  shortly. Thank you for your patience. And wish you to continue beliveing  in your false religion. &lt;/p&gt;


&lt;p&gt;&lt;em&gt;NoNameHere&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Gotta love false hope.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Get your act together. Several large sites on one server? Not a smart move Aidan Murphy. Watch your data.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Currently hacked by an unknown assailant.&lt;/p&gt;</description><link>http://donroche.com/post/10094785406</link><guid>http://donroche.com/post/10094785406</guid><pubDate>Sun, 11 Sep 2011 21:06:17 +0100</pubDate><category>Irish catholic</category><category>hacking</category></item><item><title>Let me Goole that for you</title><description>&lt;p&gt;I hate this website. Sometimes when searching for programming solutions it can be hard to describe what it is you want. So it is easier to just go online, go to a forum and describe what it is what you want in detail. But then some smart arse comes along and suggests you Google it. Obviously Googling the problem is easier than type it out. So most likely the person has already Googled and wants extra help.&lt;br/&gt;&lt;br/&gt;So I hate you &lt;a href="http://lmgtfy.com/" target="_blank"&gt;http://lmgtfy.com/&lt;/a&gt; you just help annoying anonymous jerks on the internet be more annoying and smug.&lt;/p&gt;</description><link>http://donroche.com/post/8822709021</link><guid>http://donroche.com/post/8822709021</guid><pubDate>Fri, 12 Aug 2011 15:45:51 +0100</pubDate><category>Let me Goole that for you</category></item><item><title>This is actually my future home.</title><description>&lt;iframe width="400" height="249" src="http://www.youtube.com/embed/Wo-fRuuwoPI?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;This is actually my future home.&lt;/p&gt;</description><link>http://donroche.com/post/8662040089</link><guid>http://donroche.com/post/8662040089</guid><pubDate>Mon, 08 Aug 2011 23:35:44 +0100</pubDate></item><item><title>Tumblr: Your name is stupid</title><description>&lt;p&gt;I was telling someone about one of my Tumblr blogs. I had to tell them blogname.tumblr.com then explain to them that Tumblr is spelt without an “e”. Then say “like t-u-m-b-l-r”. To me Tumblr made an awful mistake choosing their name. It takes too long to explain the address.&lt;/p&gt;

&lt;p&gt;Examples of better blogging sofware names.&lt;/p&gt;
&lt;p&gt;Twitter.com/blogname&lt;/p&gt;
&lt;p&gt;blogname.wordpress.com&lt;/p&gt;</description><link>http://donroche.com/post/7902313651</link><guid>http://donroche.com/post/7902313651</guid><pubDate>Thu, 21 Jul 2011 23:50:32 +0100</pubDate><category>tumblr</category></item><item><title>Javascript: Grey-out options if checkbox ticked</title><description>&lt;p&gt;The code bellow greys out, thus disables the second and third checked box options if the first option is ticked. pretty simple and straightforward.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;script type=”text/javascript”&gt;&lt;br/&gt;window.onload = function() {&lt;br/&gt;document.getElementById(“chkbx1”).onclick = disableThem;&lt;br/&gt;}&lt;br/&gt;function disableThem(){&lt;br/&gt;if (document.getElementById(“chkbx1”).checked)  {&lt;br/&gt; document.getElementById(“chkbx2”).disabled = true;&lt;br/&gt; document.getElementById(“chkbx3”).disabled = true;&lt;br/&gt;  } &lt;br/&gt;  else {&lt;br/&gt;        document.getElementById(“chkbx2”).disabled = false;&lt;br/&gt;        document.getElementById(“chkbx3”).disabled = false;&lt;br/&gt;        }&lt;br/&gt;}&lt;br/&gt;&lt;/script&gt;&lt;br/&gt;&lt;br/&gt;&lt;form&gt;&lt;br/&gt;&lt;input type=”checkbox” id=”chkbx1”&gt;Option 1&lt;br /&gt;&lt;br/&gt;&lt;input type=”checkbox” id=”chkbx2”&gt;Option 2&lt;br /&gt;&lt;br/&gt;&lt;input type=”checkbox” id=”chkbx3”&gt;Option 3&lt;br /&gt;&lt;br/&gt;&lt;/form&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;However if you want the default option that the first box is ticked and the the other two are grey-out.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;form&gt;&lt;br/&gt;&lt;input type=”checkbox” id=”chkbx1” checked&gt;Option 1&lt;br /&gt;&lt;br/&gt;&lt;input type=”checkbox” id=”chkbx2” disabled&gt;Option 2&lt;br /&gt;&lt;br/&gt;&lt;option value=”“&gt;Option 2&lt;/option&gt;&lt;br/&gt;&lt;input type=”checkbox” id=”chkbx3” disabled&gt;Option 3&lt;br /&gt;&lt;br/&gt;&lt;/form&gt;&lt;/p&gt;</description><link>http://donroche.com/post/7799003145</link><guid>http://donroche.com/post/7799003145</guid><pubDate>Tue, 19 Jul 2011 11:46:50 +0100</pubDate><category>javascript</category><category>grey-out</category><category>form</category><category>check box</category></item><item><title>LulzSec hacks NOTW</title><description>&lt;p&gt;Currently hoax article still up as I post this. Infamous hacking pranksters LulzSec have hacked News of the World website claimign that Rupert Murdoch is dead. He is not. Happy to say that this is the first blog to report it.&lt;/p&gt;
&lt;h1 class="medium"&gt;Media moguls body discovered&lt;/h1&gt;
&lt;p class="display-byline"&gt;By STAFF REPORTER&lt;/p&gt;
&lt;p class="display-byline"&gt;Published: Today&lt;/p&gt;
&lt;h2 class="padding-bottom-7"&gt;Rupert Murdoch, the controversial media mogul, has reportedly been found dead in his garden, police announce.&lt;/h2&gt;
&lt;p&gt;Murdoch, aged 80, has said to have ingested a large quantity of  palladium before stumbling into his famous topiary garden late last  night, passing out in the early hours of the morning.&lt;/p&gt;
&lt;p&gt;“We found the chemicals sitting beside a kitchen table, recently  cooked,” one officer states. “From what we can gather, Murdoch melted  and consumed large quantities of it before exiting into his garden.”&lt;/p&gt;
&lt;p&gt;&lt;img src="http://www.new-times.co.uk/sun/palladium.png" alt="Drug chemicals found in house"/&gt; Chemicals found in house&lt;/p&gt;
&lt;p&gt;Authorities would not comment on whether this was a planned suicide,  though the general consensus among locals and unnamed sources is that  this is the case.&lt;/p&gt;
&lt;p&gt;One detective elaborates. “Officers on the scene report a broken glass, a  box of vintage wine, and what seems to be a family album strewn across  the floor, containing images from days gone by; some containing  handpainted portraits of Murdoch in his early days, donning a top hat  and monocle.”&lt;/p&gt;
&lt;p&gt;Another officer reveals that Murdoch was found slumped over a  particularly large garden hedge fashioned into a galloping horse. “His  favourite”, a butler, Davidson, reports.&lt;/p&gt;
&lt;p&gt;Butler Davidson has since been taken into custody for additional questioning.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;Read more: &lt;a href="http://www.new-times.co.uk/sun/#ixzz1SUpOCBrX" target="_blank"&gt;&lt;a href="http://www.new-times.co.uk/sun/#ixzz1SUpOCBrX" target="_blank"&gt;http://www.new-times.co.uk/sun/#ixzz1SUpOCBrX&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://donroche.com/post/7775849383</link><guid>http://donroche.com/post/7775849383</guid><pubDate>Mon, 18 Jul 2011 22:48:00 +0100</pubDate><category>hacking</category><category>hoax</category><category>lulzsec</category><category>murdoch dead</category><category>notw</category><category>news of the world</category></item><item><title>ASP: Multiple submit buttons with images</title><description>&lt;p&gt;At times you may want your submit form to have multiple buttons. In this example we are creating a form that allows you to save your data or save your data and move you to the next page. We assume you already know how to insert data into a database with SQL.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Whatever text boxes or select options your form uses, the important bits are that you have the form action linking to your asp file that inserts the information into a database. You can use two images for the button and give them different names. In this case “save” and “saveandnext”.&lt;br/&gt;&lt;br/&gt;&lt;form action=”saveform.asp” &gt;&lt;br/&gt;&lt;input type=”image” name=”save” src=”/img/save.gif” onclick=”submitform();”/&gt;&lt;br/&gt;&lt;input type=”image” name=”saveandnext” src=”/img/saveandnext.gif” onclick=”submitform();” /&gt;&lt;br/&gt;&lt;/form&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;After you open the server connection, receive the form information and place it in the database, use an if statement which checks if the “nextandsave” image was pressed. If the “save” image is pressed then we are redirected to “samepage.asp”, if the “saveandnext” image is pressed we are move to the next page.&lt;br/&gt;&lt;br/&gt;&lt;%&lt;br/&gt;qry=”samepage.asp”&lt;br/&gt;if Request.querystring(“nextandsave.x”) &lt;&gt; nil  Then&lt;br/&gt;qry = replace(qry,”samepage.asp”,”nextpage.asp”)&lt;br/&gt;end if&lt;br/&gt;&lt;br/&gt;Response.Redirect(“/”&amp; qry &amp;”“)&lt;br/&gt;%&gt;&lt;/p&gt;</description><link>http://donroche.com/post/7573601020</link><guid>http://donroche.com/post/7573601020</guid><pubDate>Wed, 13 Jul 2011 15:47:42 +0100</pubDate><category>asp</category><category>form</category><category>submitt</category><category>multiple</category></item><item><title>ASP:HTML to Word plus dynamic database and page break</title><description>&lt;p&gt;&lt;p class="MsoNormal"&gt;Effectively to take information from either HTML or a database and put it in a new Word document, we have to make a new ASP page in the browser, and then open it with Microsoft Word. The main bit of code used is as follows :&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;%&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Response.ContentType = “application/msword”&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Response.AddHeader “Content-Disposition”, “attachment;filename=filename.doc”&lt;/p&gt;
&lt;p class="MsoNormal"&gt;%&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Everything else we just use response.write to fill the body of the text. But if you want the document to be nice and structured, I would advise placing in the following before the main body.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;%&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Response.write(“&lt;html ” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“xmlns:o=’urn:schemas-microsoft-com:office:office’ ” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“xmlns:w=’urn:schemas-microsoft-com:office:word’” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“xmlns=’http://www.w3.org/TR/REC-html40’&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;head&gt;&lt;title&gt;”)&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Response.write(Title of Document)&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Response.write(“&lt;/title&gt;”)&lt;/p&gt;


&lt;p class="MsoNormal"&gt;Response.write(“&lt;!—[if gte mso 9]&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;xml&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;w:WordDocument&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;w:View&gt;Print&lt;/w:View&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;w:Zoom&gt;90&lt;/w:Zoom&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;w:DoNotOptimizeForBrowser/&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;/w:WordDocument&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;/xml&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;![endif]—&gt;”)&lt;/p&gt;



&lt;p class="MsoNormal"&gt;Response.write(“&lt;style&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;!— /* Style Definitions */” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“@page Section1” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;” {size:8.5in 11.0in; ” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;” margin:1.0in 1.25in 1.0in 1.25in ; ” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;” mso-header-margin:.5in; ” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;” mso-footer-margin:.5in; mso-paper-source:0;}” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;” div.Section1” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;” {page:Section1;}” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“—&gt;” &amp; _&lt;/p&gt;
&lt;p class="MsoNormal"&gt;“&lt;/style&gt;&lt;/head&gt;”)&lt;/p&gt;
&lt;p class="MsoNormal"&gt;%&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Next you can just structure the document with HTML tags. Any way you would structure a website it should appear the same in the Word document.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;h1&gt;Heading&lt;/h1&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;p&gt;Paragraph1&lt;b&gt;bold text&lt;/b&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;p&gt;Paragraph2&lt;i&gt;italic text&lt;/i&gt;&lt;/p&gt;&lt;/p&gt;


&lt;p class="MsoNormal"&gt;And that’s the basics of it. Now if you want to take information from a database and print it out on a document. Like you might have a dynamic website were the users generating the content. Any script that pulls information from the database to display content, as long as it works in ASP it will work with this method. In my case I used a database call to get users profile information as displayed as I would display it on the website. If you have an ID tag to label content in a database, this method with display the information the same as it does on any webpage&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;!—#INCLUDE virtual=”NameOfDatabaseCall.asp”—&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;If you are pulling lots of information into the document, you might want to break it up on to different pages. Like if you were pulling information on different topics and on each topic you want to start a new word page. You need to put a page break into your ASP code at the end of whatever loop you are using.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;br clear=”all” style=”page-break-before:always” /&gt;&lt;/p&gt;&lt;/p&gt;</description><link>http://donroche.com/post/7342523426</link><guid>http://donroche.com/post/7342523426</guid><pubDate>Thu, 07 Jul 2011 15:47:34 +0100</pubDate><category>asp</category><category>html</category><category>word</category><category>microsoft</category><category>database</category><category>page break</category><category>documents</category></item><item><title>ASP: Randomising with an array</title><description>&lt;p&gt;Typically random nember generators in ASP look like this&lt;br/&gt;&lt;br/&gt;&lt;%&lt;br/&gt;max=5&lt;br/&gt;min=1&lt;br/&gt;&lt;br/&gt;Randomize&lt;br/&gt;my_num=int((max-min+1)*rnd+min)&lt;br/&gt;Response.Write my_num&lt;br/&gt;%&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Instinctively one would make the value &lt;i&gt;max&lt;/i&gt; equal to &lt;i&gt;ubound(yourArray)&lt;/i&gt;. However, since the bottom value of an array is 0, this messes up the maths and makes&lt;br/&gt;the minimum output 1, thus leaving out one array value and occasionally not returning anything at all. You can find long functions online on how to randomise an array, but since I prefer minimalist code in order to keep my code looking clean and efficient, I created an easier way to randomise arrays.&lt;/p&gt;

&lt;p&gt;Note that this method only works if you know your arrays max value. In this example it is 2.&lt;/p&gt;

&lt;p&gt;&lt;%&lt;br/&gt;max=2&lt;br/&gt;min=1&lt;br/&gt;&lt;br/&gt;Randomize&lt;br/&gt;my_num=int((max-min+1)*rnd)&lt;br/&gt;Response.Write yourArray(my_num)&lt;br/&gt;%&gt;&lt;/p&gt;</description><link>http://donroche.com/post/6861578317</link><guid>http://donroche.com/post/6861578317</guid><pubDate>Fri, 24 Jun 2011 12:00:06 +0100</pubDate><category>asp</category><category>arrays</category><category>random number</category><category>randomising</category></item><item><title>NEW INTERNET REGULATIONS COULD HARM BOTH THE GROWING DIGITAL INDUSTRY AND THE MUSIC INDUSTRY IT SEEKS TO PROTECT Claim Greens.  </title><description>&lt;p&gt;&lt;span&gt;&lt;strong&gt;*Don Roche is not endorsing the Green party, just agreeing with them.*&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br/&gt;Green Party Leader Eamon  Ryan said today. “T&lt;/span&gt;&lt;span&gt;he  proposed new regulations from Minister Richard  Bruton could have a  detrimental effect not only on the growing Irish digital industry but also for  the music industry that he seeks to protect.”&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;“Allowing  third parties compel internet service providers to block traffic will restrict  one of the core freedoms that has allowed the Internet develop.  We do need  to make sure that creative content is properly paid for but getting that  right requires more than just the simple enforcement regime that is being  proposed.”&lt;/span&gt; &lt;span&gt;&lt;br/&gt;&lt;/span&gt; &lt;span&gt;“The  recent Hargreaves report for the UK Government made it clear that  for these new industries to succeed there is the need for a  combination of measures including appropriate enforcement,  education &lt;/span&gt; and a big push to expand the  legitimate market for digital content&lt;span&gt;.   It makes clear that ineffective rights regime are worse than no rights at  all.”&lt;/span&gt; &lt;span&gt;&lt;br/&gt;&lt;/span&gt; &lt;em&gt;As the report states  ”It will be important  to ensure that enforcement measures are not designed or implemented in a  way &lt;/em&gt; &lt;em&gt;that alienates consumers and undermines work in  education and extending the appeal of legitimate &lt;/em&gt;&lt;em&gt;markets.   Emphasising enforcement as an alternative to improved digital licensing  and modernised &lt;/em&gt;&lt;em&gt;copyright law is the wrong approach.”&lt;/em&gt;&lt;span&gt;  &lt;/span&gt; &lt;span&gt;&lt;br/&gt;“As  online revenues overtake conventional sales, those countries which have  the  more sophisticated policy approach to the internet are likely to be  the ones where creative industries flourish.  We are heading down the road  of protecting a historical payment system while the market for creative content  moves onto new and better business models.”   &lt;br/&gt; &lt;br/&gt;“We  seem to be setting regulatory rules in response to individual court  decisions rather than setting out the broad policy approach in primary  legislation.  With every respect to our judiciary this is an area where the  political system has to take responsibility for policy   development.”   &lt;/span&gt; &lt;span&gt; &lt;/span&gt;  &lt;span&gt;“The  Minister needs to complete an analysis of what &lt;/span&gt;&lt;span&gt;broad  principles we wish to uphold in the regulation of the Internet and tease  out how we deal with areas where there is a conflict between different  principles.  We then need to come up with the range of policy measures  that can facilitate new market arrangements so that our creative  industries take off.  None of this policy work has been done.   Instead we are jumping for an immediate judicial  solution which may have unintended consequences.”&lt;/span&gt; &lt;span&gt;&lt;br/&gt;“The  Green Party will be making a submission to the consultation process and will be  encouraging the Minister to extend his consultation process further so that the  full consequences of his proposal can be considered.” concluded Eamon Ryan.&lt;/span&gt;&lt;br/&gt;&lt;span class="ecx958141510-23062011"&gt;Contact Eamon Ryan: 01  6790012&lt;/span&gt;&lt;br/&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;</description><link>http://donroche.com/post/6824245044</link><guid>http://donroche.com/post/6824245044</guid><pubDate>Thu, 23 Jun 2011 13:13:00 +0100</pubDate><category>the green party</category><category>internet regulations</category></item><item><title>Tumblr: Adding a post to the queue</title><description>&lt;p&gt;If you blog more than once a day on Tumblr, like I did today, maybe you should space out your posts so you dont spam your followers?&lt;/p&gt;
&lt;p&gt;Instinctively I would click on the right hand side drop down list and select “publish on”. But as a programmer I have some slight autistic tendencies and this option confuses me. If I say for example type “next monday” I assume it means the next Monday I will come across, but instead it saves it for a Monday further in the future.&lt;/p&gt;
&lt;p&gt;Instead select “add to queue” then “Queue post”.&lt;/p&gt;
&lt;p&gt;In your main dashboard page for your Tumblr account, &lt;em&gt;tumblr.com/tumblelog/&lt;/em&gt;*account Name*, you should an option above your Tumblr post viewing area:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;“Automatically publish a queued post (*) times a day between (*) and (*).”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I set this to one post a day to give a more calm and smooth posting experience.&lt;em&gt;&lt;br/&gt;&lt;/em&gt;&lt;/p&gt;</description><link>http://donroche.com/post/6719794317</link><guid>http://donroche.com/post/6719794317</guid><pubDate>Mon, 20 Jun 2011 12:00:06 +0100</pubDate><category>tumblr</category><category>que</category><category>queue</category></item></channel></rss>

