BundleEntry.js - Resource does not inherit from ("./Resource") and cannot call toJSON

Are you reporting a bug?
Yes.
What is the current behavior?
I am hitting http://localhost:3001/3_0_1/Medication?_content=ritalin.  Here is the data I pass into my resolve().
[{"resourceType":"Medication","id":"13424","meta":{"lastUpdated":"stuff"},"code":{"text":"8 HR Metadate 20 MG Extended Release Oral Tablet","coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"1091488","display":"8 HR Metadate 20 MG Extended Release Oral Tablet","userSelected":false}]},"isBrand":true,"isOverTheCounter":false,"form":"tablet"},{"resourceType":"Medication","id":"13424","meta":{"lastUpdated":"stuff"},"code":{"text":"Ritalin 5 MG Oral Tablet","coding":[{"system":"http://www.nlm.nih.gov/research/umls/rxnorm","code":"1091500","display":"Ritalin 5 MG Oral Tablet","userSelected":false}]},"isBrand":true,"isOverTheCounter":false,"form":"tablet"}]

The response from the server
{ message: 'this.__resource.toJSON is not a function',
  stack: 'TypeError: this.__resource.toJSON is not a function\n    at BundleEntry.toJSON

(/Users/nhall/common-clinical/fdb-proxy/node_modules/@asymmetrik/node-fhir-server-core/src/server/standards/3_0_1/BundleEntry.js:72:49)\n
at Object.assign.entry.__entry.__entry.map.v (/Users/nhall/common-clinical/fdb-proxy/node_modules/@asymmetrik/node-fhir-server-core/src/server/standards/3_0_1/Bundle.js:96:51)\n
at Array.map (<anonymous>)\n    at Bundle.toJSON (/Users/nhall/common-clinical/fdb-proxy/node_modules/@asymmetrik/node-fhir-server-core/src/server/standards/3_0_1/Bundle.js:96:40)\n
at JSON.stringify (<anonymous>)\n
at stringify (/Users/nhall/common-clinical/fdb-proxy/node_modules/express/lib/response.js:1119:12)\n
   at ServerResponse.json (/Users/nhall/common-clinical/fdb-proxy/node_modules/express/lib/response.js:260:14)\n
at Object.handleBundleReadResponse (/Users/nhall/common-clinical/fdb-proxy/node_modules/@asymmetrik/node-fhir-server-core/src/server/utils/response.utils.js:103:18)\n
at service.search.then (/Users/nhall/common-clinical/fdb-proxy/node_modules/@asymmetrik/node-fhir-server-core/src/server/profiles/medication/medication.controller.js:48:19)\n
 at <anonymous>' }

The issue I think is in src/server/standards/3_0_1/BundleEntry.js.  If you look at the setters, it is not requiring ./Resource to instantiate a new object, and not inheriting toJSON.  The options are

require('./Resource') on line 36 and instantiate a new resource object
remove toJSON on line 73.

In my pull request, I went with option 2 because it works for my use case.   It now returns
{
  resourceType: "Bundle",
  type: "searchset",
  total: 2,
  link: [
    {
      relation: "self",
      url: "http://localhost:3001/3_0_1/Medication?_content=ritalin"
    }
  ],
  entry: [
    {
      fullUrl: "undefined/3_0_1/Medication/13424",
      resource: {
        resourceType: "Medication",
        id: "13424",
        meta: {
          lastUpdated: "stuff"
        },
        code: {
          text: "8 HR Metadate 20 MG Extended Release Oral Tablet",
          coding: [
            {
              system: "http://www.nlm.nih.gov/research/umls/rxnorm",
              code: "1091488",
              display: "8 HR Metadate 20 MG Extended Release Oral Tablet",
              userSelected: false
            }
          ]
        },
        isBrand: true,
        isOverTheCounter: false,
        form: "tablet"
      },
      search: {
        mode: "match"
      }
    },
    {
      ...truncated other object
    }
  ]
}

I'll submit the pull request as well.  Test and lint all pass.  Please let me know if I'm in error.   Thanks again for this great project.

For more clarity, if I go with option 1 and change the setter to
	set resource(new_value) {
		const Resource = require('./Resource')
		this.__resource = new Resource(new_value)
	}

Then the response cuts out the Medication as shown below.
{
  resourceType: "Bundle",
  type: "searchset",
  total: 2,
  link: [
    {
      relation: "self",
      url: "http://localhost:3001/3_0_1/Medication?_content=ritalin"
    }
  ],
  entry: [
    {
      fullUrl: "undefined/3_0_1/Medication/13424",
      resource: {
        resourceType: "Resource",
        id: "13424",
        meta: {
          lastUpdated: "stuff"
        }
      },
      search: {
        mode: "match"
      }
    },
    {
        fullUrl: "undefined/3_0_1/Medication/13425",
      // trruncated

Thanks @dominathan Option 1 is preferred.  These resources are auto generated from the Structure definitions and we've attempted to test as much as we could.
We're going to update the generator to fix this issue as well.  If you could submit a PR for the small change, that would be very helpful for the time being.
Also - If there are other versions of STU3/DSTU2 that you would like to support, please let us know.  We're hoping to have R4 and US CORE out shortly as well.

@dominathan
Sorry we did more research into this issue and we realized what your issue may be.
When you pass back the JSON from the services, they need to be casted to a resource first.
If you take a look at the example Mongo Library, it shows how it works.
https://github.com/Asymmetrik/node-fhir-server-mongo/blob/master/src/services/patient/patient.service.js
In your case:
`
SearchMedications () {
	data.toArray().then((medications) => {
		medications.forEach(function(element, i, returnArray) {
			returnArray[i] = new Medication(element);
		});
		resolve(medications);
	});

}
`

Nice.  I was doing some Joi library validations and passing it along.  Thanks for the quick responses, I'll try that out and see if it resolves it.

Alright, so I am doing this.
const Joi = require("joi")
const FHIRServer = require("@asymmetrik/node-fhir-server-core")

const getMedication = _ => {
	return require(FHIRServer.resolveFromVersion("3_0_1", "Medication"))
}

const Medication = getMedication()

const schemaForMedication = Joi.object({
	resourceType: Joi.string()
		.valid("Medication")
		.required(),
	meta: Joi.object(),
	id: Joi.string().required(),
	code: Joi.object({
		text: Joi.string().required(),
		coding: Joi.array().items(
			Joi.object({
				system: Joi.string().required(),
				version: Joi.string(),
				code: Joi.string().required(),
				display: Joi.string().required(),
				userSelected: Joi.boolean()
			})
		)
	}),
	isBrand: Joi.boolean(),
	isOverTheCounter: Joi.boolean(),
	manufacturer: Joi.any(), // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
	form: Joi.any(), // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
	ingredient: Joi.any(), // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
	package: Joi.any() // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
})

const fhirConverted = fdbMedicationList => {
	return fdbMedicationList.map(fdbMed => {
		const fhirMed = {
			resourceType: "Medication",
			id: "13424",
			meta: {
				lastUpdated: "stuff"
			},
			code: {
				text: fdbMed.RXCUIDesc,
				coding: [
					{
						system: "http://www.nlm.nih.gov/research/umls/rxnorm",
						code: fdbMed.RXCUI,
						display: fdbMed.RXCUIDesc, // is this the right display name?
						userSelected: false // what is this?
					}
				]
			},
			isBrand: fdbMed.NameTypeCode === "1" ? true : false,
			isOverTheCounter: false // Where do i get this info
			//manufacturer: {}, // does not seem to be provided by the route we currently hit with searchErxDispensableDrug
			// form: fdbMed.ClinicalQuantity.ClinicalQuantityDesc.toLowerCase()
			//ingredient: {},
			//package: {} // not surre where to get this info
		}

		const { error, value } = Joi.validate(fhirMed, schemaForMedication)
		if (error) {
			return error
		}

		let med = new Medication(value)
		return med
	})
}

module.exports = fhirConverted

An example Medication now comes back instantiated.

And has an Array of Medications as the resource_json.  I get the same error if I do not change BundleEntry.  If I change BundleEntry to Option 1, then the Medication gets removed from the response.

If I change it to option 2, it returns everything as I desire.  I might be passing things in that I need that are not  being included but I am not sure.
Side note, are you going to the HL7 conference this Saturday-Friday in Baltimore? @jonterrylee

let me pull this down and try it out.
A few of us are at the HL7 app conference today and tomorrow.  A few of us will be at the conference on Monday in Baltimore.  Are you going to be there as well?

Me and a few people will be in Baltimore for the hackathon this weekend and then the conference.  Would love to buy y'all some drinks.

@dominathan
Hey, I was able to get your example to work.  I didn't make any changes to the Bundle or core lib.  I checked in the branch so you can take a look.
https://github.com/Asymmetrik/node-fhir-server-mongo/tree/example/medication-joi
using docker

run docker-compose build
run docker-compose up

my changes:
medication.service.js
et getMedication = (base_version) => {
	return require(FHIRServer.resolveFromVersion(base_version, RESOURCES.MEDICATION));};

let getMeta = (base_version) => {
	return require(FHIRServer.resolveFromVersion(base_version, RESOURCES.META));};

let MED_DATA = [
	{
		"resourceType": "Medication",
		"id": "13424",
		"meta": {
			"lastUpdated": "stuff"
		},
		"code": {
			"text": "8 HR Metadate 20 MG Extended Release Oral Tablet",
			"coding": [{
				"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
				"code": "1091488",
				"display": "8 HR Metadate 20 MG Extended Release Oral Tablet",
				"userSelected": false
			}]
		},
		"isBrand": true,
		"isOverTheCounter": false,
		"form": "tablet"
	}, {
		"resourceType": "Medication",
		"id": "13424",
		"meta": {
			"lastUpdated": "stuff"
		},
		"code": {
			"text": "Ritalin 5 MG Oral Tablet",
			"coding": [{
				"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
				"code": "1091500",
				"display": "Ritalin 5 MG Oral Tablet",
				"userSelected": false
			}]
		},
		"isBrand": true,
		"isOverTheCounter": false,
		"form": "tablet"
	}
]

const schemaForMedication = Joi.object({
	resourceType: Joi.string()
		.valid("Medication")
		.required(),
	meta: Joi.object(),
	id: Joi.string().required(),
	code: Joi.object({
		text: Joi.string().required(),
		coding: Joi.array().items(
			Joi.object({
				system: Joi.string().required(),
				version: Joi.string(),
				code: Joi.string().required(),
				display: Joi.string().required(),
				userSelected: Joi.boolean()
			})
		)
	}),
	isBrand: Joi.boolean(),
	isOverTheCounter: Joi.boolean(),
	manufacturer: Joi.any(), // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
	form: Joi.any(), // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
	ingredient: Joi.any(), // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
	package: Joi.any() // TODO: need to double check this, says it is a reference https://www.hl7.org/fhir/medication.html,
})

const fhirConverted = fdbMedicationList => {

	let Medication = getMedication('3_0_1');

	return fdbMedicationList.map(fdbMed => {

		const { error, value } = Joi.validate(fdbMed, schemaForMedication)
		if (error) {
			return error
		}

		let med = new Medication(value)
		return med
	})
}

module.exports.search = (args, context, logger) => new Promise((resolve, reject) => {
	logger.info('Medication >>> search');

	let medications = fhirConverted(MED_DATA);

	// Return Array
	resolve(medications);
});

results

You may have another issue.  If you can make a repo, we'll be sure to help you out.
Definitely should grab some drinks!  We can try to aim for the weekend or Monday would work as well.

Me and a few people will be in Baltimore for the hackathon this weekend and then the conference. Would love to buy y'all some drinks.

Hi @dominathan, we won't be able to send anybody to the hackathon, unfortunately, but I'll be at the Working Group all week.  Shoot me an email and let's connect<EMAIL_ADDRESS>

Yea,I don't know what happened.  Must have made too many edits to the package.  Deleted it and worked fine.   Sorry about that.  Thanks for your help!
I'll respond to your email @andrewmarcus .  Definitely owe you all for putting this project together.


Search by name for WorkflowTemplates in UI

Summary
Add search bar in UI to search for WorkflowTemplates, ClusterWorkflowTemplates, CronWorkflows by name.
Use Cases
Searching by name makes sense if there is a large number of templates in a cluster. Some devs in our team submit WorkflowTemplates manually regularly. It's always a pain to scroll through all the templates.

Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

Maybe using Elasticsearch can be usefull when also searching for Log. Because i like to find some flow that have same error log

@terrytangyuan
Hello. I would like to be in charge of improving the filtering function by name.

Feel free to submit a PR

As kubernetes api doesn't support pattern searching, so far I also think 'searching whole on every page move' OR 'some caching' is inevitable to make name pattern search UI.
But the former can make a performance issue, and the latter requires some storage.


477072: Use opensuse/tumbleweed:latest as base image

https://internal.almoctane.com/ui/entity-navigation?p=131002/6001&entityType=work_item&id=477072

CI Build Link:
http://sou-jenkins2.swinfra.net:8080/job/CAFapi/job/CAFapi~opensuse-java11-images~rory-tumbleweed~CI


Cast String as Integer in Fields

Bug report
AddColum and AddFiled have problems to recognice strings with leading zeros
What I did:
What I expected to happen:
What happened:
Assign null vaues to fields when its not
What I've already tried to fix it:
Backpack, Laravel, PHP, DB version:
backpack/base ( 1.0.2):
backpack/crud ( 3.5.9):

protected $primaryKey = "dpa_id";
public $incrementing = false;  <---- SOLVES THE PROBLEM

Thanks for sharing your solution @seyacat . I'm sure somebody will stumble upon this and be grateful.
Cheers!


fix: vpc validation

Larger than or equal to 12 characters and also fixed the error message.

@JamesWoolfenden Thanks for swift action! Can we have a release for this? :)

already done
On Mon, 24 May 2021 at 14:26, Qinjin @.***> wrote:

@JamesWoolfenden https://github.com/JamesWoolfenden Thanks for swift
action! Can we have a release for this? :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JamesWoolfenden/terraform-aws-cassandra/pull/15#issuecomment-847041270,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALDV4EWRRBNVJPYTPHIC5LTPJHXDANCNFSM45NHJF7Q
.


Fix an internal naming issue that is causing errors in the SMTP server

Describe the Bug
Within the SMTP server logic, there is an old SmtpEvent variable, this should be TcpEvent. Also, the initialisation of the Email object in the event should be to @{} not $null.
Each of these stop emails, and Send-MailMessage from being received and hanging.
Steps To Reproduce

Start the mail-server.ps1 example
Run a Send-MailMessage with -SmtpServer as localhost
The call will hang

Expected Behavior
The Send-MailMessage should complete without error, and details of the email output on the server console.
Screenshots
See gitter channel for gifs.
Platform

OS: Windows 10
Version: PS5.1

https://gitter.im/Badgerati/Pode?at=5ea37a249a04a259f22f0906

Hey @majkinetor, the commits in the Issue-543 branch now allow Send-MailMessage to work for me. When you get a free moment, would you be able to test?

Seems to work now. Good job.

I'll get this out in a 1.7.2, as SMTP is basically broken.

Released in v1.7.2


ViewRenderer#extractControllerName not work like as example

What steps will reproduce the problem?
https://github.com/yiisoft/yii-view/pull/60
What is the expected result?
work like as example
https://github.com/yiisoft/yii-view/blob/999a9e7010d7961ff243e2f02317116bb1722329/src/ViewRenderer.php#L548-L550
What do you get instead?
example
Yiisoft\Yii\View\Tests\Support\Controller\SubNamespace\SubNamespace2\FakeController -> /support/

Additional info

Q
A

Version
-

PHP version
-

Operating system
-

https://github.com/yiisoft/yii-view/pull/63


Redirect Asciidoctor logging to Java Util Logging

This is the version of #641 for the master branch.
In addition to only the changes from that PR I had to also pull in some more classes that didn't exist yet on master, i.e. Cursor/CursorImpl and RubyObjectWrapper.
I also changed the test to programmatically configure and register a Handler, the Maven plugin should be able to do just that as well.
Additionally I bumped the version of Java to 7 "officially" so that I don't have to downgrade some of the imported code. We're already relying on Java 7 now anyway.

:+1:
I think this is an essential addition for 1.5.7, primarily for the build tools that use it.

This works wonders! This really makes it really easy to handle the log from a build tool. And I can see the gradle plugin using registerLogHandler with a closure also.
But I found a bug in the Cursor class. getFile fails when he error is reported from an uri include. There's a class cast exception, I suppose cause the object is not a RubyString. I could fix it doing this this.getProperty("file").toString() instead of getString("file").
Btw, I added a couple of silly comments to the code.

Thanks for the feedback! This is exactly what I needed! :)
I was thinking about no longer storing the Cursor in the JUL LogRecord, but maybe it makes sense to still do that.
I’ll implement your comments tomorrow.
(And thanks a lot again!)

I was thinking about no longer storing the Cursor in the JUL LogRecord,

It's still not 100% user friendly. But it's nice to have it if it can be done easily. We just need to document it clearly.

@abelsromero Is this now in a usable state for you?
If yes I would merge it and then try to do a 1.5.7 release of AsciidoctorJ.

There are some other conversations about possible features. Its fine for
me, but I'd wait a bit more
https://github.com/asciidoctor/asciidoctor-maven-plugin/issues/261#issuecomment-387643160
Wdyt?
On Wed, May 9, 2018, 4:18 PM Robert Panzer<EMAIL_ADDRESS>wrote:

@abelsromero https://github.com/abelsromero Is this now in a usable
state for you?
If yes I would merge it and then try to do a 1.5.7 release of AsciidoctorJ.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/asciidoctor/asciidoctorj/pull/643#issuecomment-387754339,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFg2oTyrC2WziYbtAOO5SYW0YMM1GFknks5twvqxgaJpZM4TzqGL
.

@robertpanzer @abelsromero Truly great work on this you two! I'm impressed!

There's a class cast exception, I suppose cause the object is not a RubyString. I could fix it doing this this.getProperty("file").toString() instead of getString("file").

Sorry about that. Sometimes file or dir is a URI. This is internal information that is leaking out. When I create the log records, I should probably .to_s them. For now, you can just do so on the Java side.

If you have some more requirements just let me know.

I only see interesting the option to register via SPI.

You mean to register an Observer automatically if it is declared in a file META-INF/services/org.asciidoctor.log.LogHandler?
Sounds good.

@mojavelinux Regarding https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/233#issuecomment-388483656 Do you think it would make sense to always run with the verbose option when not running from the CLI? This way you would only configure the amount of logging in your logging framework.
The CLI overrides $VERBOSE anyway to true or nil.

Apologies for the silly question, but I don't get the purpose of verbose.
From the command info Verbosely print processing information and configuration file checks to stderr., I assume messages are sent to stdout by default. But, they are always sent to stderr, with and without --verbose.
That's running directly the gem in Windows.

I think the default log device is stderr:
https://github.com/asciidoctor/asciidoctor/blob/d15bc65a942a8d3b186eab6e038bfc000c4d48f5/lib/asciidoctor/logging.rb#L85
In my opinion it would make sense to always log these warnings independently of a verbose setting, at least when running embedded in the Maven or Gradle plugin.
Wdyt?

Thanks for the clarification :)
So would it make sense then to always enable this verbose flag to see those warnings?

So would it make sense then to always enable this verbose flag to see those warnings?

I'd vote for yes.
On other topics, have you consider the option to register using SPI? (asking this I feel like when my manager comes in late Friday with a new requirement to implement)

:) No worries!
I considered adding an SPI and I already developed it (if I understood you correctly that it should be possible to register an Observer via the java.util.ServiceLoader mechanism).
I just forgot to push my changes :-(
But now they should be here as well.

To go ahead I am planning to always set the $VERBOSE global variable.
In my opinion it really makes sense to always get information about invalid references.
When testing it I just stumbled over that the warning is logged without a context.
@mojavelinux Would it make sense to add the context and give the user information about where the invalid reference is located in the sources?

Updated the PR to always set $VERBOSE=true and therefore always log invalid refs.
Imo users will always be interested in seeing this.

I second that!

I'll merge for now.
Additional comments can be implemented in follow-up PRs.

To go ahead I am planning to always set the $VERBOSE global variable.
In my opinion it really makes sense to always get information about invalid references.

We've decided to go the other way on this. $VERBOSE is not something that should be set by default. The fact that it is linked to the invalid references warning is only because those warnings are not always accurate. In that regard, we should think of it more like "debug mode". But $VERBOSE does reveal programming errors, so it can be useful for other reasons. But certainly no something we want to enable by default.


Update workflow.yml

Added codecov action to workflow

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Code generation doesn't work

Describe the bug
It used to work several months ago when I was using version 1.1 but now the code for the entities won't get generated on build anymore.
Basic info (please complete the following information):

ObjectBox version  1.3.1
Reproducibility: always
Device:  iPhone 11 (simulator)
OS:  iOS 13

To Reproduce
Steps to reproduce the behavior:

Follow instructions on https://swift.objectbox.io/install
run Pods/ObjectBox/setup.rb and got "🔸 No changes made to project. "

MacBook-Pro:CoreIOS HaiNguyen$ pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (5.0.2)
Installing ColorThiefSwift (0.4.0)
Installing Crashlytics (3.14.0)
Installing Fabric (1.10.2)
Installing Firebase (6.19.0)
Installing FirebaseAnalytics (6.3.1)
Installing FirebaseAuth (6.4.3)
Installing FirebaseAuthInterop (1.1.0)
Installing FirebaseCore (6.6.4)
Installing FirebaseCoreDiagnostics (1.2.2)
Installing FirebaseCoreDiagnosticsInterop (1.2.0)
Installing FirebaseDatabase (6.1.4)
Installing FirebaseInstallations (1.1.0)
Installing GTMSessionFetcher (1.3.1)
Installing GoogleAppMeasurement (6.3.1)
Installing GoogleDataTransport (5.0.0)
Installing GoogleDataTransportCCTSupport (2.0.0)
Installing GoogleUtilities (6.5.1)
Installing ObjectBox (1.3.1)
Installing PromisesObjC (1.2.8)
Installing leveldb-library (1.22)
Installing nanopb (0.3.9011)
Generating Pods project
Integrating client project
Pod installation complete! There are 10 dependencies from the Podfile and 22 total pods installed.
MacBook-Pro:CoreIOS HaiNguyen$ Pods/ObjectBox/setup.rb
 ObjectBox Project Setup

🔸 Looking for project files in the current directory ...
🔸 Found a single project.
🔸 Using "/Users/HaiNguyen/Documents/githubProject/JournalIt/journal_it/ios/CoreIOS/CoreIOS.xcodeproj"

 🔸 No changes made to project.

 💬 Please remember to use the .xcworkspace CocoaPods created from now on instead of your project.

Comment the test function (below) -> build -> uncomment the test function -> "Type 'User' does not conform to protocol 'EntityInspectable'"

Code
import Foundation
import ObjectBox
// objectbox: entity
 class User {
    var id: Id = 0

    var name: String = "fdf"

    init() {

    }

 static func test(box: Box<User>){
 }
 }

Additional context

It's in a Swift module that shared to another iOS project
No file was generated in the generated folder

Thanks for the quick response!
I already tried to run all the steps to update.
There's no objectBox's script in build phases

Where can I find that JSON? I remember there was a swift file in the generated folder that provides the Store(directoryPath) constructor but I deleted it after seeing no change when modifying the entities and it still hasn't been generated again.

MacBook-Pro:CoreIOS HaiNguyen$ Pods/ObjectBox/setup.rb  --replace-modified /Users/HaiNguyen/Documents/githubProject/JournalIt/journal_it/ios/CoreIOS/CoreIOS.xcodeproj CoreIOS
 ObjectBox Project Setup

🔸 Using "/Users/HaiNguyen/Documents/githubProject/JournalIt/journal_it/ios/CoreIOS/CoreIOS.xcodeproj"

Target "CoreIOS":

  🔹 Creating file "EntityInfo-CoreIOS.generated.swift" ...
  🔹 Inserting generated file into group "" ...
  🔹 Adding generated file to target.
  🔹 Adding code generation phase ...
  ✅ Done.

 ✅ Project changes saved.

 💬 Please remember to use the .xcworkspace CocoaPods created from now on instead of your project.

Things seem to work properly now.
Thanks a lot for the help! Sorry, it was my bad, I haven't look into it thoroughly.

That would be great!
No, I didn't try without the option.


Make active media setup store and add unit tests

Fixes

Fixes #831 by @obulat
Description

This is basically a copy of @dhruvkb's Proof-of-Concept PR for converting Vuex store, but using Pinia setup stores. This is a part of the Pinia RFC and the details are to be filled in later :)
Testing Instructions

Checklist

[ ] My pull request has a descriptive title (not a vague title like Update index.md).
[ ] My pull request targets the default branch of the repository (main) or a parent feature branch.
[ ] My commit messages follow best practices.
[ ] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[ ] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@obulat could we merge this PR into #906? It seems we all prefer the setup store approach over the options API one.


Regarding classifier free guidance implementation

In classifier_free_guidance.py we have this snippet:
    def forward_with_cond_scale(
        self,
        *args,
        cond_scale = 1.,
        **kwargs
    ):
        logits = self.forward(*args, cond_drop_prob = 0., **kwargs)

        if cond_scale == 1:
            return logits

        null_logits = self.forward(*args, cond_drop_prob = 1., **kwargs)
        return null_logits + (logits - null_logits) * cond_scale

In equation (6) of the Classifier-Free Diffusion Guidance paper, the linear combination of the score estimates is (1+w)*conditional - w*unconditional.
Following the algebra:
(1+w)*c - w*u = c + w*c - w*u = c + (c-u)*w
But in the above code snippet it looks like we have u + (c - u)*w. Am I misunderstanding?

@ArmanMaesumi it is the same, i just have mine start at 1, while theirs start at 0

Ah yea, makes sense.


CI fails on Alpine docker - FileNotFoundError: [Errno 2] No such file or directory: 'ssh'

Describe the bug
unit tests fail in Apine docker instance with an error - “ FileNotFoundError: [Errno 2] No such file or directory: 'ssh'”
In absence of ssh setup , should ssh tests be optional ?
To Reproduce
Run SparrowCI.
See error report - https://ci.sparrowhub.io/report/1507
Expected behavior
Unit tests should pass.
Meta
See details in https://ci.sparrowhub.io/report/1507

This appears to be an issue because the SSH config test uses the ssh command in the proxy config, I've switched this to echo in https://github.com/Fizzadar/pyinfra/commit/e3fee1d846177eca27484ddc4b4c095051790e14.
Also worth noting I don't think counts as a bug - the CI/tests are officially supported on GitHub CI only.

Also worth noting I don't think counts as a bug - the CI/tests are officially supported on GitHub CI only.

Sorry, I don’t get that. you just said this is a bug 😊, bugs appear in a code not in systems that reveal bugs


LND fails to start with 'target hash not found in index'

Background
I've had several nodes crash that were backed by Neutrino. Once they crashed they are never able to start up again. They all fail with [ERR] LTND: unable to determine if wallet is synced: target hash not found in index. This seems to be some kind of problem in Neutrino. Once I deleted the block_headers.bin, neutrino.db, reg_filter_headers.bin, and peers.json files, they could start again (and sync from genesis).
There's also an interesting line repeated over and over:
[WRN] BTCN: Header doesn't pass sanity check: block target difficulty of<PHONE_NUMBER>000000000e26320000000000000000000000000000000000000000 is higher than max of<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000 -- disconnecting peer

Your environment
LND Version 0.13.1 and 0.13.3
Neutrino backend
Linux ARM
Steps to reproduce
I can't reproduce it, this happened out of the blue.
Expected behaviour
Even if Neutrino encounters an error, I would expect it to be able to recover and continue working.
Actual behaviour
LND became a brick.
Logs:
Notice they are newest to oldest:

2021-10-15 19:13:21.141 [INF] BTCN: Address manager shutting down
2021-10-15 19:13:21.091 [INF] BTCN: Block manager shutting down
2021-10-15 19:13:21.078 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:21.078 [INF] BTCN: New peer <IP_ADDRESS>:8333 (outbound) ignored - server is shutting down
2021-10-15 19:13:21.041 [INF] BTCN: Canceling block subscription: id=1
2021-10-15 19:13:20.992 [INF] LNWL: Stopping web API fee estimator
2021-10-15 19:13:20.992 [INF] RPCS: Stopping WatchtowerClientRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping WatchtowerRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping VersionRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping InvoicesRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping AutopilotRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping WalletKitRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping ChainRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping SignRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping RouterRPC Sub-RPC Server
2021-10-15 19:13:20.992 [INF] RPCS: Stopping RPC Server
2021-10-15 19:13:20.992 [ERR] LTND: unable to determine if wallet is synced: target hash not found in index
2021-10-15 19:13:20.992 [INF] LTND: Waiting for chain backend to finish sync, start_height=705147
2021-10-15 19:13:20.987 [INF] ATPL: Instantiating autopilot with active=false, max_channels=5, allocation=0.600000, min_chan_size=20000, max_chan_size=16777215, private=false, min_confs=1, conf_target=3
2021-10-15 19:13:20.987 [INF] LTND: Channel backup proxy channel notifier starting
2021-10-15 19:13:20.973 [INF] HSWC: Trimming open circuits for chan_id=694537:355:11, start_htlc_id=6
2021-10-15 19:13:20.972 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
2021-10-15 19:13:20.971 [INF] HSWC: Restoring in-memory circuit state from disk
2021-10-15 19:13:20.967 [INF] CHRE: LightningWallet opened
2021-10-15 19:13:20.967 [INF] LNWL: The wallet has been unlocked without a time limit
2021-10-15 19:13:20.765 [WRN] BTCN: No sync peer candidates available
2021-10-15 19:13:20.765 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:20.600 [INF] BTCN: Fetching set of headers from tip (height=705147) from peer <IP_ADDRESS>:8333
2021-10-15 19:13:20.600 [INF] BTCN: Syncing to block height 705150 from peer <IP_ADDRESS>:8333
2021-10-15 19:13:20.600 [INF] BTCN: New valid peer <IP_ADDRESS>:8333 (outbound) (/btcwire:0.5.0/btcd:0.20.1/)
2021-10-15 19:13:20.263 [WRN] BTCN: No sync peer candidates available
2021-10-15 19:13:20.263 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:20.263 [WRN] BTCN: Header doesn't pass sanity check: block target difficulty of<PHONE_NUMBER>000000000e26320000000000000000000000000000000000000000 is higher than max of<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000 -- disconnecting peer
2021-10-15 19:13:20.105 [INF] BTCN: Fetching set of headers from tip (height=705147) from peer <IP_ADDRESS>:8333
2021-10-15 19:13:20.105 [INF] BTCN: Syncing to block height 705150 from peer <IP_ADDRESS>:8333
2021-10-15 19:13:20.105 [INF] BTCN: New valid peer <IP_ADDRESS>:8333 (outbound) (/Satoshi:0.21.1/)
2021-10-15 19:13:19.774 [WRN] BTCN: No sync peer candidates available
2021-10-15 19:13:19.774 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:19.754 [INF] BTCN: Fetching set of headers from tip (height=705147) from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.754 [INF] BTCN: Syncing to block height 705150 from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.753 [INF] BTCN: New valid peer <IP_ADDRESS>:8333 (outbound) (/btcwire:0.5.0/btcd:0.21.0/)
2021-10-15 19:13:19.742 [WRN] BTCN: No sync peer candidates available
2021-10-15 19:13:19.742 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:19.742 [WRN] BTCN: Header doesn't pass sanity check: block target difficulty of<PHONE_NUMBER>000000000e26320000000000000000000000000000000000000000 is higher than max of<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000 -- disconnecting peer
2021-10-15 19:13:19.741 [INF] BTCN: Fetching set of headers from tip (height=705147) from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.741 [INF] BTCN: Syncing to block height 705150 from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.741 [INF] BTCN: New valid peer <IP_ADDRESS>:8333 (outbound) (/btcwire:0.5.0/btcd:0.21.0/)
2021-10-15 19:13:19.707 [WRN] BTCN: No sync peer candidates available
2021-10-15 19:13:19.707 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:19.707 [WRN] BTCN: Header doesn't pass sanity check: block target difficulty of<PHONE_NUMBER>000000000e26320000000000000000000000000000000000000000 is higher than max of<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000 -- disconnecting peer
2021-10-15 19:13:19.639 [INF] BTCN: Fetching set of headers from tip (height=705147) from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.639 [INF] BTCN: Syncing to block height 705150 from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.638 [INF] BTCN: New valid peer <IP_ADDRESS>:8333 (outbound) (/Satoshi:22.0.0/)
2021-10-15 19:13:19.494 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:19.492 [WRN] BTCN: Banning peer <IP_ADDRESS>:8333: duration=48h0m0s, reason=peer was unable to serve compact filters
2021-10-15 19:13:19.436 [WRN] BTCN: No sync peer candidates available
2021-10-15 19:13:19.436 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:19.436 [WRN] BTCN: Header doesn't pass sanity check: block target difficulty of<PHONE_NUMBER>000000000e26320000000000000000000000000000000000000000 is higher than max of<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000 -- disconnecting peer
2021-10-15 19:13:19.384 [INF] BTCN: Fetching set of headers from tip (height=705147) from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.384 [INF] BTCN: Syncing to block height 705150 from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.384 [INF] BTCN: New valid peer <IP_ADDRESS>:8333 (outbound) (/Satoshi:0.21.1/)
2021-10-15 19:13:19.345 [WRN] BTCN: No sync peer candidates available
2021-10-15 19:13:19.344 [INF] BTCN: Lost peer <IP_ADDRESS>:8333 (outbound)
2021-10-15 19:13:19.344 [WRN] BTCN: Header doesn't pass sanity check: block target difficulty of<PHONE_NUMBER>000000000e26320000000000000000000000000000000000000000 is higher than max of<PHONE_NUMBER>000000000000000000000000000000000000000000000000000000 -- disconnecting peer
2021-10-15 19:13:19.182 [INF] BTCN: Fetching set of headers from tip (height=705147) from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.182 [INF] BTCN: Syncing to block height 705150 from peer <IP_ADDRESS>:8333
2021-10-15 19:13:19.182 [INF] BTCN: New valid peer <IP_ADDRESS>:8333 (outbound) (/Satoshi:22.0.0/)
2021-10-15 19:13:19.167 [INF] LNWL: Starting web API fee estimator

Odd, if you restrict the set of peers to a known good one, does the error go away? That message is triggered when we get an error that fails a PoW check.

I don't have a node in this state anymore (because I deleted the DBs) but next time it happens I'll try that. Is there a way to have neutrino resolve this itself?

I faced the same error today after I rebooted an overloaded node.

Seems like this never happened again? Closing for now, please re-open if it occurs again.


Inconsistent null handling in min/max

Describe the bug
The datafusion_physical_expr::aggregate::min_max::MinAccumulator and MaxAccumulator appear to use different approaches to calculating the minimum and maximum at different times and this can lead to inconsistent results.
The min/max are extracted from batches using arrow_arith::aggregate::max and arrow_arith::aggregate::min which state:

For floating point arrays any NaN values are considered to be greater than any other non-null value

Once these values are extracted from the batch they are then compared with the current ScalarValue.  I had assumed this was using the PartialOrd implementation of ScalarValue which uses total order (which would still be inconsistent).
However, it appears that f32::min and f32::max are used instead.  These methods give us a delightful, third interpretation of floating point ordering which is:

If one of the arguments is NaN, then the other argument is returned.

This means that min considers NaN to be greater and max considers NaN to be smaller :dizzy_face:
As a result, it seems the MinAccumulator is consistent (NaN is always greater) but not aligned with total ordering.  The MaxAccumulator is inconsistent and can give different results depending on how the data is batched up.
To Reproduce
use std::sync::Arc;

use arrow::datatypes::DataType;
use arrow_array::{ArrayRef, Float32Array};
use datafusion::physical_plan::Accumulator;
use datafusion_physical_expr::expressions::MaxAccumulator;

pub fn main() {
    let pos_nan = f32::NAN;
    let zero = 0_f32;

    let vals: ArrayRef = Arc::new(Float32Array::from_iter_values(
        [zero, pos_nan].iter().copied(),
    ));

    // We accumulate the above two rows in two different ways.  First, we pass in both as a single batch
    // This will use `aggregate::max` which always puts `NaN` as the max
    let mut accumulator = MaxAccumulator::try_new(&DataType::Float32).unwrap();
    accumulator.update_batch(&[vals]).unwrap();
    dbg!(&accumulator.evaluate().unwrap()); // prints NaN

    // Next we pass the two values in two different batches.  This will use `f32.max` which never
    // puts `NaN` as the max
    let vals_a: ArrayRef = Arc::new(Float32Array::from_iter_values([pos_nan].iter().copied()));
    let vals_b: ArrayRef = Arc::new(Float32Array::from_iter_values([zero].iter().copied()));

    let mut accumulator = MaxAccumulator::try_new(&DataType::Float32).unwrap();
    accumulator.update_batch(&[vals_a]).unwrap();
    accumulator.update_batch(&[vals_b]).unwrap();
    dbg!(&accumulator.evaluate().unwrap()); // prints 0
}

Expected behavior
My preference would be that everything be done in total order.  I am using ScalarValue's PartialOrd internally and I would prefer that it be consistent with min & max.
Additional context
No response

It's possible this would be addressed by https://github.com/apache/arrow-datafusion/issues/6842 (though I don't fully understand that ticket)

FWIW I would not be opposed to changing the behaviour of the arrow kernels, tbh I thought they had been updated to use total ordering...

FWIW I think the min/max accumulators are some of the oldest code in DataFusion. I am very much on board with the idea of standardizing on the same (total ordering)


[Bug] QR Decoder failed to recognize Litecoin URI

Problem
When trying to Add LTC address, the QR code was rejected.
Reality
The QR includes an URI which  includes a prefix "litecoin:" which causes the failure.
Recommendation
Referring to https://en.bitcoin.it/wiki/BIP_0021, the Litecoin Core app produces a similar URI and should be parsed accordingly.
Environment

[ ] Device: iPhone xsMax
[ ] iOS Version: iOS 13.7
[ ] Litewallet version: v2.7.1 (5)
[ ] Other: ChangeNow Branch

Video Clips

Clip of Bug

Environment

[ ] Device: iPhone xsMax
[ ] iOS Version: iOS 13.7
[ ] Litewallet version: v2.7.1 (5)
[ ] Other: ChangeNow Branch

Video Clips

Clip of Bug

UPDATE: The failure was detailed by @coblee and the solution is to add support for this input
cc: @ProninPS , @ChangeNOW-lab

cc: @sirak201


[#6156] Support SYSTEM_PROPERTIES_MODE_OVERRIDE mode

Pinpoint-Web and Pinpoint-Collector now support SYSTEM_PROPERTIES_MODE_OVERRIDE mode
eg) Add VM options : -Dhbase.client.host=${YOUR_HBASE_HOST}

Codecov Report

Merging #6163 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6163      +/-   ##
==========================================
- Coverage   39.61%   39.59%   -0.02%
==========================================
  Files        3026     3026
  Lines       91264    91264
  Branches    11875    11875
==========================================
- Hits        36158    36140      -18
- Misses      52084    52101      +17
- Partials     3022     3023       +1

Impacted Files
Coverage Δ

...p/pinpoint/rpc/client/WriteFailFutureListener.java
56.25% <0%> (-18.75%)
:arrow_down:

...vercorp/pinpoint/rpc/packet/ServerClosePacket.java
52% <0%> (-16%)
:arrow_down:

...p/pinpoint/rpc/stream/StreamChannelRepository.java
75% <0%> (-10%)
:arrow_down:

...rp/pinpoint/web/mapper/stat/AgentStatMapperV2.java
59.52% <0%> (-9.53%)
:arrow_down:

...rp/pinpoint/rpc/server/PinpointServerAcceptor.java
84.1% <0%> (-4.64%)
:arrow_down:

...java/com/navercorp/pinpoint/rpc/DefaultFuture.java
72.5% <0%> (-1.67%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.22% <0%> (-0.71%)
:arrow_down:

...point/rpc/client/DefaultPinpointClientHandler.java
72.4% <0%> (+0.32%)
:arrow_up:

...pinpoint/profiler/monitor/DeadlockMonitorTask.java
19.76% <0%> (+1.16%)
:arrow_up:

...om/navercorp/pinpoint/rpc/codec/PacketDecoder.java
59.57% <0%> (+2.12%)
:arrow_up:

... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 71ee4e0...3bdd36f. Read the comment docs.


[Knora-app resource viewer mockup] properties-viewer : how to delete a resource?

Is your feature request related to a problem? Please describe.
It may be off topic because the mock-up focuses on property editing operation. But in case it isn't, here is the thing: I don't see how a user could delete a whole resource.

@mrivoal a button should be added somewhere, as well as one to create a whole new resource instance. We have to think about it. If you have some idea, let me know!

this issue has been mentioned on YouTrack: DSP-143


Release 0.9b1

We'll validate this release and make sure we merge the updated docs before releasing 0.9b.

Codecov Report

Merging #399 (b8c6794) into main (e38cf43) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head b8c6794 differs from pull request most recent head 02b0e12. Consider uploading reports for the commit 02b0e12 to get more accurate results

@@           Coverage Diff           @@
##             main     #399   +/-   ##
=======================================
  Coverage   90.45%   90.45%
=======================================
  Files          53       53
  Lines        1792     1792
  Branches      280      280
=======================================
  Hits         1621     1621
  Misses        131      131
  Partials       40       40

Impacted Files
Coverage Δ

src/astro/__init__.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e38cf43...02b0e12. Read the comment docs.


[WIP] Add deployment for Swagger spec

Overview
This PR adds scripts/deploy-docs to sync documentation to an S3 bucket.
Checklist
- [ ] Styleguide updated, if necessary
- [ ] Swagger specification updated, if necessary
- [ ] Symlinks from new migrations present or corrected for any new migrations
Demo
Optional. Screenshots, curl examples, etc.
Notes
Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.
Testing Instructions
See spec.staging.rasterfoundry.com and Jenkins Output
Connects #1272 , depends on azavea/raster-foundry-deployment#41

Updated.


fixes #8: Show reason in admin console

Block list pub/sub events optionally contain a reporting element. If that's available, Openfire should display its content on the admin console.

LGTM.
Have you had chance to try the mechanics out?
Any concern over longer strings in the reason causing UI jank?

It already runs on ignite. 😇
Very long reason text could mess up that part of the UI a bit, but I'm not worried. Also, the UI won't show items if they're more than a certain number.


Event - Kids Promotion Sunday

@aharris88 Please create event before THIS Sunday if possible. Info in program directs peeps to website for details. I've included text and graphic.

The 2017-2018 school year will be here before you know it! August 13th will be an exciting Sunday at Lifestone as we promote:
Children entering 1st grade from Little Life up to Kid's Life.
Children entering 6th grade from Kids Life up to Lifestone Youth (meets Wednesdays at 6:30pm).

Closed by d89747134d071db2e69c3cb702ab1b446a1eb121


Angular - Create new 'Article' Model before initial sync

I have a situation where I would like to create a new 'Article' before I have queried my restAPI and sync'd the results.
This means the following line will not find 'article' in the Model store, because we have not performed an initial sync.
var newArticle = new JsonApiDataStore.Model('article');
Any idea how to do this?
Any help appreciated.
Regards,
Paul.

Currently what you could do is:
// c.f. https://github.com/beauby/jsonapi-datastore/blob/master/src/jsonapi-datastore.js#L10
var newArticle = new JsonApiDataStoreModel('article');
newArticle.setAttribute('title', 'Cool Article');
// ...
newArticle.setRelationship('author', user);
// ...

Hi Lucas,
Thank you for getting back to me so soon:)
We have just started developing an Angular app, and it is my job to evaluate the client libraries and get our front end talking to our back end api, so your help is much appreciated.
I may have a few more questions along the way, so it would be good if we could stay in touch.
Thanks for the help.
Regards, Paul.

Hi Paul,
No worries, feel free to open as many issues as necessary.
Cheers,
Lucas

Much appreciated:)Thank you.Paul.
Date: Sun, 27 Dec 2015 14:41:59 -0800
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>CC<EMAIL_ADDRESS>Subject: Re: [jsonapi-datastore] Angular - Create new 'Article' Model before initial sync (#21)
Hi Paul,
No worries, feel free to open as many issues as necessary.
Cheers,
Lucas
—
Reply to this email directly or view it on GitHub.


Create reports for tests covered on various test suites

Report should cover test results, time taken and store results in s3 bucket that will be periodically cleaned up.

Closing - can reopen if this isn't actually completed


Update 02-client-tools.md

High Sierra 10.13.3
installing manually with curl and trying to use cfssl/cfssljson results in Fatal Error: MSpanList_Insert

I had this problem too (OS X High Sierra).  Ended up building them myself using the instructions at https://github.com/cloudflare/cfssl

duplicate of https://github.com/kelseyhightower/kubernetes-the-hard-way/pull/308


Handling Validation Stringency without repeated code

We have some duplicated code here and here for throwWarnOrNone(). This may belong in adam.util, and can afford to be generic (as in the GenomicRDD implementation). This should hopefully also make it easier in the future to simply use it in all cases of ValidationStringency in the future.

Closing as WontFix


Unable to integrate with mist

Need assistance with integrating github as webhook for mist

Hi,
Can you elaborate what you want to achieve?

Hi Thomas,
I am trying to set up webhook for alerts from Mist.
But I get error : 405
On Thu, Aug 11, 2022 at 5:41 PM Thomas Munzer @.***>
wrote:

Hi,
Can you elaborate what you want to achieve?
—
Reply to this email directly, view it on GitHub
https://github.com/tmunzer/mist_chrome_extension/issues/12#issuecomment-1211905684,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKXOQX2C4ZG33P337SOBGE3VYTUXRANCNFSM56H4QFLQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Bipinchandra
Mobile no:<PHONE_NUMBER>

Thanks.
Are you sure you are using a POST method to configure the webhook?
Can you also instead reach me on my email @juniper email address? This issue is not tied to this repo :)
Thanks,

I want to have alerts generated from mist dashboard to my github account.
On Thu, 11 Aug, 2022, 5:41 pm Thomas Munzer, @.***>
wrote:

Hi,
Can you elaborate what you want to achieve?
—
Reply to this email directly, view it on GitHub
https://github.com/tmunzer/mist_chrome_extension/issues/12#issuecomment-1211905684,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKXOQX2C4ZG33P337SOBGE3VYTUXRANCNFSM56H4QFLQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.10.43",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c8d5faee46242c3f33b8a71a4d7d52214785bfcc"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "c8d5faee46242c3f33b8a71a4d7d52214785bfcc",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "ocfs2: fix data corruption by fallocate\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.43 by commit c8d5faee46242c3f33b8a71a4d7d52214785bfcc, it was introduced in version  by commit . For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1000781


Allow files creation in /tmp on OpenBSD

src/protector/protector_openbsd.go: add tmppath for pledge permissions
fix junegunn/fzf#3511

Thanks!


FIX - Root Element Lookup Not Context Lookup

When using getElements to reproduce the behavior of @ember/test-helpers then findElements needs to use getRootElement otherwise the context for acceptance tests is the inner HTML element and not the test container Ember application.
This causes issues with things like ember-modal-dialog and other top level wormholes that would usually be found by find and the Ember test helpers but are failing with ember-cli-page-object.

Coverage increased (+0.001%) to 98.643% when pulling 24cc52ecdc00810b57bcfb207b36c0a7cade7a6c on rtablada:rt/fix-root-element-lookup into b1d3dd8dbfcb94670b55fcbc9a22df56092509fb on san650:master.

I'm 👍 on the PR, but have a point of clarification. I believe that this will change the behavior of formerly-integration tests, while preserving the behavior of formerly-acceptance tests.
What I mean is that the legacy integration context uses the equivalent of this.$(selector) to find elements, so without specifying a custom testContainer integration tests would not find content inside the root element but outside this.element. The legacy acceptance context uses the old find() helper, which searches inside the application's root element -- the equivalent of $(selector, getRootElement()), so without specifying a custom testContainer, acceptance tests would find content inside the root element but outside this.element.
With RFC232/268, we only have one execution context, and it currently searches inside this.element, which matches the behavior of the legacy integration test context. This PR changes it to search inside getRootElement(), which matches the legacy acceptance test context.
It has to differ in behavior from either the legacy acceptance test context or the legacy integration test context, and I think searching inside getRootElement() is the better way to do it, especially because that matches the behavior of @ember/test-helpers, and I believe of qunit-dom.
But I think it's worth mentioning and considering that this will change the behavior of formerly-integration tests. I'm not sure if it's worth putting in some documentation somewhere, since the only test failures I could think of that this change would cause would be if a test were depending on not finding an element inside the root but outside this.element...

For integration tests this should still work. If you set the context for the test using page.setContext then nothing will change with this PR since it only changes the behavior of the else when the context is not changed.
We have both acceptance and integration tests running with this so I will double check that everything is fine.
As far as compatibility with setupApplicationTest and setupRenderingTest, the find, click etc, from @ember/test-helpers are always pinned to getRootElement

Oh sorry, I wasn't clear -- I meant across an update. So if you update an integration test from old-style to RFC232-style without changing your page objects, then they will behave different with this PR, whereas previously they would have behaved the same (and the reverse is true of updating acceptance tests).
Existing legacy integration tests won't change (although existing RFC232/268 tests will change, but not in a way that is very likely to break anything.)

@bendemboski just checked.
We updated all of our integration tests to the 232 style and after this change there was not a behavior shift.
We are being explicit and setting the page context as outlined in this suggested enhancement: https://github.com/san650/ember-cli-page-object/issues/444

LGTM, will test it in few apps tomorrow.

Published as v1.15.2 🎉
Thank you guys!


Syntax highlighting doesn't give the var or function keywords in js a special colour

It really looks strange:

Fixed in master


Create DetektBasePlugin

Create DetektBasePlugin for DGP. This is used to apply configuration that's common to the Gradle plugin for the Kotlin compiler plugin as well as the classic plugin, which removes some duplication and should make it easier to reason about the responsibilities of each plugin.
The base plugin is responsible for creating the project extension and configuring it, as well as creating the detektPlugins configuration (which is used by both other plugins). The classic plugin sets up the detekt tasks for each compilation. The compiler plugin configures the compiler plugin tasks.

Warnings

:warning:
It looks like this PR contains functional changes without a corresponding test.

  Generated by :no_entry_sign: dangerJS against 87b9ca1ed07882fd71e5b595df3c5ced36a7371e


Beta platform screen reader accessibility issues

This accessibility feedback comes from Roger Newell, who has been working through www.freeCodeCamp.org using a screen reader fine, but is having a lot of trouble with beta.freecodecamp.org. Here is his feedback verbatim. We are looking for an accessibility-minded contributor to help improve these things.
He's discovered these issues using both the Windows screen reader NVDA and JAWS with Internet Explorer on Windows 10. Again, these are all his words:

Activating the "map", "step" and "community" buttons appears to do nothing about 99% of the time, and the other 1% of the times I tried, it takes me to the first lesson.

I am not an accessibility expert by any means, but perhaps someone with a little more knowledge in the field can check the "community" button. My screen reader announces that it is a "button menu", and the only times I have ever heard that description for a button on modern webpages have been on websites that are inaccessible. I am not saying that this button is inaccessible, but perhaps someone should just check on it?

When I see the types of challenges, activating a link such as "front-end libraries" for example does not seem to do anything apart from my screen reader announcing that the link is now a "visited link" and the page reloads.

When I am in the first part of the first challenge, pressing "go to my next step" does not do anything either.

When you search for something use the search field, the results (assuming that they do display) also cannot be seen with either screen reader.

Using both of the aforementioned screen readers, the words in the links for the different types of challenges are spoken with hyphens between each word such as "data-visualization". Even if this is how they appear in print, it is not considered correct accessibility practice as it sounds rather awkward to hear "data dash visualization" which is how a screen reader would normally pronounce such a string.

Finally,WAI-ARIA landmarks are not used as often as they should be on these pages, and at least in the first challenge, there is no heading to separate the map from the content of the lesson--there are headings in the current version of the website.

OK - so @inscriptioelectronicaaustralia tried using freeCodeCamp in Chrome, and he said virtually all of these issues are resolved, except for the issues explained in https://github.com/freeCodeCamp/freeCodeCamp/issues/12431. Since we don't intend to support IE at this point, I'm closing this issue as wontfix.


Update Report Razor Issue privacy notices

Obfuscate the username from the copied Razor issue if possible?
Update privacy notice to read Privacy Alert! The contents copied to your clipboard may contain personal data. Prior to posting to GitHub, please remove any personal data which should not be publicly viewable. https://privacy.microsoft.com/en-US/privacystatement

b20c567622bfa14364f1ad46cdda84bc9c03c4ee


Allow to remove default actions on MessageThread component

I hesitated in creating an issue instead of a RFE.
As far as I understood the API, today the component is not usable in our context since we cannot disable several unwanted actions.
What feature are you requesting?
I'd like to disable actions on chat messages when using MessageThread component @azure/communication-react
What would be the benefit of adding this feature?
To not pollute the UI with unexpected /unused features.
What solution would be ideal for you?
Have an API to disable actions or even better an API to register actions instead of the standard ones.
If no actions are registered then nothing is shown.
What alternatives have you considered?
Could use directly @fluentui/react-northstar but that would mean code again a lot of things instead of using MessageThread component.
Is there any additional information for your request?
no
Attach screenshots or images add detail to your request:

Hi, you can use the prop disableEditing to remove the flyout menu, just need to pass disableEditing={true} to messageThread component. Let me know if this resolves your issue!


Tidy up "empty" lastDelivery entries in reports

The iOS app has been updated to set lastDelivery to be optional in the Realm model: https://github.com/WildAid/o-fish-ios/pull/269
The database and sample data should be updated to replace any BoardingReports documents to set lastDelivery to null if the current delivery date is set to1 970.

 Raise new issues resulting from using/testing the apps


QueryParser returns an error when the query only contain stop words

If the query is empty, we currently return an empty Clause which is equivalent to an empty query.
One would therefore expect havng a single stop word, to have the same behavior.

Indeed it does. What should the experience be for the caller if they supplied such a query? I'm happy to make it a better experience.

Yes i spotted that thanks to you example actually :). I think it is fair to consider it a bug.


Add promtail enabling/disabling to observability-bundle

towards https://github.com/giantswarm/roadmap/issues/2054
In order to enable/disable promtail-app on capa cluster.
This app is embedded in the observability-bundle.
What this PR does / why we need it
Checklist

[ ] Update changelog in CHANGELOG.md.

Trigger e2e tests

/test create
/test upgrade

can this be closed @marieroque ?


Add a tutorial to the docs

I think we should have a section that walks through setting up Ruff, in a way that's linear rather than encyclopedic.

Maybe, flake8-to-ruffshould be mentioned.


Notice: Undefined offset: 1  in hpp.phtml on line 49

Using 2.5.3.
2016-02-29T14:49:57+00:00 ERR (3): Notice: Undefined offset: 1  in app/design/adminhtml/default/default/template/adyen/info/hpp.phtml on line 49

Hi Shirtofholl,
That could be indeed. it will then use different code to show the label. Not a real issue but i  added a isset() so this error notice will not occure see commit above.
Regards,
Rik

Hi rik, after installing 2.5.4 we still see this error.
2016-03-04T19:33:42+00:00 ERR (3): Notice: Undefined offset: 1  in app/design/frontend/base/default/template/adyen/info/hpp.phtml on line 43


feat: Add four new endpoints - Connections, Environments, Repositories, Users

Data originating from the existing endpoints can be enhanced by adding four new endpoints.
For example, the Jobs endpoint returns records such as:
{
    "type": "RECORD",
    "stream": "jobs",
    "record": {
        "generate_docs": false,
        "id": 590,
        "account_id": 1,
        "project_id": 1,
        "environment_id": 2,
        "name": "ODS HPI Prd",
        "dbt_version": null,
        "execute_steps": [
            "dbt build -s +dwh_ods.hpi",
            "dbt run-operation upload_dbt_artifacts --args '{filenames: [run_results]}'"
        ],

Where environment_id corresponds to an environment in dbt Cloud. It would be useful if the Environments endpoint were able to be queried, as this would return the corresponding Environment with id = 2, giving environment name and other useful values:
{
    "type": "RECORD",
    "stream": "environments",
    "record": {
        "id": 2,
        "account_id": 1,
        "repository_id": 8,
        "created_by_id": null,
        "name": "uat",
        "use_custom_branch": true,
        "custom_branch": "develop",
        "dbt_version": "1.3.0-latest",
        "supports_docs": true,
        "state": 1
    },
    "time_extracted": "2023-05-25T01:35:50.070266+00:00"
}

further, the environment record contains repository_id, so it could be useful to have the RepositoriesStream, bringing through the record:
{
    "type": "RECORD",
    "stream": "repositories",
    "record": {
        "id": 8,
        "account_id": 1,
        "remote_url": "xxxx",
        "remote_backend": "gitlab",
        "git_clone_strategy": "xxx",
        "deploy_key_id": xxxx,
        "github_installation_id": xxxxx,
        "created_at": "2021-08-12T22:50:40.694931+00:00",
        "updated_at": "2021-08-12T22:50:40.694946+00:00",
        "state": 1
    },
    "time_extracted": "2023-05-25T01:41:47.658076+00:00"
}

To conclude, I went through the open_api schema available at:
https://raw.githubusercontent.com/fishtown-analytics/dbt-cloud-openapi-spec/master/openapi-v3.yaml
And added any endpoint I could find that either:

has a Response object
has get tag in the paths: tag
is at the accountId level and no further Ids appear on the endpoint URI (e.g. not things like: /accounts/{accountId}/runs/{runId}/artifacts/)

and crucially, the new endpoints that I have added I was able to successfully query using the modified tap with at least one API key :)
404 warning - Some endpoints are only available to privileged users, and the API appears to handle this at our site by return 404 if the endpoint is not reachable. I don't know how to handle this error properly in the Meltano SDK - the fix for me would be to "not select" the stream, e.g. I have had varying success querying {accountId}/repositories/ with different API keys.

Hang on - fixing and adding tests...

pre-commit.ci autofix

This is done as far as I can manage - unsure how to resolve the 8 function arguments down to < 5 to pass the final pre-commit check, may need a bit of a refactor.

Thanks for the PR! I've tagged @edgarrmondragon to take a look when he has some time.

Thanks @mjsqu! I'll cut a release later today 🙂


DEV-763 Updated deterlab_project entity: change id type to long

SonarQube analysis reported 1 issue

 1 minor

Watch the comments in this conversation to review them.


Populate validation metadata

Is your feature request related to a problem? Please describe.
Raising this issue fully aware that @JeremySkinner won't be maintaining the FV AspNetCore library for much longer...the purpose of the issue is to hopefully have a discussion rather than in expectation of a feature being merged.
In a current development task, I am coding custom tag helpers that will emit form fields.
The intention is for the tag helper to inspect For.Metadata.IsRequired; when that property is True then the tag helper will emit a required field asterisk adjacent to the field.
When using the Required attribute in data annotations, a metadata provider populates IsRequired (and the ValidatorMetadata list), but when switching to FluentValidation that's not the case.
I'm interested to learn if @JeremySkinner considered extending FV's ASP.NET integration to populate the metadata.
Describe the solution you'd like
I've made an attempt at it in a local sandbox app, and it seems to be working albeit after very limited testing.
The solution includes the following:

FluentValidationModelMetadataProvider (subclasses DefaultModelMetadataProvider).
FluentValidationModelMetadata (subclasses ModelMetadata and wraps a DefaultModelMetadata, due to lack of extensibility of the latter).
FluentValidationModelMetadataDetails (subclasses DefaultMetadataDetails).
FluentValidationMetadataProviderContext (subclasses ValidationMetadataProviderContext).
FluentValidationCustomValidationMetadataProvider (implements IValidationMetadataProvider).

In Program.cs, before calling AddFluentValidationAutoValidation:
services.AddSingleton<IModelMetadataProvider, FluentValidationModelMetadataProvider>();

services.Configure<MvcOptions>(options => {
    options.ModelMetadataDetailsProviders.Add(new FluentValidationCustomValidationMetadataProvider());
});

Describe alternatives you've considered
I've previously worked around the lack of metadata by relying on client script to look for data-val-required on the element and inject the asterisk, but I would prefer not to rely on this (since client validation might not be enabled, and when it is there's a slight delay while the script runs before the asterisks appear).
Additional Context
If it's worthwhile I'd be happy to share the code for further discussion or open a PR.
I know the automatic validation approach is discouraged due to its limitations, but for my dev scenarios I still find it incredibly useful. I expect I'll use the metadata population code in future dev projects even if it's not merged into FV itself.

I considered this in the past but in the end decided against it and felt it was out of scope, as the ModelMetadata stuff doesn't directly impact valdiation (as opposed to the ModelValidatorProvider bits).
That being said if you or other members of the community would consider it valuable and want to develop/support a package that does this then I'd be happy to provide any guidance where necessary and would be happy to link to it from the FluentValidation doc site, although it's not something I'd want to develop/support myself.

Thanks @JeremySkinner, I'm not sure if there's much or any clamour out there for the feature or if it's just me.
I wouldn't be against developing a small package and would appreciate any guidance you can offer, but if it would have a user base of one then it's probably not worth our time.
In terms of loading the validator inside the tag helper, I don't think I can go that way in my scenario as the tag helpers are being developed in their own NuGet package so can't take that dependency or assume FV is in use.


Keep changelog up to date or delete it

CHANGELOG.md is 8 months out of date. It would be good to either keep it up to date with each new release, or just delete it.
I always advocate for a changelog, but since node-sass's changelog has only ever consisted of links to the GitHub releases page, maybe just deleting it would be the best option and then nobody would have to worry about keeping it up to date.
Or the entire contents could just be replaced by:
See https://github.com/sass/node-sass/releases

I see the value of the CHANGELOG for people looking at their local node_modules to see what changed. What we probably need is a script that can keep the changelog updated automatically as part of tagging the new release

Agreed, except that at present it contains no information other than links to the GitHub Releases page anyway.
Ideally it would contain the same information that is currently on the Releases page.
Perhaps conventional-changelog could be used if a commit message convention were enforced.


Just some thoughts

Use DataTemplates
Use Commands
Use less events in the end :-)

