<?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>anupsaund</title>
	<atom:link href="http://www.anupsaund.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anupsaund.com</link>
	<description>... thoughts from a Web Developer.</description>
	<lastBuildDate>Tue, 11 May 2010 13:36:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Stripslashes in SQL for MYSQL and ORACLE</title>
		<link>http://www.anupsaund.com/2010/04/28/stripslashes-in-sql-for-mysql-and-oracle/</link>
		<comments>http://www.anupsaund.com/2010/04/28/stripslashes-in-sql-for-mysql-and-oracle/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 10:07:55 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/?p=44</guid>
		<description><![CDATA[Problem
Today, I wanted to strip slashes from a comment field using SQL (INSTEAD of using php stripslashes).
Why you ask?
I was working on an application which had not considered stripslashes for formatting output.
So I had a look and realised. Do I change 40,000 lines of code to add Stripslashes, or 1 line at the SQL select [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>Today, I wanted to strip slashes from a comment field using SQL (INSTEAD of using php stripslashes).</p>
<p>Why you ask?</p>
<p>I was working on an application which had not considered stripslashes for formatting output.</p>
<p>So I had a look and realised. Do I change 40,000 lines of code to add Stripslashes, or 1 line at the SQL select statement?</p>
<p>OK, slight exaggeration, but you get what I mean.</p>
<p><strong>Solution</strong></p>
<p>MySQL</p>
<pre class="brush: sql">
Select
  Replace(field_name, &#039;\\&#039;, &#039;&#039;) as stripped_field
from
  table;
</pre>
<p>Oracle</p>
<pre class="brush: sql">
Select
  Replace(field_name, &#039;\&#039;, &#039;&#039;) as stripped_field
from
  table;
</pre>
<p><strong>PHP<em> EXTRA</em></strong></p>
<p><em>If using in PHP add an extra backslash like this;</em></p>
<pre class="brush: sql">
// strip slashes as part of the SQL select statement
$sql = &quot;Select Replace(field_name, &#039;\\\&#039;, &#039;&#039;) as stripped_field from table&quot;;
</pre>
<p><em>Please get in touch if you know of an easier way to do this, for example, Oracle Functions, or MySQL functions.</em></p>
<p><em>Many thanks and happy coding.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2010/04/28/stripslashes-in-sql-for-mysql-and-oracle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I remember the days before ADODB</title>
		<link>http://www.anupsaund.com/2010/03/04/i-remember-the-days-before-adodb/</link>
		<comments>http://www.anupsaund.com/2010/03/04/i-remember-the-days-before-adodb/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 22:24:44 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/?p=42</guid>
		<description><![CDATA[I remember a time when SQL was written for a database.
Oracle SQL was different to Access SQL
mySQL was different to SQL Server SQL
&#8230; then somebody said no, stop, enough is enough.
Sometime in 2009 ADODB was born for PHP. The 1 wrapper for ALL database types. Ah, just what we wanted.
Wait a minute? This is ADO, [...]]]></description>
			<content:encoded><![CDATA[<p>I remember a time when SQL was written for a database.</p>
<p>Oracle SQL was different to Access SQL</p>
<p>mySQL was different to SQL Server SQL</p>
<p>&#8230; then somebody said no, stop, enough is enough.</p>
<p>Sometime in 2009 ADODB was born for PHP. The 1 wrapper for ALL database types. Ah, just what we wanted.</p>
<p>Wait a minute? This is ADO, didn&#8217;t microsoft do this in 1996? The short answer is yes. Database abstracting is old in theory, tried out by microsoft, worked to a degree but never fully made it in the world (for whatever reason).</p>
<p>This brings us up to ADODB  &#8211; the promise of a database wrapper that will make it through, and iron out the issues that microsofts offering had.</p>
<p>Today I got my hands dirty with ADODB and I liked it. Looks and feels just like any other wrapper such as ADO.</p>
<p>Actually, I think it&#8217;s the same same. So so&#8230; così così.</p>
<p>One thing for sure. It makes hot swapping between Oracle/MySQL (which is what i&#8217;m doing right now) a breeze.</p>
<p>That&#8217;s why i&#8217;m writing about it.</p>
<p>I like it&#8230; how about you?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2010/03/04/i-remember-the-days-before-adodb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PRE tags, the quick way to keep formatting</title>
		<link>http://www.anupsaund.com/2010/03/01/pre-tags-the-quick-way-to-keep-formatting/</link>
		<comments>http://www.anupsaund.com/2010/03/01/pre-tags-the-quick-way-to-keep-formatting/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 22:21:28 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/?p=35</guid>
		<description><![CDATA[I get asked quite often if there is a way to show CODE on a website, with it&#8217;s formatting in place?
The short answer is &#60;pre&#62;
It can output free text (i.e. non server side code) in a pre-formatted way. Yep, PRE = Pre-formatted.
On top of that, Preformatted also renders the php print_r() output in a nicely [...]]]></description>
			<content:encoded><![CDATA[<p>I get asked quite often if there is a way to show CODE on a website, with it&#8217;s formatting in place?</p>
<p>The short answer is &lt;pre&gt;</p>
<p>It can output free text (i.e. non server side code) in a pre-formatted way. Yep, PRE = Pre-formatted.</p>
<p>On top of that, Preformatted also renders the php print_r() output in a nicely nested unordered list, which is great for debug purposes;</p>
<p>e.g. </p>
<pre class="brush: php">  echo &quot;&lt;pre&gt;&quot;;    print_r($arr);  echo &quot;&lt;/pre&gt;&quot;; </pre>
<p>I am sure there are other uses for the &lt;pre&gt; tag too, I have just scratched the surface.</p>
<p>Give it a go &#8211; let me know if you find other uses for it.</p>
<p>Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2010/03/01/pre-tags-the-quick-way-to-keep-formatting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BCC &#8211; Blind Carbon Copy &#8211; The forgotten field!</title>
		<link>http://www.anupsaund.com/2010/03/01/bcc-blind-carbon-copy-the-forgotten-field/</link>
		<comments>http://www.anupsaund.com/2010/03/01/bcc-blind-carbon-copy-the-forgotten-field/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:57:44 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[Email]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/?p=30</guid>
		<description><![CDATA[The BCC field can usually be found underneath the CC field.
Sound&#8217;s obvious right?
You already know about the field, yes?
Great!
&#8212; but not everyone knows about it, or how to use it. I say this because I have had emails sent to me where ALL the contacts have been in the To: field.
This is bad practice because;
1) [...]]]></description>
			<content:encoded><![CDATA[<p>The BCC field can usually be found underneath the CC field.</p>
<p>Sound&#8217;s obvious right?</p>
<p>You already know about the field, yes?</p>
<p>Great!</p>
<p>&#8212; but not everyone knows about it, or how to use it. I say this because I have had emails sent to me where ALL the contacts have been in the To: field.</p>
<p>This is bad practice because;</p>
<p>1) It violates the data protection act (we didn&#8217;t give permission for our email address to be shared)</p>
<p>2) Looks unprofessional</p>
<p>3) Opens us up to spam!</p>
<p>Whenever I get an email like this, it is usually because the person sending it is inexperienced/hasn&#8217;t had the training in proper use of email. So for those who use the BCC field correctly well done. For everyone else, please learn.</p>
<p>For MASS email, please enter ALL your to contacts into the BCC field, and then add your own address to the TO field. This way, ALL emails will appear to be sent to yourself, with blind carbon copies going off to everyone else.</p>
<p>Happy emailing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2010/03/01/bcc-blind-carbon-copy-the-forgotten-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Sky Design &#8211; Website Launch</title>
		<link>http://www.anupsaund.com/2010/03/01/in-sky-design-website-launch/</link>
		<comments>http://www.anupsaund.com/2010/03/01/in-sky-design-website-launch/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:49:14 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/?p=28</guid>
		<description><![CDATA[&#8220;I&#8217;ve opened up a web design business&#8221;
After many years of freelance web development, I decided to bite the bullet and &#8220;open up shop&#8221;.
In Sky Design is an association of designers and developers working together to create user friendly websites. We offer web design, graphic design and web application development; for start up business and established [...]]]></description>
			<content:encoded><![CDATA[<p><strong>&#8220;I&#8217;ve opened up a web design business&#8221;</strong></p>
<p>After many years of freelance web development, I decided to bite the bullet and &#8220;open up shop&#8221;.</p>
<p><strong>In Sky Design</strong> is an association of designers and developers working together to create user friendly websites. We offer web design, graphic design and web application development; for start up business and established businesses who need internet solutions.</p>
<p>Please take a look at <a title="Uk Web Design" href="http://www.inskydesign.co.uk">www.inskydesign.co.uk</a></p>
<p>We have set packages along with a price guide to show what our customers most commonly ask for.</p>
<p>If you can&#8217;t find it on the website, no problem, please ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2010/03/01/in-sky-design-website-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista Compatibility Mode</title>
		<link>http://www.anupsaund.com/2009/05/21/vista-compatibility-mode/</link>
		<comments>http://www.anupsaund.com/2009/05/21/vista-compatibility-mode/#comments</comments>
		<pubDate>Thu, 21 May 2009 12:15:08 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[Registry]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/vista-compatibility-mode</guid>
		<description><![CDATA[Here&#8217;s a nice neat trick to get Windows XP application to work in VISTA.
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]&#34;$path&#34;=&#34;WINXPSP2&#34;
Replace $path with the absolute path to your program;
i.e. 

c:\\program files\\myapp\\myapp.exe

Make sure you add double back slashes.
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nice neat trick to get Windows XP application to work in VISTA.</p>
<pre class="brush: bash">[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]&quot;$path&quot;=&quot;WINXPSP2&quot;</pre>
<p>Replace <strong>$path</strong> with the absolute path to your program;</p>
<p>i.e. </p>
<pre class="brush: bash">
c:\\program files\\myapp\\myapp.exe
</pre>
<p>Make sure you add double back slashes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2009/05/21/vista-compatibility-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop the Microsoft Office 2007 Logo / toolbar / ribbon from blinking / flashing</title>
		<link>http://www.anupsaund.com/2009/05/12/stop-the-microsoft-office-2007-logo-toolbar-ribbon-from-blinking-flashing/</link>
		<comments>http://www.anupsaund.com/2009/05/12/stop-the-microsoft-office-2007-logo-toolbar-ribbon-from-blinking-flashing/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:24:26 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[Access 2007]]></category>
		<category><![CDATA[Office 2007]]></category>
		<category><![CDATA[Visual Basic]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/stop-the-microsoft-office-2007-logo-toolbar-ribbon-from-blinking-flashing</guid>
		<description><![CDATA[The Issue Microsoft Office 2007 has a wonderful new interface with ribbons, which other developers are adopting as a windows standard. However, when office is installed and used for the first time, the Microsoft Logo (shown below) flashes until the user clicks it.

So what&#8217;s the problem? 
I have been using the Microsoft Access 2007 object [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Issue </strong>Microsoft Office 2007 has a wonderful new interface with ribbons, which other developers are adopting as a windows standard. However, when office is installed and used for the first time, the Microsoft Logo (shown below) flashes until the user clicks it.</p>
<p><img title="Microsoft Flashing Logo" alt="Microsoft Flashing Logo" src="http://www.anupsaund.com/flashing_logo.gif" /></p>
<p><strong>So what&#8217;s the problem? </strong></p>
<p>I have been using the Microsoft Access 2007 object in Visual Basic at work, and attempting to open an instance of Access as hidden. The issue comes up when we distributing the application that we have created.</p>
<p>When the user installs Access 2007 &#8211; Run Time Edition, and then runs our application, the Access Window pops up, with the flashing logo.</p>
<p><strong>How do I stop it from flashing?</strong></p>
<p>This is the million dollar question that I&#8217;ve been trying so hard to find the answer to.</p>
<p>- Brielfly, I ran a registry comparison tool (<a title="RegFormApp" href="http://nirsoft.net/utils/reg_file_from_application.html">RegFormApp</a>) to see what happens when the user clicks on the microsoft logo in an office program.</p>
<p>The program showed that the following registry key was being updated.</p>
<pre class="brush: bash"> [HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\General]
&quot;OfficeMenuDiscovered&quot;=dword:00000001</pre>
<p>Okay, for those of you who use windows registry edit, follow the following steps;</p>
<p><img title="How to change the setting" alt="How to change the setting" src="http://www.anupsaund.com/what_to_do.gif" /></p>
<p>1) Navigate through the tree menu on the left, until you get to the right place.</p>
<p>2) Double click on &#8220;OfficeMenuDiscovered&#8221;.</p>
<p>3) Change the setting from 0 to 1. Click OK to save the changes.</p>
<p style="font-weight: bold">The .REG File Method<br />
Stick the following into notepad, and then save the file as a .reg extention.</p>
<pre class="brush: bash">[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\General]
&quot;OfficeMenuDiscovered&quot;=dword:00000001</pre>
<p>This will make it into a Registry update file that you can use in installers, etc, to get the setting set!
</p>
<p style="font-weight: bold"><span style="font-weight: normal">All I can say is that it&#8217;s been a journey.</span></p>
<p style="font-weight: bold"><span style="font-weight: normal">I hope this post saves you a lot of time and effort in your developments. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2009/05/12/stop-the-microsoft-office-2007-logo-toolbar-ribbon-from-blinking-flashing/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 7 &#8211; Accessibility Options</title>
		<link>http://www.anupsaund.com/2008/11/23/internet-explorer-7-accessibility-options/</link>
		<comments>http://www.anupsaund.com/2008/11/23/internet-explorer-7-accessibility-options/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 00:05:49 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/internet-explorer-7-accessibility-options</guid>
		<description><![CDATA[These settings are a web developers worst nightmare&#8230;. what happens if a web browser ignores the website FONTS? or worst still the STYLESHEETS?
Well &#8211; i guess if the website is built with accessibilty in mind, then there is no problem;
The page will render correct, no matter what browser or platform&#8230; but&#8230; if you have to [...]]]></description>
			<content:encoded><![CDATA[<p>These settings are a web developers worst nightmare&#8230;. what happens if a web browser ignores the website FONTS? or worst still the STYLESHEETS?</p>
<p>Well &#8211; i guess if the website is built with accessibilty in mind, then there is no problem;</p>
<p>The page will render correct, no matter what browser or platform&#8230; but&#8230; if you have to use absolute positioning, and specific font sizes&#8230; then please please bear these settings in mind.</p>
<p><img align="middle" alt="IE7 Accessibility Options" title="IE7 Accessibility Options" src="http://www.anupsaund.com/images/accessibility_options.gif" /></p>
<p>Tools | Internet Options | Accessibility.</p>
<p>Happy coding people!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2008/11/23/internet-explorer-7-accessibility-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Split a Price (FLOAT) into Pounds (£) and Pence (p)</title>
		<link>http://www.anupsaund.com/2008/04/22/split-a-price-float-into-pounds-and-pence-p/</link>
		<comments>http://www.anupsaund.com/2008/04/22/split-a-price-float-into-pounds-and-pence-p/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 21:37:52 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/split-a-price-float-into-pounds-and-pence-p</guid>
		<description><![CDATA[Whilst working on an E-commerce website, written in PHP i came across and issue where i had a price stored in a table as a float.
I wanted to split the pounds, and pence into two variables to make it easier to work with, but then save the results back into 1 field. So this is [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst working on an E-commerce website, written in PHP i came across and issue where i had a price stored in a table as a float.</p>
<p>I wanted to split the pounds, and pence into two variables to make it easier to work with, but then save the results back into 1 field. So this is what i did.</p>
<p><a title="PHP Explode Function" href="http://uk2.php.net/manual/en/function.explode.php#63110">http://uk2.php.net/manual/en/function.explode.php#63110</a></p>
<pre class="brush: php">
//If you want to split a price (float) into pounds and pence.
//or dollors and cents etc etc.

$price = &quot;6.20&quot;;

$split = explode(&quot;.&quot;, $price);
$pound = $split[0]; // piece1
$pence = $split[1]; // piece2

echo &quot;&amp;pound $pound . $pence\n&quot;;&lt;/span&gt;&lt;/code&gt;
</pre>
<p>Enjoy <img src='http://www.anupsaund.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2008/04/22/split-a-price-float-into-pounds-and-pence-p/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Logmein Desktop Shortcuts (Bypass Logmein Website Login)</title>
		<link>http://www.anupsaund.com/2008/04/22/logmein-desktop-shortcuts-bypass-logmein-website-login/</link>
		<comments>http://www.anupsaund.com/2008/04/22/logmein-desktop-shortcuts-bypass-logmein-website-login/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 20:54:56 +0000</pubDate>
		<dc:creator>Anup Saund</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.anupsaund.com/logmein-desktop-shortcuts-bypass-logmein-website-login</guid>
		<description><![CDATA[www.LOGMEIN.com
Step 1: Log into logmein.com
Step 2: Click on &#8220;My Computers&#8221;
Step 3: Click on &#8220;Edit Computer&#8221;
Step 4: Click on &#8220;Desktop Shortcut&#8221;
Final Step: You can now drag the [Compuer Name] onto your desktop, to create a desktop shortcut.
When you click on this shortcut, it will go directly to the login page for the COMPUTER, instead of having [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" title="Logmein.com" href="http://www.anupsaund.com/www.logmein.com">www.LOGMEIN.com</a></p>
<p>Step 1: Log into logmein.com</p>
<p>Step 2: Click on &#8220;My Computers&#8221;</p>
<p>Step 3: Click on &#8220;Edit Computer&#8221;</p>
<p>Step 4: Click on &#8220;Desktop Shortcut&#8221;</p>
<p>Final Step: You can now drag the [Compuer Name] onto your desktop, to create a desktop shortcut.</p>
<p>When you click on this shortcut, it will go directly to the login page for the COMPUTER, instead of having to login to the logmein website.</p>
<p>Great HUH!</p>
<p>You can also right click, and copy the URL, and then do what you want with it. At work we have collated a list of all our computer connections, and published it in a central place, so that everyone in the office can access any machine, directly.</p>
<p>Nice One LOGMEIN.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anupsaund.com/2008/04/22/logmein-desktop-shortcuts-bypass-logmein-website-login/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
