Angel \”Java\” Lopez on Blog

March 3, 2015

New Month’s Resolutions: March 2015

Filed under: C Sharp, JavaScript, NodeJs, Open Source Projects — ajlopez @ 4:30 pm

Time to review the past month’s resolutions, and to write the new ones

- Complete first version ClojJS [partial] see repo
- Complete first version BScript [partial] see repo
- Improve ClojSharp [complete] see repo
- Improve ScalaSharp [complete] see repo
- Complete first version Chip8 emulator [partial] see repo
- Write more posts about JavaScript and Artificial Intelligence [pending]

Although ClojJS has many pieces in place (like resolving requires using a clojjs.json file), there are many forms to be defined in clojure.cljs. I should release a first version with the current status, and then add support for detecting node_modules with clojjs.json definitions, build for browser version, etc.

Additionally, I worked on:

- Start SimpleDSL node.js/javascript module [complete] see repo
- Improve AjScript [complete] see repo
- Improve AcquarellaJS [complete] see repo
- Start DValues [complete] see repo

Then, this new month’s resolutions are:

- Improve ClojSharp
- Improve ScalaSharp
- Write posts about JavaScript and Artificial Intelligence
- First published version of ClojJS
- Add npm modules support to ClojJS
- First published version of BScript
- Improve Chip8 emulator
- Give a full-day course on NodeJS

Stay tuned!

Angel “Java” Lopez

February 27, 2015

ReactJS: Links And Resources (2)

Filed under: JavaScript, Links, React, Web Development — ajlopez @ 7:57 pm

Previous Post



First Impressions using React Native

Facebook just taught us all how to build websites — Medium

React.js Conf 2015 Keynote – Introducing React Native – YouTube

The Languages And Frameworks That You Should Learn In 2015 | wwwDesigned

Why I Ditched Angular for React by Kumar Sanket | wwwDesigned

Life with Dynamic Typing

TouchstoneJS • ReactJS powered UI framework for developing beautiful hybrid mobile apps


Scaling the Single Page Application with React.js and Flux | AddThis Blog

Reactive MVC and the Virtual DOM — Futurice

Removing User Interface Complexity, or Why React is Awesome,-or-Why-React-is-Awesome

David and Suzi | ngReact – Significant Changes, New Co-Maintainer, Next Steps

Om interop with 3rd party JS libs · Robert Stuttaford, Clojure Enthusiast



My Links

Stay tuned!

Angel “Java” Lopez

February 22, 2015

ReactJS: Links and Resources (1)

Filed under: JavaScript, Links, React, Web Development — ajlopez @ 9:46 am

Next Post

Moving Atom To React

Om sweet Om: (high-)functional frontend engineering with ClojureScript and React

Thinking in React | React

javascript – Why is React’s concept of Virtual DOM said to be more performant than dirty model checking? – Stack Overflow

The Functional Final Frontier


A JavaScript library for building user interfaces | React

Polyfills as a service | FT Labs

React Components

Integrating D3.js visualizations in a React app – Nicolas Hery

Why We May Ditch AngularJS For React | Wiredcraft


React | Flux Application Architecture

Reagent: Minimalistic React for ClojureScript

How to Build Stuff with Om | Ronin Hacker


Reagent 0.4.0: All arguments allowed


The Future of JavaScript MVC Frameworks

React | A JavaScript library for building user interfaces

Facebook’s React vs AngularJS: A Closer Look – Posts – Quora

My Links

Stay tuned!

Angel “Java” Lopez

February 21, 2015

Artificial Intelligence: Links And Resources (10)

Filed under: Artificial Intelligence, Links — ajlopez @ 5:40 pm

Previous Post
Next Post

Stephen Hawking: ‘Transcendence looks at the implications of artificial intelligence – but are we taking AI seriously enough?’ – Science – News – The Independent–but-are-we-taking-ai-seriously-enough-9313474.html

Stephen Hawking: Artificial Intelligence ‘Potentially the Worst Thing to Happen to Humanity’ – Yahoo News UK

NEW SAVANNA: Sheldon Klein on Computing Lévi-Strauss, a blast from the past

IBM unveils a computer that can argue | The Exchange – Yahoo Finance

Does HWO continue (in some way) after finals for 2014? : HWO

Hello World Open

The Face Recognition Algorithm That Finally Outperforms Humans — The Physics arXiv Blog — Medium

AI researcher explains how to stop Skynet from happening | Science! |

AI Developers to power new generation of context driven artificial intelligence | SiliconANGLE

The Man Behind the Google Brain: Andrew Ng and the Quest for the New AI | Enterprise | WIRED – Exploring Machine Learning with Scikit-learn

Gaussian Processes for Machine Learning: Contents

ccv 0.6 open sources near state-of-the-art image classifier under Creative Commons

An AI that mimics our neocortex is taking on the neural networks – and this is how it’ll do it • The Register

A review of Her by Ray Kurzweil | KurzweilAI

An Introduction to Deep Learning (in Java): From Perceptrons to Deep Networks | Toptal

Why Minds Are Not Like Computers – The New Atlantis

My Links

Stay tuned!

Angel “Java” Lopez