Superseded by 8 commits (4 majors)

I give up. I am not willing to write the entire App for you. Just wanted to point out how things work in general. But we have complete different Approaches of doing things. I don't say that yours is wrong, it is just not my cup of tea. So I'll leave it to you. I whish you success anyway.

Writing an entire app was not the point, i was expecting to learn another approach, not prone to issues present in Avalonia since at least a year ago (routing).
I removed most of the DataContextChanged jank
to viewmodels and subscribed to neccessary events directly from MainView using the DataContext.
Still not entirely statisfied with that approach but, i find it better than the way it was before.


Add Binary Search in Multinomial Sampling code

Current coverage is 67.74%

Merging #63 into master will increase coverage by +0.40% as of 7ebb9b7

@@            master     #63   diff @@
======================================
  Files           19      19
  Stmts          591     620    +29
  Branches        82      87     +5
  Methods          0       0
======================================
+ Hit            398     420    +22
- Partial         19      20     +1
- Missed         174     180     +6

Review entire Coverage Diff as of 7ebb9b7

Powered by Codecov. Updated on successful CI builds.


Null Safety Update

Looks like this currently doesn't support null safety. Any plans to update?

I have migrated the code to null safety


(Thunderbird) Update docsUrl to new location

Description
docsUrl now points to https://developer.thunderbird.net
Motivation and Context
The Thunderbird docs have moved off MDN after the recent reshuffle there. The old docsUrl is now 404ing,
which causes the automatic updates of Thunderbird on Chocolatey to fail verification. This change fixes the
'The DocsUrl element in the nuspec file should be a valid Url' error during verification.
How Has this Been Tested?

