Before you’re hired: as Javascript developer

Table of Contents

Binary tree

A binary tree is a treedata structure in which each node has at most two children, which are referred to as the left child and the right child. A recursive definition using just set theory notions is that a (non-empty) binary tree is a tuple (LSR), where L and R are binary trees or the empty set and S is a singleton set. Some authors allow the binary tree to be the empty set as well.

Currying

currying is the technique of translating the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single argument. – wikipedia

High-order function

a higher-order function is a function that does at least one of the following: takes one or more functions as arguments (i.e. procedural parameters), returns a function as its result. All other functions are first-order functions. In mathematics, higher-order functions are also termed operators or functionals.

Event loop

The event loop got its name because of how it’s usually implemented, which usually resembles:

while (queue.waitForMessage()) {
queue.processNextMessage();
}

queue.waitForMessage() waits synchronously for a message to arrive if there is none currently.

A very interesting property of the event loop model is that JavaScript, unlike a lot of other languages, never blocks. Handling I/O is typically performed via events and callbacks, so when the application is waiting for an IndexedDB query to return or an XHR request to return, it can still process other things like user input.

Prototype

When a function is created in JavaScript, the JavaScript engine adds a prototype property to the function. This prototype property is an object (called a prototype object) that has a constructor property by default. constructor property points back to the function on which prototype object is a property. We can access the function’s prototype property using the syntax functionName.prototype.

Encapsulation

Encapsulation refers to enclosing all the functionalities of an object within that object so that the object’s internal workings (its methods and properties) are hidden from the rest of the application. This allows us to abstract or localizes specific set of functionalities on objects.

Can you draw an algorithm?

WiFi Positioning System – Using Python and Google Geolocation API

I consider there is these following steps involved for such a program.

I will keep this as a documentation as well as a progress report to keep track of the project.

  1. Reading all the required information
    1. Reading SSID in MAC
      • Using Airport Shell command
      • Here is how it should look: [viraldownloader id=180]
    2. Reading SSID in Linux (Ubuntu), Windows
      • identify shell command for linux/Ubuntu
      • identify shell command for windows
  2. Parsing them in JSON format
    1. Parsing information into required information into prescribed format
  3. CURL and Get the Location information in JSON
  4. Parse it and display on google
  5. Building a GUI

Here is the gitHub repository for the project that I am working on.

https://github.com/akrv/pyWPSLocalisation

Feel free to contribute/contact it is interesting for you aswin[at]southpaw.in

Zigbee© implementation using Zstack and SmartRF 05 Evaluation Kit

Apparatus: CC2540 Development Kit

  1. 2 SmartRF05 Evaluation Boards
  2. 2 CC2530 Boards
  3. 1 CC2531 USB stick
  4. Raspberry Pi is used instead of computer for deploying this project.

Required Software:

  1. SmartRF studio
  2. SmartRF Flash Programmer
  3. Ztool and its sample programs
  4. IAR Embedded workbench – Compiler for Zstack

Recommended Hardware: (which I use)

  1. FDTI cable 3v3 (2 would be nice)
  2. USB Hub
  3. CC Debugger

Setting up your first psychoPy application in Eclipse

http://www.psychopy.org

I believe you have already ready the previous post about setting up the environment. if not do it here! <PSYCHOPY APP DEVELOPMENT IN PYTHON USING ECLIPSE AND PYDEV>

So, now you are for sure ready with the environment and already created your first application on python. But psychoPy? yes, its not a big deal, you are 80% complete from creating an application in psychoPy already.

These following steps hit the rest 20%.

Set up the interpreter to be psychoPy. This enables you to use psychoPY API. Continue reading “Setting up your first psychoPy application in Eclipse”

PsychoPy app development in Python using Eclipse and pyDev

Install and setup psychoPy and using Eclipse and python for development of applications. I developed an application that used a eye tracker. It was a great idea to use python to interface the eye tracker with the routine which was created using psychoPy.

Creating a new pydev module to start coding
Creating a new pydev module to start coding

In this post, it is only about installing psychoPy, Python, Eclipse, pyDev for Eclipse and starting a new project. Creating your first psychoPy application with its specification will be in the following post.

Continue reading “PsychoPy app development in Python using Eclipse and pyDev”