Stop hitting your head against the wall: The ultimate guide to display/hide input value on focus
<input type="text" name="search" size="30" value="Search here..." onfocus="value=''">
<input type="text" name="search" size="30" value="Search here..." onfocus="value=''">
It was not easy to find a guide showing how to validate emails properly going just a big further than a simple regex comparison.
function validate_email($email)
{
// Create the syntactical validation regular expression
$regexp = "^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$";
// Presume that the email is invalid
$valid = 0;
// Validate the syntax
if (eregi($regexp, $email))
{
list($username,$domaintld) = split("@",$email);
// Validate the domain
if (getmxrr($domaintld,$mxrecords))
$valid = 1;
} else {
$valid = 0;
}
return $valid;
}
Just few comments:
I'm not really sure about why everybody is going so crazy about iPad, HP slate, JooJoo or any similar device announced in the last 6 months. I mean, they are not going to change our lives nor the way we work. In despite of any marketing campaign this kind of devices with their capacitive-useless screens and no e-ink capabilities are not going to change anything, actually they are just useless devices that will let you do usual activities with your dirty fingers instead of a normal track-pad.
Work: Come on be serious, it won't improve your workflow nor the quality of your output.
All these devices are just missing all the key-features that can really contribute in improving the quality of the work. What is the point of a touchscreen if you can't use it to take notes, underline, wrote on documents & pdfs? I mean, this is just ridiculous.
I don't care of a new version of iWork or iCal optimized for the iPad. I'm a student, do i really need to pay 500$ to get more distraction such as facebook or a tap-tap game? NO!
At the moment all the "tablet" devices are just super-agendas with no point.
What do i need?
super-easy: I need to be able to take notes, i need to underline and work on documents & pdfs, i need to write things with a pen and i need a hell long life-battery. I need a full-support for office documents and ebooks. This is the kind of device that would change my life, my work and would let me really improve the way i work.
Just don't mix right features with bullshits.
Movies, Music and super-agenda features are welcome but they can't be the only things considered during the design and engineering process of a new device, especially if than you claim it to be "revolutionary". They are just bullshits.
I'm really scared by the fact that i the last 3-5 years manifacturers moved only in one direction: Multimedia and games. I'm enough.
The single post template. Used when a single post is queried. For this and all other query templates, index.php is used if the query template is not present.
<div id="author-square"><h3>Title</h3> // Box + Title
<div id="main-data"></div> //Author's Name, Home Page and photo
<div id="description"></div> //Description
<div id="auth-contact-data"></div> //Other data
<div class="clear-float"></div> //This div is to clear floats effects
</div>
#author-square{
border: 1px dotted #DDDDDD;
padding: 10px 10px 10px 20px;
height: 200px;
background-color: #F0F0F0;
width: 618px;
}
#author-square img{
margin-top: 10px;
}
#main-data{
width: 180px;
float: left;
}
#description{
width: 270px;
float: left;
margin-top: 25px;
margin-right: 15px;
}
#auth-contact-data{
width: 150px;
float: left;
margin-top: 25px;
}
.clear-float{
clear: both;
}
<?php echo "<b>";
the_author();
echo "</b> ";$url=get_the_author_meta('user_url');
echo "<b>Home Page</b>"; ?> // Posterous is displaying wrong this code, check out the link and add <a href> tag
<br /><img src="<?php bloginfo('template_directory') ?>/images/authors/<?php the_author_ID()?>.jpg" alt="<?php the_author(); ?>" title="<?php the_author(); ?>" />
src="<?php bloginfo('template_directory') ?>/images/authors/<?php the_author_ID()?>.jpg"
alt="<?php the_author(); ?>" title="<?php the_author(); ?>"
<div id="author-square"><h3>Note sull'autore</h3>
<div id="main-data"><?php echo "<b>";the_author(); echo "</b> ";
$url=get_the_author_meta('user_url');
echo "<b>Home Page</b>";?>
<br /><img src="<?php bloginfo('template_directory') ?>/images/authors/<?php the_author_ID()?>.jpg" alt="<?php the_author(); ?>" title="<?php the_author(); ?>" /></div>
<div id="description"></div><div id="auth-contact-data"></div><div class="clear-float"></div></div>
<div id="description"><?php the_author_meta('user_description'); ?></div>
<?php
function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
//add Facebook
$contactmethods['facebook'] = 'Facebook';
return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);
?>
<?php//disaplaying Twitter & Facebook, check if they are defined and display$twitter=get_the_author_meta('twitter');if($twitter!=""){echo "<b>Twitter</b>: @$twitter<br />";}$facebook=get_the_author_meta('facebook');if($facebook!=""){echo "<br /><b>Facebook</b>:<br /> <a href="http://facebook.com/$facebook" >";the_author();echo "</a>";}?>
<div id="author-square"><h3>Note sull'autore</h3><div id="main-data"><?php echo "<b>";the_author(); echo "</b> ";$url=get_the_author_meta('user_url');echo "<b>Home Page</b>"; //the_author_meta('display_name'); the_author_meta('user_url'); ?><br /><img src="<?php bloginfo('template_directory') ?>/images/authors/<?php the_author_ID()?>.jpg" alt="<?php the_author(); ?>" title="<?php the_author(); ?>" /></div><div id="description"><?php the_author_meta('user_description'); ?></div><div id="auth-contact-data"><?php//disaplaying Twitter & Facebook, check if they are defined and display$twitter=get_the_author_meta('twitter');if($twitter!=""){echo "<b>Twitter</b>: @$twitter<br />";}$facebook=get_the_author_meta('facebook');if($facebook!=""){echo "<br /><b>Facebook</b>:<br /> <a href="http://facebook.com/$facebook" >";the_author();echo "</a>";}?></div><div class="clear-float"></div></div>