Not tested, but only an update to a string in .nuspec file
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[ ] My change requires a change to documentation (this usually means the notes in the description of a package).
[ ] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[x] All files are up to date with the latest Contributing Guidelines
[ ] The added/modified package passed install/uninstall in the chocolatey test environment.
[x] The changes only affect a single package (not including meta package).

:white_check_mark: Package verification completed without issues. PR is now pending human review

Awesome work! Thanks for your contribution @danrr !


Meteor Login Logic creates a weird issue for me

The condition at react-native-meteor-boilerplate/RNApp/app/index.js
if (status.connected === false || loggingIn) {
    return <Loading />;
  } else if (user !== null) {
    return <LoggedIn />;
  }
  return <LoggedOut />;
};

I get a weird issue where the user is authenticated, but the user object is null for a split second and the login screen flashes. Any idea how to fix this?

I was also thinking if it would make sense to save a 'authStatus' with AsyncStorage so that this conditional can fire much quicker in the event the login status a few seconds. Would that make sense?

I foolishly used AND operator on the first logic statement -_- Changed it to an OR and it works great. Thanks again for this dope repo!

Doh! Glad you got it sorted out


Update README

Original issue: https://charm.cs.illinois.edu/redmine/issues/804

Contributors and current developers list at the end is about 5 years out of date.  Shift current up into former, add PPLers from the missing years, and put the current core team in as developers.

