Archivio per agosto 2008

You can do lot of interesting stuff with Google Talk like get alert notifications, save bookmarks to delicious, manage web calendars, set reminders, write blogs, and so much more.

Comments Nessun Commento »

La globalizzazione entra anche nello sviluppo web con l’aiuto di Google, tramite le AJAX Library API. Questa nuova libreria consente di caricare il proprio framework javascript preferito in semplicità apportando inoltre alcuni vantaggi insostituibili.

ajax library api

Forse non sono stato molto chiaro. Nello sviluppo di siti/applicazioni web, oramai è diventato necessario includere framework come jQuery, jQuery UI, prototype, script.aculo.us, MooTools o dojo e tenerli aggiornati diventa dispendioso. Google, con la sua libreria carica automaticamente la libreria prescelta e la tiene aggiornata all’ultima versione rilasciata.

Per esempio, invece di includere la libreria nella classica maniera:

<script type="text/javascript" src="jquery.js"></script>

con AJAX Library API per caricare jQuery dovremo scrivere:

<script src="http://www.google.com/jsapi"></script>
<script>
  google.load("jquery", "1");
</script>

In questo modo, dopo che la pagina sarà completata, verrà caricato jQuery in modalità AJAX. Per approfondire l’argomento, vi rimando alla ben fatta documentazione.

Sicuramente mi chiederete dov’è il vantaggio, visto che devo scrivere 4 righe al posto di una sola. I vantaggi sono questi:

  • Il caching è fatto correttamente da Google e noi sviluppatori non ci dobbiamo preoccupare di nulla
  • Il trasferimento viene eseguito usando la compressione Gzip
  • I framework vengono forniti nella loro versione minificata
  • I file sono depositati nei server di Google che ci garantiscono una uniforme distribuzione sul territorio mondiale. In questo modo sono “vicini” ad ogni utente.
  • I server di Google sono veloci.
  • Usando gli stessi indirizzi, se molte applicazioni nella rete utilizzando l’AJAX Library API, probabilmente quando qualcuno caricherà la vostra applicazione, i file saranno già disponibili nella cache del browser!
  • Infine un sottile vantaggio in termini di prestazioni e di sicurezza. Poichè la vostra applicazione richiede un file esterno (con un dominio diverso) non verranno spedite informazioni aggiuntive come i cookie, salvando byte preziosi.

In realtà Google aveva già creato il codice per uniformare il caricamento delle sue librerie come le Google Maps API o le Google Search API. L’estensione ai framework non Google è parsa naturale, gratuita e molto utile per gli sviluppatori.

Comments Nessun Commento »

icon

This is a remake of the classic Jon Ritman and Bernie Drummand adventure. The original game was released around 1987. It had great graphics for it’s time. Check out this OS X port of it. Enjoy.

, , , , ,

Comments Nessun Commento »

Google provides a neat new way for you to grab the user’s location information via JavaScript. It’s the ClientLocation property of their Ajax API. All you need is a free API key, and then you can load their JavaScript file in your HTML, and access the properties city, country, country code, region, and latitude/ longitude (where available, that is – the values may not always be found by Google, and Google disclaims they are only “approximate”). With this information in hand you can then feed it back to other services, including the Google Maps API, or say an image search for the city name – take a look at the example page called “Where are you?” I’ve created. The only thing officially missing seems to be a server-side way to access the geolocation data.

In other geolocation news, Google released a Geolocation module for their Gears API. Google in their blog post on this says the data returned here is more precise than what the Ajax API delivers, as it “can use the cell-ID of nearby cell towers or on-board GPS (if either is available)”. However, for this to work users need to have the Google Gears plug-in installed on either their desktop or their mobile system.

Google continues trying to make their open-sourced Gears more useful to web developers, but what’s in it for them? Well, the more useful Gears becomes as a plug-in the more likely it will be pre-installed on systems in the future – which increases the control Google has over the browser environment, which in turn enables them to more quickly launch initiatives which make the web in general and their tools more powerful without the need to go through years of industry lobbying/ standardization/ browser updating & deployment processes. As with other initiatives in which Google tries to speed up deployment of frameworks which hold the power to benefit them, the Google branding is de-emphasized here. For instance, you won’t find a big Google logo on the Free the Airwaves homepage, the Android homepage, the Open Handset Alliance, or the OpenSocial blog, even when Google is either owner or major party in these projects. And take a look at how the Gears project changed its name and logo from “Google Gears” to just “Gears” over time (while adjusting the motto from “Enabling Offline Web Applications” to the more general “Improving Your Web Browser”):

