Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Víctor R. Ruiz

Pages: [1]
1
Foro general - Español / Libro de prácticas de Arduino con Visualino
« on: 2017-February-06 11:51:00 am »
Javier Fernández Panadero acaba de publicar un libro bastante completo de prácticas de Arduino con Visualino. Tiene licencia Creative Commons y casi 100 páginas. Utiliza una mochila (shield) de Arduino Uno, lo que evita que los chavales tengan que estar haciendo montajes. Abarca desde el típico parpadeo hasta los servos. Seguro que es útil a muchos profesores. Se puede descargar por aquí: https://lacienciaparatodos.wordpress.com/2017/02/06/practicas-para-arduino-especial-profes/.

Aprovecho para felicitar a Javier por su trabajo.

2
Core Development / Compiling with Qt 5.7
« on: 2016-December-30 03:54:27 am »
Hi. Some have recently tried to compile Visualino with the latest version of Qt and it displays an error about webkitwidgets not being available. The problem is that Qt have deprecated QtWebKit in favor of QWebEngine, and the API has changed.

Anyway, I've been working this week on the port of the code from QWebView to QWebEngineView but there are some missing features and big API changes that need careful attention. For example, evaluateJavaScript has been replaced with runJavaScript, but doesn't return any value anymore. Some signals have also changed. The biggest problem, though, is that there is no direct replacement for addToJavaScriptWindowObject which was a bridge between JS and a Qt class and used to capture changes on the code by the GUI.

I'll put all this changes in a github branch as soon as possible.

3
Foro general - Español / ¡Gallego y vasco en github!
« on: 2016-November-10 11:24:43 am »
Hola. A través de github han llegado las contribuciones para traducir Visualino al gallego y vasco. Espero publicar una nueva versión en breve con éstas traducciones.

4
Core Development / Incoming feature: Undo/Redo
« on: 2016-February-22 12:11:55 pm »
Hi. One of the reasons I've been slow these days answering (sorry guys) is that I've been working on the Undo/Redo feature. I thought it would be done quickly, but it has taken its time. It's almost finished now. As soon as it is ready, I'll commit the code to github.

Anyway, it will need future refinement. It tracks changes in the XML code, and that happens a couple of times when dragging a block. Another issue that should be solved in that shortcuts aren't currently working, so Control+Z doesn't trigger the undo action. The webview is not raising the key strokes to the application.

5
Translations / New strings in Visualino 0.7
« on: 2016-February-08 01:16:01 am »
In https://github.com/vrruiz/roboblocks/tree/master/lang you will find updated files. Now, the new strings are marked with a comment (// To translate). For eaxmple:

Code: [Select]
fr-FR.js:        LANG_ADVANCED_SERIAL_PARSEINT: 'Serial Read Integer', // To translate
fr-FR.js:        LANG_ADVANCED_SERIAL_PARSEINT_TOOLTIP: 'First valid (long) integer number from the serial buffer', // To translate
fr-FR.js:        LANG_CONTROLS_BASE_MILLIS: 'Time from start (ms)', // To translate
fr-FR.js:        LANG_CONTROLS_BASE_MILLIS_TOOLTIP: 'Number of milliseconds since the program started (long integer)', // To translate
fr-FR.js:        LANG_VARIABLES_TYPE_BYTE: 'Byte', // To translate
fr-FR.js:        LANG_VARIABLES_TYPE_FLOAT: 'Float',  // To translate
fr-FR.js:        LANG_VARIABLES_TYPE_INTEGER: 'Integer',  // To translate
fr-FR.js:        LANG_VARIABLES_TYPE_INTEGER_LONG: 'Long Integer',  // To translate
fr-FR.js:        LANG_VARIABLES_TYPE_STRING: 'String',  // To translate

This way, they are easier to spot. However, in the medium term, I should take a look to a translation service to make it even easier.

6
Announcements / Version 0.7
« on: 2016-February-08 01:10:50 am »
Hi. I'm pleased to announce the availability of Visualino 0.7. This time it took less time as intended. This version comes with some bug fixes and some new features. From the changelog:

  • Blocks for typed variables.
  • Block for serial.parseInt().
  • Block for millis().
  • Zoom in/out.
  • Add support for Arduino Duemilanove.
  • Add fields to setup LCD pins.
  • Fix problem with && operator in functions.
  • Blockly: Fix issue with xml.childNodes returning twice one element.

Packages are available for Linux (Ubuntu/Debian), Mac and Windows in http://www.visualino.net/downloads/.

This is also the first official release for Raspberry Pi 2 (problems has been reported with Raspberry Pi 1, in investigation).

Thanks and credits to the people who reported issues and feature requests: Daniel Torres, agrgal, leonardo.pech and rlmoreno.

