Mar 18

For about months ago I started working in a amazing company in Norway called OMEGA as Application Developer / Systems Engineer.

VB.net (winforms) is one of the platforms we use.

Since I come mainly from the world of Java, PHP and ActionScript, It’s been a constant learning process in which it is impossible not to compare features among technologies.

Today I was wondering how do the ternary conditional operator works in VB. I remember I use the “?:” operator in Java in Order to assign the value to a variable according to the result of a conditional operator.

This is what I found:

Java:

String resultMsg =  MyVar1 == MyVar2?"The Variables are equal":"The variables are NOT equal";

VB.Net

Dim resultMsg as String = IF(MyVar1 = MyVar2, "The Variables are equal","The variables are NOT equal")

Best!

Mar 4

Prerequisites:
- Some understanding of software engineering and Databases.

They ask me at work if I could find open source tools to create database diagrams.

But, which types of diagrams are we talking about? They are different approach for data modeling. Some could start thinking immediately on tables and relationships between those tables; others will instead start thinking any sort of business logic model and others will start thinking objects and entities (classes).

First, it is important to point that there are some differences in modeling for databases and for programing (assuming object oriented programming). You most likely have heard about UML (Unified Modeling Language); Some people may immediately associate this term to class models. However, UML define a more complete modeling language for software engineering; which includes diverse types of diagrams to represent structure, behavior and interaction.

UML Diagrams

UML Daigrams

Commonly, when it comes to databases, modelers point to relational models. Despite the fact the they must exist different names to call this type of models, I will just call them Relational Database Diagrams. The truth is that I ask around my colleges and all of them understand which type of diagrams I was referring to, but we didn’t named it the same at first time. normally a database diagram will have database table definitions. Basically, tables with columns and references between some of them. However there is more potential in this type of modeling. If you expend some more time in your database models defining column’s data types, foreign key constraints, Primary keys, check constrains for columns, etc… you will probably expend less time in development since you will detect problems in the designing stage on your project (much better here than in development and definitely much better that in testing and production). Other advantage of implementing this definitions is that if your client has some understanding of relational databases and if you has the opportunity to write Relational Database Diagrams together, the probability of having better quality requirements will increase and consequently, The designing and developing time will decrease.

At Omega we use mainly Microsoft SQL Server as our relational database management system (RDBMS). It provides a interesting tool to create Relational Databases Diagrams. however we wanted to explore the features of other open sources tools.