Google’s boss Eric Schmidt is a self-proclaimed Machiavelli fan, and Machiavelli once posed the question of whether for a leader it’s better to be feared or loved. I think Google answered the question for themselves: in today’s free-roaming web environment, it’s clearly much better for them to be loved.

[Via Reto.]

[By Philipp Lenssen | Origin: Google Releases Geolocation Features for Ajax ... | Comments]


[Advertisement] Google books at eBay: background info on Google, AdWords, AdSense, Blogger and more...

Comments Nessun Commento »

Da ormai un po’ di giorni si discute sulla rete in merito alla richiesta indirizzata ai provider italiani da parte del GIP di Bergamo (un certo Giancarlo Mancusi) di precludere preventivamente alle indagini al famoso sito di scambio file thepiratebay.org. Tale sito è stato infatti citato in giudizio dalla IFPI per pirateria. In perfetto italian style si è però creata sull’evento un sacco di disinformazione (accusando l’Italia anche di fascismo).
Ma partiamo chiarendo un po’ di elementi.

Prima di tutto è doveroso chiarire che thepiratebay è molto famoso per i suoi trascorsi e per la capacità di resistere ai vari attacchi legali subiti in passato; l’ultimo infatti aveva costretto i gestori a spostare i propri server nel deserto del Sinai in Egitto proprio per diventare “intoccabili”. Comunque il sito non è altro che un tracker di scambio di file Torrent e di per se non contiene nessun materiale illecito o pirata ma funge solo da coordinatore tra gli utenti che vogliono scambiarsi i file in questione. Il protocollo Torrent si basa infatti su un server centralizzato (chiamato appunto tracker) al quale ci si collega dopo aver prelevato il file .torrent contenente i riferimenti ai file che vogliamo ricevere.

Il file torrent di partenza ed il tracker in sostanza non hanno nulla a che fare con il materiale pirata vero e proprio ma sono solo dei puntatori ai dati veri che risiedono sui pc delle persone connesse al tracker.
L’accusa rivolta quindi a piratebay è quindi alquanto discutibile in quanto la sua attività non è illecita ma ne è illecito l’uso del risultato dello strumento (il protocollo torrent); non è lo strumento di per da considerarsi illegate (altrimenti rischieremmo di dover rendere illegali molte cose che usate “male” possono portare a compiere atti illegali).

E’ sempre da tener presente che la pirateria ad oggi è illegale ed questa cosa è fuori discussione e le leggi vanno rispettate.

Dall’altro canto la richiesta di blocco preventivo (e quindi precedente a qualunque tipo di verifica di colpa) è sicuramente eccessiva. Tale atto è stato inoltre aggravato dal fatto che inizialmente la IFPI ha potuto in concerto con tale blocco eseguire un hijack del sito catturando gli indirizzi delle persone che hanno cercado di accedere al sito dopo tale blocco (questa cosa è stata segnalata anche su repubblica.it).

Ma anche qui andiamo nel dettaglio per cercar di capire meglio. All’atto pratico sembra che sia stato richiesto ai provider italiani di bloccare l’accesso modificando i DNS per far instradare il traffico degli utenti verso un’altra destinazione, tale destinazione si è poi scoperto essere un server della IFPI stessa attraverso il quale venivano registrate le tentate visite al sito per una successiva indagine (appena la notizia è diventata pubblica hanno rettificato le cose precludendo solo l’accesso al sito e mappado il DNS verso il localhost).

Evidentemente questo comportamento è assolutamente illecito (mi viene da dire anche di più dell’attività di TPB) ancor di più perchè svolta da una delle parti in causa che evidentemente trarrà beneficio delle informazioni ricavate. Proviamo a capire ancor meglio la gravità della cosa: in sostanza è come se io chiedessi per gelosia ad un giudice di bloccare preventivamente il cellulare di mia moglie e vodafone al posto di chiuderle la linea instradasse direttamente al mio numero tutte le sue telefonate. E’ peggio di un’intercettazione illegale.

Ovviamente alcuni provider con buon senso hanno ben pensato di non attuare tale richiesta comprendendo secondo me la gravità della cosa (se un hacker venisse scoperto a compiere un’azione di questo tipo sarebbe fatto marcire nelle prigioni di non so quale castello sperduto :)).

Dal punto di vista puramente tecnico è inutile sottolineare che le azioni intraprese per bloccare l’accesso al sito sono del tutto inefficaci perchè cambiando i propri dns o utilizzando l’indirizzo ip del sito non ci sono problemi ad accedere al sito. Piratebay ha infatti registrato un aumento del traffico proveniente dall’Italia dopo l’uscita di queste notizie.

