Archive for June, 2008

June 21st, 2008

Detectar lenguajes usando Google AJAX Language API

Usando el API de Google es muy simple detectar el lenguaje de un texto. Para hacerlo más simple se puede crear un componente CakePHP y reutilizarlo.
El código sería el siguiente:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
< ?php
class LanguageComponent extends Object {
 
function initialize() {
 
}
 
function startup(&$controller) {
$this->controller = $controller;
}
 
function detect($text){
App::import("Core", "HttpSocket");
$conn = new HttpSocket();
 
$url = "http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q=";
$url .= urlencode($text);
 
$result = $conn->get($url);
 
if (!$result){
return false;
}
 
$result = [...]

3 Comments Tags: , , ,

June 18th, 2008

¿Qué es un avatar?

Muchos ubicarán el término, pero ¿Qué es realmente un “avatar”?
En sus origenes un avatar se define como[1]:

En el marco del hinduismo, un avatar es la encarnación terrestre de un dios, en particular Vishnú.Se dice por ejemplo que el dios Krishna es el octavo avatar de Vishnú. El término sánscrito अवतार avatāra significa el que [...]

No Comments Tags: , , , ,

June 14th, 2008

La mano de Dios

Hand Of God, originally uploaded by Balakov.

Un recuerdo para los amigos argentinos

No Comments Tags: , ,

About

Mi nombre es Pablo Viojo y tengo 27 años. Nací en Uruguay el 7 de agosto de 1981. Actualmente vivo en Santiago, Chile

Aparte de esto me interesa todo lo que tenga que ver con Internet y las nuevas tecnologías. Más info aquí, en mi hCard o en formato FOAF

View Pablo Viojo's profile on LinkedIn



Recent Comments

Pages

Feeds

Posts by tags

Posts by month