Interesting tools I founded:

  • Oracle SQL Developer Data Modeler:Even though this tool is designed but no limited to Oracle as RDBMS, it is a very complete and easy to use tool. Some of the key features are:
    • Creation of tables with columns with well defined data types
    • Constrain definitions (foreign key and check constrains.
    • Logical Modeling
    • Multidimensional Models
    • Relational Models
    • Pre-Defined Data, user defined data types and the option of mapping Oracle data types to other RDBMS data types
    • Allows to include Business information Data, this could be especially useful when working with requirements elicitation
    • Process Modeling, including among others: Data flow diagrams, information structures, Events and Roles
  • DB Designer:What I loved the most with this tool was its simplicity and potential, some of the Key features are:
    • Very simple to use and a clean interface
    • Creation of tables with columns with well defined data types
    • Constrain definitions (foreign key and check constrains.
    • Defined Data types and the possibility of creating new data types
    • The option to open data from a RDBMS

They are for sure much more solutions, but for the time I expended, those two were the ones that I would like to high light.

I hope this could be useful for someone.

Enjoy your weekend!

Oct 26

An example of augmented reality on the web.

Print this pattern, or download it to your phone, show it in front to the camera and enjoy!

Sep 23

An evidence of the successful consultancy work done for Arctic Whale Tours.

Sep 23

[UK] Research Catalog EAFIT University.


May 7

Como algunos saben, en el 2007 Alvaro Ramirez y yo tuvimos la iniciativa de crear un proyecto social llamado “Hyperbarrio“, en el barrio la Loma de Medellin, uno de los mas atacados por la violencia en nuestra ciudad.

Poco tiempo despues de crear la iniciativa se nos unieron, Diego Gomez, Alfredo Marulanda y Juan Diego Estrada y tuvimos la gran suerte de encontrarnos con un grupo de jovenes que desde el inicio han sido muy exitos y se han hecho merecedores de muchos premios nivel nacional e internacional.

Hoy participan por otro premio en el que tu nos puedes colaborar votando por ellos aqui.

Hyperbarrio

Apoyenlos! ellos se lo merecen!

Apr 9

Si el hosting en donde tienes instalado WP solo te permite acceso por SSH, puedes seguir disfrutando de las ventajas del plugin de actualización automática de wordpress y de esa forma ahorrar mucho tiempo en mantenimiento de tu sitio.

PASO 1:

Lo primero que necesitas es tener instalado la libreria de SSH para PHP, aquí explican como hacer eso.

PASO 2:

Ingresa a la cosola de servidor y ejecuta el siguiente comando:

[sourcecode language="shell"]
$ ssh-keygen</pre>
[/sourcecode]

Este programa te va a preguntar donde quieres guardar el archivo que contiene las keys, puedes dejar el valor por defecto que por los general es /home/usuario/.shh/id_rsa, luego te preguntara por un passphrase, el ual puedes dejar en blanco para este propósito.

Luego debemos crear un archivo de autorización con los permisos requeridos de la siguiente forma:

[sourcecode language="shell"]
$ cd ~/.ssh
$ cp id_rsa.pub authorized_keys
$ cd ~/
$ chmod 755 .ssh
$ chmod 644 .ssh/*
[/sourcecode]

PASO 3:

Luego necesitas ingresar estas lineas en tu archivo wp-config.php, cambiando los valores de acuerdo a la informacion generada en el paso dos

[sourcecode language="php"]
define(‘FS_METHOD’, ‘direct’); // ‘ssh’ is also an option, but did not work for my setup
define(‘FTP_BASE’, ‘/opt/local/nginx/html/domain.com/’);
define(‘FTP_CONTENT_DIR’, ‘/opt/local/nginx/html/domain.com/wp-content/’);
define(‘FTP_PLUGIN_DIR ‘, ‘/opt/local/nginx/html/domain.com/wp-content/plugins/’);
define(‘FTP_PUBKEY’, ‘/home/username/.ssh/id_rsa.pub’);
define(‘FTP_PRIKEY’, ‘/home/username/.ssh/id_rsa’);
define(‘FTP_USER’, ‘username’);
define(‘FTP_HOST’, ‘your-domain.com:22′);</pre>
[/sourcecode]

Recuerda asegurate de que wordpress tenga permisos de escritura y lectura en las carpetas afectadas en el moento de actualización (p.e la carpeta de plugins) Si no quieres usar el método de claves emparejadas, puedes usar esta línea en el archivos wp-config.php

[sourcecode language="php"]
define(‘FTP_PASS’, ‘password’);
[/sourcecode]

Mar 12







Read more…

Este es el grupo de Capoeira en el que entreno en Bergen. Fuimos visitados por el canal estudiantil para hacer una nota sobre capoeira.

Aqui pueden ver un poco de nuestros entrenamientos.

Espero lo disfruten!


English:
This is our capoeira group in Bergen. The student TV visited us to create a clip about Capoeira. Here you can see some of our normal trainings.

Enjoy it!

Jan 17

Hoy Michelle y yo estamos celebrando 4 años de una maravillosa relación.

Hemos decidido celebrar nuestro día partiendonos los huesos contra el hielo. Vinimos a esquiar a eikedalen un centro de esquí a 45 minutos en bus de Bergen. Llegar es muy fácil, mas aun si compras un tiquete de bus que incluye la tarjeta de los asensores para las pistas de esquí. Digamos que es muy agradable intentar de nuevo pararse en el ‘snowboard’ pero al mismo tiempo doloroso. Después de un año sin practicar, toma un par de horas (bueno todo el día la verdad) recordar como pararse en este aparato. Teníamos la ilusión de que la ruta mas alta estuviera abierta, desde que el invierno ha estado muy frío, supusimos que habría mucha nieve, pero que sorpresa la que nos llevamos al ver que no hay suficiente nieve. En el centro de esquí dicen que el motivo que hay nieve poco pesada y mucho viento, pero desde mi punto de vista al mirar las montañas, provocan mas escalar en roca que hacer snowboarding.

Bueno en fin, el día ha sido muy divertido y entre caídas y dolores en los pies por las botas de esquí, estamos felices de poder celebrar nuestro día juntos y no en la distancia a través de ‘skype’

Jul 26

Shashin Error:

"title" is not allowed for ordering with type=albumphotos