Please, report any problem you find. Enjoy!

7
Bugs / Bug with function with return value
« on: 2016-January-12 04:55:16 pm »
I'm investigating a problem with a function that returns a value. When a function is defined with a parameter, and the parameter is returned as a value, the generated code is not correct (it returns no value).

8
Foro general - Español / Cómo instalar Visualino 0.6 en Lliurex 15
« on: 2015-December-30 04:55:35 am »
Alex Gironés Soriano me ha informado de problemas de instalación de Visualino 0.6 en la distribución de Linux educativa Lliurex 15. Por lo que he podido averiguar, está basada en Ubuntu Trusty (14.04), y los paquetes de Visualino 0.6 están creados para 15.04 y 15.10. Así que he generado paquetes nuevos para Trusty tanto para i386 como para amd64. Están disponibles en http://visualino.net/downloads/ubuntu/ (indicados con "-trusty").

Para instalar estos paquetes de Visualino en Lliurex, se necesita un paso previo. En el Centro de Software de Ubuntu > Editar > Orígenes de software, hay que activar "main" y "universe", para que se puedan instalar las dependencias de Visualino desde los repositorios de Ubuntu.




9
Announcements / Version 0.6
« on: 2015-December-13 08:19:47 pm »
Hi. I'm pleased to announce the availability of Visualino 0.6. This is the first release since 0.5 in April, it took long! I hope future releases can be done in less time. This version comes with many goodies. From the changelog:
  • Update examples with setupLoop block.
  • Add setupLoop block.
  • Update roboblocks (do/while).
  • Fix #15: Delete key in Mac makes the environment to disappear.
  • Smaller inline block images.
  • Update contributors.
  • Polish translation.
  • Russian translation.
  • Assign colors to block menus.
  • Syntax highlighting.
  • Polish UI translation.
  • Warning for unsaved changes.
Packages are available for Linux, Mac and Windows in Downloads. Please, report any problem with the current packages. Enjoy!

10
Translations / New strings in Visualino 0.6
« on: 2015-December-13 01:47:28 pm »
Hi. There are new strings in the upcoming Visualino 0.6. These are:

In roboblocks/lang/:

Code: [Select]
LANG_CONTROLS_DOWHILE_OPERATOR_DO
LANG_CONTROLS_DOWHILE_OPERATOR_WHILE
LANG_CONTROLS_DOWHILE_TOOLTIP
LANG_CONTROLS_EXECUTE
LANG_CONTROLS_EXECUTE_TOOLTIP
LANG_CONTROLS_SETUP_LOOP_SETUP_TITLE
LANG_CONTROLS_SETUP_LOOP_LOOP_TITLE
LANG_CONTROLS_SETUP_LOOP_TOOLTIP

And in visualino/ts/:

Code: [Select]
There are unsaved changes that could be lost. Do you want to save them before continuing?
I will be releasing 0.6 very soon (sorry for the short notice this time). But I will be happy to include these translations in 0.6.1 as soon as I receive them.

11
Foro general - Español / Crear nuevos bloques
« on: 2015-November-19 01:57:09 pm »
He recibido un correo que contesto por aquí.

Quote
¿Quieres decir que para añadir bloques hay que hacerlo primero en la rama de Roboblocks que mantienes en Github?

Sí, efectivamente. Los bloques están allí, y luego se "compila" ese proyecto. El roboblocks.js generado se copia al proyecto de Visualino. Quizás pueda hacer falta alguna pequeña modificación adicional, pero básicamente es así.

Para aclarar un poco más las cosas, la arquitectura de Visualino es la siguiente:

  • Google Blockly. Esta herramienta es la que permite la programación por bloques y genera código en C/C++. bq lo bifurcó e hizo algunas modificaciones. Para Visualino mantenemos también un proyecto derivado (básicamente para cambiar algunos colores y otros cambios cosméticos).
  • Roboblocks. Es el proyecto que añade los bloques especiales de Arduino.
  • Visualino. Este es el interfaz de usuario. Cuando abrimos Visualino, el programa muestra una vista web e interactúa con ella. Por ejemplo, obtiene el C++ generado en la vista HTML y lo envía al IDE de Arduino para compilar.

Así que para añadir bloques, lo mejor es comenzar por la documentación de Google Blockly, porque da una idea general de cómo funcionan los bloques. Pero como bq modificó Blockly, lo más directo es copiar y modificar los bloques existentes en Roboblocks según necesidades.

Éste es el código que añade el bloque setup() en Roboblocks para Visualino (todavía no publicado): https://github.com/vrruiz/roboblocks/commit/47c220f5270d76b84f009a64dc0c0c72b51b7fb1