An elevator pitch is an overview of an idea for a product, service, or project. The name reflects the fact that an elevator pitch should be possible to deliver in the time span of an elevator ride, meaning in a maximum of 30 seconds and in 130 words or fewer.
Ok, time has come. 2009 is ending, new year is coming. I wish to you all guys a good time, merry christmas!
Since i started using twitter i integrated it with my facebook account. Right now, after several months, i understand that was a wrong choice (at least in my case)
What's wrong with that?
Well, to be honest i'm still convinced integration between facebook and twitter is a good thing. Updating your status on facebook with twitter messages can be a great opportunity, still you should evaluate carefully the situation and understand whether that can improve or not your social image and brand.
My Situation
I started using facebook almost 2 years ago and recently i've used it to keep in touch with all my friends, with my family and also with collegues or people met randomly at parties, dinners and so on.
I've about 400 friends right now in my list and 80% of them have nothing to do with Web 2.0 or work.
I'm not anyhow using Twitter for "personal" purposes, unlike Facebook. I love this social network that has shown its power as a real-time news reader used by almost every blogger or social media guy to spread valuable contents, texts and resources. That's the main usage i'm doing as well: promoting articles, RTs valuable content and so on. Nothing to do with my private life.
The Issue
Well, I've chosen to disconnect twitter from facebook only because of this: The Audience. Few of my contacts in facebook were interested in my working links, most of them took hundreds of messages 'Ive sent in the last year just as spam (or sort of).
The lesson is: Web 2.0 services are improving more and more, they are moving in the direction of integrating content and driving larger amount of information, but still common sense is the king.
Before linking different services and accounts you should ask yourself: Who is going to read my messages? How the audience will approach them?
Twitter and Facebook, Different audiences mean different strategies of promotion.
Twitter and Facebook has developed different "styles" in order to deliver effective information, you can't mix them up. RT is a direct way to spread content on Twitter, just imagine it on Facebook. Its effectiveness will drop, people simply won't understand the update of your status and even in the case they do, probably they will be annoyed by the "twitter style" short message as Facebook standard updates are made of: longer text and images.
Tweet seen on facebook: awful

Standards facebook update

Obviously, if you're using both twitter and facebook for personal purposes as you're not anyhow working in the 2.0 sphere the connection between these social networks can still make sense.
