- Fórum WMO
- → djalma_bina's Content
djalma_bina's Content
There have been 5 items by djalma_bina (Search limited from 26/05/2023)
#1001768 Projeto Freelance Em J2 Me.
Posted by djalma_bina on 24/07/2010, 14:18 in Java Mobile (J2ME)
Sou desenvolvedor Web mas estou procurando com urgência profissional com conhecimento em desenvolvimento de aplicativos Java para celulares, utilizando os recursos mais portáveis e avançados da J2ME como Geolocation. Eu estou desenvolvendo a interface Web do projeto. Preciso de uma parceria para web tracking em dispositivos móveis e integrar os sistemas.
É necessário ter experiência para desenvolver aplicativos com alta portabilidade e que funcionem em diferentes tipos de celulares. Ainda, capacidade de gerar layouts que sejam ajustáveis para diferentes resoluções e tipos de aparelhos. Interessados podem acessar esta página web - http://www.freelance...cts/740562.html e colocar sua oferta (bid). Ou entrar em contato comigo pelo e-mail: djalma_bina@hotmail.com, como também adicionar no MSN.
Obrigado,
Djalma Bina.
#1001721 Php Com Geolocation.
Posted by djalma_bina on 23/07/2010, 14:08 in Java Mobile (J2ME)
Por favor, gostaria de saber se um script PHP pode enviar/receber dados como Geolocation, vindos de um cliente móvel, qualquer celular com navegação GPS. Obrigado.
#995724 Erro Em Max() E Min() No Php 5.2.6
Posted by djalma_bina on 01/03/2010, 16:02 in PHP
No debug da página o Firefox retorna estes warnings explicando o
que falta :
Os valores são passados para função GMaps.marker em<b>Warning</b>: max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>39</b><br />
<br />
<b>Warning</b>: max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>40</b><br />
<br />
<b>Warning</b>: max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>41</b><br />
<br />
<b>Warning</b>: min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>42</b><br />
<br />
<b>Warning</b>: min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>43</b><br />
<br />
<b>Warning</b>: min() [<a href='function.min'>function.min</a>]: Array must contain at least one element in <b>/home/trekhote/public_html/bina/get/georoute.class.php</b> on line <b>44</b><br />
GMaps.marker(52.7293,-117.644,'spot','');
GMaps.marker(52.7286,-117.644,'spot','');
GMaps.marker(52.7285,-117.645,'spot','');
GMaps.marker(52.728,-117.645,'spot','');
GMaps.marker(52.7279,-117.646,'spot','');
GMaps.marker(52.728,-117.646,'spot','');
GMaps.marker(52.7277,-117.645,'spot','');
E T C .....................
http://trekhotel.com.../gmaps.php?r=46
Obrigado !
#995648 Erro Em Max() E Min() No Php 5.2.6
Posted by djalma_bina on 27/02/2010, 23:24 in PHP
Segundo o Manual oficial do PHP, http://php.net as funções max() e min() pedem arrays como parametros.
Obrigado.
#995600 Erro Em Max() E Min() No Php 5.2.6
Posted by djalma_bina on 26/02/2010, 20:32 in PHP
Ola pessoal !
Sou novato em desenvolvimento com PHP 5 e MySQL , estou fazendo uma classe para pegar dados de arquivos XML e GPS. Meu codigo-fonte este :
<?php class Route { var $points; //array with points var $lats; //array with latitudes var $maxlat; var $minlat; var $lngs; //array with longitudes var $maxlng; var $minlng; var $alts; //array with elevations var $maxalt; var $minalt; var $n; var $dist; //total distance in metres var $drop; //total drop in metres var $time; //time the route spent in secconds var $hours; var $minutes; function fromPoints($points) { $this->n = count($points); for($i = 0; $i < $this->n; $i++) { $this->lats[$i] = $points[$i]->lat; $this->lngs[$i] = $points[$i]->lng; $this->alts[$i] = $points[$i]->alt; } //max and min $this->maxlat = max($this->lats); $this->maxlng = max($this->lngs); $this->maxalt = max($this->alts); $this->minlat = min($this->lats); $this->minlng = min($this->lngs); $this->minalt = min($this->alts); $this->drop = $this->getDrop($points); $this->dist = $this->getTotalDistance($this->lats,$this->lngs,$this->alts); $this->time = $points[($this->n-1)]->time - $points[0]->time; $this->hours = floor($this->time / 3600); $this->minutes = floor(($this->time - 3600 * $this->hours) / 60); } function getDrop($points) // returns total drop in { $n = count($points); $drop = 0; for($i = 1; $i < $n; $i++) { if($points[$i]->alt > $points[($i-1)]->alt) $drop += round($points[$i]->alt - $points[($i-1)]->alt); } return $drop; } function distAB($lat1,$lng1,$alt1,$lat2,$lng2,$alt2) { //returns the distance in metres between two points $distKM = 6371000 * acos(cos(deg2rad($lat1))*cos(deg2rad($lat2))*cos(deg2rad($lng2)-deg2rad($lng1))+sin(deg2rad($lat1))*sin(deg2rad($lat2))); $dist = sqrt(pow($distKM,2)+pow(($alt1-$alt2),2)); return $dist; } function getTotalDistance($lats,$lngs,$alts) { //returns total distance in meters $step = 1; $total = count($lats); $a = $b = $c = 0; //this algorithm takes the max and the min difference distances, to calculate a pitagoric distance at the end for($i = $step; $i < $total; $i += $step) { $latn = abs($lats[$i]-$lats[$i-$step]); $lngn = abs($lngs[$i]-$lngs[$i-$step]); $a += max($latn,$lngn); $b += min($latn,$lngn); $c += abs($alts[$i]-$alts[$i-$step]); } return $this->distAB(0,0,0,$a,$b,$c); } } ?>
A página que utiliza esta classe roda neste url --
http://trekhotel.com.../index.php?r=46
No entanto o php retorna estes warnings :
Warning: Wrong parameter count for max() in /home/trekhote/public_html/bina/core/georoute.class.php on line 41 Warning: Wrong parameter count for max() in /home/trekhote/public_html/bina/core/georoute.class.php on line 42 Warning: Wrong parameter count for max() in /home/trekhote/public_html/bina/core/georoute.class.php on line 43 Warning: Wrong parameter count for min() in /home/trekhote/public_html/bina/core/georoute.class.php on line 44 Warning: Wrong parameter count for min() in /home/trekhote/public_html/bina/core/georoute.class.php on line 45 Warning: Wrong parameter count for min() in /home/trekhote/public_html/bina/core/georoute.class.php on line 46
As funções max() e min() não aceitam os arrays , por que ?
Obrigado por qualquer sugestão .
Djalma Bina.
- Fórum WMO
- → djalma_bina's Content
- Privacy Policy
- Regras ·