<?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>Andrea Canton</title>
	<atom:link href="http://andreacanton.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://andreacanton.com</link>
	<description>Web Designer &#38; Developer in Verona</description>
	<lastBuildDate>Tue, 17 Aug 2010 13:05:13 +0000</lastBuildDate>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Most annoying things that still stay around the Internet</title>
		<link>http://andreacanton.com/design/most-annoying-things-that-still-stay-around-the-internet/</link>
		<comments>http://andreacanton.com/design/most-annoying-things-that-still-stay-around-the-internet/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 17:32:41 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[annoying]]></category>
		<category><![CDATA[bad things]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://andreacanton.com/?p=585</guid>
		<description><![CDATA[<p>Web design <span class="amp">&#038;</span> develop are fields where the technology evolve really quickly, so we should to keep our websites updated! Besides there are some fresh web designers still forgetting the user's point of view.</p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://andreacanton.com/images/posts/annoying-things/header.jpg" alt="things that should be placed in a trash can" /></p>
<p>Web design <span class="amp">&#038;</span> develop are fields where the technology evolve really quickly, so we should to keep our websites updated! Besides there are some fresh web designers still forgetting the user&#8217;s point of view.</p>
<p><span id="more-585"></span></p>
<h3>No active e-mail links</h3>
<p>We are in the <a href="http://www.google.com/intl/en_uk/landing/googlemailvideos/" title="Free commercials • 5 ways Google Mail makes life easier">Gmail</a> era! Don&#8217;t you have a <a href="https://www.google.com/accounts/NewAccount" title="Create a Google Account">Google account</a> yet?!? It will be your last e-mail EVER! Personally I&#8217;ve tons of e-mail aliases but they&#8217;re all forwarded to my <strong>unique gmail address</strong>. Why? I&#8217;m not afraid of spam e-mails: Google offer a really good Anti-spam filter<sup>1</sup> and if an indesidered mail pops out: &#8220;Flag as Spam&#8221; button! And all e-mails coming from that address will be filtered! Isn&#8217;t it easy?</p>
<p>From the other side, think what the user have to do for send you an e-mail!</p>
<div class="clearfix">
<div class="left">
<h4>Not Active Link</h4>
<p>Sample: my[dot]spam[dot]email[at]junk[dot]com</p>
<ul>
<li>Select and copy your encripted e-mail address</li>
<li>Open the email client</li>
<li>Click “Compose”</li>
<li>Paste your <em>encrypted</em> e-mail address</li>
<li><em>Decrypt</em> your e-mail address</li>
<li>Finally <strong>start writing!</strong></li>
</ul>
</div>
<div class="right">
<h4>Active Link</h4>
<p>Sample: <a href="mailto:my.new.email@gmail.com">my.new.email@gmail.com</a></p>
<ul>
<li>Click</li>
<li><strong>Start writing!</strong></li>
</ul>
</div>
</div>
<p>In the first case, the user doesn&#8217;t even try to contact you if it isn&#8217;t really interested. Plus, <strong>the spammer&#8217;s super-server</strong> <em>decrypt</em> your e–mail address in a twinkle!</p>
<p>So, are you afraid more to receive SPAM or <strong>not receive some important e–mails?</strong> </p>
<p>Maybe now you&#8217;re thinking «I&#8217;m a genius, <strong>I use a form</strong> with <abbr title="completely automated public Turing test to tell computers and humans apart">captcha</abbr>». Not so bad solution, but anyway the user fill always confortable in its e–mail client, even if the form is iper-usable. It&#8217;s easy to proof: do you like to fill forms in websites (with captchas)?  So the e–mail active link still the best (and easy) way.</p>
<h3>WWW or not WWW</h3>
<p>I have a question that most of the time I can&#8217;t answer: why have you bought <em>domain.com</em> and if I write this – without www – on the address bar return me an error? I can understand some small site that have a shared hosting contract with a lot of restriction, but <a href="http://vodafone.it" title="This link doesn't work">vodafone.it</a> doesn&#8217;t have excuses! Anyway the worst cases I found are in italy. Another instance, the website of the public transports in verona:</p>
<ul>
<li>3rd level domain &#8211; <a href="http://atv.verona.it">atv.verona.it</a> — Doesn&#8217;t Work!</li>
<li>4th level domain &#8211; <a href="http://www.atv.verona.it">www.atv.verona.it</a> — It Works!</li>
</ul>
<p>I&#8217;m <em>not saying</em> that is stupid write the <em>www.</em> before the address, I&#8217;m saying that is stupid not set the DNS configuration properly!!!</p>
<h3>Flash Website</h3>
<p>In the september 2003 Macromedia release Flash MX 2004 witch have the famous Actionscript 2.0 that it was object orientend and able to manage web services. The first things come up in to the web guys was: «Wow! I can make a website with animation, my personal fonts and other cool things! Bye bye HTML!». But after a while they realize that a flash website its <strong>nearly impossible to maintain</strong> (like one with <strong><span class="tt">&lt;table&gt;</span> layouts</strong>!!! That things still live out there!!!)</p>
<p>Some month ago W3C release the <a href="http://www.w3.org/Style/CSS/current-work">CSS3</a> &#038; <a href="http://dev.w3.org/html5/spec/">HTML5</a> standards and those things added with the wonderful Javascript library, make the Flash-stuff really easy to do.<br />
Besides flash does make start the fan of my macbook. A clever thing to say: «It&#8217;s damn heavy!». Doesn&#8217;t forget that it isn&#8217;t supported by smartphones.</p>
<h3>Splash page &#038; background music</h3>
<p>Another thing that Flash bring to the web are intros and background music. Why do you think that every user that visit your website are interested to an intro-video on your business? Shouldn&#8217;t “ask” before? If I only need the phone number of your office the background music is really necessary? There are no reason to entertain someone that doesn&#8217;t need it &#8211; even if you put a stop button. A beautiful splash page with a buttons enter it&#8217;s useless and have the same objective of the music: entertain &#8211; even if there is the language selection.</p>
<p>Here the solutions, if your website <strong>isn&#8217;t make for entertain</strong>, but for give information:</p>
<ul>
<li>Put on your home page the <strong>presentation video</strong> of your business with a big play button on it</li>
<li>Search on Google an <a href="http://lmgtfy.com/?q=automatic+language+selection">automatic language selection</a> script</li>
<li>Go serious and turn the music off</li>
</ul>
<h3>Links that open in a new window</h3>
<p>Has you can see in my <a href="http://andreacanton.com/faqs/#tabs" title="Why doesn't links open in a new tab?">FAQs</a>, even if I&#8217;m a open-in-a-new-tab guy, I&#8217;m totally respectful of people who prefer to use the back-button of the browser. So why you, as a web designer, have to choose how your users have to navigate in the internet?</p>
<p>You can say: «It&#8217;s a marketing thing, so people re-watch our website!». You don&#8217;t think that people can be irritated by this behavior and think less about your company? Try to be interesting for reach people, don&#8217;t importunate them.</p>
<h3>Unique link for unique content</h3>
<p>Not only flash site have this big problem. For istance, I wanna make a post on cooling pads for notebooks: </p>
<blockquote><p>
Hi, here a cooling <a href="http://www.zalman.com/ENG/product/Product_Read.asp">thing</a>!
</p></blockquote>
<p>The link doesn&#8217;t work! Sorry, but at the address <span class="tt">http://www.zalman.com/ENG/product/Product_Read.asp</span> doesn&#8217;t mean anything for the Zalman&#8217;s webserver.</p>
<h3>&#038; many many more&#8230;</h3>
<p>There are so much things that annoying me in the web, so for not annoying you I stop here for listen (read) your opinions.</p>
<p class="notes"><sup>1</sup>Also other company offer good spam filter. But not free or with lights ads.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/design/most-annoying-things-that-still-stay-around-the-internet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basics for make an Howto Screencast</title>
		<link>http://andreacanton.com/communication/basics-for-make-an-howto-screencast/</link>
		<comments>http://andreacanton.com/communication/basics-for-make-an-howto-screencast/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 08:08:55 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Communication]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[screencast]]></category>

		<guid isPermaLink="false">http://andreacanton.com/?p=518</guid>
		<description><![CDATA[Even if I never published a howto-screencast (so far&#8230;), I&#8217;m in the webradio of my university since almost three years. So I&#8217;ve learned a lot of stuff down there about this topic! Indeed, most of this tips can be applied on audio podcasts too! Anyway in this post I speak only about production, not distribution. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://andreacanton.com/images/posts/screencast/howtoscreencast.jpg" alt="How to make a screencast - Andrea Canton" />
<p>Even if I never published a howto-screencast (so far&#8230;), I&#8217;m in the <a href="http://fuoriaulanetwork.com" title="FuoriAulaNetwork - Webradio dell'Universit&agrave; di Verona">webradio</a> of my university since almost three years. So I&#8217;ve learned a lot of stuff down there about this topic!</p>
<p>Indeed, most of this tips can be applied on audio podcasts too! Anyway in this post I speak only about production, not distribution.</p>
<p><span id="more-518"></span></p>
<h3>Stuff you need</h3>
<p>First of all, you need a Screen recording application:</p>
<ul>
<li><a href="http://www.shinywhitebox.com/">iShowU</a> [MAC]</li>
<li><a href="http://www.telestream.net/screen-flow/overview.htm">ScreenFlow</a> [MAC]</li>
<li><a href="http://camstudio.org/">Camstudio</a> [WIN - Free]</li>
</ul>
<p>If you have a lot of time and no money to spent, try <a href="http://www.screentoaster.com/">Screentoaster.com</a>.</p>
<p>A <strong>video editor</strong><sup>1</sup> like <a href="http://www.apple.com/it/ilife/imovie/">iMovie</a>, <a href="http://www.microsoft.com/italy/windows/products/windowsxp/winxp/using/moviemaker/default.mspx">Windows Movie Maker</a> or <a href="http://www.adobe.com/products/premiere/">Adobe Premiere</a>. GarageBand is good, but not optimized for video editing. Anyway <em>iShowU</em> and <em>Screenflow</em> come out with basic editing tools.</p>
<p>You also <strong>need a blocknote</strong> with a pencil, or something virtual is good at the same way. You are going to write important thing on it, that you have to mind while the registration. But we&#8217;ll get on this later.</p>
<p>Of course you need <strong>a microphone</strong>. A good one is prefered, but it&#8217;s not really necessary.</p>
<p>Last but not least, <strong>you need the licences</strong> of every application (and songs<sup>2</sup>) you&#8217;ll use in the screencast (including the recording app)! Otherwise you&#8217;re publicly saying “Sail ho! I&#8217;m a pirate!” and you&#8217;ll can get in trouble.</p>
<h3>Pre-production: Organize &#038; Prepare</h3>
<blockquote><p>Hello everybody this is Chris, from css-tricks and this is the screencast number&#8230;ehm&#8230;number&#8230;</p></blockquote>
<p>Really sorry Chris, although you make great stuff on your <a href="http://css-tricks.com">web designer&#8217;s community-website</a>, you inspired me to make this post! I want to specify that Chris Coiyer isn&#8217;t a disaster and <strong>he make good screencasts</strong> anyway.</p>
<p>On this step you really write down a timeline, you should to be quite precise. The correct name of this timeline is the “<strong>Clock</strong>”. A <em>Clock</em> is a sort of  list of things that you&#8217;ll have to say or show on your screencast <strong>with timing</strong>. This helps you to not bore your listeners and let you now <strong>how much will keep your screencast</strong>. Anyway if you go out of time, it&#8217;s not a problem: of course you shouldn&#8217;t talk too much minutes about a single thing.</p>
<pre class="brush: plain">
Title: How to make a screencast #1

--- Greetings and Presentation [ 30 seconds ] ---
- Little introduction about my experience in FAN

--- Stuff you need [ 2 minutes ] ---
   Recorder:
      - iShowU: MAC, payed. Link: http://www.shinywhitebox.com/
      - ScreenFlow: MAC, payed. link: http://www.telestream.net/screen-flow/overview.htm
      - Camstudio: WIN, free. link: http://camstudio.org/
[...]
</pre>
<p>Like a blog post, you should <strong>slice the screencast in chapters</strong>, this will help in the production time to handle errors during the recording. After you shouldn&#8217;t really have to show this separations at the viewers, especially if your screencast it&#8217;s short.</p>
<h3>Production: let&#8217;s recording</h3>
<p>I assume that you don&#8217;t have an entire crew that helps you to record your video. So you are your own director and phonic. Do a favor to your audience check the microphone volume <em>before and during</em> the registration by <strong>monitoring the audio</strong> with some headphones.</p>
<blockquote><p>Three witches watch three Swatch watches. Which witch watch which<br />
Swatch watch?</p></blockquote>
<p>Now you should have everything you need for take the screencast in one-shot, or anyway you surely reduce the work in post-production. Stretch your tongue, stay focused on your <em>clock</em> and click <strong>REC</strong>!</p>
<p>If you sliced in small chapters your Clock, <strong>do pauses</strong> between them!!! So if you do a mistake, <strong>take a breathe</strong> and restart from the last break. Remember, if you&#8217;re not doing a simple audio podcast, you have to <em>re-set</em> your screen in the previews state (or similar). You can easily understand that those devices, will help you to <strong>cut out your gaffes</strong> in a twinkle.</p>
<h3>Post-production: fix and add fancy things</h3>
<p><img src="http://andreacanton.com/images/posts/screencast/post-production.jpg" alt="Post Production - Andrea Canton" /></p>
<p>Someone prefer to record the video and audio separately. This tecnique can give <strong>a better product</strong>, but may need more work in pre and post-production.</p>
<p>When you cut don&#8217;t erase all the pause between your chapters or your phrases: <strong>Don&#8217;t let it seem that you don&#8217;t breathe</strong>!</p>
<p>Now you can publish your screencast. But you can add an initial (and final) cover or <strong>background music</strong> under you voice. Remember you have to get the license: try <a href="http://beatpick.com">Beatpick.com</a>, for non-commercial use give out music with a Creative Commons License.</p>
<h3>Conclusions</h3>
<p>Has you can see, with little tricks and devices you can create a semi-professional product and seem more serious (even if you make jokes in the screencast). I think that if someone don&#8217;t have time to do a quite good screencast (not only in contents), she shouldn&#8217;t do it!</p>
<p class="notes">
<sup>1</sup> If you need an audio editor try <a href="http://audacity.sourceforge.net/">Audacity</a> [FREE] or <a href="http://www.adobe.com/products/audition/">Adobe Audition</a>.<br />
<sup>2</sup> In this case you should have a special license for use the song. Try <a href="http://www.beatpick.com/">Beatpick.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/communication/basics-for-make-an-howto-screencast/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to really exclude your visits from Google Analytics</title>
		<link>http://andreacanton.com/web-marketing/how-to-really-exclude-your-visits-from-google-analytics/</link>
		<comments>http://andreacanton.com/web-marketing/how-to-really-exclude-your-visits-from-google-analytics/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 09:53:08 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Web Marketing]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://andreacanton.com/?p=481</guid>
		<description><![CDATA[Attention: This tip is valid only for WordPress (self hosted) users! I&#8217;ve to admit it: my blog isn&#8217;t followed so much. So with this really small audience, my personal visits it&#8217;s a grate part of the whole and it&#8217;s not easy to identificate those. First of all you can exlude all &#8220;preview&#8221; URLs. Infact if [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://andreacanton.com/wp-content/uploads/remove-visits.jpg" width="550" height="200" alt="Remove my visits" title="Remove my visits" /></p>
<p>Attention: This tip is valid <strong>only for WordPress (self hosted) users</strong>!</p>
<p>I&#8217;ve to admit it: my blog isn&#8217;t followed so much. So with this really small audience, my personal visits it&#8217;s a grate part of the whole and it&#8217;s not easy to identificate those.</p>
<p><span id="more-481"></span></p>
<p>First of all you can exlude all &#8220;preview&#8221; URLs. Infact if you use <span class="tt">mod-rewrite</span> permalinks, you should ignore all “?-parameter” URLs.</p>
<p><img src="http://andreacanton.com/wp-content/uploads/_analytics-preview.jpg" width="550" height="76" alt="Analytics Ignored URLs" title="Analytics Ignored URLs" />
</p>
<h3>Seriously exclude those visits</h3>
<p>90% of times that you access to your website you&#8217;re already logged in. So it&#8217;s easy <strong>with a CMS</strong> identify the administration visits.</p>
<p>So simply add this <span class="tt">if</span> for check the identity of the logged user.</p>
<pre class="brush: php html js">
<?php global $user_ID; ?>
&lt;?php global $user_ID; ?&gt;
&lt;?php if($user_ID != 1 ) :?&gt;
	&lt;!-- GOOGLE ANALYTICS CODE --&gt;
&lt;?php endif; ?&gt;
</pre>
<p>You can also use other <strong>Global Variables</strong> for discriminate the <em>Google Analytics code</em>:</p>
<ul>
<li><span class="tt">$user_email</span></li>
<li><span class="tt">$user_identity</span> &mdash; Nickame of the user logged-in. eg. &#8220;Andrea Canton&#8221;</li>
<li><span class="tt">$user_level</span> &mdash; 0 to 5, where 5 is the admin. eg. &#8220;admin&#8221;</li>
<li><span class="tt">$user_login</span> &mdash; Real Account-Name of the user logged-in.</li>
</ul>
<p>You can add more fo one by appending with <span class="tt">&amp;&amp;</span>. Besides if you are the unique user use the function <span class="tt">is_user_logged_in()</span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/web-marketing/how-to-really-exclude-your-visits-from-google-analytics/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS3 Buttons</title>
		<link>http://andreacanton.com/freebies/css3-buttons/</link>
		<comments>http://andreacanton.com/freebies/css3-buttons/#comments</comments>
		<pubDate>Thu, 20 May 2010 19:53:32 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[css3]]></category>

		<guid isPermaLink="false">http://andreacanton.com/?p=405</guid>
		<description><![CDATA[Has you can see, around my website there are a lot of fancy buttons: It&#8217;s only CSS3! I&#8217;ve decided to build a CSS Plugin and give out for free (actually under the BY-NC-SA CC license). Go to the Download Page Main Features Those buttons use gradients, (multiples) box shadows and text shadows: all CSS3 features, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://andreacanton.com/images/posts/css-buttons/main.jpg" alt="Hey you! push the Button!" /></p>
<p>Has you can see, around my website there are a lot of fancy buttons: <strong>It&#8217;s only CSS3</strong>! I&#8217;ve decided to build a CSS Plugin and give out for free (actually under the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">BY-NC-SA</a> CC license).</p>
<p class="aligncenter"><a class="button large blue" href="http://andreacanton.com/demo/css3-buttons/" title="CSS3 Buttons Demo">Go to the Download Page</a></p>
<h3>Main Features</h3>
<p>Those buttons use gradients, (multiples) box shadows and text shadows: all CSS3 features, so it&#8217;s not grateful supported on <em>prehistoric browsers</em>, but we&#8217;ll got that soon.</p>
<p>They&#8217;re really reactive: a quite of highlight on <em>mouse over</em>, no box-shadow and one pixel down positioning on <em>mouse clicking</em>. Besides the  <em>anchor</em> it&#8217;s turned in an <em>inline-block</em>.</p>
<p><span id="more-405"></span></p>
<pre class="brush: css">
.button:hover, input[type=submit]:hover {
	color:white;
	box-shadow:1px 1px 2px #888, inset 0 0 4px white;
	-moz-box-shadow:1px 1px 2px #888, inset 0 0 4px white;
	-webkit-box-shadow:1px 1px 2px #888, inset 0 0 4px white;
}
.button:active, input[type=submit]:active {
	color: white;
	box-shadow:0 0 1px #888, inset 0 0 3px white;
	-moz-box-shadow:0 0 1px #888, inset 0 0 3px white;
	-webkit-box-shadow:0 0 1px #888, inset 0 0 3px white;
	position:relative;
	top:1px;
}
</pre>
<p>It&#8217;s not really got for put it in text paragraph, but works fine!</p>
<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, <a href="#" class="button small">quis nostrud exercitation</a> ullamco laboris nisi ut aliquip ex ea commodo consequat. </p></blockquote>
<h4>Variants</h4>
<p>If you set only the <span class="tt">button</span> class to an <span class="tt">&lt;a&gt;</span> element, will be render an <em>orange</em> and <em>medium</em> sized button.  The same happens to the <span class="tt">input[type=submit]</span> element.</p>
<p>Anyway it&#8217;s easy to create a <strong>color variant</strong>: in the plugin there is a <span class="tt">blue</span> example.</p>
<pre class="brush:css">
/* Colors variant */
.button.blue, input[type=submit].blue {
	background-color: #6da5d5; /* Fallback color */
	background-image: -moz-linear-gradient(100% 100% 90deg, #386f9f, #6da5d5);
	background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#6da5d5), to(#386f9f));
	border:1px solid #004d80;
}
</pre>
<p>For change <strong>the size</strong> it&#8217;s even easier.</p>
<pre class="brush:css">
/* Size variant */
.button.small, input[type=submit].small{
	font-size:12px;
	padding: 3px 8px 4px;
	text-shadow:0 1px 1px #555;
}
</pre>
<h3>Usage</h3>
<p>This plugin target all <span class="tt">input[type=&quot;submit&quot;]</span> and <span class="tt">a.button</span> elements. So you just have this code to create a button.</p>
<pre class="brush: html">
&lt;!--anchor link button--&gt;
&lt;a class=&quot;button&quot;&gt;A button&lt;/a&gt;
&lt;!--submit button--&gt;
&lt;input type=&quot;submit&quot; class=&quot;blue&quot;&gt;This will become another button&lt;/a&gt;
</pre>
<h3>Browsers Support &#038; Fallbacks</h3>
<p>Those buttons is well rendered in:</p>
<ul>
<li>Google Chorme 1.0+<sup>1</sup></li>
<li>Firefox 3.5+</li>
<li>Safari 3.0+<sup>1</sup></li>
</ul>
<p>In <strong>Opera 10.x</strong> the gradient isn&#8217;t rendered, and the Submit Input buttons doesn&#8217;t have an the internal gradient.</p>
<p>In <strong>Internet Explorer 5.5+</strong>, the buttons have a solid background decided in the code by setting a <span class="tt">background-color</span>.</p>
<pre class="brush: css">
background-color: #bf5320; /* Fallback color */
background-image: -moz-linear-gradient(100% 100% 90deg, #bf5320, #f28653);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f28653), to(#bf5320));
</pre>
<p>According to the <a href="http://www.w3schools.com/browsers/browsers_stats.asp" title="Browser Statistics">April 2010 Statistics</a> (offered by <a href="http://www.w3schools.com" title="W3Schools Online Web Tutorials">W3CSchools</a>) those buttons will be well rendered for the 63,7% of users (and good rendered for the 2.2% of Opera&#8217;s users). Anyway the other 34,1% of IE-users, se a solid colored box that react at the click, so not bad.</p>
<h3>Known Issues &#038; TODO</h3>
<p>This version is not perfect, so if you find a bug, I&#8217;ll put it in the list down there!</p>
<ul>
<li>The button has to be tested Safari 3.0, Google Chrome 1.0 (just to be sure) and Firefox 3.0.</li>
<li>The padding in paragraph is not rendered if there is only a button. (Try to set <span class="tt">p {margin-bottom: 1.5em !important}</span>)</li>
<li>I don&#8217;t know if worth to target <span class="tt">button</span> elements.</li>
</ul>
<p class="notes">
<sup>1</sup>They&#8217;re only an assumption. Not really tested Safari 3.0 and Chorme 1.0 jet.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/freebies/css3-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make you known with Facebook</title>
		<link>http://andreacanton.com/web-marketing/make-you-known-with-facebook/</link>
		<comments>http://andreacanton.com/web-marketing/make-you-known-with-facebook/#comments</comments>
		<pubDate>Wed, 12 May 2010 17:19:45 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Web Marketing]]></category>
		<category><![CDATA[facebook marketing]]></category>

		<guid isPermaLink="false">http://andreacanton.com/?p=381</guid>
		<description><![CDATA[When you start a business or simply wanna advertise something (like you as a DJ or your bar), the most powerful (and nearly free) method to promote yourself (or your activity) is access to social networks. There are many many of those out there, but the best is definitely Facebook. It&#8217;s the most powerful &#38; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://andreacanton.com/images/posts/socials/socialsbusiness.jpg" alt="Twitter say Facebook"></p>
<p>When you start a business or simply wanna advertise something (like you as a DJ or your bar), the<br />
most powerful (and <em>nearly free</em>) method to promote yourself (or your activity) is<br />
access to social networks. There are many many of those out there, but<br />
the best is definitely <strong>Facebook</strong>. It&#8217;s the most powerful <span class="amp">&amp;</span> suitable for this kind of tasks.</p>
<p><span id="more-381"></span></p>
<h3>The First Step</h3>
<p>This platform have everything you need if you know how to use it. The firsts things you have to do for take advantage from using Facebook, without annoing your audience, are:</p>
<ul>
<li><a href="http://www.facebook.com/pages/create.php" title="Facebook | Create a page">Create a Page</a>: not a personal profile or a group.</li>
<li>Fill it out of informations (and media)!</li>
<li>Suggest the page to your friends (once).</li>
</ul>
<p><strong>Update</strong> The right name of your page is the name of your business and stop: don&#8217;t put in keywords or slogans, because if someone wants to tag you in a status, the phrase become ugly if the pages name is “<em>My name &#8211; my slogan &#8211; keywords keywords &#038; keywords</em>”.</p>
<h4>Why a Page?</h4>
<p>The <strong>Page</strong> is the tool offered by Facebook for who wants to advertise something. Give you statistic on fans: age, sex, location, interaction, unsubscription, hiding statuses etc. Besides you have free advertising on friends of fans: notice suggestions and in the main stream you see what your friends <em>likes</em>. Of course you can, by paying, improve the your advertising program.</p>
<p>The <em>Facebook page</em> have more pros in comparison to the personal profile and the Facebook Group. Let&#8217;s see the cons of those two.</p>
<h4>Why not the personal profile?</h4>
<p>The personal profile is only for persons (at least for pets): <strong>maximum 5000 friends</strong>. Yeah, you aren&#8217;t <a href="http://www.facebook.com/pages/Barak-Obama/108620759168859" title="Barak Obama | Facebook">Obama</a> (about 8.200.000 fans), but Facebook administrator can ban your account, also before friend&#8217;s limit. Beside who knows where you&#8217;ll become famous?</p>
<p>Do you really think that somebody wanna share the same information with her friends and business that she even know the administrator? People have to be <em>fan</em> and <em>like you</em> <strong>in a single click</strong>, not be your friend and <strong>awaiting your response</strong>.</p>
<h4>Why not the group?</h4>
<p>Facebook Groups are for <strong>groups of people</strong> who wants to stay in touch for something and have to comunicate internally between them (exactly like a Google Groups). Moreover, every personal account can join in 200 groups at time, infact after a while, someone, who doesn&#8217;t know how use facebook, can leave the group because she have reach the limits of groups and find that yours is not interesting.</p>
<p>Besides you can notice that the Group&#8217;s wall can be visible only if you enter into the group&#8217;s page: a huge obstacle to comunicate with your audience. So you are constrained to comunicate by messages, risking to annoing people and be categorized how SPAM.</p>
<p>Infact one of the pros of use a <em>page</em> is that every statuses published in the page&#8217;s wall are readable in the <em>homepage news</em> of every <em>fan</em> between theirs friends!</p>
<h3>Others Socials Network</h3>
<p><a href="http://twitter.com" title="Twitter.com">Twitter</a> is like the status of Facebook (and can be integrated), not much newer, but is optimized for this! Sometime isn&#8217;t really necessary.</p>
<p>Can be a bit useful <a href="http://www.myspace.com/" title="MySpace">MySpace</a> for singers and band, even if you can publish audio <span class="amp">&amp;</span> video files also on Facebook, but, once more, this social network is optimized for this kind of tasks.</p>
<p>You can also create tons of social networks accounts (Youtube, Flickr, Vimeo, etc.), but the glue will be always Facebook.</p>
<h3>Interact with your audience</h3>
<p>Now you have a Facebook Page and other accounts on some other social: so you have to fill those of stuffs! Think about your business: what you can say to the fans?</p>
<p>For istance, if you have a restaurant give out discounts: &#8220;if you read it, say it to our waiters and we give you 10% discount today!&#8221;; or write out the dish of the day.</p>
<p>If you organize events, after everyone, publish photos and videos or/and invite people to publish them in to your Facebook page.</p>
<h4>Be human: give Feedback</h4>
<p>If someone publish a photo on your page or say something by mentioning you on Twitter, also a criticism, respond always a soon as possible!</p>
<p>Usually you should respond publicly, if the criticism is constructive and polite. If not, feel free to delete it (if you can) and contact the person privately: explain why you delete the message and ask about that act.</p>
<h3>Last Thought: Don&#8217;t exaggerate</h3>
<p>You can make a Facebook page in a flash, but if you don&#8217;t have a half hour in a day to follow your fans and publish stuffs: <strong>don&#8217;t do it</strong>.</p>
<p>And by the way, if you don&#8217;t have lots of photos or videos to share, don&#8217;t do any other account beyond Facebook. For istance, an youtube account with the last video published a year ago, let think that you&#8217;re not active (or out of business).</p>
<p>So don&#8217;t underestimate that Social Networking: it&#8217;s a real engagement.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/web-marketing/make-you-known-with-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTCIME vs. LatinIME</title>
		<link>http://andreacanton.com/android/htcime-vs-latinime/</link>
		<comments>http://andreacanton.com/android/htcime-vs-latinime/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 23:35:41 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[htc_ime]]></category>
		<category><![CDATA[ime]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[latin]]></category>
		<category><![CDATA[latinIME]]></category>

		<guid isPermaLink="false">http://andreacanton.com/?p=135</guid>
		<description><![CDATA[Hi! I come back <strong>to create my entries</strong> in english, maybe I'll translate this post in italian. I'm editing my wordpress theme for make my posts multilingual! By the way I've bought an <strong>HTC Magic (Vodafone)</strong> few month ago. I'm a geek and for this reason I've decided to install a different version of Android™: <strong>Google ION (edited by nk02)</strong>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/dog974/3445270742/"><img class="aligncenter size-full wp-image-200" title="HTCIME vs. LatinIME" src="http://andreacanton.com/wp-content/uploads/2009/09/header.jpg" alt="HTCIME vs. LatinIME" width="550" height="270" /></a></p>
<p>Hi! I come back <strong>to create my entries</strong> in english, but, maybe, I&#8217;ll translate this post in italian. I&#8217;m editing my wordpress theme for make my posts multilingual! By the way, few months ago, I&#8217;ve bought an <strong>HTC Magic (Vodafone)</strong>. I&#8217;m a kind of geek and for this reason I&#8217;ve decided to install a different version of Android™: <strong>Google ION (edited by nk02)</strong>. Really <strong>better</strong>, <strong>faster</strong>, <strong>lighter</strong> than the pre-installed Vodafone version (I think that is the worst in the known universe). This version have, as <em>unique input method</em> (for now), the HTC&#8217;s keyboard, better known as HTCIME. Instead the original version of Android™ have the LatinIME. Let&#8217;s start the challenge!</p>
<p><span id="more-135"></span></p>
<h3>The challenge</h3>
<p><img class="aligncenter size-full showing" title="Showing the Keyboards" src="http://andreacanton.com/wp-content/uploads/2009/09/showingkeyboards.jpg" alt="Showing the Keyboards" width="550" height="300" /></p>
<table border="0" rules="all">
<thead>
<tr>
<th class="features">Features</th>
<th class="htcime">HTCIME</th>
<th class="latinime">LatinIME</th>
</tr>
</thead>
<tbody>
<tr>
<td class="feature">Keyboards <span>The supported keyboards</span></td>
<td class="htcime pros">QWERTY, <strong>phone keypad</strong> and <em>blackberry keypad</em> with t9</td>
<td class="latinime cons"><strong>Only</strong> QWERTY</td>
</tr>
<tr>
<td class="feature">Calibration Tool <span>Have the calibration tool?</span></td>
<td class="htcime pros"><strong>Yes!</strong> But you calibrate on a specific situation (eg. sit on a chair, instead wolking, etc.)</td>
<td class="latinime cons">No&#8230; :(</td>
</tr>
<tr>
<td class="feature">Colours <span>The colours selected for the layouts</span></td>
<td class="htcime cons">The writings are black on white background, so it&#8217;s <strong>more hard to read</strong> for the eyes.</td>
<td class="latinime pros">White on dark: <strong>easy to read</strong> without effort.</td>
</tr>
<tr>
<td class="feature">Buttons <span>How the space has been used</span></td>
<td class="htcime cons"><strong>Two buttons completely useless</strong>: <em>pulldown keyboard</em>, there is the fisic &#8220;back&#8221; button for this, and <em>keyboard settings</em>, if I want to set the keyboard I go to the global settings!</td>
<td class="latinime pros"><strong>Every button is useful</strong>. There is also a <strong>Jolly button</strong>, in bottom right position, that change according to situation (eg. smiles for texts or &#8220;tab&#8221; in forms)</td>
</tr>
<tr>
<td class="feature">Control <span>The phone is YOURS. YOU write the text. Do YOU have the control?</span></td>
<td class="htcime cons">You <em>can&#8217;t</em> disable <strong>the auto-caps</strong> when you start a sentence. You <em>can&#8217;t</em> disable <strong>the auto-switch</strong> from the numbers/puntuaction/simbols&#8217;s layer to the letters&#8217;s layer after a space.</td>
<td class="latinime pros"><strong>YOU have the control</strong>. <em>YOU switch</em> from the numbers&#8217;s layer to the letters&#8217;s layer. <em>YOU can disable the auto-caps</em> when you start a sentence.</td>
</tr>
<tr>
<td class="feature">System Integration <span>How is integrated the keyboard? How much it weigh on the system?</span></td>
<td class="htcime cons">It&#8217;s a <em>third party application</em>, so from the system it&#8217;s considered as a process <strong>that spend memory</strong> (<strong>and slow down the system</strong>).</td>
<td class="latinime pros">It&#8217;s <strong>native</strong>!</td>
</tr>
<tr>
<td class="feature">Browser Mode <span>How get away with the browser?</span></td>
<td class="htcime cons"><strong>The spacebar disappear!!!</strong> How I can take advantage of the google search?!?</td>
<td class="latinime pros"><strong>All right</strong>. There is space for <tt>.com</tt>, <tt>/</tt> and the <tt>spacebar</tt>.</td>
</tr>
<tr>
<td class="feature">Auto-completion <span>How works autocompletion? Can you add words?</span></td>
<td class="htcime semi">You <strong>can</strong> add words. But the <strong>autocompletion it&#8217;s invasive</strong>: auto-select a word when you are writing one and after a space set this word without asking you. So if you want to write &#8220;ahahaha&#8221; or &#8220;asdfahdpihe&#8221;, you have to disable this function (or add these words).</td>
<td class="latinime semi">You <strong>can&#8217;t</strong> add words. But <strong>you can set</strong> that the autocompletion gives to you only suggestions that you can select and <strong>don&#8217;t insert the word after a space</strong>.</td>
</tr>
</tbody>
</table>
<h3>Conclusions</h3>
<p>If you want the phone keypad (or don&#8217;t want to learn to use the qwerty), you are forced to choose the HTCIME with all his bugs and problems. If, instead, you want to use a good qwerty you should use the original LatinIME (with your language package), because gives to YOU the control! Anyway Android™ is a great OS and permit you to install both keyboard (being careful about the both bugs and problems!).</p>
<p>However I&#8217;ve tried to install the LatinIME, but maybe go in conflit, with something that I&#8217;ll find, and fail the installation :( When I&#8217;ll, finally, install it, I&#8217;ll inform you (obviously).</p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/android/htcime-vs-latinime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quattro buoni princìpi</title>
		<link>http://andreacanton.com/design/quattro-buoni-principi/</link>
		<comments>http://andreacanton.com/design/quattro-buoni-principi/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 16:26:46 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[codice pulito]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Italian]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[ordine]]></category>
		<category><![CDATA[principi]]></category>

		<guid isPermaLink="false">http://www.andreacanton.com/blog/?p=57</guid>
		<description><![CDATA[Una persona che vorrebbe entrare nel mondo del web design, di solito, non sa mai da dove cominciare. Grafica? HTML? PHP? Javascript? CSS? Una vale l'altra, poi alla fine bisogna sapere tutto (e magari anche bene).

L'importante, secondo me, è avere ben chiara in testa la strada da seguire. ]]></description>
			<content:encoded><![CDATA[<p class="aligncenter"><img class="size-full wp-image-166" title="No more flash for anyone - Wotta good idea!" src="http://andreacanton.com/wp-content/uploads/2009/08/noflash.jpg" alt="No more flash for anyone - Wotta good idea!" width="550" height="202" /></p>
<p>Una persona che vuole entrare nel mondo del web design, di solito, non sa mai da dove cominciare. Grafica? HTML? PHP? Javascript? CSS? Una vale l&#8217;altra, poi alla fine bisogna sapere tutto (e magari anche bene).</p>
<p>L&#8217;importante, comunque, è avere ben chiara in testa <strong>la strada da seguire</strong>. Io ho cominciato da solo: tutorial, guide on-line, blog (tipo questo), screencast sul web design, etc. Sono ormai 4 anni che vado avanti così, per passione, sto ancora imparando e <strong>sicuramente avrò ancora molto da imparare</strong>. Ci sono però delle cose che se avessi saputo dall&#8217;inizio, avendo preso la strada giusta, avrei imparato molte più cose di quelle che so ora.</p>
<p><span id="more-57"></span></p>
<h3>1. Le tabelle si usano SOLO per fare le tabelle</h3>
<p>&#8220;E certo!&#8221; voi direte. Invece non è così ovvio per chi è alle prime armi! Per i primi 3 anni ho fatto siti &#8220;in tabella&#8221; o <em>tabellari</em>, cioè siti con il layout costruito su una tabella (<tt>&lt;table&gt;</tt>). Questa, infatti, è una delle prime cose che avrei voluto sapere fin dall&#8217;inizio. Comunque noto che ancora molti siti, anche apparentemente belli e ben fatti, sono costruiti su una tabella. Ma cosa c&#8217;è di così sbagliato nell&#8217;usare le tabelle per il layout?</p>
<p>Usando le tabelle avremo problemi del tipo:</p>
<ul class="list">
<li><strong>Markup HTML non pulito con grandi moli di codice (inutile):</strong> una volta ultimato il sito, potrebbe essere difficile aggiungere qualcosa o fare qualche <strong>modifica</strong> al layout. Infatti, per esempio, aggiungendo una voce al menù si rischierebbe di incasinare tuttoe, se si è sfortunati, doverlo ristrutturare completamente il layout. Per lo stesso motivo sarebbe difficile <strong>identificare il contenuto</strong> principale di ogni pagina sia da parte del web designer, sia dai <strong>crawler dei motori di ricerca</strong> (che non è poco).</li>
<li><strong>Poca libertà:</strong> durante la progettazione/costruzione del layout per fare quello che vogliamo, dovremo a volte incorrere in trucchetti che <em>sporcano</em> ulteriormente il markup, per poi magari non venire proprio perfetti, rischiando pure di creare un sito non <a title="Cross Broser - Wikipedia [EN]" href="http://en.wikipedia.org/wiki/Cross-browser">cross-browser</a>.</li>
</ul>
<p>Se poi andate a controllare un paio di annunci di lavoro, le certe aziende richiedono espressamente web designer che progettano siti <em>table-free</em>. Un&#8217;altro buon motivo quindi per non imparare a fare siti tabellari. Il mio consiglio quindi è di usare le tabelle solo per <strong>intabellare</strong> e i <tt>&lt;div&gt;</tt> per il layout!</p>
<h3>2. HTML per il contenuto e CSS per lo stile</h3>
<p>Dimenticate i tag <tt>&lt;font&gt;</tt>, impostandolo nel file CSS; <tt>&lt;b&gt;</tt> e <tt>&lt;i&gt;</tt>, utilizzando invece <tt>&lt;strong&gt;</tt> e <tt>&lt;em&gt;</tt> per dire al browser di rendere più <strong>forte</strong> o più <em>enfatizzata</em> una porzione di testo. Non scrivere mai gli stili CSS in linea dentro ai tag nell&#8217;attributo <tt>style</tt>, utilizzare attributi <em>class</em> e <em>id</em> per assegnare gli stili. Non impostare background come attributo al tag <tt>&lt;body&gt;</tt>. Ma perché tutto questo?</p>
<p><strong>Segregando HTML e CSS</strong>, anche se visualizzata senza stili (disabilitanto di CSS) una pagina rimane leggibile e il contenuto rimane chiaro e leggibile. Infatti controllare come la pagina viene visualizzata <strong>senza stili </strong>è importante, perché è come vedere con gli &#8220;occhi&#8221; di un crawler che deve indicizzare il nostro sito (per farlo conoscere), o anche come certi cellulari visualizzano il sito. Tenendo conto che comunque anche i non-vedenti navigano in internet con degli <a title="Screen Reader - Wikipedia" href="http://it.wikipedia.org/wiki/Screen_reader">Screen Reader</a>, quindi controllando questi aspetti avrete qualche visitatore potenziale in più!</p>
<h3>3. FLASH non serve (quasi) mai</h3>
<p>Una cosa che <strong>non ho mai imparato</strong> è creare siti in FLASH (c&#8217;ho provato eh) e ultimamente sono piuttosto convinto che FLASH non serva praticamente mai. Certo puoi fare delle figate, ma animazioni basilari si riescono a fare benissimo con Javascript. Si riescono a fare cose parecchio complesse con librerie Javascript come <a title="jQuery" href="http://jquery.com">jQuery</a> (<a title="UI jQuery" href="http://ui.jquery.om">UI jQuery</a>), <a href="http://mootools.net">MooTools</a>, <a href="http://www.prototypejs.org">Prototype</a> e <a href="http://script.aculo.us">Script.aculo.us</a>. Librerie tutte piuttosto valide e più o meno tutte permettono di fare le stesse cose. La mia preferita è jQuery, perché ha una filosofia che condivido pienamente: &#8220;write less, do more&#8221; (scrivi di meno, fai di più).</p>
<p>Ho visto molti siti dove era stato usato flash per fare un semplice menù che al passaggio del mouse evidenziava, in dissolvenza, lo sfondo della voce: una cosa che con tre righe di jQuery e due immagini (se non una sola) si riesce a fare, senza appesantire inutilmente le pagine. Una cosa <strong>che riesce bene a flash</strong>, però, è la <strong>visualizzazione di video</strong>, perché è multipiattaforma e bene o male tutti ce l&#8217;hanno installato. Migliore quindi di player come Windows Media Player, che esclude chi usa Linux e Mac (ovviamente ci sono i trucchetti per farli funzionare), o anche Quicktime o RealPlayer, multipiattaforma anche loro, ma non tutti ce li hanno.</p>
<p>Infine ecco altro punto a sfavore per FLASH: solo da <strong>ottobre 2009</strong> (forse) uscirà la versione di flash per iphone, android &amp; Co quindi per ora anche da cellulare i siti in flash possono essere visualizzati e comunque da ottobre i siti in flash con una connessione 3G ci metteranno millenni a caricarsi. Anche se tutto ciò si può evitare facendo una versione mobile del proprio sito&#8230; :)</p>
<p>In ogni caso flash ha accesso al microfono e alla webcam e questo è un buon punto a favore, ma questo non vuol dire che è fatto per fare qualsiasi sito web!</p>
<h3>4. Copiare non fa male a nessuno, anzi!</h3>
<p>Il web design, fortunatamente, ha a che fare con Internet, dove si condivide tutto e <strong>ci si trova di tutto</strong>. Quindi perché non sfruttare l&#8217;occasione? Se volete fare qualcosa, magari quel <em>qualcosa</em> lo ha già fatto qualcun&#8217;altro e magari si è pure fatto aiutare e gli è venuta una <em>cosa </em>più solida e malleabile. Per esempio se volete fare un blog, usate <strong>WordPress</strong>! Se invece avete bisogno di fare un sito che abbia molte cose che poi debbano essere amministrate da gente che non sa che cosa vuol dire &#8220;lavorare sul codice&#8221;, o semplicemente persone che non hanno voglia di &#8220;lavorare sempre sul codice&#8221;, magari potreste utilizzare un <a title="Content Management System - Wikipedia" href="http://it.wikipedia.org/wiki/Content_management_system">CMS</a>! Come per esempio <a href="http://drupal.org">Drupal</a> o Joomla! Potete &#8220;guardarvi in giro&#8221; anche per cose più semplici, per esempio se dovete fare un calendario a comparsa, per la selezione della data in un form. Oppure dovete costruire il layout di una pagina complessa e piena di contenuti vi conviene utilizzare un <strong>framework CSS</strong> come <a href="http://960.gs/">960</a> o <a href="http://www.blueprintcss.org/">Blueprint</a>.<br />
Quindi prima di fare qualcosa, guardatevi un po&#8217; in giro!</p>
<h3>Riassumendo: ci vuole Metodo</h3>
<p>Quello che dovete fare <strong>è provarle tutte</strong>, lasciando spazio alla creatività. Partendo sempre col piede giusto: con <strong>ordine</strong>! Anche se pensate che il sito che state per fare sarà di cinque pagine statiche (o anche tre), fate sempre una bella e ordinata struttura di cartelle: una per le immagini, una per i file CSS e poi espandetele con sotto-cartelle (o, perdonatemi il termine, sotto-file) specifiche per ogni pagina, magari poi una cartella per gli scripts e una per le librerie in php. Consiglio anche di <strong><a href="/blog/lavorare-modularmente-con-php/">lavorare modularmente con php</a></strong> sempre e comunque, alla fine è un accorgimento che in futuro ci riserva sempre meno lavoro su modifiche e debugging. Insomma cercate anche di trovare il vostro metodo, il vostro ordine, ma potete scoprirlo solo <strong>sperimentando</strong>!</p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/design/quattro-buoni-principi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lavorare modularmente con php</title>
		<link>http://andreacanton.com/design/lavorare-modularmente-con-php/</link>
		<comments>http://andreacanton.com/design/lavorare-modularmente-con-php/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 22:22:59 +0000</pubDate>
		<dc:creator>Andrea Canton</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[Italian]]></category>
		<category><![CDATA[lavorare modularmente]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sapere]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.andreacanton.com/blog/?p=12</guid>
		<description><![CDATA[Ebbene sì ho deciso di scrivere in Italiano, almeno per questa volta. Ho anche deciso di cosa farmene di questo blog: Diffondo il mio sapere! (anche perché dei cavoli miei non se ne frega nessuno e poi Facebook ce l'ho già!)]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="Lavorare Modularmente" src="http://andreacanton.com/wp-content/uploads/2009/01/modular_php.jpg" alt="Lavorare Modularmente" /></p>
<p>Ebbene sì ho deciso di scrivere in Italiano, almeno per questa volta. Ho anche deciso di cosa farmene di questo blog: <strong>Diffondo il mio sapere!</strong> (anche perché dei cavoli miei non se ne frega nessuno e poi Facebook ce l&#8217;ho già!)
</p>
<p>Come potete vedere dalla mia descrizione sono un informatico con la passione per il web design, che tra l&#8217;altro sta diventando parecchio seria come cosa. Un trucchetto che ho imparato essere molto produttivo con qualsiasi tipo di sito, dal più grande al più piccolo è quello di lavorare modularmente in php.</p>
<p><strong>Innanzitutto, in cosa consiste?</strong> Il php ci mette a disposizione la funzione <tt>include</tt> che ci permette di importare porzioni di testo (o codice) da un’altro file. Quando noi web designer costruiamo un sito delle parti di pagina rimangono sempre identiche (o quasi), come la parte superiore con un eventuale menù (header) e il footer con disclaimer, copyright e cose simili. Perché quindi non mettere queste due parti su due file a parte, senza scriverli uguali in ogni pagina?</p>
<p><strong>Quali saranno i vantaggi lavorando in questo modo?</strong> Per esempio fai un sito, bello, ma non con header e footer a parte. Un giorno il tuo cliente ti chiede di mettere la partita iva e il numero di telefono nello spazio in fondo di ogni pagina, tu che fai? Ti metti li a fare copia incolla in fondo ad ogni pagina, magari il tuo cliente si è sbagliato una cifra, devi rifare tutto da capo?<br />
Se avevi il tuo bel file <tt>footer.inc</tt>, lo aprivi scrivevi e avevi finito!<br />
Questo magari è un problema da poco, ma pensate se il vostro cliente vi chiede di aggiungere una pagina al sito e il menù comincia ad avere troppi link e dovete, quindi, pensare di cambiare la struttura di questo stramaledetto menù!!!</p>
<p><span id="more-61"></span></p>
<p><a class="button" href="/demo/lavorare-modularmente-con-php/" target="_blank">Vai alla Demo</a> <a class="button" href="/demo/lavorare-modularmente-con-php/lavorare-modularmente-con-php.zip">Sarica codice sorgente</a></p>
<p><strong>Come funziona? </strong>Beh intanto vediamo com’è strutturato l’esempio che ho creato.</p>
<ul class="dir-structure">
<li class="folder">inc
<ul>
<li class="inc">footer.inc</li>
<li class="inc">header.inc</li>
</ul>
</li>
<li class="php">index.php</li>
<li class="php">about.php</li>
<li class="php">contacts.php</li>
<li class="css">style.css</li>
</ul>
<p>Vediamo che nella cartella “inc” ci sono i nostri protagonisti: <tt>header.inc</tt> e <tt>footer.inc</tt>.</p>
<p>Quindi basta includerli all’inizio e alla fine di ogni pagina. Notate che prima di includere l’header imposto una variabile <tt>$PAG</tt> che viene usata in <tt>header.inc</tt> per determinare in quale pagina è stato incluso.</p>
<p>Su <tt>footer.inc</tt> non c’è molto da dire: è indipendente dalla pagina in cui è stato incluso e questo basta e avanza. Invece <tt>header.inc</tt> è più complesso, dopotutto contiene molte più informazioni importanti dal punto di vista del browser, dei crowler di google, ma anche per l’orientamento dell’utente.</p>
<p>La prima cosa che incontriamo, in <tt>header.inc</tt>, è un array (<tt>$pages</tt>) che contiene le informazioni di ogni pagina: il suo nome, il valore da inserire nel tag <tt>&lt;title&gt;</tt>, le parolechiave specifiche per ogni pagina (keywords), ma può anche contenere il nome del foglio di stile da utilizzare in quella specifica pagina. Poi c’è la pappardella di <tt>&lt;!DOCTIPE</tt> e i vari meta tag, link a fogli di stile e eventualmente a librerie javascript.<br />
Inizia quindi il vero e proprio header con il titolo e un <tt>foreach</tt> che scorre l’array delle pagine per scrivere il menù.</p>
<p>Questa che vi ho mostrato è un modalità, si possono fare più file diversi e suddividere la pagina in più sezioni. Come per esempio dividere il menù dall&#8217;header, o aggiungere una &#8220;sidebar&#8221;. Insomma sbizzarritevi!</p>
<p>Spero di esservi stato utile! Questa lezione l’ho fatta partendo da un idea di chris coyer nel suo sito <a title="Working Modularly with php" href="http://css-tricks.com/video-screencasts/11-working-modularly-with-php/">css-tricks.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://andreacanton.com/design/lavorare-modularmente-con-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
