profile
viewpoint
John M. Wargo johnwargo Charlotte, NC www.johnwargo.com Professional software developer, writer, presenter, husband, father, geek. Interested in all types of technology, especially when they let me write code.

johnwargo/apache-cordova-api-cookbook-code 35

Source code for Apache Cordova API Cookbook

johnwargo/cordova-programming-code 26

Source code from Apache Cordova 3 Programming

johnwargo/ac4p 16

Source code from Apache Cordova 4 Programming

johnwargo/flutter-android-connectivity-permissions 3

An app that demonstrates how to prompt the user for location permissions in Flutter on Android.

johnwargo/Arduino-Twinkle-Lights 2

An Arduino application for fading two strands of LED Lights up and down.

johnwargo/Arduino-Twinkle-Lights-Array 1

A version of the Arduino Twinkle Lights code that supports more than two strands of lights.

johnwargo/hackspace-article-code 1

Source code for my Hackspace Magazine articles

johnwargo/ics-update 1

A Node module for updating an .ics file and launching it

johnwargo/Arduino-Pinewood-Derby 0

Source code for the Arduino Powered Pinewood Derby project.

created repositorycfjedimaster/async-preso

For my JavaScript async presentation

created time in a day

MemberEvent

fork tang9ian/johnwargo

my personal profile

fork in 2 days

startedjohnwargo/Arduino-Twinkle-Lights

started time in 2 days

startedjohnwargo/Arduino-Twinkle-Lights-Array

started time in 2 days

created repositorycfjedimaster/Camden-Ground-Test

created time in 21 days

startedjohnwargo/seeed-studio-relay-board

started time in 22 days

starteddakotafelder/open-gorton

started time in 22 days

issue commentjohnwargo/learning-pwa-code

Bing API changes

Sure. It started with the offline error message (~fig 4.7). The api results came through when I was offline instead of the 'no data' message so they seemed to already be cached. From that point on I didn't really get what I expected from the offline behaviour - but, that could just be user error...

WelchData

comment created time in 24 days

issue commentjohnwargo/learning-pwa-code

Bing API changes

@johnwargo I've been through chapters 4 and 5. All looks good from the API perspective. I couldn't get the same offline pages to show as in the text - that might just be user error though.

WelchData

comment created time in 24 days

issue commentjohnwargo/learning-pwa-code

Bing API changes

Must be from my setup. I cloned the repo again and then just replaced the corresponding chapters. Suggests this is a non-issue then if you can't replicate it.

WelchData

comment created time in 24 days

issue commentjohnwargo/learning-pwa-code

Bing API changes

@johnwargo Chapter 3's code seems fine now, I've got a working app. The only issues that came up were with the type script compiler (see below). I'll get back to you on Chp 4 and Chp 5 as soon as I can.

Running the tsc command gave me these errors:

$ tsc ../../../../node_modules/@types/readable-stream/index.d.ts:13:15 - error TS2417: Class static side 'typeof _Readable' incorrectly extends base class static side 'typeof Readable'. The types of 'Stream.Readable.Writable' are incompatible between these types. Type 'typeof _Readable.Writable' is not assignable to type 'typeof import("stream").Writable'. Types of parameters 'options' and 'opts' are incompatible. Type 'import("stream").WritableOptions | undefined' is not assignable to type '_Readable.WritableOptions | undefined'. Type 'import("stream").WritableOptions' is not assignable to type '_Readable.WritableOptions'. Type 'WritableOptions' is not assignable to type 'WritableStateOptions'. Types of property 'defaultEncoding' are incompatible. Type 'string | undefined' is not assignable to type '"ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined'. Type 'string' is not assignable to type '"ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined'.

