Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Temas - + 1 Oculto(s)

#1
Desarrollo Web / redes neuronales para la web
25 Agosto 2016, 06:48 AM
hola comunidad, ahora vengo con una duda.

hay varias librerias para redes neuronales, estas librerias son solo para escritorio? o tambien funciona para la web???
#2
este tema es una colección de buenas peliculas, no se olviden una breve descripcion
muy breve
#3
Dudas Generales / no se que temas comente
21 Agosto 2016, 02:47 AM
hola suelo pedir ayuda en este foro y  tambien me gusta colaborar pero no se que temas comente, tengo que ir a buscar a cada subforo si alguien me respondió, es muy incomodo hacer eso, bueno lo digo como sugerencia, alguien que este en la misma posición?
#4
lo puse en la misma carpeta el js con el html en django y no reconoce, como tengo que estructurar?  posteo todos los archivos para que me entiendan?
nota: soy nuevo en django
#5
Desarrollo Web / obtener el tiempo de tecleo
16 Agosto 2016, 20:38 PM
necesito obtener el tiempo de tecleo del usuario cuando se logea.

1.- es confiable hacerlo por js?
2.- o seria mucho mejor hacer con node.js
3.- otras opciones?
saludos... espero que me puedan dar sus opiniones
#6
Desarrollo Web / error con django con runserver
15 Agosto 2016, 21:41 PM
cuando quiero iniciar el servidor con python manage.py runserver, me sale este error...



nota : soy nuevo con python y django

en el servidor sale que tengo http y no https
#7
esta es la pagina pero no puedo entrar Preventivamente bloqueado

intente con 2 los navegadores (chrome, firefox), tengo internet normal, tengo amigos que tienen el mismo problema, pero la mayoría si entra normal. no entiendo cual seria el problema... el isp?.. algun script que esta deteniendo?
#8
Java / emparejamiento aproximado de cadenas
12 Agosto 2016, 23:10 PM
conocen unos 3 algoritmos de emparejamiento aproximado???

connosco 1 se llama shift'and pero necesito 3 por lo menos
#9
Java / geometria computacional III
10 Agosto 2016, 22:42 PM
mas diversion, estoy aprendiendo pero me esta costando gracias por la ayuda, ahora tengo algunas dudas sobre este ejercicio que en principio parecia dificil, pero no lo es tanto.




Código (java) [Seleccionar]

import java.io.*;

public class UVa11152_ColourfulFlowers {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

String line;
StringTokenizer stk;
while ((line = in.readLine()) != null) {
stk = new StringTokenizer(line);
double a = Double.parseDouble(stk.nextToken());
double b = Double.parseDouble(stk.nextToken());
double c = Double.parseDouble(stk.nextToken());

double s = (a + b + c) / 2.0;
double At = Math.sqrt(s * (s - a) * (s - b) * (s - c));

double rc = (a * b * c) / (4.0 * At);
double ri = 2.0 * At / (a + b + c);

double Ac = Math.PI * rc * rc;
double Ai = Math.PI * ri * ri;

double sun = Ac - At;
double violets = At - Ai;
double roses = Ai;
System.out.printf(Locale.ENGLISH, "%.4f %.4f %.4f%n", sun, violets, roses);
}

in.close();


se que con lo siguiente haya el semiperimetro para luego hallar el area por la formula de heron
Citardouble s = (a + b + c) / 2.0;
         double At = Math.sqrt(s * (s - a) * (s - b) * (s - c));

pero esta parte no entiendo, que formulas son estas:
Citardouble rc = (a * b * c) / (4.0 * At);
         double ri = 2.0 * At / (a + b + c);

saludos...
#10
Java / geometria computacional II
10 Agosto 2016, 04:27 AM
el enunciado es este:



espero que puedan ayudarme a enterder las matematicas, luego lo codifico

saludos...
#11
Java / geometria computaciona/analitica
8 Agosto 2016, 22:26 PM

quiero resolver ejercicios como ser

1.- el area que comparten dos circulos
2.- el area del circulo dentro de un triangulo
3.- area del triangulo dentro de un circulo


esa clase de ejercicios en JAVA

saludos...




por ejemplo uno de los enunciados es

y una solucion que encontre en inter es la siguiente
Código (java) [Seleccionar]
import java.util.*;
import java.io.*;

public class UVa10991_Region {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

int T = Integer.parseInt(in.readLine());
while (T-- > 0) {
StringTokenizer stk = new StringTokenizer(in.readLine());
double R1 = Double.parseDouble(stk.nextToken());
double R2 = Double.parseDouble(stk.nextToken());
double R3 = Double.parseDouble(stk.nextToken());

double a = R2 + R3;
double b = R1 + R3;
double c = R1 + R2;

double alpha = Math.acos((b * b + c * c - a * a) / (2.0 * b * c));
double beta = Math.acos((a * a + c * c - b * b) / (2.0 * a * c));
double gamma = Math.acos((a * a + b * b - c * c) / (2.0 * a * b));

double s = (a + b + c) / 2.0;
double A = Math.sqrt(s * (s - a) * (s - b) * (s - c));

double slice1 = alpha * R1 * R1 / 2.0;
double slice2 = beta * R2 * R2 / 2.0;
double slice3 = gamma * R3 * R3 / 2.0;

double res = A - slice1 - slice2 - slice3;
System.out.printf(Locale.ENGLISH, "%.6f%n", res);
}

in.close();
System.exit(0);
}
}


