Tag: Js

Posts

02 June 2018 / / Uncategorized / RaspberryPi

Context

Recently, I started working on some Raspberry Pi projects, but the most frustrating part of that experience was to access the raspberry pi during development.

I had the following options:

  • Use the Television at my place as a monitor over HDMI (not great pixel quality) and use wired keyboard and mouse to control. This was troublesome since I could only develop when I’m at my place and the Television is free.
  • Be on the same network and ssh into the PI. This worked for a while since I could also access the ports of RPi, so I could host my applications on a certain port and access them over the RPi’s IP address.

Problem Statement

The second option is obviously the way to go, but this needs some refining.

After a long delay I finally mustered up the courage to build the query ranking module. Some scary stuff. Here are the problems I’ve been facing whenever I start building this.

  • The ranking requires the table’s Foreign Key structure. Once the query generation is done, the recursive calls along with Javascript’s callbacks is a nightmare.
  • Callbacks are being received even after sending the output. Some relations between the tables are discovered even after ranking. This is troubling.
  • I tried to deal with promises but combined with the already scary ranking algorithm and multi-module structure this will just take more time than I have.

So I am switching to a new approach of this as suggested by a colleague.

For now, I have chosen packet for the trial server even though the cost is high. The specs are good (even for entry level containers) and I got some credits to work with initially.

Packet Server Config

So I setup the ssh keys for login and got to work.

The github repository for parsey mcparseface and syntaxnet is available here and it also lists out the steps required to setup syntaxnet and get it working. They also provide a demo shell script file which accepts the input at stdin and passes it to a python script named parser_eval. The output which is an ascii tree of the pos tagged statement is posted to stdout.

06 June 2016 / / DJ Collab

A meteor based web application which allows users to collaborate to modify the queue for a designated player device (playing audio files stored on server using HTML5).

So, I heard somewhere that meteor was a great framework to build full-fledged JS applications with server and client code (I know it’s called full-stack). Unsurprisingly, I wanted to play with it and so, I came up with the idea for a centralized music playing system which can be remotely controlled. Initially I thought this would just be a side project to test out meteor and its capabilities, but the ability of meteor to support fast development of code logic forced me to think of this on a big scale.