Original author: Nikhil Jain
Original date: 2015-10-26 17:26:23

~~https://charm.cs.illinois.edu/gerrit/#/c/871/~~ https://github.com/UIUC-PPL/charm/commit/f5468a2e4d66116bb9c25412264992cd1423dd6e

Original date: 2015-11-11 03:05:23

Set status back to Merged so that we can distinguish whether the code was changed in some way, or the fix was elsewhere. Both are non-open states from Redmine's perspective.


added cuisine dropwdown

added bootstrap link and dropdown menu. pull the branch(or gitclone) and test on live server.

amazing work!


Ubuntu Packaging Guide: Add explanation about SRU

Context
The Ubuntu Packaging Guide (UPG) is undergoing a rewrite that's intended to bring it up-to-date with current processes and state of the art. A part of that effort includes streamlining various topics and making them more user-friendly and compliant with Diataxis framework.
One of these topics is Stable Release Update (SRU). Given that SRU is a complex process and its docs are lengthy, the UPG will only have a brief explanation of what it is and then links to detailed docs elsewhere.
Task
Add an explanation article (following Diataxis guidelines about 'explanations') about SRU to the UPG at stable-release-updates.rst.
Reference
Use the following resources to learn more about the process to be described as well as the Diataxis framework and the existing UPG content.