12
General Discussion / Visualino project, Roboblocks, forum
« on: 2015-October-31 12:54:59 am »
Andrew (AMOsPL) sent me an email, that I will answer here, as it may be useful to others :)

Quote
2. Forum registered me without typical handshake: email with link to complete registration process - this is your accept meanwhile or hole in security?

I begun with relaxed security and has been (learning the bad way how to) improve it. Now it requires email confirmation and admin approval.

Quote
1. My knowledge of Github is weak and I cannot use some of adavnced features because of my Windows XP systems. I translated some Roboblocks files to PL and my "pull of request" is waiting for acceptance now. But there is your branch of Roboblocks for Visualino on Github as separate way to include this subsystem into Visualino. Should I send changing proposals direct to you or wait for original Roboblocks project masters acceptance to integrate these?

Your pull request for Visualino was merged right away. The problem is that you forked the upstream Roboblocks project, that I have no direct control (I know the guys who run it)... I have sent them back the contributed translations. So it's better if you send them directly to my branch, as I can directly merge the code.

Quote
2. In my knowledge Original Blockly has no do-While statement and, as I see, Roboblocks project copies its features 1 to 1. So, this looks like purity over usability. Lack of do-While/Until loop is essential for creating effective source code, especially for Arduino. Am I wrong, misunderstood something, big lack of knowledge? Maybe I try to go too far and Roboblocks' contributors cannot accept this because of some other things unknown to me.

We can add whatever blocks we need on our Roboblocks branch, for example, I recently added a setup() block. Currently a while() block exists, do you think a do while() would be a good addition?

Quote
Second minor problem is my last dirty edit of this on Github which I cannot resolve using windows XP - searched and found help how to rollback commit but its serious problem to me how to execute it.

You may want to take a look here: http://stackoverflow.com/questions/1616957/how-do-you-roll-back-reset-a-git-repository-to-a-particular-commit

Quote
3. what is dist\roboblocks.min.js file and how to generate it?

A Roboblocks' build generates two files, a compressend and an uncompress file. To do that, you need to install Node.js, Bower and Grunt, which may not be an easy task in Windows XP, and then follow the instructions to build it in https://github.com/vrruiz/roboblocks I can give you more specific details if you can install those in your setup.

Quote
1. do you plan to change Visualino that way it could open many simultaneous projects in many windows and using drag and drop method to move portions of blockly snippets for fast source build from tested blocks? or another way to achieve fast build from tested blockly libraries?

I don't know if Google Blockly is able to copy and paste from different Windows :-/

Quote
2. what about fast deleting feature dragging and dropping block into left vertical column - meaning: drop back to block's library? I saw this on one blockly page and i found this method faster than pulling something into trashcan in low right corner, apart of fact that trashcan consumes some place of editor.

It would be a little bit confusing, IMHO. I'm a keyboard person, and like to use Delete key to destroy blocks, and also right-clicking to open the context menu.

Quote
3. earlier question: is it plan to build and publish new Visualino version? I have some troubles to complete distribution Visualino pack for Windows using Visual Studio 2010 and QT 5.5

Sure, I will release 0.6 as soon as possible (you have a windows zip in /downloads/beta/, but did it quickly and not sure if it runs 100% fine). For that I wanted to finish adding support for a couple of new blocks (#include, global, execute), and do some bug fixing.

13
Foro general - Español / ¡Bienvenidos!
« on: 2015-October-15 06:23:14 pm »
¡Bienvenidos a los foros de Visualino! Aún los estoy terminando de configurar, pero ya se pueden utilizar.

Ante todo, ¡gracias por usar Visualino! Desde que comenzó el proyecto, la acogida ha sido magnífica. Recibo un flujo constante de correos electrónicos (y algún que otro WhatsApp) con preguntas acerca de Visualino. Hace tiempo que pensaba que al proyecto le hacía falta un buen canal de comunicación para la comunidad de usuarios. Así que, ¡aquí están los foros!

Como regla general, por favor, sean corteses con el resto de usuarios y no envíen mensajes publicitarios que no tengan nada que ver con los temas que tratamos :) He creado un número mínimo de temas que creo que cubren bien las necesidades actuales. Espero que les sean de utilidad y los usen sabiamente.

¡Saludetes!

14
General Discussion / Welcome!
« on: 2015-October-15 06:06:07 pm »
Welcome to Visualino forums! I'm still setting up them, but should be usable by now.

First of all, thanks for using Visualino! The response has been awesome since the start of the project. I keep receiving a constant flow of emails with questions. But the project was missing a proper communication channel to build a community around it. So here are the forums!

As a general guideline, please be nice with others and don't spam :) I've created a minimum number of boards to fit current needs. Feel free to use them wisely!

Pages: [1]