<?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>Samuel Haddad &#187; Web Design</title> <atom:link href="http://samuelhaddad.com/category/web-design/feed/" rel="self" type="application/rss+xml" /><link>http://samuelhaddad.com</link> <description></description> <lastBuildDate>Thu, 03 Nov 2011 16:32:38 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>FMyScript Disappearing Voting Links</title><link>http://samuelhaddad.com/2010/11/20/fmyscript-disappearing-voting-links/</link> <comments>http://samuelhaddad.com/2010/11/20/fmyscript-disappearing-voting-links/#comments</comments> <pubDate>Sat, 20 Nov 2010 06:14:46 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[FML]]></category> <category><![CDATA[FMyScript]]></category> <category><![CDATA[Voting]]></category> <guid
isPermaLink="false">http://samuelhaddad.com/?p=580</guid> <description><![CDATA[I was recently asked to work on a site running FMyScript. The problem was this every time a voting link was clicked the link would just disappear and the votes were not updated. The solution was two fold: Part 1: The first problem was the voting links has a &#8216; in the string such as [...]]]></description> <content:encoded><![CDATA[<p>I was recently asked to work on a site running FMyScript. The problem was this every time a voting link was clicked the link would just disappear and the votes were not updated.</p><p>The solution was two fold:</p><p><strong>Part 1:<br
/> </strong>The first problem was the voting links has a &#8216; in the string such as &#8220;I&#8217;m really sad to hear that&#8221; So I just changed the string instead of finding all the places I might have to escape it. I figured I am is better grammar anyways.</p><p><strong>Part 2:<br
/> </strong>The domain must the config file. That means if you set up your site with the www in the url and someone goes to your site without the www in the url the voting system will not work.</p><p>I modified the .htaccess files to force www by adding the following lines:</p><p><code>RewriteEngine on<br
/> RewriteCond %{HTTP_HOST} !^www.your_domain.com$<br
/> RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]</code></p><p>I hope this helps someone.</p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2010/11/20/fmyscript-disappearing-voting-links/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Simple XML Parse Flickr Feed</title><link>http://samuelhaddad.com/2010/10/21/simple-xml-parse-flickr-feed/</link> <comments>http://samuelhaddad.com/2010/10/21/simple-xml-parse-flickr-feed/#comments</comments> <pubDate>Thu, 21 Oct 2010 07:57:15 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Web Design]]></category> <guid
isPermaLink="false">http://samuelhaddad.com/?p=548</guid> <description><![CDATA[So in one of my recent projects I had to parse a Flickr feed and extract the image urls the code I came up with is as follows: Of course my code did more then just extract the URL, but I will leave the rest up to the creative developers.]]></description> <content:encoded><![CDATA[<p>So in one of my recent projects I had to parse a Flickr feed and extract the image urls the code I came up with is as follows:</p><pre class="brush: php; title: ; notranslate">&lt;?php
/* Author: Samuel Haddad
 * SimpleXML Flicker Feed Parser
 */