me ayudan a comentarlo, no entiendo mucho

MOD EDIT: No hacer doble post.
#12
volvi a descargar de pirate bay, antes no sugerian ocultar la ip, es necesario hacerlo, pero para hacerlo se paga 12 $?

#13
hola comunidad, se anima a realizar una extension para chrnome??? aun no se que tipo de extension, podemos pensar en algo, se animan?
#14
Scripting / redes neuronales
1 Agosto 2016, 19:32 PM
alguien tiene el libro un buen libro de rna??? se lo agradeceria mucho si me pasa el link
#15
soy nuevo con python, se puede web sin framework, supongo que si pero como, vengo de java, php?
#16
Scripting / Error en importar modulo
30 Julio 2016, 16:22 PM
me sale este error




que tengo que instalar, como lo soluciono?


#17
Java / colgar un paper
29 Julio 2016, 01:21 AM
hola esta ves recurro a ustedes para algo diferente

quisiera colgar un paper que hice sobre algoritmos en algun lugar, por decir la acm

alguien sabe como hacerlo?
#18
Java / operador ^ en java
19 Julio 2016, 18:52 PM
que hace este operador?
#19
Java / uva 437 exercise
16 Julio 2016, 02:06 AM
CitarThe Tower of Babylon

Perhaps you have heard of the legend of the Tower of Babylon. Nowadays many details of this tale have been forgotten. So now, in line with the educational nature of this contest, we will tell you the whole story:

The babylonians had n types of blocks, and an unlimited supply of blocks of each type. Each type-i block was a rectangular solid with linear dimensions  tex2html_wrap_inline32 . A block could be reoriented so that any two of its three dimensions determined the dimensions of the base and the other dimension was the height. They wanted to construct the tallest tower possible by stacking blocks. The problem was that, in building a tower, one block could only be placed on top of another block as long as the two base dimensions of the upper block were both strictly smaller than the corresponding base dimensions of the lower block. This meant, for example, that blocks oriented to have equal-sized bases couldn't be stacked.

Your job is to write a program that determines the height of the tallest tower the babylonians can build with a given set of blocks.

Input and Output

The input file will contain one or more test cases. The first line of each test case contains an integer n, representing the number of different blocks in the following data set. The maximum value for n is 30. Each of the next n lines contains three integers representing the values  tex2html_wrap_inline40 ,  tex2html_wrap_inline42 and  tex2html_wrap_inline44 .

Input is terminated by a value of zero (0) for n.

