Elvenware Logo


Prog 272 Week 11

Our Main Goals are to learn more about:

Problems with Automatic semicolon insertion

This code is dangerous because of possible semi-colon insertion:

if (request.query.createFolderToWalkOnS3 === true
        || request.query.createFolderToWalkOnS3 === "true")
    request.query.createFolderToWalkOnS3 = true;

The lesson here is not to start a line with an OR symbol.

Environment variables in Eclipse

If you run Node in Eclipse, to access JSOBJECTS, you made need to choose Run | Run Configurations | Environment | Select

MongoDb and Multiple Collections

The primary example is on JsObjects:

Enid Clipse

This is very old and outdated material.

Here is what I have installed on my system:

Charlie's Installed Tools

Transient Shares on Google Drive

When using VirtualBox you can share a folder between you host OS and the guest OS that is running in the VM. Here we discuss how to share a drive between a Windows host and Linux Guest. In particular, we will share the GoogleDrive folder found on Linux.

Start by setting things in VirtualBox. Here we define the folders on the host machine that we want to share:

Create the share

In the shared folders dialog click the plus symbol near the upper right hand corner. That will open up the following dialog:

Set up the share

Use the Share dialog to define the path to the folder that you want to share and give it a name. I suggest that you do not share folders that have spaces in their path, and I suggest that you give the share a name that does not have spaces in it.

We are creating a transient share that we have to explicitly mount. It will be read-write. A transient share disappears after you close your guest OS.

After you have things set up in VirtualBox on the host machine you need to also make some changes on the guest OS. Go to the guest machine and create the folder where the shared folder will be mounted:

sudo mkdir /media/GoogleDrive
sudo chown $USER:$USER /media/GoogleDrive

Now mount the drive:

sudo mount -t vboxsf -o uid=1000,gid=1000 GoogleDrive /media/GoogleDrive

Is maintain a script with the exact settings shown above on GitHub in JsObjects.

Grunt and Deploy

Shell Scripts

ELF own and run


We have an example in JSObjects:


Async Unit Tests and Stop Start