February 20, 2015

Liqueed Project (2)

Filed under: Express, JavaScript, Liqueed, NodeJs — ajlopez @ 8:07 pm

Previous Post
Next Post

Liqueed is a Node.js project, repository at

And it has a package.json file, the current content:

  "name": "liqueed",
  "version": "0.0.2alpha",
  "private": true,
  "scripts": {
    "start": "node ./bin/www",
    "test": "simpleunit ./test ./testserver"
  "dependencies": {
    "express": "~4.2.0",
    "static-favicon": "~1.0.0",
    "morgan": "~1.0.0",
    "cookie-parser": "~1.0.1",
    "body-parser": "~1.0.0",
    "debug": "~0.7.4",
    "ejs": "~0.8.5",
    "express-ejs-layouts": "^1.1.0",
    "ostore": "0.0.4",
    "simplelists": "0.0.4",
    "simpleasync": "0.0.5",
    "mongodb": "~1.4.19",
    "bcrypt-nodejs": "0.0.3",
    "express-session": "~1.9.3"
  "devDependencies": {
    "simpleunit": "0.0.5",
    "simplejquery": "0.0.1",
    "zombie": "2.5.1"

It is a private application, so you cannot publish it to the public npm repository.

It is a typical Express application, the initial code was generated with the express-generator. The file bin\www contains the source code to launch the application. It uses express modules, like morgan, cookie-parser, body-parser, express-session, but there are others that were included to be used from the logic of application server:

– ostore: Simple JavaScript objects repository, in-memory, used in many test and in the initial version, implementing persistence in-memory, without the need for a database.

– mongodb: the current app uses MongoDB as NoSQL persistence

– simplelists: a simple utility library with list/array functions

– simpleasync: a library to chain asynchronous callsbacks.

– bcript-nodejs: encryption module written in JavaScript

In the tests (written using Test-Driven Design workflow), it uses:

– simpleunit: test library, based on internal use of assert, exporting the test functions.

There are new tests to exercise the Single Page Application of public\index.html, using:

– zombie: it visits a page as a browser

Topics for the next posts: application structure, written tests, exposed API, MVC admin pages, persistence, SPA client, etc.

Stay tuned!

Angel “Java” Lopez

February 13, 2015

Artificial Intelligence: Links And Resources (9)

Filed under: Artificial Intelligence, Links — ajlopez @ 7:40 pm

Previous Post
Next Post

NessBots – Fighting Robots Code Game

IBM wants to see your Watson mobile apps | Cloud computing – InfoWorld

Why am and eurisko appear to work

Douglas Lenat

artificial intelligence – How To Design Eurisko – Stack Overflow

Eurisko, The Computer With A Mind Of Its Own | Alicia Patterson Foundation

EURISKO – Lesswrongwiki


Let’s reimplement EURISKO! – Less Wrong

Eurisko – Wikipedia, the free encyclopedia

MIT builds intelligent programs for robots that could help with the smart home — Tech News and Analysis

How Google’s Robots Can Learn Like Humans | Fast Company | Business Innovation

Why Google Is Investing In Deep Learning ⚙ Co.Labs ⚙ code community

Top 9 Commercial Uses for IBM Watson: Beyond ‘Jeopardy!’ – ABC News

YOW! 2013 | Computing Like the Brain: The Path to Machine Intelligence

PC AI – Forth Programming Language

Disguise detection using open source

Jon’s Place: Roz & RobotsConf

aforge – AForge.NET Framework – Google Project Hosting


Machine Learning

All Models of Learning have Flaws « Machine Learning (Theory)

SimpleAI (Artificial Intelligence Python lib)

The Man Who Would Teach Machines to Think – James Somers – The Atlantic

Yahoo Acquires Startup LookFlow To Work On Flickr And ‘Deep Learning’ | TechCrunch

Google’s Quantum AI Lab adds quantum physics to Minecraft | The Verge

IBM Watson Cancer – Business Insider

My Links

Stay tuned!

Angel “Java” Lopez

February 11, 2015

Machine Learning: Links, News And Resources (8)

Filed under: Artificial Intelligence, Links, Machine Learning — ajlopez @ 5:02 pm

Previous Post








Encog Machine Learning Framework | Heaton Research


Machine learning

5 ways to add machine learning to Java, JavaScript, and more | InfoWorld–javascript–and-more.html

Tryolabs | Python Django development with Artificial Intelligence components |




My Links

Stay tuned!

Angel “Java” Lopez

February 9, 2015

Programando for Internet of Things

Usually, I practice programming every day, applying TDD (Test-Driven Development) workflow. There are non-public projects, but the majority of that practice is public, in my GitHub account. In my opinion, Node.js is a very interesting technology: ubiquos, powerful and simple. I can implement many ideas using Node.js/JavaScript, in a easier way than using other technologies (Java, .NET, Scala, Ruby, Python, Clojure, Smalltalk). The only price to pay: understand and use the JavaScript callbacks.

There are many ideas and implementation, in current applications, public projects, startups. An interesting topic is Internet of Things (OK, a “buzzword”). Many startups are fighting in that battle field. Maybe, many of them will be adquired by Google, Apple, Microsoft. These are interesting time. But this is a time for implement ideas, in open source projects. Then, an startup can leverage the open source world. I think that the important part of an startup is the execution, not the idea or the implementation..

Meanwhile, I want to implement some ideas in my public projects. This post is written to describe the landscape of ideas to implement:

- Collect informaiton from devices connected to the Internet. To have a data repository, the data is send by SDKs, one SDK per device type. Then, use the repository and the collected data in other projects.

- Apply Artificial Intelligence (OK, it is a wide term, but the better we have), to all the collected data, discovering patterns, using machine learning, deep learning. I wrote some JavaScript projects to explore such paths.

- Take decisions, execute actions, using expert systems or other systems. My first implementations, again, are in JavaScript/NodeJs. Having somethink like IFTTT but open source, consuming Internet of Things data.

- Run all these implementations as distributed applicacionts, not only horizontal scalability or cloud computing. Node.js, again, is an interesting vehicle to implement first experiments and applications. Only if needed, then switch to compiled languages and technologies.

I apologize my auto-reference to my projects, but it is the way to explain why I’m writing them.

Stay tuned!

Angel “Java” Lopez

February 6, 2015

Sending messages to Slack using JavaScript/Node.js

Filed under: JavaScript, NodeJs, Slack — ajlopez @ 12:42 pm

A year ago, Slack entered in my radar:

I read “Slack is a platform for team communication; everything in one place, instantly searcheable, available wherever you go”.

In general, I am somewhat skeptical to online tools like this, I prefer a simpler combination. For the above statement, I simply use gmail and mailing lists per project or team. The interesting story behind Slack founder:

My links about Slack at:


Past wednesday, at afternoon, I started to explore how to send programmatically a message to Slack, using their exposed API, using Node.js (I think Node is the simplest technology to use in this kind of experiments). More general info about the API at:

My current experiment code:

I searched in Google for some Node.js module to access Slack, my first result:

Initially I installed it using npm, in a working directory. My first try:

var domain = process.env.SLACK_DOMAIN;
var token = process.env.SLACK_TOKEN;

var Slack = require('node-slack');
var slack = new Slack(domain, token);

var channel = process.argv[2];
var message = process.argv[3];

console.log('Sending message', message, 'to channel', channel);

    text: message,
    channel: '#' + channel,
    username: username

You must set environment variables: SLACK_DOMAIN and SLACK_TOKEN. When you enter to a Slack group, the group has an associated domain. For example, I’m a member of the group for Smalltalk Squek Rosario. Other group is, Node.js Argentina. The provided token correspond to a user AND an applicaction, it can be obtained from:

The above program run, without errors, being invoked via

node run.js general “Hello, world”

(on Windows). The first argument after run.js is the target channel, without the initial #, and the second argument is the message text. All OK, but the message didn’t arrive to the channel. After a bit of research, I found the Pull Request:

that it was not merged with the original source, yet. Some months ago, the Slack API changed. The suggested pull requests uses another access point, a web hook URL provided from:

I applied the suggestion I found in one comment, and I put directly the link to the new code, in my package.json:

  "name": "slack-demo",
  "private": true,
  "version": "0.0.1",
  "dependencies": {
    "node-slack": "git://"

An now, my program use the web hook URL, provided via a variable environment:

var hookUrl = process.env.SLACK_WEBHOOK;
var username = process.env.SLACK_USER;

var Slack = require('node-slack');
//var slack = new Slack(domain, token);
var slack = new Slack(hookUrl);

var channel = process.argv[2];
var message = process.argv[3];

console.log('Sending message', message, 'to channel', channel);

    text: message,
    channel: '#' + channel,
    username: username

Now, it works! Topics to research: any way to use domain/token again? other modules?.

Stay tuned!

Angel “Java” Lopez

February 3, 2015

New Month’s Resolutions: February 2015

Filed under: C Sharp, JavaScript, NodeJs, Open Source Projects — ajlopez @ 5:14 pm

Again, time to review the past month’s resolutions, and to write down the new ones.

- Continue add distributed features to AjErl, Erlang-like interpreter in C# [pending]
- Improve ClojSharp [complete] repo
- Improve ScalaSharp [complete] repo
- Improve Chip8 emulator [complete] repo
- Code generation with AjGenesis for Node [pending]
- Improve Basic Script Language for C# [complete] repo
- Write JavaScript and Artificial Intelligence [complete] post 1 post 2 post 3

Additionally, I was working on:

- Start ClojJS, ClojureScript to JavaScript compiler and runtime [complete] repo
- Start DValues, data values store for internet of things [complete] repo
- Work on Liqueed project [complete] repo
- Improve AjScript, JavaScript-like interpreter in C# [complete] repo

This new month’s resolutions:

- Complete first version ClojJS
- Complete first version BScript
- Improve ClojSharp
- Improve ScalaSharp
- Complete first version Chip8 emulator
- Write more posts about JavaScript and Artificial Intelligence

Stay tuned!

Angel “Java” Lopez

« Newer PostsOlder Posts »

The Shocking Blue Green Theme. Create a free website or blog at


Get every new post delivered to your Inbox.

Join 69 other followers