//Feed URL in RSS Format
$url =&quot;http://api.flickr.com/services/feeds/photos_public.gne?lang=en-us&amp;format=rss_200&quot;; //FEED URL
//Use simple XML to parse the feed
$xml = simplexml_load_file($url);
$items = $xml-&gt;xpath('/rss/channel/item');
foreach($items as $item){
 $nsmedia = $item-&gt;children('http://search.yahoo.com/mrss/');
 $img = $nsmedia-&gt;content-&gt;attributes();
 echo $img; //URL of Image
 echo &quot;&lt;br/&gt;&quot;;
}
?&gt;</pre><p>Of course my code did more then just extract the URL, but I will leave the rest up to the creative developers.</p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2010/10/21/simple-xml-parse-flickr-feed/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>2 Plugins to Eliminate WordPress Spam.</title><link>http://samuelhaddad.com/2009/05/10/2-plugins-to-eliminate-wordpress-spam/</link> <comments>http://samuelhaddad.com/2009/05/10/2-plugins-to-eliminate-wordpress-spam/#comments</comments> <pubDate>Mon, 11 May 2009 01:33:46 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Akismet]]></category> <category><![CDATA[Spam]]></category> <category><![CDATA[Wordpress Ban]]></category> <category><![CDATA[Wordpress Spam]]></category> <guid
isPermaLink="false">http://samuelhaddad.com/?p=356</guid> <description><![CDATA[Akismet Many avid bloggers are already familiar with Akismet and rightfully so.  Akismet does an amazing job of eliminating spam. It will catch 99% of spam and put it in the spam queue.  Head over to http://akismet.com/ and install Akismet. You will need to sign up for a WordPress account and get an API key. Don&#8217;t [...]]]></description> <content:encoded><![CDATA[<h2>Akismet</h2><p>Many avid bloggers are already familiar with Akismet and rightfully so.  Akismet does an amazing job of eliminating spam. It will catch 99% of spam and put it in the spam queue.  Head over to <a
href="http://akismet.com/">http://akismet.com/</a> and install Akismet. You will need to sign up for a WordPress account and get an API key. Don&#8217;t worry it takes 2 seconds and is worth it. Once Akismet is installed need to go to your <strong>Akismet Configuration, </strong>which is under plugins, and enter your WordPress API key. There is also a check box label &#8220;<strong>Automatically discard spam comments on posts older than a month.</strong>&#8220;  I chose to uncheck this. With this checked if Akismet detects spam on a post you wrote over a month ago it will just delete it. While Akismet is really good there is a chance you could lose some legitimate comments. If you combine this plugin with the one below there is really no use for this. However the choice is yours.  After that it is just a matter of waiting and letting Akismet do its work.</p><p>Akismet will install a little control panel to view statistics it will look something like this:</p><p><a
href="http://samuelhaddad.com/wp-content/uploads/2009/05/akismet.jpg"><img
class="alignnone size-medium wp-image-358" title="Akismet Control Panel" src="http://samuelhaddad.com/wp-content/uploads/2009/05/akismet-300x214.jpg" alt="Akismet Control Panel" width="300" height="214" border="0" /></a></p><p>From the WordPress dashboard you will want to check your <strong>Spam Queue </strong>to make sure that no legitimate messages get through. It does not happen often, but it does.</p><p><a
href="http://samuelhaddad.com/wp-content/uploads/2009/05/akismet.jpg"></a></p><h2>WP-Ban</h2><p>Akismet does an amazing  job of stoping spam comments from getting to your inbox. How about stoping spam before it ever gets submitted? That is were WP-Ban comes in. WP-Ban can be found at <a
href="http://wordpress.org/extend/plugins/wp-ban/">http://wordpress.org/extend/plugins/wp-ban/</a>. </p><p>Basically this can be used to block anyone from ever viewing your blog on the IP level.  Granted many spammers will jump though proxies and use 10 different IP&#8217;s in a minute. I noticed that I was getting 100&#8242;s of spam comments from 1 or 2 IP addresses. I would block that one IP for example the following 4 IP addresses accounted for over 400 spam comments in a day:</p><p>194.8.75.149<br
/> 194.8.75.163<br
/> 194.8.75.220<br
/> 194.8.74.220</p><p>Blocking those 4 IP address pretty much stopped my spam.</p><p>I would be very selective in blocking IP addresses, do not use ranges and <strong>never block your own IP.  </strong>Over the past week I have seen spam almost stop dead in it&#8217;s tracks.</p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2009/05/10/2-plugins-to-eliminate-wordpress-spam/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Visual Studio Tips and Tricks</title><link>http://samuelhaddad.com/2009/05/06/visual-studio-tips-and-tricks/</link> <comments>http://samuelhaddad.com/2009/05/06/visual-studio-tips-and-tricks/#comments</comments> <pubDate>Thu, 07 May 2009 02:30:55 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[Visual Studio]]></category> <guid
isPermaLink="false">http://samuelhaddad.com/?p=311</guid> <description><![CDATA[Alternate Case/Format selection: Have you ever been asked to update some code from a long time ago only to find that almost every tag is in capital letters?  AGHH! Highlight all that code and press CTRL + K then CTRL + F and you will format all the code. It would then look something like this [...]]]></description> <content:encoded><![CDATA[<h3>Alternate Case/Format selection:</h3><p>Have you ever been asked to update some code from a long time ago only to find that almost every tag is in capital letters?  AGHH!</p><pre class="brush: xml; title: ; notranslate">
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;My Really Old Site&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;P&gt; Lots of body test &lt;/P&gt;
&lt;P&gt; Lots of body test &lt;/P&gt;
&lt;P&gt; Lots of body test &lt;/P&gt;
&lt;IMG SRC=&quot;mypic.jpg&quot; width=351 height=113&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
</pre><p>Highlight all that code and press CTRL + K then CTRL + F and you will format all the code. It would then look something like this</p><pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My Really Old Site&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;
Lots of body test
&lt;/p&gt;
&lt;p&gt;
Lots of body test
&lt;/p&gt;
&lt;p&gt;
Lots of body test
&lt;/p&gt;
&lt;img src=&quot;mypic.jpg&quot; width=&quot;351&quot; height=&quot;113&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre><p>Granted your code may still be far from perfect, but it is definitely a huge help.</p><h2>Key Launcher (Like Alt + Tab on Windows)</h2><p>Are you someone that lives by keyboard shortcuts? I know I am.  Are you familar with Windows Alt + Tab keyboard shortcut and toggling through all active programs? Well a similar feature exists within Visual Studio press <strong>Ctrl + Tab </strong>and toggle through your active Windows and Files.</p><p><img
class="alignnone size-full wp-image-331" title="Visual Studio Ctrl + Tab" src="http://samuelhaddad.com/wp-content/uploads/2009/05/controltab.png" alt="Visual Studio Ctrl + Tab" width="600" height="326" /></p><h2>Intellisense</h2><p><strong>Control + Spacebar </strong>will bring up intellisense if you are in code view. Great if you click out by accident or you just want to see what is available in the scope of the code.</p><p><img
class="alignnone size-full wp-image-332" title="Visual Studio Intellisense" src="http://samuelhaddad.com/wp-content/uploads/2009/05/intellisense.png" alt="Visual Studio Intellisense" width="334" height="191" /></p><h2>Break Points</h2><p>Have a bunch of break points scattered over a couple of files in a solution. Just want to delete them all and start fresh. <strong>Ctrl + Shift + F9 </strong>will delete all current break points in a solution. Don&#8217;t worry Visual Studio will prompt you with a confirmation first.</p><h2>Get Visual Studio Professional for free!</h2><p>Well maybe. If you are a student like myself you can head over to <a
href="https://www.dreamspark.com/" target="_blank">https://www.dreamspark.com/</a>which is run by Microsoft. They offer full versions of some of the newest Microsoft products, like Visual Studio. Why? Because they know we are the future and they think we are an investment. Take them up on the opportunity and get ahead of the competition.</p><h2>Shortcut key posters:</h2><p>Microsoft Visual Studio has a bunch of keyboard combinations that can be very helpful, to get a more complete list check out some of the resources Microsoft offers:</p><h2><img
class="alignnone size-full wp-image-336" title="Visual Studio Key Reference Posters" src="http://samuelhaddad.com/wp-content/uploads/2009/05/posters.png" alt="Visual Studio Key Reference Posters" width="524" height="282" /></h2><p><a
href="http://www.microsoft.com/downloads/details.aspx?familyid=E5F902A8-5BB5-4CC6-907E-472809749973&amp;displaylang=en" target="_blank">Visual C# 2008 Keybinding Reference Poster</a></p><p><a
href="http://www.microsoft.com/downloads/details.aspx?familyid=255b8cf1-f6bd-4b55-bb42-dd1a69315833&amp;displaylang=en" target="_blank">Visual Basic 2008 Keybinding Reference Poster</a></p><p><a
href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4411bbfc-0e3c-42b3-bd05-af1d292c986f&amp;displaylang=en" target="_blank">Visual C++ 2008 Keybinding Reference Poster</a></p><p><a
href="http://www.microsoft.com/downloads/details.aspx?familyid=C15D210D-A926-46A8-A586-31F8A2E576FE&amp;displaylang=en" target="_blank">Visual C# 2005 Keyboard Shortcut Reference Poster</a></p><p><a
href="http://www.microsoft.com/downloads/details.aspx?FamilyID=6bb41456-9378-4746-b502-b4c5f7182203&amp;DisplayLang=en" target="_blank">Visual Basic 2005 Keyboard Shortcut Reference Poster</a></p><p><a
href="http://www.microsoft.com/downloads/details.aspx?FamilyID=bccf84f4-4136-48b2-b4ec-83eaa484da20&amp;DisplayLang=en" target="_blank">Visual C++ 2005 Keyboard Shortcut Reference Poster</a></p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2009/05/06/visual-studio-tips-and-tricks/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Overwriting an Excel file destination using SSIS</title><link>http://samuelhaddad.com/2009/03/31/overwriting-an-excel-file-destination-using-ssis/</link> <comments>http://samuelhaddad.com/2009/03/31/overwriting-an-excel-file-destination-using-ssis/#comments</comments> <pubDate>Tue, 31 Mar 2009 23:57:57 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[Desktop Enginnering]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[SSIS]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[Excel Destination]]></category> <category><![CDATA[Overwrite Excel File]]></category> <category><![CDATA[SQL]]></category> <category><![CDATA[SQL Server Integration Service]]></category> <guid
isPermaLink="false">http://samuelhaddad.com/?p=256</guid> <description><![CDATA[This was a problem I racked my brains over for a while when I first started using SSIS. I found a few possible including using a File System task to copy a &#8220;Template&#8221; Excel file over the existing on, or generating unique files by appending the date.  I simply wanted to overwrite the existing data [...]]]></description> <content:encoded><![CDATA[<p>This was a problem I racked my brains over for a while when I first started using SSIS. I found a few possible including using a File System task to copy a &#8220;Template&#8221; Excel file over the existing on, or generating unique files by appending the date.  I simply wanted to overwrite the existing data just like the <strong>Flat File Destination </strong>gives you that option.</p><p>My work around was as flows:</p><p>Create the Data flow the way you normally would, then go to the <strong>Control View </strong> Then add two <strong>Execute SQL Tasks </strong> before your data flow is called so it looks like this</p><div
id="attachment_257" class="wp-caption alignnone" style="width: 170px"><img
class="size-medium wp-image-257" title="Step 1: Add Execute SQL Task 1 to Control Flow" src="http://samuelhaddad.com/wp-content/uploads/2009/03/step1controlflow.png" alt="Step 1: Add Execute SQL Task 1 to Control Flow" width="160" height="257" /><p
class="wp-caption-text">Step 1: Add Execute SQL Task 1 to Control Flow</p></div><p>Set both <strong>Execute SQL Tasks </strong>to use the Excel file</p><div
id="attachment_258" class="wp-caption alignnone" style="width: 397px"><img
class="size-full wp-image-258" title="Step 2: Set Connection Manager" src="http://samuelhaddad.com/wp-content/uploads/2009/03/step2connectionmanager.png" alt="Step 2: Set Connection Manager" width="387" height="120" /><p
class="wp-caption-text">Step 2: Set Connection Manager</p></div><p>Set your first <strong>Execute SQL Task&#8217;s </strong>SQL Command drop your table which is also known as the sheet name of your Excel file.</p><div
id="attachment_259" class="wp-caption alignnone" style="width: 345px"><img
class="size-full wp-image-259" title="Step 3: Drop Table" src="http://samuelhaddad.com/wp-content/uploads/2009/03/step3droptable.png" alt="Step 3: Drop Table" width="335" height="335" /><p
class="wp-caption-text">Step 3: Drop Table</p></div><p>Repeat step 3 on the second <strong>Execute SQL Command </strong>this time create your tables.</p><p>That&#8217;s it. Good luck.</p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2009/03/31/overwriting-an-excel-file-destination-using-ssis/feed/</wfw:commentRss> <slash:comments>28</slash:comments> </item> <item><title>Adobe Photoshop Black Canvas Fix.</title><link>http://samuelhaddad.com/2009/01/24/adobe-photoshop-black-canvas-fix/</link> <comments>http://samuelhaddad.com/2009/01/24/adobe-photoshop-black-canvas-fix/#comments</comments> <pubDate>Sun, 25 Jan 2009 00:02:36 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[Tech Support]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[Adobe Photoshop]]></category> <category><![CDATA[CS4]]></category> <category><![CDATA[GPU Processing]]></category> <guid
isPermaLink="false">http://samuelhaddad.com/?p=146</guid> <description><![CDATA[So I just started testing out Adobe Photoshop CS4. I ran into a little problem to start with. Every new image I made would be solid black and  I could not see anything I was trying to do. When I first started using  the new version of Photoshop it gave me a message about implementing [...]]]></description> <content:encoded><![CDATA[<p>So I just started testing out Adobe Photoshop CS4. I ran into a little problem to start with. Every new image I made would be solid black and  I could not see anything I was trying to do. When I first started using  the new version of Photoshop it gave me a message about implementing GPU processing. This was enough of a clue to get me started.</p><p>Steps to take to fix the black canvas:</p><p>Adobe recommends that you try to update your video drivers to support GPU processing, and if this works I would take this route as it will make Photoshop more powerful.</p><p>If that does not work try the following:</p><ol><li>Open  Photoshop go to <strong>Edit &gt; Prefrences &gt; Proformance.</strong></li><li><strong> </strong>Then under GPU Settings uncheck Enabled OpenGL Drawing.</li><li> A restart may be required, but I do not remember for sure.</li></ol><p>Well that is what worked for me. I hope this helps others, because at the time when I Googled for a solution there was nothing.</p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2009/01/24/adobe-photoshop-black-canvas-fix/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Becoming Alexa Ranked in two steps.</title><link>http://samuelhaddad.com/2007/12/28/becoming-alexa-ranked-in-two-steps/</link> <comments>http://samuelhaddad.com/2007/12/28/becoming-alexa-ranked-in-two-steps/#comments</comments> <pubDate>Fri, 28 Dec 2007 03:51:30 +0000</pubDate> <dc:creator>Samuel Haddad</dc:creator> <category><![CDATA[SEO]]></category> <category><![CDATA[Web Design]]></category> <category><![CDATA[Alexa]]></category> <category><![CDATA[pagerank]]></category> <category><![CDATA[Website statistics]]></category> <guid
isPermaLink="false">http://blog.samplusplus.com/2007/12/28/becoming-alexa-ranked-in-two-steps/</guid> <description><![CDATA[So when I started the major revamping of http://www.samplusplus.com I became interested in a few things. One of those things being Alexa page rank. I had been tracking my visitors with Google Analytics. However I wanted to see how I compared with other sites on the web. After reading up a little on Alexa this [...]]]></description> <content:encoded><![CDATA[<p>So when I started the major revamping of <a
href="http://www.samplusplus.com" target="_blank">http://www.samplusplus.com </a>I became interested in a few things. One of those things being Alexa page rank. I had been tracking my visitors with <a
href="http://www.google.com/analytics/" target="_blank">Google Analytics</a>. However I wanted to see how I compared with other sites on the web. After reading up a little on Alexa this is what I learned&#8230;</p><p><strong>How Alexa works: </strong></p><p>This is just my general understanding of how Alexa works. Alexa gauges the number of visitors to your site by the number of visitors who visit your site with the Alexa toolbar installed. The Alexa toolbar reports back to Alexa and that a visit occurred. Alexa realizes that not everyone will have the Alexa toolbar installed and then adds a percentage to this number to determine roughly the number of visitors you get.  Well I don&#8217;t know about you, but the the type of visitors that visit my site are not going to have the Alexa toolbar installed.  Until about a a month or two ago I was not Alexa ranked because of this. With some further research I found that many believe that anything that makes a call to Alexa counts as a visit, so I tried a few things.</p><p><strong>How I became ranked:</strong></p><p><strong>First </strong>I installed Firefox extension: <a
href="https://addons.mozilla.org/en-US/firefox/addon/321" target="_blank">Search Status</a>.This extensions shows the Alexa rank and the Google page rank of every site that you visit in the bottom part of Firefox.  However since this calls to Alexa it is believed that this is considered a visit by Alexa.  I can not prove this though.</p><p><strong>Secondly </strong>I<strong> </strong>installed an <a
href="http://www.alexa.com/site/site_stats/signup" target="_blank">Alexa site widget</a>. I use the Alexa Traffic Rank Button because I wanted something small. I then put it on 90% of my websites pages through a simple php include. I did not put it on my main pages where I desire a very clean look.</p><p><strong>Results:</strong><br
/> Withing a few days I became ranked. It was not very impressive somewhere in the 8 millions, but I had a rank and I was happy. Within a few months as Alexa collected more data I Jumped to <span
class="descBold"><span
class="cc48">2,</span><span
class="ccc3">96</span>6<span
class="c859">,4</span><span
class="cf7c">15 were I am at the time of writing this article.</span></span></p><p>Hope this helps others who want to become Alexa Ranked.</p> ]]></content:encoded> <wfw:commentRss>http://samuelhaddad.com/2007/12/28/becoming-alexa-ranked-in-two-steps/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
