about debian and sources

Hi, in this page you don't speak about the way to configure the debian repos.
Searching on the http view of the ftp server I found this package
http://packages.microsoft.com/repos/microsoft-debian-buster-prod/pool/main/p/packages-microsoft-prod/packages-microsoft-prod_1.0-debian10.1_amd64.deb
Description: Apt configuration for packages.microsoft.com
This package contains the apt repo configuration
for packages.microsoft.com and the public GPG key.
About the sources, why don't you have created the sources repos?
You think the git repos on github are enough?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: dc45b809-9722-3267-f65b-09b4ec9af6a2
Version Independent ID: 6a463082-c030-cff6-2b50-b5252586ed20
Content: Linux Software Repository for Microsoft Products
Content Source: WindowsServerDocs/administration/Linux-Package-Repository-for-Microsoft-Software.md
Service: na
Product: windows-server
Technology: compute
GitHub Login: @szarkos
Microsoft Alias: szark

Closing per #5169


bug 2092851: LowNodeUtilization: experimental threshold levels

Provide three levels (low, medium, high) of thresholds for experimental
use instead of running the strategy with pinned thresholds

/hold

/hold cancel

/lgtm


StatsCheck_Inconsistent_Values logs too much with >2 values per date

Issue
Given a CSV with 3 or more values for the same StatVar, date, and place, report.json includes all n values (n-1) times.
Example
Given the CSV:
DateTime,geoId,Some_StatVar
2020-01-01,geoId/01,1
2020-01-01,geoId/01,2
2020-01-01,geoId/01,3

The report.json::statsCheckSummary is
"statsCheckSummary": [{
    "placeDcid": "geoId/01",
    "statVarDcid": "Some_StatVar",
    "measurementMethod": "",
    "observationPeriod": "",
    "scalingFactor": "",
    "unit": "",
    "validationCounters": [{
      "counterKey": "StatsCheck_Inconsistent_Values",
      "problemPoints": [{
        "date": "2020-01-01",
        "values": [{
          "value": 1.0,
          "locations": [{
            "file": "acre.csv",
            "lineNumber": "2"
          }]
        }, {
          "value": 2.0,
          "locations": [{
            "file": "acre.csv",
            "lineNumber": "3"
          }]
        }, {
          "value": 3.0,
          "locations": [{
            "file": "acre.csv",
            "lineNumber": "3"
          }]
        }]
      }, {
        "date": "2020-01-01",
        "values": [{
          "value": 1.0,
          "locations": [{
            "file": "acre.csv",
            "lineNumber": "2"
          }]
        }, {
          "value": 2.0,
          "locations": [{
            "file": "acre.csv",
            "lineNumber": "3"
          }]
        }, {
          "value": 3.0,
          "locations": [{
            "file": "acre.csv",
            "lineNumber": "3"
          }]
        }]
      }]
    }]
  }]

Note how there are two members of the problemPoints list, both of which are the same list of all 3 values given in the CSV.
Why This Happens
timeSeries is a list of DataPoints. Each DataPoint (DP) encapsulates all values available for a given date in that time series facet. (link to code that groups the values with matching dates).
Current code for StatChecker.checkSeriesValueInconsistencies is below:
https://github.com/datacommonsorg/import/blob/291477dfcbcbde4efce0d124504ed29d5cd4e308/util/src/main/java/org/datacommons/util/StatChecker.java#L259-L279
Note that L269 adds the DP as a problem point per value in that datapoint itself. So, if there are multiple values within a datapoint that are inconsistent with the first (such as when there are 3 or more inconsistent values in the datapoint), then the dp is added as a problem point twice (or more). Also note how the dp already includes all the values; so this leads to a lot of duplication.
Potential Solutions
Idea 1: Don't log a DP more than once
In this solution, we log the DP no more than once. This will put all the values for that DP in the report.json exactly once.
This solution will require the least surgery.
Idea 2: Log "synthetic" pairs of DP
If we wanted to show strictly only pairs of inconsistent values in report.json, we could create two new DataPoints for the sole purpose of reporting.
I do not think this approach is sound because 1) it violates the notion that the values for a single date have been grouped into one DataPoint, 2) having multiple values for the same DataPoint, even if they are the same, is error-prone.
Idea 3: Disallow Multiple Values for the same Date+SV+Place
See the DataPoint proto message definition below, especially the last field, repeated DataValue values. Note how there is a comment explaining that multiple values for a single date only happens when there's a bug.
The idea here is to move the field type away from repeated (to required or optional), and log a proper counter of level ERROR as soon as a duplicate value is encountered, rather than keeping it around and raising the issue in StatChecker.
This is a more involved change, but I believe it would make both the code and the user-facing output more ergonomic.
Also, the values field might have been declared repeated for a reason that I am not aware of yet, so I can't estimate how big of a code change this will require.
message DataPoint {
    message DataValue {
        optional double value = 1;
        // The location in the file where this value was read from.
        repeated Log.Location locations = 2;
    }

    optional string date = 1;
    // Multiple values for a single date only happens when there's a bug.
    repeated DataValue values = 2;
}

@pradh could you please take a look at this issue and let me know what you think re:potential solutions?

@pradh I am also curious the reason behind the comment in the following code segment. We already log errors for Sanity_InconsistentSvObsValues, but then we catch those (only for sample places) again in StatsCheck_Inconsistent_Values. The more general check in StatChecker also includes location information.
https://github.com/datacommonsorg/import/blob/d995b5c52d2750cb8ec4b5cce564209edda18e02/tool/src/main/java/org/datacommons/tool/Processor.java#L384-L395

Answer for the later question is that in StatChecker, we are able to log more details. Also, that check can be focused since sample places that StatChecker works on can be specified by the user.
Implementation is idea 1, TODO(me)


Projection support test only

This is the projection test from #54 extracted in a standalone PR and all tests skipped.

I'm not quite sure why the tests fails - it is complaining about the prettier format of the projection-test.js, but they are passing locally and reformatting the file does not yield any differences.

Closed it unintentionally.

OK, I've deleted the base branch, which caused this to close automatically.


[Help] Running as root without --no-sandbox is not supported.