For each test case, print one line containing the case number (they are numbered sequentially starting from 1) and the height of the tallest possible tower in the format "Case case: maximum height = height"

Sample Input

1
10 20 30
2
6 8 10
5 5 5
7
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
6 6 6
7 7 7
5
31 41 59
26 53 58
97 93 23
84 62 64
33 83 27
0
Sample Output

Case 1: maximum height = 40
Case 2: maximum height = 21
Case 3: maximum height = 28
Case 4: maximum height = 342



no entiendo este ejercicio, talves ustedes si, ayudenme porfavor

la salida 4 creo que esta mal, deberia ser 341

o me equivoco?
#20
La mañana de este miércoles se dio a conocer oficialmente el sello postal en conmemoración al profesor boliviano Jaime Escalante en la 87ª Conferencia de la Liga de Ciudadanos Latinoamericanos Unidos (LULAD) en Washington, DC.
Escalante se hizo conocer en Estados Unidos por sus innovadores métodos de enseñanza en escuelas públicas de Los Ángeles. Su historia inspiró la película "Con ganas de triunfar" en 1988.
El profesor boliviano de matemáticas falleció el 30 de marzo de 2010 a los 79 años víctima de un cáncer de vejiga.
El hijo de Escalante lo representó durante la ceremonia de presentación de la estampilla realizada en Washington.

El profesor de matemáticas Jaime Escalante, inmortalizado en la película Con ganas de triunfar/Lecciones inolvidables o Stand and Deliver (1988) por el actor Edward James Olmos,

https://es.wikipedia.org/wiki/Jaime_Escalante
#21
Java / all in all uva exercise
15 Julio 2016, 03:37 AM
Citar
You have devised a new encryption technique which encodes a message by inserting between its characters
randomly generated strings in a clever way. Because of pending patent issues we will not discuss in
detail how the strings are generated and inserted into the original message. To validate your method,
however, it is necessary to write a program that checks if the message is really encoded in the final
string.
Given two strings s and t, you have to decide whether s is a subsequence of t, i.e. if you can remove
characters from t such that the concatenation of the remaining characters is s.
Input
The input contains several testcases. Each is specified by two strings s, t of alphanumeric ASCII
characters separated by whitespace. Input is terminated by EOF.
Output
For each test case output, if s is a subsequence of t.
Sample Input
sequence subsequence
person compression
VERDI vivaVittorioEmanueleReDiItalia
caseDoesMatter CaseDoesMatter
Sample Output
Yes
No
Yes
No


y este es mi codigo, no se como solucionarlo, no funciona para todos los casos


Código (java) [Seleccionar]
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

/**
* a->97 z->122 A->65 A->90
*
* @author qwery.azc
*/
public class Main {

   public String pertenecer(String cadenita, String cadenota) {
       int piv = 0;
       int cajaIndex=0;
       String res="No";
       for (int i = 0; i < cadenita.length(); i++) {
           char caracter=cadenita.charAt(i);
           for (int j = 0; j < cadenota.length() ; j++) {
               if (caracter == cadenota.charAt(j)) {
                   piv++;
                   i++;
                   
               }
               
           }
       }
       if(piv==cadenita.length()){
           res="Yes";
       }
       System.out.println(res);
       return res;
   }

   public static void main(String argumentos[]) throws IOException {
       Main m = new Main();
        StringTokenizer stk;
        String line;
        String cad1,cad2;
       BufferedReader  scanner = new BufferedReader(new InputStreamReader(System.in));
       while ((line=scanner.readLine())!=null) {
           stk=new StringTokenizer(line," ");
          cad1=stk.nextToken();
          cad2=stk.nextToken();
          m.pertenecer(cad1, cad2);
       }
     
       scanner.close();
   }
   }


aqui va la solucion, pero lo adapto y no da nada

http://solvingproblemsbd.blogspot.com/2014/09/uva-solution-10340-all-in-all.html
#22
Java / operardor >> en java
11 Julio 2016, 03:11 AM
que clase de operador es este, desde cuando se implemento tal comando.

