Saturday, 27 August 2016

Dart SDK and Dartium 1.19.0 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

You can install unmoderated versions by specifiying the install version during installation.
Chocolatey has also been updated with versions 1.19.0
Command line installation:
choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.19.0
To verify you have the right version on your path.
dart --version
Dart VM version: 1.19.0 (Fri Aug 26 02:40:23 2016) on "windows_x64"

Command line installation:
choco uninstall dartium

choco install -y dartium  -version 1.19.0

Saturday, 20 August 2016

Building A Notepad with Dart Angular 2

Angular 2 is looking very new and shiny, isn't it? There's not a tonne of example code out there so I thought it was about time to pop some on the DID blog. So let's write a text notepad for the web (and use local storage for saving).

This is an Angular 2 application with a component for the Editor. The Editor has a sub-component that provides a couple of stats. There's not a huge amount to write up on the code. It's interesting to see how Angular 2 differs from the previous version - I found some of the syntax far more readable. For more detal, see the Angular 2 Quickstart - though not complete, it has some great demos.


import 'package:angular2/core.dart';

import 'status_component.dart';
import 'textdocument.dart';

@Component(
    selector: 'plain-editor',
    templateUrl: 'editor_component.html',
    directives: const [StatusComponent])
class EditorComponent {
  @Input()
  TextDocument note;

  void changeHandler() {
    note.save();
  }
}

import 'package:angular2/core.dart';

@Component(
    selector: 'text-status',
    templateUrl: 'status_component.html')
class StatusComponent {
  @Input('text')
  String text;

  String get length => text.length.toString();
  String get wordCount => text.split(' ').length.toString();
}

The editor loads in less than 1 second - not bad! And this is a debug build.

Code is on GitHub and you can try it out here. Feedback and suggestions welcome!

Wednesday, 3 August 2016

Dart SDK and Dartium 1.18.1 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

Good news - Chocolatey has cleared the moderation backlog! Dart versions are far more up to date. You can install unmoderated versions by specifiying the install version during installation.
Chocolatey has also been updated with versions 1.18.1
Command line installation:
choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.18.1
To verify you have the right version on your path.
dart --version
Dart VM version: 1.18.1 (Tue Aug 02 09:21:29 2016) on "windows_x64"

Command line installation:
choco uninstall dartium

choco install -y dartium  -version 1.18.1

Thursday, 28 July 2016

Dart SDK and Dartium 1.18.0 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

Good news - Chocolatey has cleared the moderation backlog! Dart versions are far more up to date. You can install unmoderated versions by specifiying the install version during installation.
Chocolatey has also been updated with versions 1.18.0
Command line installation:
choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.18.0
To verify you have the right version on your path.
dart --version
Dart VM version: 1.18.0 (Wed Jul 27 01:55:06 2016) on "windows_x64"

Command line installation:
choco uninstall dartium

choco install -y dartium  -version 1.18.0

Saturday, 11 June 2016

Dart SDK and Dartium 1.17.1 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

Good news - Chocolatey has cleared the moderation backlog! Dart versions are far more up to date. You can install unmoderated versions by specifiying the install version during installation.

Chocolatey has also been updated with versions 1.17.1

Command line installation:

choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.17.1
To verify you have the right version on your path.
dart --version
Dart VM version: 1.17.1 (Fri Jun 10 04:58:25 2016) on "windows_x64"

Command line installation:

choco uninstall dartium

choco install -y dartium  -version 1.17.1

Binary Clock Revisited Yet Again

A recent acquisition of a smartwatch,and browsing all the available watch faces, reminded me of the Binary Clock that has appeared on this blog more than once before. I had a look at the original code and boy was it a bit messy! I pulled all the web component/polymer cruft out and refactored it to something more presentable.


Click/Tap the clock to change between 4 display modes!

Code is available on GitHub as usual. Enjoy! Warning : can be hynotic :-)

Wednesday, 8 June 2016

Dart SDK and Dartium 1.17.0 Chocolatey Packages for Windows

Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface.

Good news - Chocolatey has cleared the moderation backlog! Dart versions are far more up to date. You can install unmoderated versions by specifiying the install version during installation.

Chocolatey has also been updated with versions 1.17.0

Command line installation:

choco uninstall dart-sdk

choco install -y dart-sdk  -version 1.17.0
To verify you have the right version on your path.
dart --version
Dart VM version: 1.17.0 (Mon Jun 06 14:21:42 2016) on "windows_x64"

Command line installation:

choco uninstall dartium

choco install -y dartium  -version 1.17.0