Monday, May 18, 2026

Installing VS Code 1.106 on Big Sur

Apparently 1.106 is the last version to work on Big Sur (macOS 11). If auto-update updates you to an incompatible version, you will need to downgrade to continue to use it.

Fortunately Microsoft keeps all old VS Code releases available for direct download.

The URL pattern is: https://update.code.visualstudio.com/{version}/darwin/stable

 


Monday, January 22, 2024

LaCie 2big Firmware Update

How to update the Firmware on an old LaCie network drive.

Hardware: LaCie 2 big Network v.2 2 TB Gigabit Ethernet Professional 2-Bay RAID Hard Drive 301507U 

Purchase date: February 2011

Current firmware version: 2.2.9.3 (applied in 2012)

Latest firmware version: 2.2.13.3 (released in 2015)

Current date: January 2024

Process:

Firmware updates 2.2.10.1, .2.12.2, and 2.2.13.3 are currently (still) available from LaCie here:

https://www.lacie.com/support/network-storage/2big-network-2/

The first two updates need to be installed using the LaCie Network Assistant tool which I found on a download site. The tool no longer works on macOS since support for 32 bit apps was dropped. I installed it on a VirtualBox running Windows 7. Set the networking to use a "Bridged Adapter" to get network shares working. Use the tool to apply the updates:

The 2.2.13.2 update can be installed by coping the file to a specific location on the drive. See the PDF file in the zip for details.


Wednesday, October 4, 2017

Truncate docker logs

Set $id to the container id prefix and then run:

file=`sudo docker inspect --format='{{.LogPath}}' ${id}`
sudo truncate -s 0 $file

Sunday, January 15, 2017

Angular 2 and jsPlumb

Here's an example showing how to start using jsPlumb with Angular 2.

Create a new project using the Angular CLI and add the jsPlumb package:

    ng new PROJECT_NAME
    cd PROJECT_NAME
    npm install jsplumb --save

Add the jsPlumb script to angular-cli.json:

    "scripts": [
      "../node_modules/jsplumb/dist/js/jsplumb.min.js"
    ],

Modify the app component:

    import { Component, ViewChild } from '@angular/core';

    declare var jsPlumb:any;

    @Component({
      selector: 'app-root',
      template: '<div #test>Test</div>'
    })
    export class AppComponent {
      @ViewChild('test') testEl;
      ngAfterViewInit() {
        let me = this;
        jsPlumb.ready(function() {
          jsPlumb.addEndpoint(me.testEl.nativeElement);      
        }); 
      }
 
Run the server:

    ng serve 
 

Sunday, May 15, 2016

Visual Studio Code

VS Code is a Free, Lightweight Tool for Editing and Debugging Web Apps.
Visual Studio Code 1.0.0 was released in March 2016 and it's the best thing I've seen from Microsoft in a while. Definitely worth checking out: https://code.visualstudio.com/

Friday, April 22, 2016

Angular 2 Text Field Autocomplete



 Similar to Facebook mentions, adds auto-complete to text boxes and text fields:

Angular 2 Mentions on Github

Angular 2 Radio Buttons

Until they fix checkboxes to use ngModel binding (here), this works pretty well:

<input type="radio" [checked]="selectedType=='first'" value="first" (click)="selectedType='first'"> First
<input type="radio" [checked]="selectedType=='second'" value="second" (click)="selectedType='second'"> second
{{selectedType}}