AngularJS Tutorial – notes (1)

Random notes from following through the AngularJS tutorial here.

My first time (several months back) working through part of the tutorial I struggled getting node.js up and running on Windows. Useful thread and comments on this post here.

Installing on Mac OS X, no problems.

Useful Tutorial Steps – Tools Install and Setup

(not intended to be a comprehensive set of steps, just mainly for myself to backtrack and see what I’ve done so far in the tutorial)

Install git (already have)

Clone the tutorial source project:

git clone --depth=14 https://github.com/angular/angular-phonecat.git

Download and install node.js from here.

npm install – install the development tools.Note: the tutorial is not specific where you run this, but you must run this inside the clones angular-phonecat dir.

Useful scripts setup with the tutorial project:

  • npm start : start a local development web-server
  • npm test : start the Karma unit test runner
  • npm run update-webdriver : install the drivers needed by Protractor (run this once, and first before running Protractor)
  • npm run protractor : run the Protractor end to end (E2E) tests

Interesting note: no issue with the default config on Mac OS X and running the dev server on port 8000. This was an issue on my Windows machine and needed to change the default port to something other than 8000.

Errors Starting npm run protractor

All the other scripts ran first time for me, but protractor would not start, giving an error about ELIFECYCLE. Seems similar to this issue. I ran these to steps:

npm update
npm run update-webdriver

but then the error changed to something more verbose, about couldn’t find an .exe file:

util.puts: Use console.log instead
Using ChromeDriver directly...
[launcher] Error: Could not find chromedriver at /Users/kev/angularjs/angular-phonecat/node_modules/protractor/selenium/chromedriver.exe

A quick Google found this issue, and the steps described by jpaljasma fixed the issue:

  • edited package.json in the root of the tutorial project, changed devDependencies.protractor to be “*”, removed node_modules, ran npm install and npm run update-webdriver

Now the e2e tests supplied with the project run as expected.

Java Posse Podcast – now officially ended!

If you spotted this post on the Java Posse’s Google Group, then you might have already seen this link to a photo on Twitter from Devoxx 2014. If you were at Devoxx 2014 and attended the live Java Posse session, then you already know this too. Of course, if you regularly listen to the podcasts then you would have noticed that the regular podcast sessions dropped off noticeably last year.

The Java Posse’s final podcast session (#461), recorded from Devoxx 2014 is now live on their feed.

I’ve listened to the majority of their podcasts (and the early Javacast episodes) since the first sessions in 2005, it’s definitely the Java related technology podcast that I’ve listened to and followed the most, and so it’s sad that the guys have finally decided to call it quits and not continue the series any more.

Thanks to the guys for producing the session all these years, you’ll be missed!

So where are they now?

What am I listening too now? I’ve listened to a couple of episodes of the Java Pub House, which is ok, and on my todo list is Java Enterprise Newscast. But I don’t think you can replace The Java Posse. Thanks again guys, and good luck in your other endeavors.

Upgrading OS/2 Warp 4 to the latest fixpack14 (and other useful stuff)

Windows 10 is on the way. So I spent the weekend installing and configuring OS/2. 🙂

Since OS/2 was recently released into the public domain, you can pick up copies of the install disk images from archive.org. As you work through the install, at some point you realize you need to convert or find out how to use the floppy disk image files. When installing to a VirtualBox VM, I found I couldn’t get the disk images to work from archive.org, but the ones in the format from WinWorld here work flawlessly.

WinWorld has iso images for 4.0 and 4.5x but I could only get 4.0 to install to a VM disk. That’s not an issue as you can download and install FixPack15 with takes you to the latest (and last) version of OS/2.

Most of the updates I found I needed were covered in the extensive instructions on this site here. I found I didn’t need everything though (I skipped the USB mouse drivers as it seems running in VirtualBox takes care of making sure the guest OS sees the touchpad and keyboard on my MacBook).

Along the way there are a few utils that you need to gather to help with the install of the other steps, in particular:

  • diunpack (used to unpack the fixt144.dsk disk image in MPTS8620)
  • dskxtrct (used to extract all other .dsk images for the MPTS fixpacks)
  • unzip utils, most would work but I used this one, unzip 5.51
  • fastkick141 – I used this to install MPTS8620 – more below

So here was the list I narrowed down to:

  • Fixpack 15 – can be found in other places, but this zip on Hobbes contains everything ready to go. Unzip and run install.cmd
  • gengradd drivers for supporting higher display resolutions. I used gradd083.exe from here, Unzip it by running it and passing options ‘-dir -over’ to preserve the subdirs. Then start the install with: ‘setup gen’
  • MPTS8610 – fixpack for network driver stack. Prereq for 8620. Use dskxtrct to extract all the .dsk images to a temp dir and then run service.
  • MPTS8620 – this provides TCPIP32.dll that is needed for most of the more common browser releases (Firefox, Seamonkey etc) and other network tools. This one didn’t have a script to self-install. Use dskxtrct to extract all the .dsk images to a temp dir, apart from fixt141.dsk which I found would only uncompress using diunpack. To install, fastkick141 into the same dir as all the uncompressed disks, and then run (I think) fix.cmd.
  • A number of later apps, Firefox and Seamonkey, require a version of LIBC (you’ll get an error saying LIBC065 missing if you try to run without it).You can pick up a zip with just the DLLs from here, click the ‘just kLIBC’ link to get the zip. Copy the *.DLLs to c:\os2\dll
  • There are two additional dependencies for the latest browsers linked from the top of the page here – fntcfg and pthread. Download and copy the DLLs to c:\os2\dll

At this point I think you’ll be setup to run most of the more recent apps, including latest versions of Firefox and Seamonkey built for OS/2.  Enjoy!

Mounting iso disk images on an OS/2 guest running on Virtual Box

After installing OS/2 Warp 4 I never did get round to installing the latest Fixpack15 or the updated gradd display driver. I’ve just been playing around with it this evening though and made some progress.

First, the version I installed had a default UK keyboard layout which got in the way of trying to type any path locations as I couldn’t find where the backslash was 🙂 I fixed this by editing config.sys and changing this line:

DEVINFO=KBD,UK166,C:\OS2\KEYBOARD.DCP

to this:

DEVINFO=KBD,US,C:\OS2\KEYBOARD.DCP

I then worked out a way of creating iso disk images of the files I wanted to transfer across, mount them as as CD image in VirtualBox, and then access the files from the OS/2 guest.

On my Mac, I used Disk Utility to create a new disk image with the following settings:

diskimage for os2

After creating the image it is automatically mounted in Finder. Once done, unmount it, and then from Terminal, convert it to a .iso with:

hdiutil makehybrid -iso -joliet -o [filename].iso [filename].cdr

I got this from this post. I also found this works if you create the first disk image as a Mac DMG image too. I suspect you still need to create it with the correct CD size and FAT format though.

From this point I started working through the steps here, and got FP5 installed ok using the SimplyFix41 utility, and next I’m going to jump up to FP15 and also install the gradd display drivers. Also will be trying out the last version of Netscape for OS/2 and see if that works ok. Fun times!