Ubuntu wiki: StableReleaseUpdates
Old UPG: Security and Stable Release Updates
Diataxis: Explanation
ReadTheDocs: Ubuntu Packaging Guide
GitHub: ubuntu-packaging-guide

@rkratky I would like to work on this

Hi @activus-d. Great -- thanks for picking this up. I have assigned you to the issue. Let me know if you have any questions.

@rkratky I have made a pull request to solve this issue, and it is now available for your review.

Referencing: https://github.com/canonical/ubuntu-packaging-guide/pull/69

This has been merged into the Packaging Guide. Thanks, @activus-d!


resnet50 traning error on cpu using offical example

Environment
Hardware Environment(Ascend/GPU/CPU):

Uncomment only one  /device <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:
/device cpu

Software Environment:

MindSpore version (source or binary):0.1
Python version (e.g., Python 3.7.5):Python 3.7.5
OS platform and distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 18.04
GCC/Compiler version (if compiled from source): gcc 7.5.0

Describe the current behavior
I try to execute example/resnet50_cifar10/training.py, the the error log shows " BiasAddGrad input y backprop, dim should >= 2, while 1". It seems like the errors in the process of constructing graph.
Describe the expected behavior
no errors
Steps to reproduce the issue

download cifar10-binary
export DEVICE_NUM=1 in bash
export RANK_ID=1 in bash
chang the default dataset path to mine path
set device_target='CPU'
set enable_loop_sink=False
pass 'dataset_sink_mode=False ' to model.train
python ./train.py