13 declare class _Readable extends stream.Readable { ~~~~~~~~~

../../../../node_modules/@types/readable-stream/index.d.ts:62:11 - error TS2720: Class 'Duplex' incorrectly implements class '_Readable'. Did you mean to extend '_Readable' and inherit its members as a subclass? Type 'Duplex' is missing the following properties from type '_Readable': readableEncoding, readableEnded, readableFlowing

62 class Duplex extends Writable implements /extends/_Readable, stream.Duplex { ~~~~~~

../../../../node_modules/@types/readable-stream/index.d.ts:62:11 - error TS2720: Class '_Readable.Duplex' incorrectly implements class 'import("stream").Duplex'. Did you mean to extend 'import("stream").Duplex' and inherit its members as a subclass? Type 'Duplex' is missing the following properties from type 'Duplex': readableEncoding, readableEnded, readableFlowing

62 class Duplex extends Writable implements /extends/_Readable, stream.Duplex { ~~~~~~

../../../../node_modules/@types/readable-stream/index.d.ts:104:9 - error TS2416: Property '_transform' in type 'PassThrough' is not assignable to the same property in base type 'PassThrough'. Type '<T>(chunk: T, encoding: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null | undefined, callback: (error: any, data: T) => void) => void' is not assignable to type '(chunk: any, encoding: string, callback: TransformCallback) => void'. Types of parameters 'encoding' and 'encoding' are incompatible. Type 'string' is not assignable to type '"ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | null | undefined'.

104 _transform<T>(chunk: T, encoding: BufferEncoding | null | undefined, callback: (error: any, data: T) => void): void; ~~~~~~~~~~

../../../../node_modules/@types/readable-stream/index.d.ts:163:11 - error TS2720: Class '_Readable.Transform' incorrectly implements class 'import("stream").Transform'. Did you mean to extend 'import("stream").Transform' and inherit its members as a subclass? Type 'Transform' is missing the following properties from type 'Transform': readableEncoding, readableEnded, readableFlowing

163 class Transform extends Duplex implements stream.Transform {

WelchData

comment created time in 25 days

created repositorycfjedimaster/covid-city-business-map

created time in 25 days

issue commentjohnwargo/learning-pwa-code

Bing API changes

@johnwargo - Not a problem. Would be great to help out.

WelchData

comment created time in a month

created repositorycfjedimaster/eleventy-for-azure

created time in a month

created repositorycfjedimaster/test-azure-jekyll

created time in a month

created repositorycfjedimaster/my-first-static-web-app

created time in a month

issue commentjohnwargo/learning-pwa-code

Bing API changes

Thanks John. Really appreciated. Looking forward to the update.

WelchData

comment created time in a month

startedjohnwargo/learning-pwa-code

started time in a month

issue openedjohnwargo/learning-pwa-code

Bing API changes

Hi John, I just want to draw your attention to the changes in the Bing search api (the change from Cognitive Services to Bing Search Services) which you may very well be aware of.

Unfortunately this puts a major hitch in the follow along code from Chapter 3 - or at least I'm having trouble reconfiguring the code to match the new version of the API, or creating an olde style API.

The book is still adding a great deal of value (thank you) and I'll no doubt be learning a lot trying to get passed the problem, I just wanted to let you know there is an issue.

Thanks, Chris.

created time in a month

MemberEvent

fork WelchData/learning-pwa-code

Companion Source Code for Learning Progressive Web Apps

fork in a month

created repositorycfjedimaster/eleventy-intro-article-blog

For my Snipcart article on Eleventy

created time in a month

issue openedjohnwargo/flutter-android-connectivity-permissions

Android 10 problem

Error wifi name is null in android 10

created time in a month

fork cfjedimaster/revealjs.com

The official reveal.js website and documentation

https://revealjs.com

fork in a month

created repositorycfjedimaster/vue-cli-presentation

created time in a month

startedjohnwargo/learning-pwa-code

started time in a month

startedjohnwargo/learning-pwa-code

started time in a month

fork timonviola/seeed-studio-relay-board

Python library for the Seeed Studio Relay Board

fork in a month

created repositorycfjedimaster/snowball-admin

Administrative site for Snowball

created time in a month

more