Código (java) [Seleccionar]

cuando uso n>>2 es igual n/2



#23
Java / ejerciccio de competencia
11 Julio 2016, 02:27 AM
Código (xml) [Seleccionar]

Is Bigger Smarter?
Some people think that the bigger an elephant is, the smarter it is. To disprove this, you want to take
the data on a collection of elephants and put as large a subset of this data as possible into a sequence
so that the weights are increasing, but the IQ's are decreasing.
Input
The input will consist of data for a bunch of elephants, one elephant per line, terminated by the endof-file.
The data for a particular elephant will consist of a pair of integers: the first representing its size
in kilograms and the second representing its IQ in hundredths of IQ points. Both integers are between
1 and 10000. The data will contain information for at most 1000 elephants. Two elephants may have
the same weight, the same IQ, or even the same weight and IQ.
Output
Say that the numbers on the i-th data line are W[i] and S[i]. Your program should output a sequence
of lines of data; the first line should contain a number n; the remaining n lines should each contain a
single positive integer (each one representing an elephant). If these n integers are a[1], a[2],..., a[n] then
it must be the case that
W[a[1]] < W[a[2]] < ... < W[a[n]]
and
S[a[1]] > S[a[2]] > ... > S[a[n]]
In order for the answer to be correct, n should be as large as possible. All inequalities are strict:
weights must be strictly increasing, and IQs must be strictly decreasing.
There may be many correct outputs for a given input, your program only needs to find one.
Sample Input
6008 1300
6000 2100
500 2000
1000 4000
1100 3000
6000 2000
8000 1400
6000 1200
2000 1900
Sample Output
4
4
5
9
7



alguna solucion ?? no se como comenzar  gracias y saludos



no logro entender como obtiener el Output, en realidad no entiendo el enunciado del todo
#24


por que sale 0 de visitantes?
#25
Scripting / win32api
9 Julio 2016, 15:30 PM
import error: no module named win32api

de donde lo descargo la libreria win32api?
#26
no reconoce el comando python desde el cmd
#27
Dudas Generales / libros interesantes
9 Julio 2016, 02:28 AM
se animan a hacer una lista de libros interesantes de tecnología con una breve descripción?
#28
Java / identidad por dispositivo de entrada
7 Julio 2016, 04:54 AM
hola a la comunidad espero puedan ayudarme... quiero implementar biometria de teclado

alguna idea para implementar la biometría de teclado???

ia? redes neuronales? alguna idea?
#29
Java / Ejercicios de Interesantes
16 Junio 2016, 22:19 PM
otra forma de encontrar numeros primos y mas eficiente

numeros primos :
#30
Desarrollo Web / Proyectos web
16 Junio 2016, 21:43 PM
juego Stix Game html+js+css

https://www.youtube.com/watch?v=uUfmd2SskUY
#31
Java / problemas con la salida
14 Junio 2016, 22:54 PM
este es el ejercicio
Código (xml) [Seleccionar]


Quirksome Squares

The number 3025 has a remarkable quirk: if you split its decimal representation in two strings of equal length (30 and 25) and square the sum of the numbers so obtained, you obtain the original number:

displaymath26

The problem is to determine all numbers with this property having a given even number of digits.

For example, 4-digit numbers run from 0000 to 9999. Note that leading zeroes should be taken into account. This means that 0001 which is equal to  tex2html_wrap_inline28 is a quirksome number of 4 digits. The number of digits may be 2,4,6 or 8. Although maxint is only 32767 and numbers of eight digits are asked for, a well-versed programmer can keep his numbers in the range of the integers. However efficiency should be given a thought.

Input

The input of your program is a textflle containing numbers of digits (taken from 2,4,6,8), each number on a line of its own.

Output

The output is a textfile consisting of lines containing the quirksome numbers (ordered according to the input numbers and for each input number in increasing order).

Warning: Please note that the number of digits in the output is equal to the number in the corresponding input line : leading zeroes may not be suppressed.