Related log / screenshot
[ERROR] ME(32429,python):2020-04-03-10:53:16.561.678 [mindspore/ccsrc/operator/prim_nn.cc:258] InferImplBiasAddGrad] BiasAddGrad input y backprop, dim should >= 2, while 1.
Traceback (most recent call last):
File "train.py", line 99, in
model.train(epoch_size, dataset, callbacks=cb,dataset_sink_mode=False)
File "/home/jianliu/anaconda3/envs/mindspore_env/lib/python3.7/site-packages/mindspore/train/model.py", line 387, in train
dataset_sink_mode=dataset_sink_mode)
File "/home/jianliu/anaconda3/envs/mindspore_env/lib/python3.7/site-packages/mindspore/train/model.py", line 230, in _train
self._train_process(epoch, train_dataset, list_callback, cb_params)
File "/home/jianliu/anaconda3/envs/mindspore_env/lib/python3.7/site-packages/mindspore/train/model.py", line 324, in _train_process
outputs = self._train_network(*next_element)
File "/home/jianliu/anaconda3/envs/mindspore_env/lib/python3.7/site-packages/mindspore/nn/cell.py", line 141, in call
out = self.compile_and_run(*inputs)
File "/home/jianliu/anaconda3/envs/mindspore_env/lib/python3.7/site-packages/mindspore/nn/cell.py", line 292, in compile_and_run
_, compile_flag = _executor.compile(self, *inputs, phase=self.phase)
File "/home/jianliu/anaconda3/envs/mindspore_env/lib/python3.7/site-packages/mindspore/common/api.py", line 363, in compile
result = self._executor.compile(obj, args_list, phase, use_vm)
RuntimeError: mindspore/ccsrc/operator/prim_nn.cc:258 InferImplBiasAddGrad] BiasAddGrad input y backprop, dim should >= 2, while 1.
The function call stack:
0  In file /home/jianliu/anaconda3/envs/mindspore_env/lib/python3.7/site-packages/mindspore/nn/wrap/cell_wrapper.py(64)
def construct(self, data, label):
Special notes for this issue

