<?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/"
	>
<channel>
	<title>  Tutorials</title>
	<link>http://tutorials.assistProgramming.com</link>
	<description>Codding World &#187; Tutorials</description>
	<pubDate>Sat, 23 Aug 2008 05:10:57 +0000</pubDate>
	<language>en</language>
			<item>
		<title>Good site layout importance</title>
		<link>http://general-tips.AssistProgramming.com/good-site-layout-importance.html</link>
		<pubDate>Fri, 06 Jun 2008 19:34:32 +0000</pubDate>
		<description><![CDATA[        When you create a website you must think first to the content and layout. All those things are very important for you content and are the most important things that make visitors to came back and visit again. Everyone is not born with a quality of creating [...]]]></description>
			<content:encoded><![CDATA[<p>        When you create a website you must think first to the content and layout. All those things are very important for you content and are the most important things that make visitors to came back and visit again. Everyone is not born with a quality of creating layouts that are pleasing to the eye. In order to keep you visitors is important to carefully chose the colors and to create all the possible combination offering to your website a special design.</p>
<h2><strong>        Points to consider while designing a website layout</strong></h2>
<p>When you create a website is very important to consider that you may change something on the site and that must be an easy job. That’s why:</p>
<h3><strong>Keep it simple:</strong></h3>
<p>In major situations a simple website layout is user friendly. It’s better to not create complex navigational links using complex scripts or images that may not be viewable correctly in different browsers. It’s also very possible that search engine to not index the site properly if complex navigation is involved. You should use small icons to attract visitor’s attentions because using larges images cam make your website difficult, laborious.</p>
<h3><strong>        Readable font size and face:</strong></h3>
<p>We recomand you to use standard font size of  “-1” (11 or 12 pixels if using styles) because that way visitors can read the content easily. Select a professional looking font face (Verdana, Arial, Helvetica, sans-serif are very common). Avoid using fancy fonts like Comic Sans (unless it is a personal website). Use appropriate spacing between lines (12 or more pixels) to avoid clumsiness.</p>
<h3><strong>        Use web safe eye pleasing colors:</strong></h3>
<p>You must select that color you feel are best for you website subject. However, it is a wise decision to get feedback from users or friends about what they feel about the color combination of the website.</p>
<h3><strong>         Web pageDimensions:</strong></h3>
<p>Here, an important thing is to keep track of dimensions of a web page. Most successful commercial websites limit the width and height of the web page so that the important content of the web page lies within the top 600&#215;600 viewable area without scrolling. The best choice is to limit the width by placing a table with a fixed width of 750 or 775 pixels and to work in this table. The page height should not be any more than 4 scroll lengths. Limit the content of the page and if more content needs to be added, move it to a new web page. Provide a navigational link to the next page and a link back from the second page. This will also increase your web site&#8217;s page views.</p>
<h3><strong>        Tips &amp; tricks</strong></h3>
<p>Extract JavaScript code and styles from within the <acronym title='HyperText Markup Language'><span class='caps'>HTML</span></acronym> page to external .JS and .<acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> files. To decrease you individual <acronym title='HyperText Markup Language'><span class='caps'>HTML</span></acronym> page size create a link from each <acronym title='HyperText Markup Language'><span class='caps'>HTML</span></acronym> page to these external files because browsers download these files only once and caches them on the user&#8217;s computer. Use server side includes for centralizing common content, use a background which creates a contrast to the font colors and graphics and why not look at media sites to inspire.</p>
]]></content:encoded>
			</item>
		<item>
		<title>Adobe Photoshop CS 2</title>
		<link>http://tutorials.AssistProgramming.com/adobe-photoshop-cs-2.html</link>
		<pubDate>Thu, 05 Jun 2008 19:01:01 +0000</pubDate>
		<description><![CDATA[Adobe Photoshop training is now at Intoweb. From now on it’s easy to edit photos or to make graphic design. It is already very popular and its popularity is increasing at exponential speeds.
There are lots of advanced features that have been added for your convenience. Photoshop CS 2 is not merely content to correct your [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe Photoshop training is now at Intoweb. From now on it’s easy to edit photos or to make graphic design. It is already very popular and its popularity is increasing at exponential speeds.</p>
<p>There are lots of advanced features that have been added for your convenience. Photoshop CS 2 is not merely content to correct your photos or make graphics, but its goal is to supply you with everything you need to make your images the most vivid they can be. This latest version introduces powerful new tools for creative design and photography as well as refinements on all the old traditional favorites. With Photoshop CS 2 they introduce new levels of power, precision and control with a combination of revolutionary features and evolved enhancements.</p>
<p>Photoshop CS 2 has lots of new features like the next generation file browser Adobe Bridge, Vanishing Points, non-destructive Image Transformations (smart objects), Image Warp and 3 new filters for common photographic problems. Many of us can say that is complicated, or they never use all its features but you never know when you need them and you will use, so that is not a drawback is an absolute advantage. When you have a look at the work area there are many different types of tools. This makes Photoshop appear similar to most other products but, what you don&#8217;t see, is all the hidden tools and all the hidden functionalities for these tools which make image editing or graphic design a whole lot less complex.</p>
<p>It’s very important when you have to work with a picture or with different parts of a picture to be  able to select the part of the picture that you want to edit. What makes Photoshop so easy to use is all the different sub functions that you can learn about which helps you select the exact thing you want to edit and thus streamlining the editing process. The acclaimed Photoshop file browser, Adobe Bridge, has evolved into its own application that runs fully independently, thus allowing you to multi task between organizing, editing and processing your images by adding Scalable Thumbnails, Enhanced Ranking and Labeling, and a Slide Show Mode for a quick review of your latest shoot.</p>
<p>The Bridge also integrates with Illustrator and InDesign and all the other applications in the creative suite. It is very important to mention some  unparalleled new  traits, new things from which we can learn how to use the Photoshop Training  course. For example we can use this appliance to match new perspectives, new longterm, say how you can have a family portrait and another very important  things which should be known by the user.<br />
Photoshop can show you  how to remove this clutter very easily. Also known as Smart Object, Photoshop is a destructive o creative transformation who can show you how you transform images without loosing important pixel.  They also have Smart Guides who can control the movement of the copies which you will create.</p>
]]></content:encoded>
			</item>
		<item>
		<title>Text shadow using CSS</title>
		<link>http://tutorials.AssistProgramming.com/text-shadow-using-css.html</link>
		<pubDate>Sun, 25 May 2008 19:32:20 +0000</pubDate>
		<description><![CDATA[We all know or at least we guess that there are many ways to add a shadow to a picture or to a text. Photoshop is useful and has implemented tools which help giving styled shadow effects. But what shall we do if want to have text shadowed in our web page? We know that [...]]]></description>
			<content:encoded><![CDATA[<p>We all know or at least we guess that there are many ways to add a shadow to a picture or to a text. Photoshop is useful and has implemented tools which help giving styled shadow effects. But what shall we do if want to have text shadowed in our web page? We know that it isn&#8217;t usefully to put images because Bots can&#8217;t read the text in a image and won&#8217;t &#8220;appreciate&#8221; it.</p>
<p><acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> 3 eliminated the need of Photoshop when it comes to add a shadow to a text. A shadow offset is specified with two length terms that indicate the  distance from the text:</p>
<ul>
<li>The first length term specifies the horizontal distance  to the right of the text. We can use negative values which place the shadow to  the left of the text.</li>
</ul>
<ul>
<li>The second length term specifies the vertical distance  below the text. Also we can have a negative vertical length term which places the shadow above the  text.</li>
</ul>
<p>A <strong>blur radius</strong> may be specified after the shadow  offset. The blur radius is a length value that indicates the boundaries of the  blur effect. After setting the blur radius we can add the color.</p>
<p>Let&#8217;s have some examples:</p>
<p><strong>1) </strong>The example below will set a text shadow to the right. This is a simple example and we can easily observe that no color has been specified meaning the shadow will have the same color as  the element itself, and no blur radius is specified meaning the text shadow will  not be blurred:</p>
<pre>h2 { text-shadow: 0.3em 0.3em }</pre>
<p><strong>2)</strong> The next example will place a shadow to the right and below the element&#8217;s text. The shadow will have a 4px blur radius and will be blue.</p>
<pre>h2 { text-shadow: 3px 3px 4px blue}</pre>
<p><strong>3)</strong> The next example combine more effects specifing a list of shadow effects. The first shadow will be to the right and below the element&#8217;s text and will be blue. The second shadow will overlay the first shadow effect, and it will be yellow, blurred, and placed to the left and below the text. The third shadow effect will be placed to the right and above the text.</p>
<pre>h2 { text-shadow: 3px 3px blue, yellow -3px 3px 2px, 3px -3px }</pre>
<p><strong> 4)</strong> Take a look at this example:</p>
<pre>.shadow {

background: white;

color: white;

text-shadow: black 0px 0px 5px;

}</pre>
<p>Here the background and the text has the same color (white) and the shadow is black. This shadow effect added makes the text to be visible.</p>
<p><font color="#d00000"><strong>Note</strong></font>  This property is not defined in <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> 1. It is possible not to have a text shadowed if we work with agents using <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> 1. This feature isn&#8217;t new in <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> 3, it was put into <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> 2 but  only got implemented in Opera 9.5 and Safari 3 so far.</p>
]]></content:encoded>
			</item>
		<item>
		<title>Cross-Domain AJAX?</title>
		<link>http://php.AssistProgramming.com/cross-domain-ajax.html</link>
		<pubDate>Thu, 22 May 2008 21:44:15 +0000</pubDate>
		<description><![CDATA[ Imagine you have a web site that uses some data from a server. Imagine you want to get the data from this server without refreshing the web site. Finally, imagine that your site is not hosted on the server it gets data from (the server and the web site have different domains). Well, you [...]]]></description>
			<content:encoded><![CDATA[<p> Imagine you have a web site that uses some data from a server. Imagine you want to get the data from this server without refreshing the web site. Finally, imagine that your site is <em>not</em> hosted on the server it gets data from (the server and the web site have different domains). Well, you have a problem. First, I apologize. This will, probably, be a very technical article. However, I also think that the content is quite valuable.</p>
<h3>Motivation</h3>
<p><a rel="nofollow" href="http://miso.blog.matfyz.sk/?postID=p576">Stankaa</a>, my web project, is based on the idea that anybody can add her to his/her web site. You just have to copy 2 lines of code to your web site and it works.</p>
<p>All of this is done using <acronym title='eXtensible HyperText Markup Language'><span class='caps'>XHTML</span></acronym> Strict and without any &lt;iframe&gt; elements. The web site never reloads. <a rel="nofollow" href="http://miso.blog.matfyz.sk/?postID=p576">Stankaa</a> gets the information she needs from the stankaa.com server asynchronously and modifies the host web site on the fly. The usual way of doing such things is using the XMLHttpRequest JavaScript object (the <a rel="nofollow" href="http://en.wikipedia.org/wiki/Ajax_%28programming%29"><acronym title='Asynchronous Javascript and XML'><span class='caps'>AJAX</span></acronym></a> way). The problem is, it just doesn&#8217;t work if you are requesting information from a different server than the one your site is hosted on. Since the whole idea behind <a rel="nofollow" href="http://miso.blog.matfyz.sk/?postID=p576">Stankaa</a> is that she can be included in anybody&#8217;s web site, I had to come up with a solution.</p>
<h3>Ajax</h3>
<p>First, I will show you how it is usually done when you do not want to do it cross-domain.</p>
<pre>function ajax_request(send, onReady)
{
    var request = window.ActiveXObject
        ? new ActiveXObject("Microsoft.XMLHTTP")
        : new XMLHttpRequest;

    request.onreadystatechange = function()
    {
        if (request.readyState != 4) return;
        onReady(request.responseText);
    }
    request.open("POST", "http://some-domain.sk/some.php", true);
    request.setRequestHeader("Content-Type",
                             "application/x-www-form-urlencoded");
    request.send(send);
}</pre>
<p>This is a source code of a simple function that can &#8220;do&#8221; <acronym title='Asynchronous Javascript and XML'><span class='caps'>AJAX</span></acronym> requests for you. You do not have to understand how it works.  I will just explain how you can use it. Try something like this:</p>
<pre>function onAnswer(answer) { window.alert(answer); };
ajax_request("", onAnswer);</pre>
<p>What does it do? The ajax_request function makes a POST request for &#8220;http://some-domain.sk/some.php&#8221;. When the server answers, the onAnswer function you provided as a parameter for ajax_request executes. It displays an alert window showing the server answer. All this happens &#8220;in the background&#8221;, and the web page doesn&#8217;t reload (thats the point!). You can provide POST parameters for the target .php like this:</p>
<pre>ajax_request("pudding=christmas&amp;state=burned", onAnswer);</pre>
<p>Of course, since JavaScript support <a rel="nofollow" href="http://en.wikipedia.org/wiki/Anonymous_function">anonymous functions</a> (which is a really really nice feature that works especially well with <a rel="nofollow" href="http://en.wikipedia.org/wiki/Closure_%28computer_science%29">closures</a> in JavaScript), you can write just:</p>
<pre>ajax_request("pudding=christmas",
             function (answer) { window.alert(answer); });</pre>
<h3>How to do it cross-domain</h3>
<p>All above should work as long as you request the .php file which is located on the same domain as the requesting web site is. However, it doesn&#8217;t work for Stankaa&#8217;s scenario. After a few hours of desperate research, I managed to put together something that works the way I need it to. Although I must admit that the basic idea behind this thing isn&#8217;t mine (dynamically adding a &lt;SCRIPT&gt; sub element to &lt;HEAD&gt; to get server data), I collected the information from many sources and packed it inside this &#8220;lovely&#8221; package:</p>
<pre>request_callback = undefined;

function request_send(send, callback)
{
    request_callback = callback;
    request_script = document.createElement("script");
    request_script.src = "http://some-domain.sk/some.php?" + send;
    document.getElementsByTagName("head")
        [0].appendChild(request_script);
}

function request_receive(data)
{
    document.getElementsByTagName("head")
        [0].removeChild(request_script);
    request_callback(data);
}</pre>
<p>The usage of the request_send() function remains the same as for the ajax_request() function. Request_send(), is, however,  capable of doing a cross-domain asynchronous server request. Since it doesn&#8217;t use the XMLHttpRequest object, I&#8217;m not sure if I can call it &#8220;Ajax&#8221; anymore.</p>
<p>This approach has its limitations. The first limitation is, POST method is not supported. Everything you specify in the &#8220;send&#8221; variable will appear in $_GET array in <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym>. The second limitation is, the server-side <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym> has to &#8220;cooperate&#8221;. What does it mean? It means that instead of doing</p>
<pre>&lt;?php echo "I am a Christmas Pudding!"; ?&gt;</pre>
<p>the <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym> file has to do this:</p>
<pre>&lt;?php echo "request_receive('I am a Christmas Pudding!');"; ?&gt;</pre>
<p>But, I don&#8217;t think thats such a big problem.</p>
<p>Finally, I will briefly talk about how it works. When you call the request_send() function, JavaScript adds new &lt;SCRIPT&gt; element to document &lt;HEAD&gt; element. This new script tag specifies the requested <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym> file as its source (&#8221;src&#8221;) attribute. The <acronym title='PHP Hypertext Processor'><span class='caps'>PHP</span></acronym> file is then automatically requested. When the request (in form of a &#8220;request_recieve(&#8217;I am a Christmas Pudding!&#8217;);&#8221; source code) arrives, its content is executed. Consequently, request_receive() function is called, the &lt;SCRIPT&gt; element is removed from the document head and user-defined callback function is executed with a data that server sent.</p>
<p>The really great thing about this is that it works across all major browsers (latest Opera, Safari, Firefox, <acronym title='Internet Explorer 7'><span class='caps'>IE7</span></acronym> and <acronym title='Internet Explorer 6'><span class='caps'>IE6</span></acronym>). And the funny thing is, many people believe that it can&#8217;t be done at all <img src='http://www.assistprogramming.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Some people have already found this way of doing it, by I doubt it is a widespread phenomenon.</p>
<p>Full article <a rel="nofollow" href="http://miso.blog.matfyz.sk/p731-cross-domain-ajax" target="_blank">here</a></p>
]]></content:encoded>
			</item>
		<item>
		<title>Cross domain cookie - one tricky question</title>
		<link>http://general-tips.AssistProgramming.com/cross-domain-cookie-one-tricky-question.html</link>
		<pubDate>Thu, 03 Apr 2008 21:19:45 +0000</pubDate>
		<description><![CDATA[Hi there readers. Lately I was working on a project that was supposed to be a website working on many domains.  The website was one that ofered membership levels to users, different facilities per user group etc&#8230; The fact is users hat to login and keep the session active while getting from one domain to [...]]]></description>
			<content:encoded><![CDATA[<p>Hi there readers. Lately I was working on a project that was supposed to be a website working on many domains.  The website was one that ofered membership levels to users, different facilities per user group etc&#8230; The fact is users hat to login and keep the session active while getting from one domain to another. For logins sessions I used cookies but that is not really important. In fact any method used gets to the same COOKIE, and the problem is still same: how to send cookies across domains.</p>
<h2>Why is this a huge problem?</h2>
<p>Well  the thing is pretty simple: security reasons to not permit reading/writing of cookies from one domain to another. So if we have domain <strong>a.com</strong> and <strong>b.com</strong>, while accessing <strong>a.com</strong> we won&#8217;t be able to access any of <strong>b.com&#8217;s</strong> cookies. If this restriction wouldn&#8217;t be active, would be so a big hole into security.</p>
<h2> So what can we do though to have cross domain cookies?</h2>
<p>Google-ing a lot and reading other opinions I got a final working version of it. The idea is based on a set of redirects between the domain cookies are on(user is logged in there) and the domain where we want to have same cookies set ( domain where we would like to login the user, without asking again for an user/password. Let&#8217;s denote by <strong>a.com</strong> the domain that contains the cookie and<strong> b.com</strong> the domain we need the cookies on.</p>
<p>The whole process works in some steps:</p>
<ol>
<li>First from domain <strong>b.com</strong> we do a request to domain <strong>a.com;</strong></li>
<li>On this request, on<strong> a.com</strong> we respond by building a http GET/POST to domain<strong> b.com </strong> sending there the needed cookies as HTTP GET/POST parameters (pairs name/value).</li>
<li>on domain b.com, as a response to request from domain a.com we take each POST/GET parameters and send them as cookies to the browser.</li>
<li>This step is optional, but if into the previous steps we used GET as the HTTP method of requests, than this needs to be done in order to avoid security holes. Why is that? Well in step 3 we sent a GET request to <strong>b.com</strong>. So we are on<strong> b.com?some_query string. </strong>That query string has the needed cookies so that when accessing that url, it&#8217;ll automatically login user on domain <strong>b.com</strong>( the desired effect). Now, if on domain <strong>b.com </strong>there is an external link, user clicks on it, after being redirected from <strong>a.com</strong>. On that external link&#8217;s webserver, into the logs, will be stored the refferal, which is exactly our <acronym title='Uniform Resource Locator'><span class='caps'>URL</span></acronym> containing the COOKIES needed to automatically login. Someone may see those logs and login without being authorized.<br />
<strong>So what&#8217;s about this step. Pretty simple:  we do another redirect to domain b.com, stripping the COOKIES into the GET string. That way we are secure. </strong></li>
</ol>
<p>That should be all.  this is the main mechanism that I got implemented and working. I&#8217;ll come back in another post looking a practical way of doing it. Any comments are welcome. If you discover any security holes or you think something is wrong, please leave your feedback.</p>
]]></content:encoded>
			</item>
		<item>
		<title>IE form input Highlight problem</title>
		<link>http://general-tips.AssistProgramming.com/ie-form-input-highlight-problem.html</link>
		<pubDate>Wed, 26 Mar 2008 10:01:01 +0000</pubDate>
		<description><![CDATA[These days , working on one of my projects, almost finishing it, I got stuck at a relative simple thing. But it took me so long time to figure it out. The problem was that some of my form inputs on a page were looking funny in IE. They had a background of light yellow. [...]]]></description>
			<content:encoded><![CDATA[<p>These days , working on one of my projects, almost finishing it, I got stuck at a relative simple thing. But it took me so long time to figure it out. The problem was that some of my form inputs on a page were looking funny in <acronym title='Internet Explorer'><span class='caps'>IE</span></acronym>. They had a background of light yellow. I&#8217;ve tried everything in <acronym title='Cascading Style Sheets'><span class='caps'>CSS</span></acronym> to change it, even inline styles, !important modifier and &#8230; nothing. That background won&#8217;t dissapear.</p>
<p>Google&#8217;ing a few hours I found the problem. I was using Google Toolbar and that has a setting to highlight forms. I never knew about it. So simple but get me so much trouble. So I deactivated it and everything works fine <img src='http://www.assistprogramming.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If youhave that same trouble, You don&#8217;t even need to deactivate it, but you can go to <font color="#000000" face="verdana" size="2"><strong>Options </strong>from your Google toolbar and then <strong>More </strong>and then uncheck <strong style="color: black; background-color: #bbbbff">Automatically Highlight Fie</strong><strong>lds that AutoFill can fil.</strong></font></p>
<p>That would be it. Hope it&#8217;s useful and somebody there won&#8217;t loose as much time as I did before finding out what was wrong.</p>
]]></content:encoded>
			</item>
		<item>
		<title>Mysql Sort records by some specific field values</title>
		<link>http://databases.AssistProgramming.com/mysql-sort-records-by-some-specific-field-values.html</link>
		<pubDate>Thu, 20 Mar 2008 07:03:13 +0000</pubDate>
		<description><![CDATA[Suppose the following scenario:
We have a mysql table that stores all orders of an online store. Each order has off course a field that represents the status of this order. That can be &#8216;pending&#8217;, &#8216;payment_received&#8217;, &#8216;approved&#8217;, &#8217;shipped&#8217;, &#8216;completed&#8217; .
Those statuses are found in the majority off good online stores so this is a practical theory.
Now [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose the following scenario:</p>
<p>We have a mysql table that stores all orders of an online store. Each order has off course a field that represents the status of this order. That can be &#8216;pending&#8217;, &#8216;payment_received&#8217;, &#8216;approved&#8217;, &#8217;shipped&#8217;, &#8216;completed&#8217; .</p>
<p>Those statuses are found in the majority off good online stores so this is a practical theory.</p>
<p>Now what if we want to list all orders, but sorted like 1st the &#8216;pending&#8217; ones, 2nd the &#8216;payment_received&#8217; ones, 3rd the &#8216;approved&#8217; one 4th the shipped ones and last the &#8216;completed&#8217;. Off curse if you think of it from the beginning you&#8217;ll probably structure your table such way so that is wasy to be done by a simple <em>sort by . </em>But what if your application is already done and you just need to add this small thing?</p>
<p>Well mysql can save from a ton of work . You can use advanced decision statements on the group by. We&#8217;ll just use a <strong>switch </strong>type of statement and we&#8217;ll basicly assign each value of the status a numeric value and we&#8217;ll sort on that.</p>
<p>Here is how the order by clause would look like :</p>
<pre>
ORDER BY

CASE order_status

      WHEN 'pending'   THEN 1

      WHEN 'payment_received'   THEN 2

      WHEN 'approved' THEN 3

      WHEN 'shipped'   THEN 4

      WHEN 'completed' THEN 5

      ELSE 99999

END</pre>
<p>The above will do exactly what we want. Will test the values of order_status field and will assign to that a numerical value used jst for search. Such a nice thing that does your life much easier when you really need it&#8230;</p>
]]></content:encoded>
			</item>
		<item>
		<title>Wordpress 404 page in IE</title>
		<link>http://general-tips.AssistProgramming.com/wordpress-404-page-in-ie.html</link>
		<pubDate>Wed, 19 Mar 2008 14:47:43 +0000</pubDate>
		<description><![CDATA[Have you ever tried your 4o4 wordpress page in IE? Well I am sure many of you didn&#8217;t. Me personally I often check everything in both Firefox and IE. I noticed a very annoying bug of IE. Sometimes it loads the 404 page, sometimes it doesn&#8217;t.
What I always notices is that if your wordpress 404 [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried your 4o4 wordpress page in <acronym title='Internet Explorer'><span class='caps'>IE</span></acronym>? Well I am sure many of you didn&#8217;t. Me personally I often check everything in both Firefox and <acronym title='Internet Explorer'><span class='caps'>IE</span></acronym>. I noticed a very annoying bug of <acronym title='Internet Explorer'><span class='caps'>IE</span></acronym>. Sometimes it loads the 404 page, sometimes it doesn&#8217;t.</p>
<p>What I always notices is that if your wordpress 404 page is bigger than 512 bytes than it is always loaded in <acronym title='Internet Explorer'><span class='caps'>IE</span></acronym>.</p>
<p>So Put more than 512 bytes and you&#8217;ll force the buggy <acronym title='Internet Explorer'><span class='caps'>IE</span></acronym> to work <img src='http://www.assistprogramming.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			</item>
		<item>
		<title>Htaccess unprotect certain directory</title>
		<link>http://general-tips.AssistProgramming.com/htaccess-unprotect-certain-directory.html</link>
		<pubDate>Mon, 17 Mar 2008 13:19:40 +0000</pubDate>
		<description><![CDATA[In this tutorial, we&#8217;ll have the following scenario:
We have a folder that is password protected via htaccess and within it we have another folder that we want  to be accessible to the public.  There are two ways for doing that. One is the hard way and another easy one. Off course we always [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, we&#8217;ll have the following scenario:</p>
<p>We have a folder that is password protected via htaccess and within it we have another folder that we want  to be accessible to the public.  There are two ways for doing that. One is the hard way and another easy one. Off course we always want to do the easiest possible workaround so here it is how we do it.</p>
<p>In the main folder we leave the htaccess file intact protecting the whole structure. In the folder we do not want protection we just place a htaccess file with the following content:</p>
<pre>
Satisfy Any

Allow from all</pre>
<p>And that&#8217;s it <img src='http://www.assistprogramming.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> You are now &#8220;public &#8220;</p>
]]></content:encoded>
			</item>
		<item>
		<title>Photoshop Slice Tool</title>
		<link>http://tutorials.AssistProgramming.com/photoshop-slice-tool.html</link>
		<pubDate>Fri, 07 Mar 2008 07:14:49 +0000</pubDate>
		<description><![CDATA[Using Slice Tool you can precisely divided an image into small connected pictures  that is useful for building websites. You can select the slice area manually or using Slice from Guide button. You can identify the slice tool in the below image:

Using Slice Select Tool you can move, duplicate, divide, delete, align user slices. [...]]]></description>
			<content:encoded><![CDATA[<p>Using <strong>Slice Tool</strong> you can precisely divided an image into small connected pictures  that is useful for building websites. You can select the slice area manually or using Slice from Guide button. You can identify the slice tool in the below image:</p>
<p><img src="http://www.assistprogramming.com/wp-content/uploads/2008/02/slice.gif" alt="slice.gif" style="float: none; display: inline" /></p>
<p>Using <strong>Slice Select Tool </strong>you can move, duplicate, divide, delete, align user slices. The advantage of using this tool is that you can save the slices into html file, that include all pieces that are connected as a complete image.</p>
<p>Slices are also advantageous when working with images that contain different  types of data. For example, if one area of an image needs to be optimized in GIF  format to support an animation, but the rest of the image is better optimized in  JPEG format, you can isolate the animation using a slice.</p>
<p><img src="http://www.assistprogramming.com/wp-content/uploads/2008/02/slice_option.gif" alt="slice_option.gif" style="float: none; display: inline" /></p>
<p><strong>Style (A):</strong> Use style to control the proportion of sliced  area while select.</p>
<ul>
<li type="disc"><strong>Normal:</strong> To determine slice proportions by  dragging manually.</li>
<li type="disc"><strong>Fixed Aspect Ratio:</strong> To set a height-to-width  ratio. Enter whole numbers or decimals for the aspect ratio. For example, to  create a slice twice as wide as it is high, enter 2 for the width and 1 for the  height.</li>
<li type="disc"><strong>Fixed Size:</strong> Use this style to specify the slice’s height and  width.</li>
</ul>
<p><strong>Width and Height (B):</strong> Enter value of slice width and height  for <em>Fixed Aspect Ratio</em> and <em>Fixed Size</em> slice style. As you can see in the image I set with to 200 pixels and height to 100 pixels.</p>
<p><strong>Slice from Guide (C):</strong> Click to create slice form guides.</p>
<h3>How we create a slice using Slice Tool</h3>
<ul>
<li>Select Slice Tool <img src="http://www.assistprogramming.com/wp-content/uploads/2008/02/slice_tool.gif" alt="slice_tool.gif" style="float: none; display: inline" /></li>
<li>Choose style settings in the option bar.</li>
<li>Drag over the area where you want to create a slice.  Shift-drag to constrain the slice to a square.</li>
</ul>
<h3>To create slices from guides:</h3>
<ul>
<li>Add guides to an image.</li>
<li>Select the Slice tool, and click Slices From Guides in the  options bar.</li>
</ul>
<h3>Working with slices</h3>
<p>See in the below image how I intended to divide my image using Slice tool:</p>
<p><img src="http://www.assistprogramming.com/wp-content/uploads/2008/02/slice_image.gif" alt="slice_image.gif" style="float: none; display: inline" /></p>
<p><strong>Slice lines:</strong> Define the boundary of the slice. Solid lines  indicate that the slice is a user slice or layer-based slice; dotted lines  indicate that the slice is an auto slice.</p>
<p><strong>Slice colors:</strong> Differentiate user slices and layer-based  slices from auto slices. By default, user slices and layer-based slices have  blue symbols, while auto slices have gray symbols.</p>
<p><strong>Slice numbers:</strong> Slices are numbered <img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/slicenum.gif" alt="Slice number icon" style="float: none; display: inline" height="11" width="14" /> from left to right and top to bottom, beginning in the upper left  corner of the image. If you change the arrangement or total number of slices,  slice numbers are updated to reflect the new order.</p>
<p><strong>Slice badges:</strong> The Web Content palette uses a number of  badges, or icons, to indicate certain conditions, and these icons also appear in  the document itself:</p>
<ul>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/slicimag.gif" alt="User slice has Image content" style="float: none; display: inline" height="21" width="15" /> User slice has Image content</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/slicnoim.gif" alt="User slice has No Image content" style="float: none; display: inline" height="11" width="15" /> User slice has No Image content</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/sliclayr.gif" alt="Layer-based slice" style="float: none; display: inline" height="11" width="15" /> Slice is a layer-based slice</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/sliclink.gif" alt="Linked slice" style="float: none; display: inline" height="11" width="8" /> Slice is linked</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/slicroll.gif" alt="Slice includes rollover effect" style="float: none; display: inline" height="11" width="15" /> Slice includes a rollover effect</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/sliceact.gif" alt="Slice contains the active rollover state" style="float: none; display: inline" height="11" width="15" /> Slice contains the active rollover state</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/tablebadge.gif" alt="Slice is a nested table" style="float: none; display: inline" height="19" width="21" /> Slice is a nested table</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/slicetrig.gif" alt="Slice is a remote trigger" style="float: none; display: inline" height="11" width="15" /> Slice is a remote trigger</li>
<li type="disc"><img src="http://www.freetimefoto.com/blog/wp-content/uploads/2007/05/slicerem.gif" alt="Slice is a remote target" style="float: none; display: inline" height="11" width="15" /> Slice is a remote target</li>
</ul>
<p><strong>To show or hide slice boundaries:</strong> Choose <em>View » Show »  Slices</em>. To hide and show slices along with other items, use the Extras  command.</p>
<p><strong>To show or hide slice numbers: </strong>In Windows, choose <em>Edit »  Preferences » Guides, Grid, &amp; Slices</em>. or in Mac OS, choose  <em>Photoshop » Preferences » Guides, Grid, &amp; Slices</em>. Under Slices,  click Show Slice Numbers.</p>
<p><strong>To change the color of slice lines:</strong> In <em>Preferences »  Guides, Grid, &amp; Slices</em>. Under Slice Lines, choose a color from the Line  Color pop-up menu. Changing the color of slice lines automatically changes the  color of selected slice lines to a contrasting color.</p>
<p>Now go to &#8220;<em>File/ Save for the Web&#8230;</em>&#8220;, and you’ll see the &#8220;<em>Save for the Web</em>&#8221;  dialog box. Choose you optimized Settings on the right side of the panel, then  Click &#8220;<em>Save</em>&#8220;. You’ll be prompted to &#8220;<em>Save Optimized As</em>&#8221; to a  location on your computer.</p>
]]></content:encoded>
			</item>
	</channel>
</rss>
