Express yourself…

Uncategorized

Nuova Guida per l’Italia

Ultimamente mi è stato chiesto di aiutare alcuni volontari a fare il setup di Italianotes.org . Italianotes è un progetto di alcuni volontari Italiani che hanno deciso di costruire una guida wiki sull’Italia.

Tra le motivazioi che mi sono state fornite una è particolarmente interessante. Il portale Italia.it che dovrebbe presentare il nostro paese dal punto di vista turistico e che è stato finanziato con miglioni di Euro fa semplicemente schifo. Per questo motivo con Italianotes si cerca di creare una guida migliore.

Bè non posso che augurare buona fortuna…

Berlusconi è stato pestato da Chuck Norris!?

Sembra che la stampa internazionale abbia trovato il mandante del pestaggio di Berlusconi che è stato colpito in faccia da un non idetificato oggetto.

Questo oggetto sembra essere il pugno della giustizia nella persona di Chuck Norris…qui la storia.

Berlusconi e Chuck Norris

Berlusconi e Chuck Norris

Google Chrome Browser (O Crome!)

Google ha deciso di lanciare il suo browser. E’ stato battezzato Google Chrome ed è al momento disponibile per il beta testing in più di 100 nazioni.

Questa mossa sembra proprio che sia per contrastare la leadership di IE (Nuovo lancio di Explorer 8) e la continua crescita di Firefox che al momento resta il mio browser favorito.

Google sembra inarrestabile sul fronte del web e delle applicazioni è ormai ovunque e per questo motivo non utilizzerò Chrome a meno che non sarò forzato.

Abbiamo visto l’ascesa a Monopolio di Microsoft e adesso a quella di Google e come ex-G dipendente vi assicuro che il loro obbiettivo è la conquista del mondo. Quello virtuale naturalmente.

Big brother è in arrivo ragazzi…

Vita Liquida

Ieri ho avuto l’ennesimo leaving party. Feste che vengono date quando qualcuno lascia il lavoro o il paese. Mentre tornavo a casa pensavo a questo stile di vita, una vita come la sabbia. Ti sembra di avere in pugno cose bellissime e ci sono. Però, gradualmente, granello dopo granello queste persone che hanno dato alla tua vita qui un senso, una consistenza ti scivolano di mano. E come dei granelli di sabbia non spariscono ci sono ma sono difficili da ritrovare per il mondo.

Bè come al solito io speriamo che me la cavo…

Octoprice.co.uk, free e-commerce promotion.

I have been working as a web marketer for few years now and I have been promoting e-commerce in Italy and Uk. Few weeks ago I have been contact from a representative of Octoprice.co.uk a new product search engine. They offered me for my shops a free listing and no cpc. I have been thinking a while if I should take the time to export my catalogue in Xml and publish it on them. After I have decided to publish it for the following reasons:

  • No cost what’s so ever ( I love free stuff!)
  • Relevant results
  • Little competition from other similar shops
  • Now is free, tomorrow they may be changing policy so better getting on board now! Become.com has thought the lesson.

So I have now listed a couple of bike shops and I hope to get some sales from them (Checking referral trough Google Analytics) if they will not come I pretend that I sign up to a free directory and I hope to get some page rank from them.

As usual comments are welcomed!

Motore di Ricerca per il tuo sito (Php + Yahoo).

Ho cercato molte volte un prodotto che potesse fare le ricerche interne al mio sito. Ci sono molti prodotti ma tutti o quasi obbligano and inserire il loro logo o il loro template. Insomma non danno la possibilità di personalizzare al 100% la ricerca sul vostro sito. Così ho ho utilizzato le API di Yahoo e PHP 5(Non penso funzioni con versioni inferiori) e ho modificando il loro script ho creato un motore di ricerca locale per il tuo sito. Qui potete fare delle prove

Sono necessari solo due file common.php e index.php , la richiesta della API key a Yahoo e l’inserimento del vostro sito. E siete pronti ad andare.

Vi inserisco i file qui. (Non linkate direttamente ai file ma alla pagina)

E qui di seguito il codice:

common.php

<?php
// Redevelop of the work from Rasmus Lerdorf
// Please link to mandile.it
// This version uses PHP5′s SimpleXML extension

$appid = ‘YourApi’;
$yoursite = ”;//if empty searches on the web. Example: ‘&site=www.mysite.com’