Does the current version supports training resnet50 ? I notice the readme shows not supporting

Hi @liuchanchen, currently there are limited models supported in MindSpore with CPU and GPU backend, but we are working on improving it (see MindSpore Roadmap).


error: running 'scrapy crawl' with more than one spider is no longer supported

I keep getting this error while including batting_file=batters.csv (works fine w/o batting_file=batters.csv). Not sure if you are able to help.
Error: running 'scrapy crawl' with more than one spider is no longer supported
scrapy crawl steamerpro -a batting_file=batters.csv player_ids=13611,2396,6184,13624,3269,5222,7859,3174,11368,9744,9776,19198,1177,12984,7476,15447, -o ../../../../../../var/www/html/myteam.json

never mind, figured it out. need to append '-a' before each argument


Update installing-si-using-docker.md

Purpose
Fix typo with installing in Docker command in https://apim.docs.wso2.com/en/latest/install-and-setup/install/installing-the-product/installing-in-containers/installing-si-using-docker/
Goals
Fix issue https://github.com/wso2/docs-apim/issues/8333
Documentation
https://apim.docs.wso2.com/en/latest/install-and-setup/install/installing-the-product/installing-in-containers/installing-si-using-docker/
Security checks

Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes
Ran FindSecurityBugs plugin and verified report? yes
Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes

Closing this PR as SI documentation is no longer maintained under APIM documentation.


Digital Clock Project

Title: Digital Clock
Tech Tools: Html, Css and Js
Expected behavior
A digital clock displays the time in numerals or other symbols, as opposed to an analog clock. Digital clocks can be found on watches, phones, or alarm clocks. They can display the time in both 12 and 24-hour formats.
Screenshots (mandatory)

Additional context (Mandatory )

I am a contributor in OSEN open source programme

Hi @Geeks-Arpan , I would like to work on this issue . Can you please assign it to me?

@apu52 pls assign me

@Pooja1672 Please try to make a new Issue on which project you want to work on


when build Android, "Java compiler not found"

When build Android, it throw:
Java compiler not found; Be sure to use java from a JDK
rather than a JRE by modifying PATH or setting JAVA_CMD.
And there is   "D:\Program Files\Java\jdk1.8.0\bin;"   in the Path
I just don't know how to fix it,   (⊙﹏⊙) ？

Try adding appending D:\Program Files\Java\jdk1.8.0 to the PATH

@Immortalin Thanks, I'll try

me too..

but , in my PATH

in my console：my java version

Thanks.

Now that I've updated to the latest lein-droid, I'm hoping this issue is resolved. Please let me know if otherwise.


SAA-1027: Filter out candidates on the Waiting List from the candidates list

Candidates who have a PENDING or APPROVED waiting list application should not appear in the list of suitable candidates

Codecov Report
Patch coverage: 80.00% and project coverage change: +0.41% :tada:

Comparison is base (7d243e1) 84.78% compared to head (97db659) 85.20%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #504      +/-   ##
============================================
+ Coverage     84.78%   85.20%   +0.41%
- Complexity     2334     2347      +13
============================================
  Files           294      294
  Lines          8585     8590       +5
  Branches        543      544       +1