Sample Input

2
2
Sample Output

00
01
81
00
01
81


no entiendo como obtener esa salida, ayuda

no entiendo como obtener el output 00
01
81
00
01
81???
es el ejercicio 256 del juez uva de la universidad de valladolid
#32
Código (java) [Seleccionar]


import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/**
*
* @author qwery,azc
*/
public class RadixSort {
   
    public ArrayList<Integer> radixSort(ArrayList<Integer> entryData) {
        int max = Collections.max(entryData);
        max = cantidadDigitos(max);
        Map<Integer, ArrayList> regid = new HashMap();
        int dataAux = 0;
        int digMenorSig = 0;
        int porciento = 10;
        ArrayList<Integer> lista = new ArrayList<>();
        ArrayList<Integer> copiaSort = new ArrayList<>();
        for (int i = 0; i < max; i++) {
           
            porciento *= 10;
            for (int j = 0; j < entryData.size(); j++) {
                dataAux = entryData.get(j);
                digMenorSig = dataAux % 10;
                lista.add(dataAux);
                regid.put(digMenorSig, lista);
                dataAux = dataAux / porciento;
            }
           
            for (Map.Entry<Integer, ArrayList> entry : regid.entrySet()) {
                Integer key = entry.getKey();
                ArrayList<Integer> value = entry.getValue();
                for (int j = 0; j < value.size(); j++) {
                    copiaSort.add(value.get(j));
                }
               
            }
            entryData=copiaSort;
           
        }
        for (int i = 0; i < entryData.size(); i++) {
            System.err.println(entryData.get(i));
        }
        //System.out.println("max " + max);
        return null;
    }
   
    public int cantidadDigitos(int data) {
        int res = 0;
        while (data > 0) {
            data = data / 10;
            res++;
        }
        return res;
    }
   
    public static void main(String args[]) {
        RadixSort r = new RadixSort();
        ArrayList<Integer> a = new ArrayList();
        a.add(34);
        a.add(27);
        a.add(38);
        r.radixSort(a);
       
    }
}





no funciona... no se en que estoy fallando ayuda...
#33
Java / StringBuilder vs String ( JAVA )
12 Junio 2016, 23:48 PM
por que cuando utilizo StringBuilder el tiempo de ejecucion disminuye respecto al utilizar String

alguna explicacion?
#34
Java / app que te reconozca
8 Junio 2016, 17:34 PM
quiero implementar una app en android que con solo usarlo te reconozca, mediante interaccion humano computador

que tendria que usar,
como lo harian?
machine learning?
ia?
muchas gracias
#35
Java / resumen algoritmo
5 Junio 2016, 17:27 PM
como podria implementar resumen de una hoja, un libro por decir

algun algoritmo? 
tendria que usar grafos?

como lo harian?
#36
alguien tiene una idea que trate de sguridad o creacion de un nuevo virus?

o alguna idea referente?

se puede plantear un tema de virus como tesis?
#37
buenas comunidad
lo que sucede es lo siguiente soy desarrollador php pero ahora tengo una aplicacion en tiempo real para lo cual quiero utilizar node js, solo para el socket quiero utilizar node js y para todo lo demas PHP.


he implentado geolocalizacion con node.js + sockets.io y ahora cada ves que cambia de  posicion un cliente tengo que guardar en mi base de datos mysql


mi duda es como paso datos desde nodejs a php para luego guardar los datos?

algun buen samaritano que me oriente porfavor, algun material, ejemplos , todo eso necesito


gracias

#38
estoy iniciando un proyecto de geolocalizacion porque es muy interesante
si quieren ayudarme se los agradeceria mucho

estoy siguiendo este tutorial de youtube

https://www.youtube.com/watch?v=fd5kwf_jcLA

pero no logro aun 
#39
Desarrollo Web / no ejecuta script
28 Mayo 2016, 20:58 PM
hice este codigo pero no ejecuta mi script
Código (html4strict) [Seleccionar]

