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ú

Mensajes - **Aincrad**

#481
Hola, a todo . tengo una XBOX 360 y ayer la fuente de poder empezó a Prender el led de color naranja y titila.

Alguien me puede explicar que significa?  :huh:


                                   Gracias de antemano-.
#482
no. ya entendí el juego.

es facil . nada mas ir a la barra de acceso rápido y le das a personalizar.  hay colocas
el nombre del script y el javascript  pero desafortunadamente no te puedo ayudar.

no te puedo ayudar, ya que esta opción para agregar el  javascript es solo para usuarios Premium  y a los usuarios normales no les deja esta opcion.

PD: cuando publiques algún código colocalo dentro de su respectiva etiqueta asi:

Código (javascript) [Seleccionar]
Pon tu code dentro de su respectiva etiqueta. como este texto
#483
necesito el link del juego para probar el code.
#484
hala. hoy cuando llege de la universidad estaba navegando en busca de pagina que enseñen a programar. estaba buscando c++ . y encontré esta pagina muy buena.

espero que les sirva a alguna persona que quiera aprender algún lenguaje.

http://tutorialesprogramacionya.com/

                          COMENTEN LO QUE SEA......
#485
amigo, si quieres ayuda . por lo menos publica el ese javascript que te da error .   :silbar:
#486
si , ya intente con el &autoplay=1 pero el foro no me deja.  :(

bueno no importa lo puse como me dijo Elektro .

las personas que quieran escuchar el audio tienen que dar play al video.

[youtube=40,40]https://www.youtube.com/watch?v=2vjPBrBU-TM?rel=0&showinfo=0&controls=1&;[/youtube] .  ------------> click aqui para reproducir cancion.
#487
en realidad lo digo para poner musica de fondo a mis temas . jejeje .  :)
#488
hola a todos los del foro.
se podria poner un video en un tema pero que el video tenga auto play.

osea que el video se empiese a reproducir solo sin tener que darle play.

#489
ESTO ME HACE PENSAR , QUE cundo me gradué me voy a  vivir en estados unidos.  :silbar:
#490
Scripting / Re: (IA) Perceptron . . .
4 Octubre 2017, 13:16 PM
Interesante . bueno en python encontre este chatbot . en idioma ingles. se supone que aprende las palabras mientras tu hablas con el .

code:

Código (python) [Seleccionar]
import re
import sqlite3
from collections import Counter
from string import punctuation
from math import sqrt

# initialize the connection to the database
connection = sqlite3.connect('chatbot.sqlite')
cursor = connection.cursor()

# create the tables needed by the program
create_table_request_list = [
    'CREATE TABLE words(word TEXT UNIQUE)',
    'CREATE TABLE sentences(sentence TEXT UNIQUE, used INT NOT NULL DEFAULT 0)',
    'CREATE TABLE associations (word_id INT NOT NULL, sentence_id INT NOT NULL, weight REAL NOT NULL)',
]
for create_table_request in create_table_request_list:
    try:
        cursor.execute(create_table_request)
    except:
        pass

def get_id(entityName, text):
    """Retrieve an entity's unique ID from the database, given its associated text.
    If the row is not already present, it is inserted.
    The entity can either be a sentence or a word."""
    tableName = entityName + 's'
    columnName = entityName
    cursor.execute('SELECT rowid FROM ' + tableName + ' WHERE ' + columnName + ' = ?', (text,))
    row = cursor.fetchone()
    if row:
        return row[0]
    else:
        cursor.execute('INSERT INTO ' + tableName + ' (' + columnName + ') VALUES (?)', (text,))
        return cursor.lastrowid

def get_words(text):
    """Retrieve the words present in a given string of text.
    The return value is a list of tuples where the first member is a lowercase word,
    and the second member the number of time it is present in the text."""
    wordsRegexpString = '(?:\w+|[' + re.escape(punctuation) + ']+)'
    wordsRegexp = re.compile(wordsRegexpString)
    wordsList = wordsRegexp.findall(text.lower())
    return Counter(wordsList).items()


B = 'Hello!'
while True:
    # output bot's message
    print('B: ' + B)
    # ask for user input; if blank line, exit the loop
    H = raw_input('H: ').strip()
    if H == '':
        break
    # store the association between the bot's message words and the user's response
    words = get_words(B)
    words_length = sum([n * len(word) for word, n in words])
    sentence_id = get_id('sentence', H)
    for word, n in words:
        word_id = get_id('word', word)
        weight = sqrt(n / float(words_length))
        cursor.execute('INSERT INTO associations VALUES (?, ?, ?)', (word_id, sentence_id, weight))
    connection.commit()
    # retrieve the most likely answer from the database
    cursor.execute('CREATE TEMPORARY TABLE results(sentence_id INT, sentence TEXT, weight REAL)')
    words = get_words(H)
    words_length = sum([n * len(word) for word, n in words])
    for word, n in words:
        weight = sqrt(n / float(words_length))
        cursor.execute('INSERT INTO results SELECT associations.sentence_id, sentences.sentence, ?*associations.weight/(4+sentences.used) FROM words INNER JOIN associations ON associations.word_id=words.rowid INNER JOIN sentences ON sentences.rowid=associations.sentence_id WHERE words.word=?', (weight, word,))
    # if matches were found, give the best one
    cursor.execute('SELECT sentence_id, sentence, SUM(weight) AS sum_weight FROM results GROUP BY sentence_id ORDER BY sum_weight DESC LIMIT 1')
    row = cursor.fetchone()
    cursor.execute('DROP TABLE results')
    # otherwise, just randomly pick one of the least used sentences
    if row is None:
        cursor.execute('SELECT rowid, sentence FROM sentences WHERE used = (SELECT MIN(used) FROM sentences) ORDER BY RANDOM() LIMIT 1')
        row = cursor.fetchone()
    # tell the database the sentence has been used once more, and prepare the sentence
    B = row[1]
    cursor.execute('UPDATE sentences SET used=used+1 WHERE rowid=?', (row[0],))