Evidentemente da tutta questa faccenda si capisce solo quanto il nostro paese sia indietro sotto tutti i punti di vista. I giudici non hanno idea di cosa fare e creano questo stato di cose deliranti, il “popolo” urla contro Berlusconi che secondo me ignora del tutto l’esistenza dei torrent e di piratebay e la stampa estera ci disegna come uno stato fascista…

L’ignoranza è brutto male da debellare.

Ci sarebbe anche da riflettere su quanto sia lecito per un provider precludere l’accesso alle risorse internet (tanto quando privileggiarlo [rif net nutrality]). Il provider (come le compagnie telefoniche) dovrebbero essere un’entità super partes del tutto trasparente. Cosa fareste se doveste scoprire che qualcuno presso il vostro provider vi legge la posta ?

E poi la vecchia regola che su internet valgono le leggi del paese in cui è ospitato il server non è più valida ? Me li vedo quelli della IFPI che su un cammello vanno per il deserto in cerca dei server di piratebay.

Alla fine dei conti posso solo dire che in Italia la cultura globale è ben lontana da esser reale e che questa cosa suona molto come il filtro cinese imposto ad internet (che mette una tristezza infinita).

Forse è meglio suonare il mandolino e mangiare spaghetti… Oppure installarci tutti TOR

Tag:, ,

Comments Nessun Commento »

Google now offers webmasters a JavaScript-based gadget to include into their 404 (page not found) pages. Depending on where the user went and what other pages are available on the server, this widget will show suggestions of where to go, and offer a search box (sometimes with a suggested query in it as well).

To get the widget, log-in to your Google Webmaster Tools and pick Tools -> “Enhance 404 pages” from the navigation. Now copy the code snippet you’ll get into your 404 template.

In the screenshot you can see a sample by Google showing the different features, and then a live test at this blog. I’ve activated the widget here for now (I’ll probably remove it later) so you can test it by entering some non-existing URLs at blogoscoped.com. Note the widget comes with some stylesheet classes so you can change the layout.

[Via Search Engine Land. Also see Google’s help entry on the subject.]

[By Philipp Lenssen | Origin: Google's File-Not-Found Helper Widget | Comments]


[Advertisement] Want to advertise here? Your ad will show in the blog and feed.

Comments Nessun Commento »

Anti-Globalism takes us to The Observer for an article by Vint Cerf on how far the internet has come, and how much can still be accomplished through its development. Cerf says, "We're nearing the tipping point for mobile computing to deliver timely, geographically and socially relevant information. Researchers in Japan recently proposed using data from vehicles' windscreen wipers and embedded GPS receivers to track the movement of weather systems through towns and cities with a precision never before possible. It may seem academic, but understanding the way severe weather, such as a typhoon, moves through a city could save lives. Further exploration can shed light on demographic, intellectual and epidemiological phenomena, to name just a few areas."

Read more of this story at Slashdot.

Comments Nessun Commento »

snydeq writes "This week's Google outages left several Google Apps admins in the lurch — and many of them are second-guessing their advocacy for making the switch to hosted apps, InfoWorld reports. The outages, which affected both Gmail and Apps, 'could serve as a deterrent to some IT and business managers who might not be ready to ditch conventional software packages that are installed on their servers,' according to the article. 'If we began to experience a similar outage more than about two or three business hours per quarter, we'd probably make Google Apps and Gmail a backup solution to a locally hosted mail system, if we used it at all,' said one Apps admin. 'And it would likely be years before we'd try a cloud-based collaborative system again from any vendor.' Coupled with recent Apple and Amazon cloud issues, these Google outages are being viewed by some as big wins for Microsoft."

Read more of this story at Slashdot.

Comments Nessun Commento »

If you’re using Google Feedburner feeds for your blog or other site (or you’re willing to switch to using them), you can now include AdSense ads into it. The service had been tested with some publishers before but now it’s apparently live for more. As feeds grow in features, the lines between normal HTML and the feed format may become more blurred... and the original reason why people switched to feeds – easy uncluttered updates, and perhaps ad-free content, among other reasons – may become less of a motivator one day.

[By Philipp Lenssen | Origin: Google AdSense for Feeds Live | Comments]


[Advertisement] PingPongPie - the art of linkbaiting and social media marketing

Comments Nessun Commento »

Business Week reports that a software fix could be the answer to reception problems that have been frustrating iPhone 3G owners, rather than a more drastic recall.

Comments Nessun Commento »

Switch to our mobile site