<html>
<head>
<title>Geolocalizacion</title>
<meta name="viewport" content="initial-scale=1.0, user-scaleble=no">
<meta charset="utf-8">
<style >
#map-canvas{
height: 380px;
width: 300px;
margin: :0px;
padding: 0px;
background-color: #000;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="fancywebsocket.js"></script>
<script language="javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

<script>
alert("lslslsl");
var map;
var marker;
function initialize(){
var mapOptions={
zoom:15;
};
map=new google.maps.Map(document.getElementById('map-canvas'),mapOptions);

if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position){
var pos=new google.maps.LatLng(position.coords.latitude,position.coords.longitude)

var goldStar={
path:google.maps.SymbolPath.CIRCLE,
strokeColor:'#276ED0',
fillColor:'#276ED0',
fillOpacity:.9,
strokeWeight:1,
scale:6,
};

var marker=new google.maps.Marker({
position:pos,
icon:goldStar,
draggable:true,
animation:google.maps.Animation.DROP,
map:map,
});
map.setCenter(pos);
},function(){
handleNoGeolocation(true);
});
}else{
handleNoGeolocation(false);
}
}

function animar(){
navigator.geolocation.getCurrentPosition(function(position)
{
var pos =new google.maps.LatLng(position.coords.latitude, position.coords.longitude);

map.panTo(pos);

var goldStar={
path:google.maps.SymbolPath.CIRCLE,
strokeColor:'#FF4E51',
fillColor:'#FF4E51',
fillOpacity:.9,
strokeWeight:1,
scale:5,
};
var marker=new google.maps.Marker({
position:pos,
icon:goldStar,
draggable:true,
map:map,
});

var option={
map:map,
position:pos,
};
send(position.coords.latitude+","+position.coords.longitude);
map.setCenter(options.position);
});
}
function handleNoGeolocation(errorFlag){
if (errorFlag) {
var content='Error:the service';
}else{
var content="tu buscador";
}
var options={
map=map,
position:new google.maps.LatLng(60,105),
content:content,
};
var infowindow=new google.maps.infoWindow(options);
map.setCenter(options.position);
}
google.maps.event.addDomListener(window,'load',initialize);
setTimeout(function(){animar()},5000);
function pocision(pos){

}

</script>
</head>
<body>
<div id="map-canvas">

</div>

</body>
</html>
#40
Desarrollo Web / websockets + php
26 Mayo 2016, 22:33 PM
algun material para aprender websocket ?
#41
digamos que tengo una aplicacion sencilla que agrupa a usuarios
mi pregunta es la siguiente
como puedo hacer modificaciones y que las vea solamente mi grupo?

hay algun tutorial?

#42
se puede crear extensiones para los navegadores chrome y firefox???

que clase de extensiones su puede desarrollar?


es dificil hacerlo?


alguna referencia en donde comenzar ?


gracias a todos

#43
Java / proyectos interesantes en java
22 Mayo 2016, 17:42 PM
implementacion de malla poligonal en lenguaje JAVA

https://www.youtube.com/watch?v=rAvbIzQ4E5E

#44
Java / problema con aritmetica modular
22 Mayo 2016, 15:01 PM
estuve intentando pero no tengo ni idea como resolverlo

es el siguiente:

Citar
Big Mod

Calculate

displaymath25

for large values of B, P, and M using an efficient algorithm. (That's right, this problem has a time dependency !!!.)

Input

Three integer values (in the order B, P, M) will be read one number per line. B and P are integers in the range 0 to 2147483647 inclusive. M is an integer in the range 1 to 46340 inclusive.

Output

The result of the computation. A single integer.

Sample Input

3
18132
17

17
1765
3

2374859
3029382
36123

Sample Output

13
2
13195
#45
Java / desarrollar en android
21 Mayo 2016, 17:59 PM
quiero desarrollar en android  y tengo ideas como ser
la geolocalizacion con google maps, pero no se me ocurren mas ideas...

mi pregunta es que

que se puede desarrollar para google?