============================================
+ Hits           7279     7319      +40
+ Misses         1038      993      -45
- Partials        268      278      +10

Files Changed
Coverage Δ

...tivitiesmanagementapi/service/CandidatesService.kt
71.54% <75.00%> (+21.96%)
:arrow_up:

...hmppsactivitiesmanagementapi/entity/WaitingList.kt
100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Check DTM in Tablebases as it returns 0 when there is no check mate

For comparison the exercise below seems to show DTM correctly:

Use info at https://github.com/lichess-org/lila-tablebase to make the implementation robust


[samples] (CSV) CSV parser can detect first-row blank cells

Fixes #461.
This fix allows for the first cell in a CSV string to be blank.
Note to reviews: You can avoid making the whole flow and just test the scripts by adding this line to the being of the script:
csv = `,3,1,2\r\n2,,5,6\r\n,6,4,3`;

Docs Build status updates of commit a4d2808:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/resources/samples/convert-csv.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


discord.js v14 compatibility

Currently in progress: https://github.com/psibean/discord.js-pagination/tree/feature/update-discordjs-v14
Example app is partially working, just some bugs with the select menu options, however using SelectMenuOptionsBuilder#from doesn't seem to help as implied by the errors when using /advanced-pagination

Any updates for v14 support?
Thanks for the great work ❤

Any updates for v14 support?
Thanks for the great work ❤

Unfortunately no progress here since, I suspect it still has the same problems and I haven't had the chance to dig into it. I'm happy for anyone else to dive in and give it a shot. The idea is to update discord.js to the latest for both the dev dependency, and for the example app, then test the example app and ensure they all work. Currently only one of them works, and last time I was trying, it seemed like there were some funky issues with the discordjs structures not automatically converting to / from their concrete class structures on a nested level, so it got kinda confusing.
Results may differ with the latest v14 minor/patch version

I'll make a fork and dig into it; But sending paginators regardless of which from the example app always seems to result in an error relating to the description field being empty; But looping through the array and sending them as Embed works absolutely fine.

I'll make a fork and dig into it; But sending paginators regardless of which from the example app always seems to result in an error relating to the description field being empty; But looping through the array and sending them as Embed works absolutely fine.

Yep, the description / structure of the messageOptions being sent is invalid. But in this case, it seems to be an internal problem with djs. For example, if you use straight up JSON data, but then some of the children are discordjs builders instead, they don't get evaluated to their json equivalents, and thus they end up as invalid.
For the component paginators, I believe this has something to do with the getMessageOptions and the get component parts returning a mix of json and djs builders. I didn't get that far into it.

Yep, the description / structure of the messageOptions being sent is invalid. But in this case, it seems to be an internal problem with djs. For example, if you use straight up JSON data, but then some of the children are discordjs builders instead, they don't get evaluated to their json equivalents, and thus they end up as invalid.
For the component paginators, I believe this has something to do with the getMessageOptions and the get component parts returning a mix of json and djs builders. I didn't get that far into it.

I'm yet to do further testing for alternative Pagination reply types; However changing the following to the following snipper (after); Seems to have resolved the error being returned entirely, I'll need to test the other paginators, but for all intensive purposes, the button paginator works.
if (this.useCache && options.pages && options.pages.length > 0) {
      const { pages } = options;
      pages.forEach((page, pageIndex) => {
        this.pages.set(pageIndex, page);
      });
    }

    if (this.useCache && options.pages && options.pages.length > 0) {
      const { pages } = options;
      pages.forEach((page, pageIndex) => {
        this.pages.set(pageIndex, page.toJSON());
      });
    }


Update active-directory-b2c-devquickstarts-api-node.md

Fixed name of passport-azure-ad plugin.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@seanharver : Thanks for your contribution to the Azure documentation! The author, @dstrockis, has been notified to review your proposed change.

Hi @seanharver, Thanks for the contribution.  Your change looks good. Thanks for finding the error.
Thanks again,
Pat
Requesting #sign-off for author @dstrockis.

@PatAltimore - For these where you aren't the author, just send mail to the review team.


Bug: create plugin update clobbers overridden build/build:dev/dev scripts

Which package(s) does this bug affect?

[X] Create Plugin
[ ] Sign Plugin
[ ] Plugin E2E

Package versions
<EMAIL_ADDRESS>
What happened?
I have a custom webpack.config.ts so modified the scripts in my package.json to point to ./webpack.config.ts instead of ./.config/webpack/webpack.config.ts. When I run yarn create @grafana/plugin update, it always overrides the scripts back to using the original webpack config file.
What you expected to happen
If the scripts have been customised, they should be ignored by the update process.
How to reproduce it (as minimally and precisely as possible)

Create a plugin
Modify the build script to point to a different webpack config
Run yarn create @grafana/plugin update
Notice that the build script has been modified

Environment
❯ npx envinfo --system --binaries --browsers --npmPackages="@grafana/*"

  System:
    OS: macOS 14.4
    CPU: (8) arm64 Apple M1
    Memory: 474.27 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/Library/Caches/fnm_multishells/30971_1710406991088/bin/node
    Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/30971_1710406991088/bin/yarn
    npm: 10.2.4 - ~/Library/Caches/fnm_multishells/30971_1710406991088/bin/npm
  Browsers:
    Chrome: 122.0.6261.129
    Firefox: 123.0.1
    Safari: 17.4
  npmPackages:
    @grafana/eslint-config: ^6.0.1 => 6.0.1

### Additional context

_No response_

@jackw mind taking a quick look? If just needs putting on the backlog as a bug feel free to do so and remove yourself as assignee if not able to look at in the near term

This is a known issue that we're gonna need to put some thought into to help devs selectively update the various parts of their project when running the command. I'm gonna remove myself for the time being and try to get a proposal together on how that could look.


Skip the isAlwaysTrue and isAlwaysFalse optimizations for NULL support.

Skip the dictionary based predicate evaluator isAlwaysTrue and isAlwaysFalse optimizations when NULL handling is enabled. This is because NULL and a non-NULL value share the same dictionary ID, which makes the isAlwaysTrue and isAlwaysFalse incorrect.

Codecov Report

Merging #11261 (d59ed4c) into master (49fe4f2) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master   #11261      +/-   ##
==========================================
- Coverage    0.11%    0.11%   -0.01%
==========================================
  Files        2229     2229
  Lines      119959   119960       +1
  Branches    18173    18174       +1
==========================================
  Hits          137      137
- Misses     119802   119803       +1
  Partials       20       20

Flag
Coverage Δ

integration1temurin11
0.00% <0.00%> (ø)

integration1temurin17
0.00% <0.00%> (ø)

integration1temurin20
?

integration2temurin11
0.00% <0.00%> (ø)

integration2temurin17
0.00% <0.00%> (ø)

integration2temurin20
?

unittests1temurin11
?

unittests1temurin17
?

unittests1temurin20
?

unittests2temurin11
?

unittests2temurin17
0.11% <0.00%> (ø)

unittests2temurin20
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

...inot/core/operator/filter/FilterOperatorUtils.java
0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Multiple Limit/order by in Cypher

What i want to achieve is this RAW cypher with Neo4jClient:
MATCH (artist:Artist)<-[similarRelation:SIMILAR]-(artist2:Artist)<-[:ON]-(music:Music)
WITH music, similarRelation LIMIT 1
WITH music, COUNT(similarRelation) as countRelation ORDER BY countRelation DESC
WITH music, countRelation
......
LIMIT 10

But adding this in a with does not work
.With("music, similarRelation LIMIT 1")
or
.With("music, similarRelation LIMIT 1 as similarRelationWithLimit")
i see someone also posted this on stackoverflow a long time ago.

I don't know what the problem is, the code you've tried generates what you're after.
var q = new CypherFluentQuery(client)
    .Match("(artist:Artist)<-[similarRelation:SIMILAR]-(artist2:Artist)<-[:ON]-(music:Music)")
    .With("music, similarRelation LIMIT 1")
    .With ("music, COUNT(similarRelation) as countRelation ORDER BY countRelation DESC")
    .With ("music, countRelation");

q.Query.DebugQueryText.Dump();

Generates:
MATCH (artist:Artist)<-[similarRelation:SIMILAR]-(artist2:Artist)<-[:ON]-(music:Music)
WITH music, similarRelation LIMIT 1
WITH music, COUNT(similarRelation) as countRelation ORDER BY countRelation DESC
WITH music, countRelation

Or to match what the StackOverflow post was talking about, you could do this:
var q = new CypherFluentQuery(client)
    .Match("(artist:Artist)<-[similarRelation:SIMILAR]-(artist2:Artist)<-[:ON]-(music:Music)")
    .With("music, similarRelation")
    .Limit(1)
    .With ("music, COUNT(similarRelation) as countRelation ORDER BY countRelation DESC")
    .With ("music, countRelation");

q.Query.DebugQueryText.Dump();

and you get:
MATCH (artist:Artist)<-[similarRelation:SIMILAR]-(artist2:Artist)<-[:ON]-(music:Music)
WITH music, similarRelation
LIMIT 1
WITH music, COUNT(similarRelation) as countRelation ORDER BY countRelation DESC
WITH music, countRelation

Which is also what you wanted (albeit with an extra CR/LF there)
What problem are you actually getting?

No response. Closing.


Pharaoh's Sceptre left-click teleports

Is your feature request related to a problem? Please describe.
Jagex somewhat recently changed the left-click option on the Pharaoh's sceptre to 'wield' in an attempt to crack down on lures that involve this item. This made training Thieving through Pyramid Plunder slightly more tedious by requiring more inputs. The 'Menu Entry Swapper Extended' plugin from the hub has a feature that's supposed to let you toggle the left-click option on the sceptre, but it doesn't seem to work, probably due to this default change from 'teleport' to 'wield'.
Describe the solution you'd like
Would be rad if someone made the entry swapper actually work on the Pharaoh's sceptre again.

Issues and suggestions for hub plugins must be made on that plugin's repository; they are not maintained by us. The repo is usually accessible from the Support link on the plugin.


Fixes mysql upgrade script stop error

Very little script fix. With #4032 I added a finally clause that made the script to stop executing and not doing any changes. This fixes that problem

[x] have a concise title
[x] close an accompanying issue if one exists
[x] be against the correct branch
[x] include migration scripts and documentation, if appropriate
[x] pass automated tests
[x] have a clean commit history
[x] have proper commit messages (title and body) for all commits

Looks good and fixes a critical bug → merging.
I kind of disagree with the try-catch here in general, but that's a separate issue and I will raise a separate pull request for that to have this fixed as soon as possible.