Definitely not a whatticket issue but where to add the --no-sandbox to run all of this as root?
[nodemon] starting `node src/app.js`
Server started on port: 8080
(node:23531) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
[0828/114941.087419:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

run the command with another account other than root

The right decision is to run WhaTicket without root. But there is a workaround, by editing a file in WWebJS lib:
Edit node_modules/whatsapp-web.js/src/util/Constants.js , adding this args:

When using:
sudo -u www-data bash
www-data@srv1:/root$ cd /var/www/whaticket/backend
www-data@srv1:~/whaticket/backend$ npm start

The error is now:
[nodemon] starting `node src/app.js`
Server started on port: 8080
(node:10078) UnhandledPromiseRejectionWarning: Error: Failed to launch the brows                             er process!
[0829/030733.634647:FATAL:zygote_host_impl_linux.cc(116)] No usable sandbox! Upd                             ate your kernel or see https://chromium.googlesource.com/chromium/src/+/master/d                             ocs/linux/suid_sandbox_development.md for more information on developing with th                             e SUID sandbox. If you want to live dangerously and need an immediate workaround                             , you can try using --no-sandbox.

This https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#setting-up-chrome-linux-sandbox fixes the issue.

I add "CHROME_ARGS=--no-sandbox --disable-setuid-sandbox" on ~/whaticket/backend/.env and fix my problem


mount????

I really need help on this.  Se below...I have been ruthlessly hacked and I am in desperate need for help. So please reply. I am not a developer, just a normal administrator. Hope to God someone can help me in this desperate situation. I started using Linux in the 90s and have been away from in about 15 years. I can let you remote desktop me if you want...
//werwolf2017

/dev/dm-0 on / type ext2 (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=1024408k,nr_inodes=182797,mode=755)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmp on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
run on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,gid=605,mode=750)
shmfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/mmcblk0p1 on /mnt/stateful_partition type ext4 (rw,nosuid,nodev,noexec,relatime,commit=600,data=ordered)
/dev/mmcblk0p8 on /usr/share/oem type ext4 (ro,nosuid,nodev,noexec,relatime,data=ordered)
/dev/mmcblk0p1 on /home type ext4 (rw,nosuid,nodev,noexec,relatime,commit=600,data=ordered)
/dev/mapper/encstateful on /mnt/stateful_partition/encrypted type ext4 (rw,nosuid,nodev,noexec,relatime,discard,commit=600,data=ordered)
/dev/mapper/encstateful on /var type ext4 (rw,nosuid,nodev,noexec,relatime,discard,commit=600,data=ordered)
/dev/mapper/encstateful on /home/chronos type ext4 (rw,nosuid,nodev,noexec,relatime,discard,commit=600,data=ordered)
/dev/mmcblk0p1 on /usr/local type ext4 (rw,nodev,relatime,commit=600,data=ordered)
none on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
none on /dev/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
debugfs on /run/debugfs_gpu type debugfs (rw,nosuid,nodev,noexec,relatime,gid=605,mode=750)
/home/.shadow/59582bd407481b6a0da9d72bfb1ca8fbac9c579f/vault on /home/.shadow/59582bd407481b6a0da9d72bfb1ca8fbac9c579f/mount type ecryptfs (rw,nosuid,nodev,noexec,relatime,ecryptfs_sig=34d2999112a838ba,ecryptfs_fnek_sig=17ceb1996d107004,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
/home/.shadow/59582bd407481b6a0da9d72bfb1ca8fbac9c579f/vault on /home/chronos/user type ecryptfs (rw,nosuid,nodev,noexec,relatime,ecryptfs_sig=34d2999112a838ba,ecryptfs_fnek_sig=17ceb1996d107004,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
/home/.shadow/59582bd407481b6a0da9d72bfb1ca8fbac9c579f/vault on /home/user/59582bd407481b6a0da9d72bfb1ca8fbac9c579f type ecryptfs (rw,nosuid,nodev,noexec,relatime,ecryptfs_sig=34d2999112a838ba,ecryptfs_fnek_sig=17ceb1996d107004,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
/home/.shadow/59582bd407481b6a0da9d72bfb1ca8fbac9c579f/vault on /home/chronos/u-59582bd407481b6a0da9d72bfb1ca8fbac9c579f type ecryptfs (rw,nosuid,nodev,noexec,relatime,ecryptfs_sig=34d2999112a838ba,ecryptfs_fnek_sig=17ceb1996d107004,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)
/home/.shadow/59582bd407481b6a0da9d72bfb1ca8fbac9c579f/vault on /home/root/59582bd407481b6a0da9d72bfb1ca8fbac9c579f type ecryptfs (rw,nosuid,nodev,noexec,relatime,ecryptfs_sig=34d2999112a838ba,ecryptfs_fnek_sig=17ceb1996d107004,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)

#### Please describe your issue:

#### If known, describe the steps to reproduce the issue:

Nothing strange to see. Those are normal mount points for chromeos.

is there any way to get rid of all these mount, I checked /etc/fstab but
this file is empty. where is the automount location?
//MArko
2017-03-11 17:30 GMT+01:00 Maurice van Kruchten<EMAIL_ADDRESS>
Nothing strange to see. Those are normal mount points for chromeos.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dnschneid/crouton/issues/3148#issuecomment-285879027,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZIDY_yq7Jx9dMf2T2xYZ8LeP4vaOLwTks5rksw0gaJpZM4MaN3N
.

@werwolf2017 No, if you do, chromeos will not work. Those mounts are needed.

OK Thanks. I som getting problems with THE sources.list in /etc/apt . I
cannot download sudo apt-get install usb- imagewriter to works? It did work
before but now it does not? . I have tried to change the sources.list but
it did not work? What do I need to do?
Den 12 mar 2017 08:51 skrev "Maurice van Kruchten"<EMAIL_ADDRESS>
:

@werwolf2017 https://github.com/werwolf2017 No, if you do, chromeos will
not work. Those mounts are needed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dnschneid/crouton/issues/3148#issuecomment-285928519,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZIDY_IgjTf6RGMz9cc4mqaBUvZemOvnks5rk6QGgaJpZM4MaN3N
.

usb-imagewriter isn't in newer ubuntu releases available I don't know if it will in the future. There are alternatives like unetbootin


Add contribution guidelines

To ease the contribution process contribution guidelines should be written, which explain all important processes; most importantly — addition of new icons.

Also closed in #70


fix(headless): provide runtimeEnvironment for all Analytics Clients

https://coveord.atlassian.net/browse/KIT-1891

@olamothe
Runtime is configurable in the engine. It's passed down to Coveo Analytics where users can implement their own way of retrieving the visitor id. For React native some work has been done but it doesn't seem to work as advertised (in the warning) we might have to improve the solution in that library too.
What was clear for now is that the runtime defined in the config has to be passed to all Analytic clients we create since its the way the visitor id will be properly set & retrieved.


RFC: Design improved relationships for Package, Dependencies, Embeds and Requirements

We need to design improved models for Package, Dependencies, Embeds and Requirements.
Some background:

What we routinely calls "dependencies" are not really dependencies: more often these are requirements that are "resolved" to actual concrete dependencies.  To really "depend" on a software package, you need to know the exact resolved version. On the other hand, a requirement expresses the need for some range of versions (even if it's a range of a single version).

We should distinguish a "require" relationship between packages vs. an actual "resolved" dependency to a concrete version, and track if the resolved dependency is present in the codebase or not.

Dependencies (or requirements) may be only documented in a package manifest (like pom.xml) or a lockfile (like package-lock.json), or also be present in the codebase.

We need to track also when a package contains another package (or for that matter when an app contains or embeds packages).

Therefore we may have three levels of tree-like data we need to track for packages:

"potential" requirements (we call these dependencies today). This is a logically a flat list of PURLs with VERS attached to a package instance.
"resolved" dependencies (we call these dependencies today too, but sometimes also packages). This is logically a tree (or graph) of PURLs with a resolved version. Each such dependency is derived and satisfies one or more "requirement".
"embeds" are packages embedded in other packages, e.g., they are physically copied, vendor and or built into a product codebase. These could have been the results of provisioning/fetching resolved dependencies, or could be a straight copy. These are not much tracked as such today.

Here are concrete TODOS:

[ ] #1201
[ ] Lock and resolve locked pypi dependencies
[ ] Lock and resolve locked nuget dependencies
[ ] Lock and resolve locked cocoapod dependencies
[ ] Lock and resolve locked maven dependencies

Here are related issues.

[ ] Support packages embedded in other packages

[ ] https://github.com/nexB/scancode-toolkit/issues/2418
[ ] https://github.com/nexB/purldb/issues/177
[ ] https://github.com/nexB/purldb/issues/163

[ ] Improve the definition of a package and dependency

[ ] https://github.com/nexB/scancode.io/issues/885
[ ] https://github.com/nexB/scancode.io/issues/888

[ ] Introduce successor packages https://github.com/nexB/purldb/issues/175

[ ] https://github.com/nexB/dependentcode/issues/1

and also https://github.com/nexB/python-inspector, https://github.com/nexB/nuget-inspector and other inspectors.

Note that this is as much for ScanCode.io than it is for ScanCode Toolkit, DejaCode and PurlDB

Summarizing the discussion we had on the community call on this issue:
We need to have dependencies also as packages, and not
as a seperate model (with the skinny purl only package data and optionally
resolved packages nested inside) we have today. And dependencies here
would be preserved as relationships between these packages, and the actual
primary package -> secondary packages (either dependencies/embedded packages)
would also be preserved by creating relationships between them.
Here we have some types of packages:

Primary package instances
Resolved package dependency with package data/files
Resolved package dependency without package data/files (just PURL)
Secondary/Embedded package (files embedded in primary package files)
Package requirements (package + version range)

This approach has some benefits:

We don't have to change massively our package models, just some attributes addition/deletion
as we are only changing how we report the data within those models, and the output format
remains the same essentially.
Resolved packages won't be nested, eveything would be there as package instances.
This is straightforward, as dependency is really a relationship and not a seperate model.
Similar to what users expect/other tools provide, and essentially what we will have if
we scan a package with pre-resolved dependencies present in the code tree, there too
since we have the packages detected as instances, we have them as packages.

For example, in SCIO we could have filters for primary packages, secondary/embedded packages,
so that these are differentiated and looked at seperately as required, and the dependency tab
could have the relations between them.
Two possible implementations in this:
a) We have everything (packages, resolved/embedded dependencies, dependency purls and even requirements)
returned as Packages.

Would be less confusing and straightforward, having everything stored similarly.
We can do a resolve requierments to the oldest version available within
the required versions, or something similar, to have a proper package instance.

b) We have everything else  but requirements (packages, resolved/embedded dependencies, dependency purls)
as packages. Requirements (does not have exact version, therefore does not point to a package)

Requirements do not have a version, so these aren't really package instances as
they are not concrete packages which can be identified in a unique way. So these
should not be confused with packages.
Even for dependency purls we can get package metadata/download the packages and scan them, but we
cannot to the same for dependency requirements, as they are not package instances.
If we try to resolve these dependency requirements incorrectly (to the oldest version available within
the required versions) this would be incorrect and misleading for any compliance. As package licenses
could change between versions and without correct versions we cannot check vulneribilities. So these
are essentially false positives.

cc @pombredanne @tdruez

The latest design is to go in this direction:

We are transforming the DiscoveredDependency model to add a foreign key to the corresponding resolved DiscoveredPackage something like a "resolved_to" relationship
We will have a dependency resolution process in a pipeline where we look at the dependencies and resolve them to actual found packages or can also use a resolver, even if very crude.
We may also track if a package is physically found on disk in a codebase
This can stay optional
We will need to ensure that we are doing the right thing too on the scancode toolkit side
The same solution will be then propagated to PurlDB and possibly to DejaCode

See also attached:

@AyanSinhaMahapatra I had some other notes too... did you capture some?

We have a mostly working PR with https://github.com/nexB/scancode.io/pull/896 by @Hritik14

I would recommend an implementation in multiple stages:

https://github.com/nexB/scancode.io/pull/1240
Add the resolution processing to create packages and feed the new resolved_to field. That's also at that time we can add the new DiscoveredPackage fields that will help to qualify the package "level" regarding the dependency tree.
Add the methods to collect and use the dependency tree within a project and include the tree in the outputs such as CycloneDX.

@AyanSinhaMahapatra The new resolved_to field is now merged.
Could you start a PR on the resolution part? https://github.com/nexB/scancode.io/issues/1066#issuecomment-2117703563
As a side note we want to keep the resolution tree, meaning a package defined as resolved_to can also be defined as a for_package. The model should support this approach fine.

Here are some notes as how I understand this model will work:
We are updating these existing relationships (and their reverses):

DiscoveredDependency  > for_package > DiscoveredPackage
DiscoveredPackage  > declared_dependencies > DiscoveredDependency

We are creating these new relationships (and their reverses):

DiscoveredDependency  > resolved_to > DiscoveredPackage
DiscoveredPackage  > resolved_dependencies > DiscoveredDependency

A resolution would start with this:

Starting "universe":

<EMAIL_ADDRESS> - direct deps: bar > 2.0

<EMAIL_ADDRESS> - direct deps: baz >= 1.0

<EMAIL_ADDRESS> - direct deps: None

If we resolve for<EMAIL_ADDRESS>then the Tree is:

<EMAIL_ADDRESS> - direct deps: bar > 2.0
   - resolved_to<EMAIL_ADDRESS>     - direct deps: baz >= 1.0
       - resolved_to<EMAIL_ADDRESS>

As per above and #896, now ResolvedDependency instead of being a concrete model of its own will act as an associative table that connects any two DiscoveredPackage in a many-to-many fashion.
This looks like the following:

Now, adding the above suggestion of direct deps or requirement might look something like:

A package has requirements, a requirement resolves to a dependency and a dependency maps to a package. Packages retain their many to many relationship via the dependency associative but every dependency also has a one to one relationship with a requirement.
@tdruez
#1240 looks good to me, although should we call resolved_dependencies as resolved_parents or just parents ? Having declared_dependencies and resolved_dependencies both on DiscoveredPackage does not make sense.

@Hritik14 If I expand on the topic of https://github.com/nexB/scancode.io/issues/1066#issuecomment-2120835558 then we have these records and relationships (I have added
Before resolution:

DiscoveredPackage  > declared_dependencies > DiscoveredDependency

<EMAIL_ADDRESS>               >             bar > 2.0
<EMAIL_ADDRESS>               >             biz > 3.0
<EMAIL_ADDRESS>               >             baz >= 1.0
<EMAIL_ADDRESS>               >             baz >= 0.1
<EMAIL_ADDRESS>

DiscoveredDependency  > for_package > DiscoveredPackage

  bar > 2.0               ><EMAIL_ADDRESS>  biz > 3.0               ><EMAIL_ADDRESS>  baz >= 1.0              ><EMAIL_ADDRESS>  baz >= 0.1              ><EMAIL_ADDRESS>

After resolution:

DiscoveredPackage  > resolved_dependencies > DiscoveredDependency

<EMAIL_ADDRESS>               >             bar > 2.0
<EMAIL_ADDRESS>               >             baz >= 1.0
<EMAIL_ADDRESS>               >             baz >= 0.1
<EMAIL_ADDRESS>               >             biz > 3.0

DiscoveredDependency  > resolved_to > DiscoveredPackage

  bar > 2.0               ><EMAIL_ADDRESS>  baz >= 1.0              ><EMAIL_ADDRESS>  baz >= 0.1              ><EMAIL_ADDRESS>  biz > 3.0               ><EMAIL_ADDRESS>

What does having an intermediate DiscoveredRequirement brings that we cannot do with the newly updated model? (The idea here is to avoid changing fundamentally the model structure)
With that said resolved_dependencies

Could you start a PR on the resolution part? https://github.com/nexB/scancode.io/issues/1066#issuecomment-2117703563
As a side note we want to keep the resolution tree, meaning a package defined as resolved_to can also be defined as a for_package. The model should support this approach fine.

@tdruez @pombredanne I've added an initial implementation for the resolution process, this is now:

populating the newly added resolved_to attribute in the dependency relationships
creating new resolved packages from the resolved_package attribute we have already in SCTK output. This is stored in dependencies for PackageData objects, for the corresponding lockfile resource.
Added this as optional groups in both resolve_dependencies and inspect_packages pipeline, uses the same function for this. (need feedback on the UI/pipelines flow and group name, is this okay? Or should we do an addon pipeline instead)

Things remaining [WIP]:

Add also resolved_packages for dependencies in other manifests with is_resolved as True (but these might not have the fully resolved tree, just some pinned dependencies)
Do some sort of merging of dependency relations (same dependency/requirements present in multiple manifests)
On the SCTK side improving the dependencies parsing in npm, yarn and pnpm with https://github.com/nexB/scancode-toolkit/tree/improve-npm-support to fully address https://github.com/nexB/scancode.io/issues/1237

Questions:
I'm not sure on the attribute names for the following:

add the new DiscoveredPackage fields that will help to qualify the package "level" regarding the dependency tree.

Can we implement the above with https://github.com/nexB/scancode.io/issues/880
where we can have some indication of a Package being created from static resolver?

This is now there with https://github.com/nexB/scancode.io/commit/08c54b158950c8ec0c8e86b1e9d69233f9310297 and support has been added for pypi, poetry, swift, nuget, cocoapods, npm, yarn also with additional help from deplock at https://github.com/nexB/dependency-inspector to generate lockfiles if they are not present, and then parse, store and resolve dependencies to form a graph.
Follow up issues are there on scancode-toolkit, dejacode, purldb.
Closing!


Core C# SDK Rewrite - The Big One

Description
Soooo...... here we are. Finally at last. Many many many changes. Everything has been merged with latest master
Tests
Ran everything locally - it all worked fine. (Minus a final bug with the Core c# SDK which should be ready by EoD - will push the new package before merging)
Documentation
Documentation to follow (UTY-963)
Primary reviewers
If your change will take a long time to review, you can name at most two primary reviewers who are ultimately responsible for reviewing this request. @ mention them.
@zeroZshadow

Still getting InvalidOperationException: Collection was modified when quitting play mode. Seems like something doesn't get disposed correctly when destroying the SpatialOSReceiveSystem
InvalidOperationException: Collection was modified; enumeration operation may not execute. System.Collections.Generic.Dictionary2+Enumerator[TKey,TValue].MoveNext () (at :0)
System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].MoveNext () (at <839a3cb835c04d14aeb58d83bb7bc4bd>:0) Generated.Playground.CubeColor+ReferenceTypeProviders+ChangeColorProvider.CleanDataInWorld (Unity.Entities.World world) (at <f4e7a5811d424408b8b9a531f4692871>:0) Generated.Playground.CubeColor+DispatcherHandler.Dispose () (at <f4e7a5811d424408b8b9a531f4692871>:0) Improbable.Gdk.Core.SpatialOSReceiveSystem.OnDestroyManager () (at <0ce2f167d2e0497ab48bb7091dc402c9>:0) Unity.Entities.ScriptBehaviourManager.DestroyInstance () (at <b1af3600ef274b149df519a0a0be698d>:0) Unity.Entities.World.Dispose () (at <b1af3600ef274b149df519a0a0be698d>:0) UnityEngine.Debug:LogException(Exception) Unity.Debug:LogException(Exception) Unity.Entities.World:Dispose() Improbable.Gdk.Core.Worker:Dispose() Playground.Bootstrap:DomainUnloadShutdown()


Blobs created with Blob.slice function all have a new "__collector" instance, so that who ever is deallocated, the blob native data is removed, blobs with same blobId will meet exception.

Description
All blob instance which created by Blob.js -> 'slice' function all have a new "__collector" instance, so that whoever is deallocated, the blob data with key: data.blobId will be removed from BlobModule, then all the other Blob instances with the same blobId will meet exceptions when using them.
And this makes the BlobRegistry counter meaningless when call BlobManager.release(blobId: string) function.
React Native version:
System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
    Memory: 6.02 GB / 15.89 GB
  Binaries:
    Node: 12.10.0 -
    Yarn: 1.22.4 -
    npm: 6.10.3 -
    Watchman: 20200607.202232.0 -
  SDKs:
    Android SDK:
      API Levels: 15, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29
      Build Tools: 23.0.1, 25.0.0, 25.0.2, 26.0.0, 26.0.1, 26.0.3, 27.0.3, 28.0.2, 28.0.3, 29.0.2, 29.0.3
      System Images: android-19 | Intel x86 Atom, android-23 | Intel x86 Atom_64, android-24 | Google APIs Intel x86 Atom, android-26 | Intel x86 Atom, android-27 | Intel x86 Atom_64, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-29 | Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom
      Android NDK: 16.1.4479499
  IDEs:
    Android Studio: Not Found
  Languages:
    Java: 1.8.0_241
    Python: 3.8.2
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.11.0 => 16.11.0
    react-native: 0.62.2 => 0.62.2
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Create a Blob object "fileBlob" with fetch() function
Create some blobs with fileBlob.slice(num, num) function
Some of these blobs could be uploaded and then be deallocated, the other blobs will be unavailable now.

Expected Results
Blobs created by slice could use the original __collector instance, make sure that the underlying resource is only deallocated when all blobs that refer to it are deallocated.
Snack, code example, screenshot, or link to a repository:
slice(start?: number, end?: number): Blob {
    const BlobManager = require('./BlobManager');
    let {offset, size} = this.data;

    if (typeof start === 'number') {
      if (start > size) {
        start = size;
      }
      offset += start;
      size -= start;

      if (typeof end === 'number') {
        if (end < 0) {
          end = this.size + end;
        }
        size = end - start;
      }
    }
    return BlobManager.createFromOptions({
      blobId: this.data.blobId,
      offset,
      size,
    });
  }

My current change to solve this problem:

slice(start?: number, end?: number): Blob {
    const BlobManager = require('./BlobManager');
    let {offset, size} = this.data;

    ...

    return BlobManager.createFromOptions({
      blobId: this.data.blobId,
      offset,
      size,
      __collector: this.data.__collector,    // provide the same __collector instance
    });
  }


Fix sign up form validation ( BUG )

Sign-up form validation is not working as expected.   my password is 6 characters long and has a number and also has a lower case and an uppercase, but it's still displaying a form validation error.
As shown below.

I tried it worked for every password except yours godwinFunc1000().
You can try fixing it.

@QAZIMAAZARSHAD on it....

@Godwindaniel10 Any update? If you face issue in the code let me know with your problem I am here to help you out.

@saimanoharhm , i am actually working on something at the moment, if you like to work on this issue, please feel free to go ahead .
Thank you for the reminder .

@saimanoharhm , i am actually working on something at the moment, if you like to work on this issue, please feel free to go ahead .
Thank you for the reminder .

@Godwindaniel10 I am a mentor for this project so I don't have access to take up issue and work on. If you still want to continue you can else let us know will assign to someone else.
-Thanks

oh aiit , you should assign the issue to someone else. i am a bit overwhelmed at the moment.
thanks @saimanoharhm

Can I work on this issue?

Can I work on this issue?

cc : @QAZIMAAZARSHAD

Can I work on this issue?

Yes you can

Can I work on this issue?

Can I work on this issue?

Already assigned.
If it remains unresolved for a few more days then I will assign you.

@ujju20 figured out the issue?
Any updates?


Week5

This week's branch includes:
The new project-journal markdown file in /planning
The simple diaglflow bot with flask and ngrok in src/flask-dialogflow-bot
-run with 'flask run' in project dir
-open browser to localhost address given by flask to enter queries locally
-or use the dialogflow interface in the console or github.io page
-both methods use the local python script with cosine similarity for Boulder FAQ  questions
New Doc2Vec work at the bottom of existing faq-chatbot-sandbox notebook. This is still in early stages and fairly messy.
There are 2 sections here, which use some of the same variables so going back and forth between them is not advised:

Train on answer, test with question - this section has a simple gridsearch cell to test parameters
Train on Q+A, test with question - this one is less developed

I will try to clean this up some more, but I thought I should pull request now so you have some time to look at it.

Merging Week 5 to start on Week 6 branch


Recursively create daemons pid directory

Allow users to specify a not yet created nested pid directory.

Curious where you are creating a pid directory that you need the nesting.
Also, please remove the .gitignore change

The default location of the pid directory is in {root}/tmp/pids so, by default, it is a nested directory.  If a project does not have a {root}/tmp directory then the current code raises an exception.  Also, if a user provides a path that does not already exist via a command line argument then it also raises an exception. Not requiring the user to define the path beforehand seems like a nice feature.
Will remove the .gitignore changes...

Should I close this or is there interest in merging in these changes?

Thanks!


Valid Thai numbers return false for plausible?

It seems Phony doesn't recognize mobile phone numbers in Thailand starting with 9.  Quoting wikipedia - As codes are being exhausted, a new range, 09x is made available for assignment. It seems at least 90, 91 and 92 are in use, Phony recognizes only 8x.

It would be great if you made this into a pull request. Here's where you need to implement the rule: https://github.com/floere/phony/blob/master/lib/phony/countries.rb#L248 and here is where you can add specs: https://github.com/floere/phony/blob/master/spec/lib/phony/countries_spec.rb#L567
Thanks!

Ping @krukgit

Hi. phony_plausible doesn't recognize Thai mobile numbers starting with 06, also in use now next to 08 and 09. Very much appreciate if you could change the rule. Thanks!


The type or namespace name 'Framework' does not exist in the namespace 'NUnit'

Hi,
I'm doing my best to try to port a library to .Net Core (YMIndustries/tesseract)
It uses NUnit for the tests and I've run into an issue when trying to use dotnet-test-nunit to run these. I installed dotnet-test-nunit (3.4.0-beta-3) via NuGet and it seems to kinda work, because when I type using NUnit. IntelliSense suggests Engine, Options and Runner. It doesn't suggest Framework though, and putting using NUnit.Framework; results in the error "The type or namespace name 'Framework' does not exist in the namespace 'NUnit'".
I'm wondering what I've done wrong. I'm using Visual Studio 2017 with .NET Core 1.0.
Thanks,
Josh

The dotnet-test-nunit adapter does not support VS 2017. Microsoft changed the way test adapters work with the tooling that ships with 2017. See #108 for more info.
For now, the best bet is to make your tests self executing using NUnitLite. See http://www.alteridem.net/2015/11/04/testing-net-core-using-nunit-3/ for more info. It is an old post, but outlines the basic steps.
I am working on a solution for VS2017, so hopefully we will have a fix soon.

Is that the same issue? They seem to have a different error message.

Different error message, but this adapter will no longer work when you have 2017 installed. You are using a CSPROJ file not XPROJ/project.json right?

Actually, your immediate error seems to be due to not referencing the nunit framework. If you fix that you'll run into the major issue cited by @rprouse.

How can I reference the NUnit framework? If I download NUnit from NuGet it doesn't seem to work, I think because it's not compatible with .Net Core.

You can reference the .Net Standard build. However, that won't solve your problem of running in VS2017.


Does not select correct session for different users

I have two users (say user1 and user2) who have DIFFERENT values in /var/lib/AccountsService/users/*
User1 has
XSession=i3
and User2 has
XSession=gnome-classic
However when the gretter shows up, it shows User1 and i3, as one expects, but then selecting User2, it still shows i3, when it should load the session for user2.

This theme always defaults to the last used session and it is theme wide, not independent to each user.


Cydia not updated.

The version of Cydia you bundled it's not updated to run on iOS 11. I know Cydia still don't work, but i mean that it won't launch because it's 32bit binary

It's being updated as  we speak!

Ok thanks


[ts-sdk] Adds MoveBCS library to the SDK

Adds native JS implementation for BCS.
Things to add:

[ ] u128 serialization
[ ] base64 utils
[ ] address API (read X bytes)
[ ] tests

Note: I kept it in JS for now to make it easily usable in browser as well as in NodeJS. Added TS bindings to support its integration into the rest of the codebase.

Out of curiosity have you taken a look at https://crates.io/crates/serde-generate as I think there was a generated TS BCS implementation out of that project.

I haven't reviewed the details of the registering part but overall looks very good! The code is very elegant and the documentation looks great.
Could you add more unit testing as some of the functions look pretty delicate?

Out of curiosity have you taken a look at https://crates.io/crates/serde-generate as I think there was a generated TS BCS implementation out of that project.

Yes, I have seen it, and it is bulky and not browser-compatible iirc. Also it generates types based on Rust code, and this library gives flexibility over types - one can define any type at any moment. Correct me if I'm wrong but that's the impression I got from playing with serde-reflection.

@666lcz
I'm in the process of porting js tests to the SDK tests. Do you mind if I implement them with asserts?

@666lcz
I'm in the process of porting js tests to the SDK tests. Do you mind if I implement them with asserts?

Sounds good to me. cc @Andrew47 @pchrysochoidis in case they have an opinion on this.

Yes, I have seen it, and it is bulky and not browser-compatible iirc. Also it generates types based on Rust code, and this library gives flexibility over types - one can define any type at any moment. Correct me if I'm wrong but that's the impression I got from playing with serde-reflection.

As a part of that project I seemed to remember that there was a BSC implementation for typescript, that's the main reason i brought it up.


JSON-LD support

I've started using this gem for breadcrumbs on my site, and it's been great so far. I initially used the built-in generator for the breadcrumb HTML, but it didn't quite fit my requirements so I opted for creating them by hand using the breadcrumbs method. However in doing so, I lost the semantic breadcrumb functionality. I'm working on a replacement using the JSON-LD/ld+json version (as seen here). It would be awesome if this library supported that natively.
I'll likely have a PR to add this functionality before long. I hope you'll be willing to merge it. Stay tuned.

@dkniffin
I see. The semantic breadcrumbs feature that gretel has is not helpful when making them manually.
It is a great suggestion. I look forward to merge it.


Add support for NewPipe's "Play with Kodi" option

As a user of NewPipe,
I want Kodi to use the Invidious plugin when using "Play with Kodi",
so that I can play and queue YouTube videos from within NewPipe on my phone

Acceptance criterias

When using the "Play with Kodi" button in NewPipe and then sending the video to the Kodi remote app "Kore", the Invidious plugin is opened in Kodi and starts playing the video

Right now, when using "Play with Kodi" in NewPipe, Kodi reports

To use this feature you must download an add-on:
YouTube
Would you like to download this add-on?

Unfortunately, the YouTube add-on for Kodi requires a dedicated API key, which needs to be obtained via the Google Developer Console. (Which, in turn, requires a Google account.)
By the way, thanks for this great plugin!

So I did a bit of digging and had a look at the add-on's source. From what I understand, the add-on is already able to support this, at least the "Play on Kodi" option. (Queuing does not seem to be supported yet.)
The mechanism basically works like this:

NewPipe creates an intent with the YouTube URL that opens the Kodi remote app, Kore. NewPipe is unaware of any particular plugin that is being used within Kodi, and it does not have to be.
Kore processes the intent and parses the URL that was passed along. For YouTube links, it invokes the add-on plugin.video.youtube (see here).

The Invidious add-on can be invoked like this:
wget \
--user $USER \
--password $PASSWORD \
http://$KODI_URL/jsonrpc \
--header="Content-Type: application/json" \
--post-data='{"jsonrpc": "2.0", "method": "Player.Open", "params": { "item":{"file":"plugin://plugin.video.invidious/?action=play_video&video_id=$VIDEO_ID" }},"id": 0 }'

(Of course, you'll need to replace $USER, $PASSWORD, $KODI_URL and $VIDEO_ID with the proper values.)
To sum it up, the place to add support for the Invidious plugin is not the add-on itself, but rather the Kore app for Android.

I have created a dedicated issue for this feature request over at the repository of the Kore app, and I am going to close this issue here.
Feel free to re-open if you think that it needs to be tracked here.
Again, thanks for the add-on!


Change user database primary key

Change database to use a combination of user id and guild id as users primary key. As we have access to both of these we could go from using...
prisma.users.findFirst({where: {guild_id: guildId, user_id: userId}})

To using...
prisma.users.findUnique({where: { id: userId + guildId }})

We could also get rid of our current auto-incrementing id as we have no real use for it.

Implemented and switched to PostgreSQL in #60


Error java.io.IOException: read failed... when trying to connect to a device

Mobile Device Environment

Device: lgg8,samsung a21
OS: Android 10

Application Environment

React Native version: 0.63.4
RN Bluetooth Classic version: 1.60.0
BuildToolsVersion = "29.0.2"
CompileSdkVersion = 29
TargetSdkVersion = 29

Describe the bug
When trying to connect to any device be it earbuds, phones, laptops, obdII scanners using the example project, pairing works but then immediately throws error java.io.IOException: read failed, socket might closed or timeout, read ret: -1 after pairing.
Also while having a known connection to another bluetooth device and trying to use getConnectedDevices() returns empty and throws no errors.
Expected behavior
Click on a bonded device or found unbonded device and be able to pair and complete connection without error.
Additional context
The getBondedDevices() works fine its only the getConnected methods and connect that dont seem to work for some reason.

Hey man, since Bluetooth is so fickle on a device to device basis, I'm going to need you to provide some debugging information along with this.   Can you link to your the repository in which you're having this issue?  Your comment about pairing works but then immediately throws an IO exception is confusing.

Are you using the library to pair and the pair fails?
Are you pairing through the Android system settings and then using the device.connect() which is then failing?
Are you failing when attempting to set onDeviceRead() after the device.connect() returns?

What do you mean by having a known connection.  The call to getConnectedDevices() ONLY returns devices which have an active BluetoothSocket open.  So if connect is failing then there is no way that you have an active BluetoothSocket and therefore you are not connected to any devices (expected empty list).
Can you confirm that we are using the same language in terms of the library (this is the cause of a large number of questions for some reason):

Paired means that it's paired in android (getBondedDevices()
Connected means that there is a successful BluetoothSocket open and listening (getConnectedDevices()/getConnectedDevice())

Some things that I've seen from other issues opened recently:

Ear buds have problems, this is a known issue that I haven't really thought about.  But most of the more recent issues opened have been because of this.  I'm hoping that one of you can do some debugging and find the issue/resolution.
I've never attempted a connection to a laptop for the purposes of communication.  Are you connecting or accepting on the device?  There is a known issue with accepting on the device that I need to look into.  What server software are you using to accept the socket connection on the laptop?
The car scanner, again I've never tried, and since I don't have one, nor have a way to get my hands on one, I see this as being the least likely thing that gets looked at.

As mentioned in other issues, you're more than welcome to debug and provide:

Findings
Discuss preferred resolutions
submit pull requests

but at this point, my time is limited for debugging things that I don't use the library for myself, nor have a way in which to test.

Hey man, since Bluetooth is so fickle on a device to device basis, I'm going to need you to provide some debugging information along with this.   Can you link to your the repository in which you're having this issue?  Your comment about pairing works but then immediately throws an IO exception is confusing.

Are you using the library to pair and the pair fails?
Are you pairing through the Android system settings and then using the device.connect() which is then failing?
Are you failing when attempting to set onDeviceRead() after the device.connect() returns?

What do you mean by having a known connection.  The call to getConnectedDevices() ONLY returns devices which have an active BluetoothSocket open.  So if connect is failing then there is no way that you have an active BluetoothSocket and therefore you are not connected to any devices (expected empty list).
Can you confirm that we are using the same language in terms of the library (this is the cause of a large number of questions for some reason):

Paired means that it's paired in android (getBondedDevices()
Connected means that there is a successful BluetoothSocket open and listening (getConnectedDevices()/getConnectedDevice())

Some things that I've seen from other issues opened recently:

Ear buds have problems, this is a known issue that I haven't really thought about.  But most of the more recent issues opened have been because of this.  I'm hoping that one of you can do some debugging and find the issue/resolution.
I've never attempted a connection to a laptop for the purposes of communication.  Are you connecting or accepting on the device?  There is a known issue with accepting on the device that I need to look into.  What server software are you using to accept the socket connection on the laptop?
The car scanner, again I've never tried, and since I don't have one, nor have a way to get my hands on one, I see this as being the least likely thing that gets looked at.

As mentioned in other issues, you're more than welcome to debug and provide:

Findings
Discuss preferred resolutions
submit pull requests

but at this point, my time is limited for debugging things that I don't use the library for myself, nor have a way in which to test.

here. maybe like me

here. maybe like me

Thanks for the screen shot. But without any context of how or what you're doing hwne you get it it's not too helpful.
Can you show me the

example app screen
the Bluetooth settings screen
walk step by step on what you're trying

That error could be anyhting.  It's coming from the Android native side during the connect to device, but other than that I'm going to need substantially more info.
What device are you attempting connection?
Is it paired?
Is it turned on?
Have you attempted to debug the native code?
I test with a few devices and have never seen this or had issues. So I'll need a little more.

Thanks for the screen shot. But without any context of how or what you're doing hwne you get it it's not too helpful.
Can you show me the

example app screen
the Bluetooth settings screen
walk step by step on what you're trying

That error could be anyhting.  It's coming from the Android native side during the connect to device, but other than that I'm going to need substantially more info.
What device are you attempting connection?
Is it paired?
Is it turned on?
Have you attempted to debug the native code?
I test with a few devices and have never seen this or had issues. So I'll need a little more.

Any word on this or should I consider it working as intended?

Any word on this or should I consider it working as intended?

Sorry for the lack of info. My issue was with getting your example app working. I gave up on it and just created my own from scratch using RNBC and things worked fine. I'm not sure what the issue was exactly with your example. The only issue i have now is with write() not working and needing to use writetodevice..this is off the top of my head I believe thats the methods name.

Sorry for the lack of info. My issue was with getting your example app working. I gave up on it and just created my own from scratch using RNBC and things worked fine. I'm not sure what the issue was exactly with your example. The only issue i have now is with write() not working and needing to use writetodevice..this is off the top of my head I believe thats the methods name.

Ya, the BluetoothClassicExample isn't the best - and a bunch of people have had problems setting it up.  This is why I moved it out of the main project, in the hopes that it would stop causing so many issues due to it's configuration and required setup.  I'm glad that the library is working with your own app.
You mean that device#write(data) doesn't work, but the direct RNBluetoothClassic.writeToDevice(address, data) is working?

Ya, the BluetoothClassicExample isn't the best - and a bunch of people have had problems setting it up.  This is why I moved it out of the main project, in the hopes that it would stop causing so many issues due to it's configuration and required setup.  I'm glad that the library is working with your own app.
You mean that device#write(data) doesn't work, but the direct RNBluetoothClassic.writeToDevice(address, data) is working?

Yeah I probably should haven't opened the issue there instead. But yes I had to switch to the latter. I'm working now so i cant look to see what the error with device.write was

Yeah I probably should haven't opened the issue there instead. But yes I had to switch to the latter. I'm working now so i cant look to see what the error with device.write was

Right on.  Good luck and keep me posted.

Right on.  Good luck and keep me posted.


Swift 4 Issue

Currently it's not working on Swift 4.0. It builds but whenever i try to choose date it crashes with the error below:
*** /Users/x/Desktop/x/x/x/EPCalendarPicker/EPCalendarPicker.swift:254:5: implicit Objective-C entrypoint -[x.EPCalendarPicker collectionView:layout:sizeForItemAtIndexPath:] is deprecated and will be removed in Swift 4; add explicit '@objc' to the declaration to emit the Objective-C entrypoint in Swift 4 and suppress this message 2017-09-14 09:26:27.702076+0300 x[1885:288332] *** /Users/x/Desktop/x/x/x/EPCalendarPicker/EPCalendarPicker.swift:254:5: implicit Objective-C entrypoint -[x.EPCalendarPicker collectionView:layout:sizeForItemAtIndexPath:] is deprecated and will be removed in Swift 4; add explicit '@objc' to the declaration to emit the Objective-C entrypoint in Swift 4 and suppress this message

I found a solution to this issue here:
https://stackoverflow.com/questions/44379348/the-use-of-swift-3-objc-inference-in-swift-4-mode-is-deprecated

Now it’s crashes on app delegate I’m on mobile I will paste the error

whenever i try to choose dates it crashes with the error below. No output to the console
Thread 1: EXC_BAD_ACCESS (code=1, address=0x2000186c)

I found the solution.
Step 1. Add this line in EPCalendarPicker.swift, Method : public init(startYear: Int, endYear: Int, multiSelection: Bool, selectedDates: [Date]?)
Line To Add :
let rect = UIScreen.main.bounds
let screenWidth = rect.size.width - 7
layout.itemSize = CGSize(width: screenWidth/7, height: screenWidth/7)
Step 2 : Remove This Method :
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: IndexPath) -> CGSize
{
    let rect = UIScreen.main.bounds
    let screenWidth = rect.size.width - 7
    return CGSize(width: screenWidth/7, height: screenWidth/7);
}

Add @objc in method to look like :
@objc func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAtIndex section: Int) -> UIEdgeInsets
{
    return UIEdgeInsetsMake(5, 0, 5, 0); //top,left,bottom,right
}

Everything is working now.
To Show the Calendar call below method :
func showCalender() {

    let calendarPicker = EPCalendarPicker(startYear: 2017, endYear: 2099, multiSelection: false, selectedDates: [])
    calendarPicker.calendarDelegate = self
    calendarPicker.startDate = Date()
    calendarPicker.hightlightsToday = true
    calendarPicker.hideDaysFromOtherMonth = true
    calendarPicker.tintColor = UIColor.defaultAppColorDarkBlue
    //        calendarPicker.barTintColor = UIColor.greenColor()
    calendarPicker.dayDisabledTintColor = UIColor.lightGray
    calendarPicker.monthTitleColor = UIColor.black
    calendarPicker.todayTintColor = UIColor.clear

    //        calendarPicker.showsTodaysButton = false

    calendarPicker.weekendTintColor = UIColor.lightGray
    calendarPicker.weekdayTintColor = UIColor.darkGray

    calendarPicker.title = "DATE SELECT"
    calendarPicker.tintColor = UIColor.black

    calendarPicker.dateSelectionColor = UIColor.defaultAppColorDarkBlue

    let navigationController = UINavigationController(rootViewController: calendarPicker)
    //        self.present(navigationController, animated: true, completion: nil)
    self.present(navigationController, animated: true) {
        navigationController.updateFocusIfNeeded()
        self.view.setNeedsLayout()
    }

}


Does llama-raw base model have intrinsic instruction-following ability?

I noticed that llama series models are evaluated on base model. The instructions format are same with the data under GSM8K directory? e.g.
Question: What is fifteen more than a quarter of 48?
Let's think step by step

Does llama base models have intrinsic capability to follow the CoT instructions? I tried two llama base model on hf.co, and the responses seem not good.

LLaMA is a base model and does not have intrinsic instruction-following capability. Yet it should still be able to do in-context learning, which means that if you use prompt like:
https://github.com/FranxYao/chain-of-thought-hub/blob/main/gsm8k/lib_prompt/prompt_original.txt
then the model should still do CoT.
The bad response may be more because of model scale (generally the tasks in our repo require models being large enough).
So if you use small LLaMA, you may not expect good responses

LLaMA is a base model and does not have intrinsic instruction-following capability. Yet it should still be able to do in-context learning, which means that if you use prompt like:
https://github.com/FranxYao/chain-of-thought-hub/blob/main/gsm8k/lib_prompt/prompt_original.txt
then the model should still do CoT.
The bad response may be more because of model scale (generally the tasks in our repo require models being large enough).
So if you use small LLaMA, you may not expect good responses

got it. thanks.


Restore demos, document their config API and how to set up static-hosted and docker installations

We should have documentation showing how to set this up for (a) static serving (b) docker serving, and a live installation of at least one of these.
Background
The original demos used server side processing for 3 things:

headless browser, so that JS-injected markup can be extracted
URL fetching, since a web page can't retrieve arbitrary URLs
Some simple python/Flask to map URL paths to file paths, HTML template-based generation, and also to JSON-ify a representation of the examples.

The whole thing can be run as a docker container but it would be good to have a simplified pure static version that could be run by anyone very easily. To do this:

[ ] convert file-mapping and JSONifying steps into pre-publication file management i.e. serve the shacl, shex, Turtle and JSON files the same way we serve up JS, CSS and HTML statically.
[ ] Make a simple HTML page from templates/scc.html etc.
[ ] Document the apps configuration API i.e. the files it needs to load, and which are currently served by app.py and basic_app.py Flash python server example.

I made a first attempt at the documentation below.
Draft documentation
Config API
SchemaramaJS configures itself with various files loaded from relative URIs:

/shacl/shapes - an aggregation of SHACL shape definitions.
/shacl/subclasses - a Turtle file listing rdfs:subClassOf relationships.
/shex/shapes - an aggregation of ShEx shape definitions.
/hierarchy - a JSON description that groups shape definitions in a hierarchy of associated services/projects.
/services/map - JSON associating services from hierarchy with shapes and patterns from SHACL and ShEx.
/tests - a JSON list of tests, where each is a piece of text using JSON-LD, RDFa, Microdata.

It will also typically serve icons associated with the hierarchy of services, e.g. initial demo uses:

/static/images/services/Schema.png
/static/images/services/ServiceA.png
/static/images/services/ServiceB.png
/static/images/services/ServiceBProduct1.png
/static/images/services/ServiceBProduct2.png
/static/images/services/ServiceBProduct3.png
/static/images/services/ServiceC.png
/static/images/services/ServiceD.png

Config details
The original demo shows a mix of shapes - some basic structures from Schema.org's definitions, and some associated with example online services. SchemaramaJS will try to load these upon initialization.
/shacl/shapes
This can be quite large, e.g. looking at headers using

curl -s -D - -o /dev/null http://<IP_ADDRESS>:3002/shacl/shapes

Content-Disposition: inline; filename=full.shacl
Content-Type: application/octet-stream
Content-Length: 223194

We get a large dump of SHACL in RDF/Turtle syntax.
/shacl/shex
Similarly, here we are served (in demo configuration):
HTTP/1.0 200 OK
Content-Disposition: inline; filename=full.shexj
Content-Type: application/octet-stream
Content-Length: 633692
Last-Modified: Wed, 09 Mar

Similarly, for the ShEx version we get a large dump of ShEx in ShExJ syntax.
/shacl/subclasses
curl -s -D - http://<IP_ADDRESS>:3002/shacl/subclasses
This data file reproduces rdfs:subClassOf assertions from relevant schemas. It is in Turtle format, and is not tightly linked to SHACL, except by the fact that only the SHACL validator uses it; it is not passed to ShEx validator during setup. In principle it could be used for other purposes, and we could change the file/url path accordingly.
In demo configuration, it is every subtype-supertype relationship defined in schema.org (and therefore note sometimes a type has multiple supertypes). Here are the lines relating to the ComedyClub type:

curl -s -D - http://<IP_ADDRESS>:3002/shacl/subclasses | grep ComedyClub

schema:ComedyClub rdfs:subClassOf schema:Place .
schema:ComedyClub rdfs:subClassOf schema:EntertainmentBusiness .
schema:ComedyClub rdfs:subClassOf schema:Organization .
schema:ComedyClub rdfs:subClassOf schema:LocalBusiness .
schema:ComedyClub rdfs:subClassOf schema:Thing .

/hierarchy
SchemaramaJS loads a JSON configuration file defining a hierarchy of services/applications that can be associated with the various validations being checked. In turn this file can include image URLs.
Demo config is this:
{
  "nested": [
    {
      "service": "ServiceA"
    },
    {
      "nested": [
        {
          "service": "ServiceBProduct1"
        },
        {
          "service": "ServiceBProduct2"
        },
        {
          "service": "ServiceBProduct3"
        }
      ],
      "service": "ServiceB"
    },
    {
      "service": "ServiceC"
    },
    {
      "service": "ServiceD"
    }
  ],
  "service": "Schema"
}

/services/map
SchemaramaJS also uses a JSON service mapping file, which associates validation shapes (named in common across
SHACL and ShEX) with the services described in /services:
{
  "ValidSchemaAboutPage": "Schema",
  "ValidSchemaAcceptAction": "Schema",
  "ValidSchemaAccommodation": "Schema",
  "ValidSchemaAccountingService": "Schema",
  "ValidSchemaAchieveAction": "Schema",
  "ValidSchemaAction": "Schema",
  "ValidSchemaActionAccessSpecification": "Schema",
  "ValidSchemaActionStatusType": "Schema",
  "ValidSchemaActivateAction": "Schema",
  "ValidSchemaAddAction": "Schema",
  "ValidSchemaAdministrativeArea": "Schema",
  "ValidSchemaAdultEntertainment": "Schema",
  "ValidSchemaAggregateOffer": "Schema",
  "ValidSchemaAgreeAction": "Schema",
  "ValidSchemaAirline": "Schema",
  "ValidSchemaAirport": "Schema", [...etc etc...]
  "ValidSchemaWriteAction": "Schema",
  "ValidSchemaXPathType": "Schema",
  "ValidSchemaZoo": "Schema",
  "ValidServiceBRecipe": "ServiceB",
  "ValidServiceBProduct1Recipe": "ServiceBProduct1",
  "ValidServiceBProduct2Recipe": "ServiceBProduct2",
  "ValidServiceBProduct3Recipe": "ServiceBProduct3",
  "ValidServiceARecipe": "ServiceA",
  "ValidServiceDRecipe": "ServiceD",
  "ValidServiceCRecipe": "ServiceC"
}

/tests
Finally, SchemaramaJS loads a collection of example tests, each is an appropriately escaped text value,
structured in a very plain JSON file:
{
  "tests": [
     "escaped markup here e.g. json-ld...",
     "second example here e.g. microdata..."
  ]
}

No additional metadata is included; SchemaramaJS will try to figure out how to parse it.
Config-using Validator code
These files are all loaded by static/js/scc/core.js:
$(document).ready(async () => {
    $.getJSON("https://api.ipify.org/?format=json", function(e) {
        ip = e.ip;
    });
    await $.get(`shacl/shapes`, (res) => shaclShapes = res);
    await $.get(`shacl/subclasses`, (res) => subclasses = res);
    await $.get(`shex/shapes`, (res) => shexShapes = JSON.parse(res));
    await $.get(`hierarchy`, (res) => {
        hierarchy = res;
        constructHierarchySelector(hierarchy, 0);
    });
    await $.get(`services/map`, (res) => shapeToService = res);
    $.get(`tests`, (res) => initTests(res.tests));
    shexValidator = new schemarama.ShexValidator(shexShapes, {annotations: annotations});
    shaclValidator = new schemarama.ShaclValidator(shaclShapes, {
        annotations: annotations,
        subclasses: subclasses,
    });
});

Started a rough script that copies things into the right place in an ephemeral "_serving" folder.

it takes everything from demo/static/
bit of care about symlinks between the js/ directories and core/dist/ originals
it deals with the 6 "Config API" URL paths, either copying original files or for the JSON, inline samples.
code is at https://gist.github.com/danbri/0c26bd3dedfcc66e73fb5f2b4c682e3e

Possible diagnosis and fix for this not running: we're using very simple static HTTP servers that aren't sending the right media type headers for things that are in JSON (or any format for that matter).
I tried
    $.get(`tests`, (res) => {
        let jres = $.parseJSON(res);
        initTests(jres.tests)
    });

... in core.js line 39 and it seems to work.
Another gotcha, the demo assumes at least 3 tests will be sent from /tests, currently.


Add zip to common dependencies

Without zip installed the following tests will fail:

015_fat_bad_sha2.test
016_raw_bad_sha2.test
047_unknown_apply_succeeds.test

That's amazing that zip isn't installed by default, so thanks for the PR!

Coverage remained the same at 80.0% when pulling d1b238563cef23a8e18ea608ad79af2583f8ab5c on philipgiuliani:patch-1 into 8faf0cd25547ab1d8209c0f8ec52e75e7e66512b on fhunleth:master.

Just to follow-up, this was also explicitly added to the CI build in https://github.com/fhunleth/fwup/commit/e4abcc2c6f5bf8252ad0486d87528149d7fd8094 so we don't forget about it and we're consistent with the documentation.


Fix color sensor display in Robot view

Closes #90
Displays the current detected color by the color sensor in the Robot tab - if no color has been detected we will display white.

needs an update of SimulatorCore


Client Allocation Request for: Nonentropy JP

Client Allocation Questions
Core Information

Name: Nonentropy JP
Website / Social Media: https://nonentropy.jp
Region: Asia excl. Greater China
DataCap Requested: 5TiB
Addresses to be Notarized: f1zuidelrq2lfunc3zha3me4k3v62o7af2gxfymti
Notary Requested: s0nik42

@NonentropyJP Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

Hello @s0nik42
Good day. We are Nonentropy Japan. We are seeking help from you if you can approve our datacap request of 5 TB. We've been previously approved 3 times by Masaaki and now he said he has no datacap left, we are reaching out to you if you can process our request. Thank you.


Ruby capstone project Kanban Board review request

Here is the link to the project repo
Ruby_Capstone_project
We are three group members
We agreed on the following assignation
Team Member #1 is  Hasnat
Team Member #2 is Ikenna Richard
Team Member #3 is Atif Zada

Hi Student  ,
Status: Approved :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:

To Highlight 💪🏻

Tasks equally distributed  ✔
Tasks have details ✔
Kanban is ready, good luck ✔

Good job implementing the requirements  :+1: Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Optional Suggestions  :

N/A

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag  ichala in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Create CONTRIBUTING-id.md

Contibuting on Indonesian language
What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[ ] Read our contributing guidelines
[ ] Search for duplicates.
[ ] Include author(s) and platform where appropriate.
[ ] Put lists in alphabetical order, correct spacing.
[ ] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

From id to world

in a separate PR, add please add links to this page to other CONTRIBUTING pa
Thanks, and welcome to free-programming-books!ges.

@eshellman the translation is incomplete.


Exact math

This is probably not feasible because of the immense performance loss for a comparatively small gain. However, a simulation with an arbitrary accuracy might be useful.


Highlight no-longer-in-sync ManagedOSVersions

A new feature (https://github.com/rancher/elemental-operator/pull/750) was added to the elemental-operator to mark out-of-sync ManagedOSVersions.
Two annotations has been added to ManagedOSVersions (which are created from a ManagedOSVersionChannel):
elemental.cattle.io/channel-last-sync: "2024-06-12T12:24:59Z"
elemental.cattle.io/channel-no-longer-in-sync: "true"

The channel-no-longer-in-sync annotation can be used to highlight the ManagedOSVersion is deprecated and can be deleted.
This should be visible when listing the ManagedOSVersions from the UI extension.
ManagedOSVersions that are no-longer-in-sync can also be excluded from being used during ISO/Disk creation from the UI, however the preference if not too hard to implement, is to allow using these versions but also highlight they are deprecated (with an exclamation mark, tooltip or anything when selecting them).

@anmazzotti I believe that what we want is to add a table col in ManagedOSVersions list with in-sync (bool):

And also we should add the label (deprecated) to:

That would be the scope, correct @anmazzotti ?
Question: in what version of elemental-operator will this feature be available?

Yes that's correct. This will be available in 1.6
Also note that I'm going to add automatic os cleaning, this will be a togglable option when creating the ManagedOSImageChannel: https://github.com/rancher/elemental-operator/issues/759
I'm trying to squeeze this one too. I'll open a new UI issue as soon at it is done, just an heads up for now.
Thank you.

Tested with rancher 2.9.0 / operator 1.6.3 / elemental UI 2.0.0-rc1:


[WIP]: Dfc 124 dfc ga4 save form data response to local storage

Tickets
(DFC-124)[https://govukverify.atlassian.net/browse/DFC-124]
Steps to Reproduce
Homepage > organisationType > help request
dev tools > application > you can see the values are stored
Click back you'll see the values are selected

Additional preselection added

FYI i tried and decided to go against a reusable "preselect and save to store" function, as this created more code than if the functionality remained on the form pages, therefore less performant. It was also more buggy because of the script included on the base.njk file, it was intermittent due to the DOMContentLoaded required (i've left the commit incase this is of interest).

tested and can see the values stored :)


docs(pie-docs): update copy on design tokens and designer pages

Describe your changes (can list changeset entries if preferable)
[Changed] - hardcode the order of items in foundations section of nav menu
[Changed] - Copy on designer and foundations design tokens pages
Author Checklist (complete before requesting a review)

[x] I have performed a self-review of my code
[ ] If it is a core feature, I have added thorough tests.
[ ] If it is a PIE Docs change, I have reviewed the PR preview
[ ] If there are visual test updates, I have reviewed them properly before approving

Reviewer checklists (complete before approving)
Reviewer 1

[ ] If it is a PIE Docs change, I have reviewed the PR preview
[ ] If there are visual test updates, I have reviewed them

Reviewer 2

[ ] If it is a PIE Docs change, I have reviewed the PR preview
[ ] If there are visual test updates, I have reviewed them

@siggerzz I disagree about the Oxford commas (in this instance) because there isn't any ambiguity in the list items 😄


kibana red status due to ES Request Timeout

Hello,
I'm running kibana:4.5 docker image on Openshift. It works but after minutes (not always after the same time) I got this message :
{"type":"log","@timestamp":"2017-03-28T13:25:48+00:00","tags":["status","plugin:elasticsearch","error"],"pid":51,"name":"plugin:elasticsearch","state":"red","message":"Status changed from green to red - Request Timeout after 3000ms","prevState":"green","prevMsg":"Kibana index ready"}
after that this status flaps :
{"type":"log","@timestamp":"2017-03-28T13:25:48+00:00","tags":["status","plugin:elasticsearch","error"],"pid":51,"name":"plugin:elasticsearch","state":"red","message":"Status changed from green to red - Request Timeout after 3000ms","prevState":"green","prevMsg":"Kibana index ready"} {"type":"log","@timestamp":"2017-03-28T13:26:21+00:00","tags":["status","plugin:elasticsearch","info"],"pid":51,"name":"plugin:elasticsearch","state":"green","message":"Status changed from red to green - Kibana index ready","prevState":"red","prevMsg":"Request Timeout after 3000ms"} {"type":"log","@timestamp":"2017-03-28T13:26:27+00:00","tags":["status","plugin:elasticsearch","error"],"pid":51,"name":"plugin:elasticsearch","state":"red","message":"Status changed from green to red - Request Timeout after 3000ms","prevState":"green","prevMsg":"Kibana index ready"} {"type":"log","@timestamp":"2017-03-28T13:26:55+00:00","tags":["status","plugin:elasticsearch","info"],"pid":51,"name":"plugin:elasticsearch","state":"green","message":"Status changed from red to green - Kibana index ready","prevState":"red","prevMsg":"Request Timeout after 3000ms"}
I verified my Elasticsearch cluster and it's up and running, reachable by network, cluster ehealth status green, nothing in the logs.
When I want to access to kibana, I'm directly redirected to the status find, mentionning the red status due to the request Timeout after 3000ms
I tried to increase the timeout > 3000ms by changing elasticsearch.requestTimeout and elasticsearch.pingTimeout in kibana.yaml to find a workaround but it doesn't seem take it into account because the status page still show Request Timeout after 3000ms.

+1.. same issue I faced today.. But, it self healed after 30min.. not sure about the reason.

+1

I built my own Kibana image to solve the problem

This image is officially deprecated in favor of upstream's images (see https://www.elastic.co/guide/en/kibana/current/_pulling_the_image.html).
For more information, please see docker-library/elasticsearch#160, docker-library/docs#842, and docker-library/docs#945.

This image has been deprecated in favor of the official kibana image provided and maintained by elastic.co. The upstream images are available to pull via docker.elastic.co/kibana/kibana:[version] like 5.4.2. The images found here will receive no further updates once the 5.6.0 release is available upstream. Please adjust your usage accordingly.
Elastic provides open-source support for Kibana via the elastic/kibana GitHub repository and the Docker image via the elastic/kibana-docker GitHub repository, as well as community support via its forums.

Thanks!


Allow email notifications for user to be turned off in admin UI

The OAE back-end has an option to turn off email notifications for a user, but it’s currently not exposed in the UI to discourage users from turning them off. You can currently turn off email notifications through the REST API and the Swagger documentation page, but we should also expose this as a fourth email notification option in the manageuser widget.
The fa-ban icon can be used for the new option.

Assigning to @sathomas for fix

To @nicolaasmatthijs for review

Left a comment. Back to @sathomas for follow-up

back to @nicolaasmatthijs after followup

Left another comment. Back to @sathomas for follow-up

Looks safe to remove the JavaScript code. Back to @nicolaasmatthijs

Looks good. Merged


Ruby 2.0.0 compatibility

(Possibly) provide compatibility for ruby 2.0 branch. Let me know if I missed anything.

released


Added letter-spacing support

Few questions:

does it work with negative values as well?
is renderWidth property updated accordingly?

Other than that, looks good.

Negative letter-spacing is supported and renderWidth will properly output the correct width.


why fake rotate event not trigger OnRotate callback

I implement & register the callback OnRotate and OnRow. I can get the log from the go-mysql source:
 64     if ev.Header.LogPos == 0 {
 65       switch e := ev.Event.(type) {
 66       case *replication.RotateEvent:
 67         fakeRotateLogName = string(e.NextLogName)
 68         log.Infof("received fake rotate event, next log name is %s", e.NextLogName)
 69       }
 70
 71       continue
 72     }

that indicates I received the rotate binlog-file-name event, but the framework not call OnRotate callback, it just continue to skip.
Then my slave server received a few OnRow event callback, but I only know the binlog-position, not know current binlog-filename.
I think even if pos==0, we should also trigger OnRotate, framework can set pos to invalid value(e.g. -1) to indicate that this is a binlog-filename-changed-notification.

Yes, I think replication client does care about this fake rotate event.
Just as the comment says:
"Faked rotate event is required in a few cases, so slave can know which binlog the following events are from"
https://github.com/mysql/mysql-server/blob/8e797a5d6eb3a87f16498edcb7261a75897babae/sql/rpl_binlog_sender.h#L235
slave can know and need to know fake rotate event. So I don't think is a good idea skip this event.
In my case, at first, I don't know binlog file name, so my sync start from an empty name, with a faked rotate event, I can know the binlog file name and save it.


patches: mainline: Add -Wimplicit-fallthrough fix for KVM

KVM can enable -Werror independent of CONFIG_WERROR, which happens with
our allmodconfig + ThinLTO builds. Keep them green by applying this
already queued patch.

I am going to submitted a different version of this.


User/zachnew/changelog

Creating the initial change log for tracking features, breaking changes, and bug fixes between versions.

We are going to use the release feature on Github to document this stuff.


ReactorNettyClient$MssqlConnectionClosedException: Connection closed when closing the connection (R2dbcEntityTemplate)

Bug Report

Versions

Driver: r2dbc-mssql:0.8.3.RELEASE
Database: MSSQL Server 2017
Java: Java 11
OS:

Current Behavior
We get an unexpected error with the following code. We don't know why because our code is very simple. It's just a "SELECT 1" to check if the database is up or not.
I precise that it isn't a blocking error because it appears when closing the connection.
Any help would be appreciate.
@Service
public class StatutRepositoryImpl implements StatutRepository {

	private final R2dbcEntityTemplate template;

	public StatutRepositoryImpl(final DatabaseClient databaseClient) {
		template = new R2dbcEntityTemplate(databaseClient);
	}

	@Override
	public Mono<Integer> checkConnectivityWithDatabase() {
		return template.getDatabaseClient()
				.execute("SELECT 1")
				.fetch()
				.first()
				.flatMap(r -> Mono.just(1));
	}

}

Stack trace
2021-05-12 15:24:43,886 [reactor-tcp-epoll-1] ERROR reactor.netty.channel.ChannelOperationsHandler - [id: 0x55c613df, L:/<IP_ADDRESS>:44940 ! R:VWC2BDD069/<IP_ADDRESS>:1678] Error was received while reading the incoming data. The connection will be closed.

reactor.core.Exceptions$BubblingException: io.r2dbc.mssql.client.ReactorNettyClient$MssqlConnectionClosedException: Connection closed

at reactor.core.Exceptions.bubble(Exceptions.java:173)

at reactor.core.publisher.Operators.onErrorDropped(Operators.java:635)

at io.r2dbc.mssql.util.FluxDiscardOnCancel$FluxDiscardOnCancelSubscriber.onError(FluxDiscardOnCancel.java:94)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:214)

at reactor.core.publisher.FluxFilter$FilterSubscriber.onError(FluxFilter.java:151)

at reactor.core.publisher.FluxHandle$HandleConditionalSubscriber.onError(FluxHandle.java:406)

at reactor.core.publisher.EmitterProcessor.checkTerminated(EmitterProcessor.java:489)

at reactor.core.publisher.EmitterProcessor.drain(EmitterProcessor.java:356)

at reactor.core.publisher.EmitterProcessor.onError(EmitterProcessor.java:286)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:214)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:214)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:214)

at reactor.core.publisher.FluxHandle$HandleSubscriber.onError(FluxHandle.java:196)

at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onError(MonoFlatMapMany.java:247)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:214)

at reactor.core.publisher.EmitterProcessor.checkTerminated(EmitterProcessor.java:489)

at reactor.core.publisher.EmitterProcessor.drain(EmitterProcessor.java:356)

at reactor.core.publisher.EmitterProcessor.onError(EmitterProcessor.java:286)

at io.r2dbc.mssql.client.ReactorNettyClient.drainError(ReactorNettyClient.java:597)

at io.r2dbc.mssql.client.ReactorNettyClient.handleClose(ReactorNettyClient.java:582)

at io.r2dbc.mssql.client.ReactorNettyClient.access$600(ReactorNettyClient.java:82)

at io.r2dbc.mssql.client.ReactorNettyClient$2.onComplete(ReactorNettyClient.java:286)

at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onComplete(Operators.java:2016)

at reactor.core.publisher.FluxPeek$PeekSubscriber.onComplete(FluxPeek.java:252)

at reactor.netty.channel.FluxReceive.terminateReceiver(FluxReceive.java:450)

at reactor.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:247)

at reactor.netty.channel.FluxReceive.onInboundNext(FluxReceive.java:371)

at reactor.netty.channel.ChannelOperations.onInboundNext(ChannelOperations.java:358)

at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:96)

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)

at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)

at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:93)

at io.r2dbc.mssql.client.ssl.TdsSslHandler.channelRead(TdsSslHandler.java:380)

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)

at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)

at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)

at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)

at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795)

at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480)

at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)

at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)

at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)

at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)

at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: io.r2dbc.mssql.client.ReactorNettyClient$MssqlConnectionClosedException: Connection closed

at io.r2dbc.mssql.client.ReactorNettyClient.lambda$static$1(ReactorNettyClient.java:90)

... 30 common frames omitted

Table schema

Input Code
-- your SQL here;

Steps to reproduce

Input Code
// your code here;

Expected behavior/code

Possible Solution

Additional context

Does this happen on a regular basis or just incidentally?

It happens every time we call the service

With the little context it's impossible to say what happened before. Can you check for any disconnects or proceeding errors?

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

This issue is still reproducible in a configuration including org.springframework.data:spring-data-r2dbc:3.2.5, org.springframework:spring-r2dbc:6.1.6, io.r2dbc:r2dbc-mssql: 1.0.2.RELEASE etc, basically a Spring Boot 3.2.5 release train. The issue was also reported to oracle-r2dbc here https://github.com/oracle/oracle-r2dbc/issues/133
The bug is also present in R2dbcEntityTemplate.count() via the private doCount() as well as R2dbcEntityTemplate.exists() via the private doExists(), so really easy to reproduce.


DRep delegation incorrect DRep card

Context & versions
staging.sanchonet
Steps to reproduce

Delegate to a Drep on the Drep list page
When the action starts, the Drep you are delegating to you is supposed to show up at the top of the screen. Look at the top of the screen, and compare the Drep Id to the one you delegated to.

Video:
https://www.loom.com/share/5809a62bd658421d8c314f7be710e64c?sid=5dcae875-e665-4713-afaa-c97413027ec0
Actual behavior
The incorrect DRep shows up at the top of the screen, then after a while, the correct one shows up
Expected behavior
The Drep you are delegating to should show up at the top of the screen

Related to handling of transaction status and presenting transitions of states:

tracked here, here

This is seems to work now when delegating and nothing (no reload, lag) occurs - recording
But when a reload is made in the middle of processing of transaction card with current delegation is updated before delegation transaction ends - compare with recording 0:57 sec

@m-i-k-e make the card move from bottom to top - expand this visual aspect

replace the old DRep card with the in progress card. If the transaction fails revert to old DRep

This solves the problem of the bug and it improves the usability (avoiding leaving the card randomly in the list)

OK on test sancho:
Jam recording


Fix Footer Spilling Over

The footer spills over on mobile as referenced by the photo below.  This is a great issue for anyone who wants to practice their debugging/Bootstrap skills.

I would like to take this one, please.

Hi JS-goose,
I've just fixed this for you

#8

This has been fixed, thank you to everyone for your contributions!


Secure API keys and Test User Info

It might be prudent to use environment variables to obfuscate some of the more sensitive information in this repository.

Hi @rlkelly,
Could you be more specific as to what things you are referring to?

your heroku and code climate private keys, as well as all the logins and passwords to your jellyfish-dev app on heroku.  These could be exploited.

https://github.com/boozallen/projectjellyfish/blob/4fd6a2ac87f4a562174050bd94a7b2213014ad1b/db/data/sample/staff.yml


Lunch Route Issue

I opened the app today (Friday 1/8 around 1pm.) during the lunch route and it said there were no trolleys and to check schedule.
I then went to the map view and saw the trolley running. So, it seems the app is not pulling the route info for the Friday lunch route.

I believe I have the fix for this particular bug. But this raises a good question about the design of the 'not running' popup. Right now it is set to show the dialog if the API returns no running trolleys. Maybe it makes more sense to tie the popup to the route schedule? (Show the popup if there is no route scheduled currently). Or maybe some combination of both?
The issue is that sometimes trolleys are running when there are no routes active, and users should be informed that they are out of service somehow.

Yes, I think it will be best to tie it to the schedule.   I see them pop up frequently now that they're auto-on whenever there is ignition power.   That will also keep them from showing as available if they're on a  private function but out of the garage location.

So you are saying I should also hide the trolley markers if there is no active route?

That's a good question - I hadn't thought about it, but I'm leaning toward hiding them: if they're not available to ride, there's no value in knowing where they are.
What do others think?

I kind of think it makes sense to do, and that it would probably be simplest to do it server side IMO. Then we don't get trolleys popping up on the map (on any of the clients) when they're being warmed up for the day at 7am, or when they are being cleaned at midnight. Then I could change the "no trolleys available" message I currently have to a "no scheduled routes" message and not worry about the presence of the trolleys.

I agree that it would be easier to fix this server side where it would immediately give the 3 apps consistent behavior.    But it's still useful for a debug function / Database Visualization - I could make a new API call for that purpose however.
We'll see what others think about no data to the apps when there is no schedule.

You could also use something like /api/v1/Trolleys/Running?showInactive=true for the debug mode


Is it possible to sort by "distance"

There is a feature I'd really like, but I do not know how hard it would be.
I use buffer completion and it works very well, but I'd love to have the proposition sorted by distance.
For example, if I have this file:

hola
hoy
hey

h

when I type the h on the last line, I'd like the proposition to be:

hey, hoy, hola (current file, closest to m line)
.... (other files)

I attached an image with the current results I get.

Ref: https://github.com/hrsh7th/nvim-cmp/issues/183
I'm on it.

This is great. I keep this open in the meantime, to provide feedback for this specific feature in this context (buffers).


SavingProblem

see here

I'm having a similar problem.
When I save a modified SCSS file, all the line breaks are removed.

Same here


Compare active directory accounts against a schema

[ ] Name format (either title case for both or LASTNAME FirstName
[ ] Display name
[ ] Description - not null and contains specific criteria
[ ] Title - either formatted a specific way or matching a value from a set list of job titles
[ ] Manager - not null
[ ] Office - matches a site from site list
[ ] DistinguishedName - ou is correct based on site or account type
[ ] SamAccountName - lowercase

Email manager and help desk when issue found


[SR-7501] corrected the error message to be lowercase

Corrects the inlinable misspelling error message to be all lowercase.
Resolves SR-7501.

@swift-ci Please smoke test

Thanks!
(Only people with commit access can start the tests, as a way to prevent spam.)
@swift-ci Please smoke test

Alright, thanks for the help!


Split test folders

All tests are being generated inside the default src/test.
It's better put unit tests inside its own folder like src/test/unit.

Fixed in this commit.


[Event Request] codeunit 90 "Purch.-Post" - OnAfterCreateJobPurchLine

Could we please have an event OnAfterCreateJobPurchLine in Codeunit 90 "Purch.-Post" in function PostGLAccICLine?
Code Example:
if (PurchLine."No." <> '') and not PurchLine."System-Created Entry" then begin
GLAcc.Get(PurchLine."No.");
GLAcc.TestField("Direct Posting");
if (PurchLine."Job No." <> '') and (PurchLine."Qty. to Invoice" <> 0) then begin
CreateJobPurchLine(JobPurchLine, PurchLine, PurchHeader."Prices Including VAT");
// start kvspsa - Event Raiser
OnAfterCreateJobPurchLine(JobPurchLine, PurchLine);
// stop kvspsa
JobPostLine.PostJobOnPurchaseLine(PurchHeader, PurchInvHeader, PurchCrMemoHeader, JobPurchLine, SrcCode);
end;
Event:
[IntegrationEvent(false, false)]
local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line")
begin
end;
Thank you and kind regards

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Extending the rules

Hi. I want to ask, if there is any method to extend rules? I have project with many modules. Every module should have thesame architecture rules. I want to define these rules and use them with some parameters ex. prefix of namesapace.
I tried to extend abstract service with rules but TestExtractor uses names of methods as rule names and overwrites previous defined rules.
How can I reuse rules?

Hi. I will have a look tomorrow, this looks like something easily doable 👍

Hi @itcruiser
I will be offline until next weekend and I'm not going to be able to work on this until I come back.

@itcruiser maybe something like this would do?
class DomainLayerTest
{
    public function test_user_domain(): Rule
    {
        return $this->domainRulePrototype('User');
    }

    public function test_xxx_domain(): Rule
    {
        return $this->domainRulePrototype('xxx');
    }

    private function domainRulePrototype(string $name): Rule
    {
        return PHPat::rule()
            ->classes(Selector::inNamespace(sprintf('App\Module\%s\Domain', $name)))
            ->canOnlyDependOn()
            ->classes(
                Selector::inNamespace(sprintf('App\Module\%s\Domain', $name)),
                Selector::inNamespace('App\Module\Shared\Domain'),
                Selector::inNamespace('Doctrine\ORM\Mapping'),
                ...
            )
            ->because('Domain should not use code from other layers');
    }
}

could you check your initial code using the temporary version dev-extend-test-files?

composer.json
"require-dev": {
    "phpat/phpat": "dev-extend-test-files",

phpstan.neon
services:
    -
        class: App\Tests\User\LayerTest
        tags:
            - phpat.test

test/architecture/AbstractLayerTest.php
abstract class AbstractLayerTest
{
    public function test_domain_dependencies(): Rule
    {
        $name = $this->getModuleName();

        return PHPat::rule()
            ->classes(Selector::inNamespace(sprintf('App\Module\%s\Domain', $name)))
            ->canOnlyDependOn()
            ->classes(
                Selector::inNamespace(sprintf('App\Module\%s\Domain', $name)),
                Selector::inNamespace('App\Module\Shared\Domain'),
                Selector::inNamespace('Doctrine\ORM\Mapping'),
                ...
            )
            ->because('Domain should not use code from other layers');
    }

    abstract protected function getModuleName(): string
}

test/architecture/User/LayerTest.php
final class LayerTest extends AbstractLayerTest
{
    protected function getModuleName(): string
    {
        return 'User';
    }
}

Hi. Thanks for your response. I have used code from dev-extend-test-files branch and everything seems to be alright. I can't wait for new release.

Released in https://github.com/carlosas/phpat/releases/tag/0.10.11 🚀

FYI - it is possible now to return an array of rules in the same test function, so it's possible to build the rule dynamically for a list of modules
https://www.phpat.dev/documentation/rules/#dynamic-rule-sets