$service = array(‘web’=>’http://search.yahooapis.com/WebSearchService/V1/webSearch’,
‘image’=>’http://search.yahooapis.com/ImageSearchService/V1/imageSearch’);

header(‘Content-Type: text/html; charset=UTF-8′);
?>
<html>
<head><title>Esempio Yahoo Api Search</title></head>
<body>
<form action=”index.php” method=”GET”>
Search Term: <input type=”text” name=”query” /> <input type=”submit” value=” Go! ” />
<select name=”type”>
<?php foreach($service as $name => $val) {
if(!empty($_REQUEST['type']) && $name == $_REQUEST['type'])
echo “<option SELECTED>$name</option>\n”;
else echo “<option>$name</option>\n”;
} ?>
</select>
</form>
<?php

function done() {
echo ‘</body></html>’;
exit;
}

function build_query() {
global $appid, $service;
if(empty($_REQUEST['query']) || !in_array($_REQUEST['type'],array_keys($service))) done();

$q = ‘?query=’.rawurlencode(“”.$_REQUEST['query'].”");
if(!empty($_REQUEST['zip'])) $q.=”&zip=”.$_REQUEST['zip'];
if(!empty($_REQUEST['start'])) $q.=”&start=”.$_REQUEST['start'];
$q .= “&appid=$appid”;
return $q;
}

// Create Previous/Next Page links
function next_prev($res, $start, $last) {
if($start > 1)
echo ‘<a href=”‘.$_SERVER['PHP_SELF'].
‘?query=’.rawurlencode($_REQUEST['query']).
‘&type=’.rawurlencode($_REQUEST['type']).
‘&start=’.($start-10).’”><-Previous Page</a> ‘;
if($last < $res['totalResultsAvailable'])
echo ‘<a href=”‘.$_SERVER['PHP_SELF'].
‘?query=’.rawurlencode($_REQUEST['query']).
‘&type=’.rawurlencode($_REQUEST['type']).
‘&start=’.($last+1).’”>Next Page-></a>’;
}
?>

index.php

<?php
// Redevelop of the work from Rasmus Lerdorf
// Please link to mandile.it
// This version uses PHP5′s SimpleXML extension

require ‘common.php’;
$q=build_query();
// Create a CURL object for later use
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$url = $service[$_REQUEST['type']].$q.$yoursite;
curl_setopt($ch, CURLOPT_URL, $url);
$response = utf8_encode(curl_exec($ch));
//echo $url;
// Then send it to the appropriate service
$xml = simplexml_load_string($response);

// Load up the root element attributes
foreach($xml->attributes() as $name=>$attr) $res[$name]=$attr;
$first = $res['firstResultPosition'];
$last = $first + $res['totalResultsReturned']-1;
echo “<p>Matched ${res[totalResultsAvailable]}, showing $first to $last</p>\n”;

print’<script type=”text/javascript”><!–
google_ad_client = “pub-8659254839827892″;
/* 728×15, created 30/05/08 */
google_ad_slot = “8775688669″;
google_ad_width = 728;
google_ad_height = 15;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script><br>’;

if(!empty($res['ResultSetMapUrl'])) {
echo “<p>Result Set Map: <a href=\”${res[ResultSetMapUrl]}\”>${res[ResultSetMapUrl]}</a></p>\n”;
}

if($_REQUEST['type'] == “web”){

foreach($xml as $result) {
//print_r($xml);
echo “<a href=\”".$result->ClickUrl.”\”>”.utf8_encode($result->Title).”</a>”;

echo”<br>”;
echo utf8_encode($result->Summary);
echo”<br>”;
}
}elseif($_REQUEST['type'] == “image”){

foreach($xml as $result) {
//print_r($xml);
echo “<a href=\”".$result->ClickUrl.”\”><img src=\”".$result->Thumbnail->Url.”\”></a>”.utf8_encode($result->Summary).”";
echo “File Name:”.utf8_encode($result->Title).”";
echo “Page:”;
echo”<br>”;
echo utf8_encode($result->Summary);
echo”<br>”;
}

};
echo “<br>\n”;
next_prev($res, $first, $last);
done();
?>

Going to Camping?

Hi Guys, I have found this very interesting website about camping, http://www.campingup.com

give a try!

Again back…after another crash!

Sorry Guys, I should take care of more of my blog!

I have changed server and I backed up all my business website, but I have forgotten something…my blog! :)

Anyway, I’m back again…hopefully it will last!

Take care!