Add optional dependencies

:pencil: Changelog:

:books: Documentation:

Add optional dependencies

Codecov Report

Merging #68 (bf16df1) into main (70c20af) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #68   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           11        11
  Lines          477       477
  Branches        66        66
=========================================
  Hits           477       477

Impacted Files
Coverage Δ

nlpiper/transformers/embeddings.py
100.00% <ø> (ø)

Continue to review full report at Codecov.

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


feat: add assignee downstream in GitHub

Automatic assignment of PR authors to downstream pull requests created by updatebot.
Copilot Summary
This pull request includes several changes to the pkg/apis/updatebot/v1alpha1/types.go and pkg/cmd/pr/pr.go files to enhance the functionality of handling pull request assignees. The most important changes include adding new fields to the Rule struct, updating the Options struct, and introducing new methods for assigning users to pull requests.
Enhancements to pull request handling:

pkg/apis/updatebot/v1alpha1/types.go: Added PullRequestAssignees and AssignAuthorToPullRequests fields to the Rule struct.

Updates to the Options struct:

pkg/cmd/pr/pr.go: Added PipelineCommitSha, PipelineGitUrl, and PRAssignees fields to the Options struct.

New methods for assigning users to pull requests:

pkg/cmd/pr/pr.go: Added FindCommitAuthor method to find the author of a commit.
pkg/cmd/pr/pr.go: Added AssignUserToCommit method to assign users to a pull request.

Additional modifications to support new functionality:

pkg/cmd/pr/pr.go: Updated the Run method to include logic for handling PullRequestAssignees and AssignAuthorToPullRequests. [1] [2]
pkg/cmd/pr/pr.go: Updated the Validate method to set default values for PipelineCommitSha and PipelineGitUrl if they are not provided.

@Skisocks - refactored Run() by stripping back inner logic, with functions doing the heavy lifting. Switched log output to use logger


not able to navigate back from menu

I have added the menu through this code. in the menu view, I have one button to navigate to a second view controller. when I dismiss the second view controller menu dismiss icon is not visible in the menu view controller. Kindly help with this.

Hi @dishasyno, you must have two buttons, the first in controller who presented a menu, the second in the menu controller. In our example project: the first button in the navigation of ViewController, the second on MenuViewController, you can see these buttons in Main.storyboard


Confusion around properties values & filtering

Required information

Distribution: Ubuntu
Distribution version: 14.04
"lxc info"

apicompat: 0
auth: trusted
environment:
  addresses: []
  architectures:
  - x86_64
  - i686
  certificate: |
driver: lxc
  driverversion: 1.1.5
  kernel: Linux
  kernelarchitecture: x86_64
  kernelversion: 4.2.0-35-generic
  server: lxd
  serverpid: 25658
  serverversion: 2.0.0
  storage: lvm
  storageversion: 2.02.98(2) (2012-10-15) / 1.02.77 (2012-10-15) / 4.33.0
config:
  images.auto_update_cached: "true"
  images.auto_update_interval: "24"
  images.remote_cache_expiry: "10"
  storage.lvm_thinpool_name: LXDPool
  storage.lvm_vg_name: ssd
  storage.lvm_volume_size: 2G
public: false

Issue description
Unitl I define properties values of configuration with 'lxc config set' or in profile, the default values of a container can't get touch.
for example :
lxc list security.privileged=true
give me a list of container trusted privileges is present in his configuration
lxc list security.privileged=false
list nothing even for the unprivileged container (default value)
filters for listing runs on which properties ?
I can't filter listing with properties presents in 'lxc list --format json' ? or just with properties are in config file or profile file ?
boolean value 1 or true are different for filtering
lxc list security.privileged=1
lxc list security.privileged=true
the results depends on which value gave in settings true or 1
Steps to reproduce
lxc image copy images:centos/6/amd64 local: --alias centos6 --auto-update
lxc init centos6 c1
lxc init centos6 c2
lxc init centos6 c3

lxc config set c1 security.privileged true
lxc config set c2 security.privileged 1

lxc list security.privileged=true
lxc list security.privileged=1
lxc list security.privileged=false
lxc list security.privileged=

Yeah, looks like we could improve things a bit there.

just a little add ;o)
we can find this text '* A single keyword like "web" which will list any container with "web" in its name.'
in
lxc list --help
Currently the searching is made only with the beginning of container name
lxc list
root@fx8320e:~$lxc list
+-----------------+---------+-------------------+------+------------+-----------+
|      NAME       |  STATE  |       IPV4        | IPV6 |    TYPE    | SNAPSHOTS |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8         | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 2         |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8-php-dev | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 2         |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8-php-pro | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 1         |
+-----------------+---------+-------------------+------+------------+-----------+

lxc list debian
root@fx8320e:~$lxc list debian-php
+-----------------+---------+-------------------+------+------------+-----------+
|      NAME       |  STATE  |       IPV4        | IPV6 |    TYPE    | SNAPSHOTS |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8-php-dev | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 2         |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8-php-pro | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 1         |
+-----------------+---------+-------------------+------+------------+-----------+

lxc list php
root@fx8320e:~$lxc list php
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
root@fx8320e:~$

Sounds like we should:

Update the help to say that we only match against the beginning of the container name
Add regexp support for the container name too (as we have for key=value)

Ok, so the commit above should have improved things a bit by more clearly documenting the behavior and by supporting regexps for container names.
It's still not doing quite what you want for key=value config filtering but improving things further will be pretty difficult. Basically the client only sees config keys set against the container, it doesn't know about the default values and doesn't know what the key means.
Fixing this would require the client knowing about every single configuration key and its default value which would be pretty difficult when we want to support older and newer clients for any daemon, despite the daemon potentially growing more config options.

So as far as documenting current behavior and improving the bits that could be improved, I'm considering this issue fixed.
I'll keep it open for a bit in case you can think of some easy ways to improve things for you.

Effectively, the helping documentation becomes more clear !
Thanks for that, but I do not understand why you cannot retrieve container information that are accessible via the 'lxc info' command?
I do not know the internal structure of your development, but that the command "lxc info" can recover, why "lxc list" can do not?
I understand that create and maintain a parallel list of data is a wrong way but what I'm thinking is a possibility to filter on the container data "owned by itself" and accessible by 'lxc info'.

Filtering on what's shown in "lxc config show  --expanded" should work. Let me run through what you put in your report to see if there's something I missed.

Ok, so looks like what we don't have it matching for unset keys, so "lxc list security.privileged=" currently doesn't return anything when it in fact probably should.

here is
root@fx8320e:~$lxc config show --expanded debian8
name: debian8
profiles:
- default
config:
  raw.apparmor: mount options=(rw, nosuid, nodev, noexec), mount options=(ro, nosuid,
    nodev, noexec, remount, strictatime),
  security.privileged: "true"
  volatile.base_image: 09cbd1efc9c2c5a4fc0e833419a01b9c242b93e40a1b057470ad5711a535c3aa
  volatile.eth0.hwaddr: 00:16:3e:9e:55:bb
  volatile.last_state.idmap: '[]'
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
  root:
    path: /
    type: disk
  share:
    path: /var/share
    source: /var/lib/lxd/share
    type: disk
ephemeral: false

root@fx8320e:~$lxc list security.privileged="true"
+-----------------+---------+-------------------+------+------------+-----------+
|      NAME       |  STATE  |       IPV4        | IPV6 |    TYPE    | SNAPSHOTS |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8         | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 2         |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8-php-dev | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 2         |
+-----------------+---------+-------------------+------+------------+-----------+
| debian8-php-pro | RUNNING | <IP_ADDRESS> (eth0) |      | PERSISTENT | 1         |
+-----------------+---------+-------------------+------+------------+-----------+

root@fx8320e:~$lxc list volatile.eth0.hwaddr="00:16:3e:9e:55:bb"
error: unknown remote name: "volatile.eth0.hwaddr=00"

root@fx8320e:~$lxc list name="debian8"
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
root@fx8320e:~$

The unknown remote name error was fixed with my earlier commit.
The second one returns nothing which is normal, the key=value matching is done against config keys, name isn't a config key. With my branch, if you want to match debian8 and only debian8, the following will do the trick:
lxc list ^debian8$

Ok I start to understand... sorry
it can only filter with the 'config' part of container information which are setting manually.
Is it true ?

Yeah, lxc list filters on ExpandedConfig which is what you see in the "config" part of "lxc config show container-name --expanded".
With the fix I just pushed you can now filter on unset keys:
stgraber@castiana:~$ lxc list security.privileged=
+------------+---------+------+------+
|    NAME    |  STATE  | IPV4 | IPV6 |
+------------+---------+------+------+
| blah       | STOPPED |      |      |
+------------+---------+------+------+
| c3         | STOPPED |      |      |
+------------+---------+------+------+
| downloader | STOPPED |      |      |
+------------+---------+------+------+
| nesting    | STOPPED |      |      |
+------------+---------+------+------+
| streamer   | STOPPED |      |      |
+------------+---------+------+------+
| streamer1  | STOPPED |      |      |
+------------+---------+------+------+

Again sorry for my misunderstanding, for the rest of my needs I use jq like you inform me
running containers
alias lxclr="lxc list --format=json | jq -r '.[] | select(.status == \"Running\") .name'"
stopped containers
alias lxcls="lxc list --format=json | jq -r '.[] | select(.status == \"Stopped\") .name'"
select with profile (only for jd >= v1.5)
lxc list --format=json | jq '.[] | select(.profiles | any(contains("php"))) .name'"
;o)


Incompatiblity with Faraday 2+

Would you guys mind upgrading the supported Faraday version?
Version 2+ is much more robust and up-to-date than version 1.
Bundler could not find compatible versions for gem "faraday":
  In Gemfile:
    ruby-onfleet (~> 1.0.3) was resolved to 1.0.3, which depends on
      faraday (~> 1.10.0)

    slack-ruby-client (~> 2.1.0) was resolved to 2.1.0, which depends on
      faraday (>= 2.0)

I have created a PR to fix this: https://github.com/onfleet/ruby-onfleet/pull/12

Thank you @alvarezloaiciga !


vfr not defined

How come when I load ngforce and I go into the Chrome console and try using vfr functions that it says its not defined?

Vfr and the associated services are, just that: angular services. You’ll need to grab ahold of the service itself in order to use them from the console.
something like:
var vfr = angular.element('div[ng-app="pp"]').injector().get('vfr’)
where you modify the [ng-app=“pp”] selector to be the name of your app.
then you’ll be able to access vfr
-Pkj
--
Kevin Poorman
Sent with Airmail
On January 9, 2015 at 11:37:47 AM, banderson5144<EMAIL_ADDRESS>wrote:
How come when I load ngforce and I go into the Chrome console and try using vfr functions that it says its not defined?
—
Reply to this email directly or view it on GitHub.

I guess I'm just having a hard time doing a simple hello world (I.e. display a list of records). The examples that around the web are a little to advanced. Can you help me out with that.

So I figured out what my issue was. My Dev org has a namespace associated with it and you have your default Apex controller callout names hard coded (ngForceController.query). Is there a way to dynamically add a namespace?

I had the same issue where I needed a namespace.
Looking at the javascript source code, I did not see a way to dynamically add a namespace, so I ended up hardcoding it into the source code to keep the project moving forward. Basically a find/replace ngForceController to [namespace].ngForceController in the source.
Not a pretty solution, but enough to keep moving forward until the feature it added.

Mogenshoj, have you been able to use the remote object library? Can't seem to get it

Yes, I was able to get both remote objects and vfr queries to work. Please provide more details or code.

I don't really have any code. Was just trying grab 10 accounts.

I was able to get all the other services working fine except remote objects

If you already created the remoteaction in a controller and return whatever you want to get out, I use something like this:
var request = vfr.send('[namespace].[controller].[action]', {}, false);
request().then(function(result) {
console.log(result)
}, function(error) {
console.log(error)
});

Yeah I have done that. I am talking about remoteobjects. Not objects returned from remote action methods.

Oh right, I misunderstood. I haven't used the remote objects, only remote actions. So I can't help with that.

@banderson5144 are you still experiencing this issue?

I am still experiencing the issue for remote actions. Error message is "Unable to invoke action 'ngForceController.getPicklistValues': no controller and/or function found". My dev org has namespace and I don't want to hard code the script with namespace. Can you please help?


0.60.0-0.61.0.sql

0.60.0-0.61.0.sql
ALTER TABLE message
DROP KEY message_id,
ADD KEY message_id (message_id),
ADD KEY chat_message_id (chat_id, message_id);
Tables message has no message_id field.

Right, this bug slipped in, sorry. It is supposed to be the telegram_update table.
Will be fixed in the next release!


Enable CORS for ajax request to the api

https://enable-cors.org/server_apache.html

Oops, this is a server misconfiguration. I'll try to update it later this day.

Fixed it on the production server of api.presentator.io.
I've also added it in .htaccess in the develop branch and with v1.8.0 will be enabled by default.

Thank you.

Sorry,
but it seems to miss a configuration to allow the x-access-token in the response Header from ajax call :thinking:
Access-Control-Allow-Headers: x-access-token maybe ?

@ucodi Just added it. Everything should be ok now.

All works fine now 😀
Thank you !


nwjs: 0.88.0 -> 0.89.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/nwjs/versions.
meta.description for nwjs is: App runtime based on Chromium and node.js
meta.homepage for nwjs is: https://nwjs.io/
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.89.0 with grep in /nix/store/7bym2xwv9nqrcb4arn341dgbcjq6dmx0-nwjs-0.89.0
found 0.89.0 in filename of file in /nix/store/7bym2xwv9nqrcb4arn341dgbcjq6dmx0-nwjs-0.89.0

Rebuild report (if merged into master) (click to expand)

11 total rebuild path(s)

11 package rebuild(s)

First fifty rebuilds by attrpath

betaflight-configurator
emuflight-configurator
gridtracker
inav-configurator
nwjs
nwjs-sdk
onlykey
pinegrow
pinegrow6
popcorntime

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7bym2xwv9nqrcb4arn341dgbcjq6dmx0-nwjs-0.89.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A nwjs https://github.com/r-ryantm/nixpkgs/archive/073471d61433031e5ab13ee7500552a852d91356.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/073471d61433031e5ab13ee7500552a852d91356#nwjs

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7bym2xwv9nqrcb4arn341dgbcjq6dmx0-nwjs-0.89.0
ls -la /nix/store/7bym2xwv9nqrcb4arn341dgbcjq6dmx0-nwjs-0.89.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package failed to build:

nwjs-sdk

9 packages built:

betaflight-configurator
emuflight-configurator
gridtracker
inav-configurator
nwjs
onlykey
pinegrow
pinegrow6
popcorntime

Maintainer pings
cc @MikaelFangel for testing.

Result of nixpkgs-review pr 322566 run on x86_64-linux 1

1 package failed to build:

nwjs-sdk

9 packages built:

betaflight-configurator
emuflight-configurator
gridtracker
inav-configurator
nwjs
onlykey
pinegrow
pinegrow6
popcorntime


Incorrect positioning on SVG element (mobile)

I'm calling protipShow() on an SVG element. It works fine on desktop. But on mobile (iOS), the "top" portion of its style returns a negative value, positioning it off the screen. If I instead target a non-SVG element, the positioning works fine on mobile.

As a workaround please wrap your SVG with an HTML element and use Protip on that.


Implement an exception handler for api client

This PR

Adds a baseline exception handler for the Nomad server connection
Exposes some of the configuration values used to create the API client (for the server)

not sure this implementation avoid the connection error when the server is restarted, did you tested ?

as the Nomad API uses OkHttpApi maybe we can evaluate how to add an interceptor and implement a retry logic
https://square.github.io/okhttp/features/interceptors/

as the Nomad API uses OkHttpApi maybe we can evaluate how to add an interceptor and implement a retry logic
https://square.github.io/okhttp/features/interceptors/

Agreed there are multiple options in the HTTP client which we can possibly expose.
Regarding testing the PR, will check on local cluster when I'm back at my desk, but I'm starting to think that we should not use that Process.. Exception.. , I think it intrinsically terminates the execution 🤔

So I did the experiment with branch and this is what I experienced. Different failure compared to #71
Experimental setup:

Run ./start-nomad.sh in validation
Trigger ./run-all.sh --build
When the execution is underway, kill the nomad process.
Restart the nomad process, without clearing any cache.

With the current server-exception branch
executor >  nomad (4)
[c2/463003] sayHello (4) [100%] 4 of 4, failed: 4 ✘
WARN: [NOMAD] Cannot read exit status for task: `sayHello (2)` | /Users/abhi/projects/nf-nomad/validation/nomad_temp/scratchdir/c1/923113855fdf5527bd2b46e11a584c/.exitcode
WARN: [NOMAD] Cannot read exit status for task: `sayHello (3)` | /Users/abhi/projects/nf-nomad/validation/nomad_temp/scratchdir/18/e8010df35254f73ce6767a7857d917/.exitcode
WARN: [NOMAD] Cannot read exit status for task: `sayHello (4)` | /Users/abhi/projects/nf-nomad/validation/nomad_temp/scratchdir/c2/463003f44e018b65d32d94a5aabf8f/.exitcode
WARN: [NOMAD] Cannot read exit status for task: `sayHello (1)` | /Users/abhi/projects/nf-nomad/validation/nomad_temp/scratchdir/56/04ff36f7635d14c721c7019df8d2c1/.exitcode
ERROR ~ Error executing process > 'sayHello (2)'

Caused by:
  Process `sayHello (2)` terminated for an unknown reason -- Likely it has been terminated by the external system

Command executed:

  echo 'Ciao world!'

Command exit status:
  -

Command output:
  (empty)

Work dir:
  /Users/abhi/projects/nf-nomad/validation/nomad_temp/scratchdir/c1/923113855fdf5527bd2b46e11a584c

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

 -- Check '.nextflow.log' file for details

@abhi18av
I've refactored our work and now we are using FailSafe approach
still need to test a little more (trying to stop the cluster and so on) but it looks nice

I want to implement a more robust test but stopping/restarting manually the nomad process during a bactopia pipeline (because it takes more time to complete than a simple hello) seems to work:

start the cluster
run the bactopia pipeline and when a job is started kill the nomad process
check the .nextflow.log to see how the plugin is retrying
start the nomad server
the pipeline ends successfully

cc @matthdsm
sept-21 12:27:06.156 [Task monitor] DEBUG n.nomad.executor.NomadService - [NOMAD] checkIfRunning jobID=nf-ce8da502fb20d2b26785dd70f6c85afc-BACTOPIA_QC_QC_MODULE_SR; status=running
sept-21 12:27:06.161 [TaskFinalizer-2] DEBUG nextflow.processor.TaskProcessor - Process BACTOPIA:GATHER:CSVTK_CONCAT > Skipping output binding because one or more optional files are missing: fileoutparam<1>
sept-21 12:27:06.161 [Task monitor] DEBUG n.nomad.executor.NomadService - [NOMAD] checkIfDead jobID=nf-ce8da502fb20d2b26785dd70f6c85afc-BACTOPIA_QC_QC_MODULE_SR; status=running
sept-21 12:27:11.129 [Task monitor] DEBUG n.nomad.executor.NomadTaskHandler - [NOMAD] determineClientNode: jobName:nf-ce8da502fb20d2b26785dd70f6c85afc-BACTOPIA_QC_QC_MODULE_SR; clientName:slimbook

sept-21 12:27:11.344 [Task monitor] DEBUG n.nomad.executor.FailsafeExecutor - Nomad TooManyRequests response error - attempt: 1; reason: java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:4646
sept-21 12:27:11.958 [Task monitor] DEBUG n.nomad.executor.FailsafeExecutor - Nomad TooManyRequests response error - attempt: 2; reason: java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:4646
sept-21 12:27:12.797 [Task monitor] DEBUG n.nomad.executor.FailsafeExecutor - Nomad TooManyRequests response error - attempt: 3; reason: java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:4646
sept-21 12:27:15.098 [Task monitor] DEBUG n.nomad.executor.FailsafeExecutor - Nomad TooManyRequests response error - attempt: 4; reason: java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:4646
sept-21 12:27:18.115 [Task monitor] DEBUG n.nomad.executor.FailsafeExecutor - Nomad TooManyRequests response error - attempt: 5; reason: java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:4646
sept-21 12:27:26.336 [Task monitor] DEBUG n.nomad.executor.FailsafeExecutor - Nomad TooManyRequests response error - attempt: 6; reason: java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:4646
sept-21 12:27:44.490 [Task monitor] DEBUG n.nomad.executor.FailsafeExecutor - Nomad TooManyRequests response error - attempt: 7; reason: java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:4646

sept-21 12:27:44.493 [Task monitor] DEBUG n.nomad.executor.NomadService - [NOMAD] checkIfRunning jobID=nf-ce8da502fb20d2b26785dd70f6c85afc-BACTOPIA_QC_QC_MODULE_SR; status=dead
sept-21 12:27:44.495 [Task monitor] DEBUG n.nomad.executor.NomadService - [NOMAD] checkIfDead jobID=nf-ce8da502fb20d2b26785dd70f6c85afc-BACTOPIA_QC_QC_MODULE_SR; status=dead
sept-21 12:27:44.497 [Task monitor] DEBUG n.nomad.executor.NomadService - Task nf-ce8da502fb20d2b26785dd70f6c85afc-BACTOPIA_QC_QC_MODULE_SR , state=dead


[XamarinWorkbooks-Windows]:Accessibility:MAS4.2.1:Inspect: Name Property for Edit box in 'preferences' window is not defined

Steps to Reproduce

Launch Xamarin Workbook application.
Navigate to 'Tools' menu item present in menu bar and Expand it
Navigate to 'Preferences' menu item and select it
Navigate to 'general' tab item and select it
Navigate to Edit box and observe Inspect property

Expected Behavior
Name property should be defined properly for edit box (For e.g. 'Font-Size')
Note:
'RangeValue.Maximum' and  'RangeValue.Minimum' should be properly defined as 72 and 9 Respectively
Actual Behavior
Name property is not defined for Edit box
'RangeValue.Maximum' and  'RangeValue.Minimum' is not defined
Narrator Behavior: Narrator is announcing as 'UI, editing, 72,0% vertically scrolled '
NVDA Behavior: NVDA is announcing as 'UI grouping,edit, 72'
User Impact
Users who rely on screen reader will not be able to know the Name of edit box and hence will not know the purpose of edit box
Screenshots

Environment
Windows :Windows 10 Pro Version 1803 (OS Build : 17672.1000)
Xamarin Version : 1.4 (master/b3f92f9)
NVDA Version: 2018.1
Log File

Please add the following labels to the bug:
A11yMAS
Accessibility
Xamarin-Workbooks-Windows
Wipro
MAS4.2.1


consumes annotation field on HTTP actions without a body

When using a swagger file that defines the consume/produce properties globally:
consumes:
  - application/json
produces:
  - application/json

In the resulting spring interface definitions, the consumes request mapping field is included even for HTTP actions that don't have a body (i.e. DELETE):
@RequestMapping(value="/myendpoint",method=RequestMethod.DELETE,consumes={ "application/json" } , produces={ "application/json" })

This causes issues with "strict" HTTP client libraries like OkHttp which will refuse to send a Content-Type header for DELETE/GET operations - as a result, spring will reject these requests because of an unsupported content type. Would you consider omitting the consumes type for GET/DELETE?
It could be argued that perhaps spring should ignore the consumes request mapping field for HTTP verbs that don't contain request bodies.

@kkrauth
this was reported here. But the issues is not closed yet because the only method fixed so far should be GET. Could you please verify that GET-methods are generated correctly?
Do you have more methods in mind where "consumes" makes no sense?
Regards
Jörg

Thanks, didn't spot that issue. I think GET and DELETE are the two most commonly used HTTP methods that shouldn't have a request body. So if those two omit the content type attribute, the majority of use cases should be covered.
I will add a GET endpoint and check if it works correct with 0.4.31.

I released 0.4.33 minutes ago. DELETE-method should not be generated with 'consumes' anymore.
Please verify and if it's working as expected close this issue. Otherwise let me know what went wrong.
Thanks
Jörg

Yep, that's good! Thank you.


Error on Pawn-Generation, DamageWorkers

New Error happening for many (>2) People on Discord.
Verbatim:

A: im having a problem where when i load this mod it prevents most of the base faction from spawning. how can i fix this?
B: i dont know if its only me but removes most faction bases and breaks sexual interactions
C: if it helps, it seems like it's trying to apply a hediff that doesn't exist to a pawn
C: it throws this error twice and leaves very few factions remaining

Someone else:

D: In my case, that's an error that happens sometimes with my modlist but simply regenerating the seed fixes it automagically
C: Yeah no, it was doing that every seed.
C: Maybe it was the genderless Hayang race that broke it? I doubt it, the logs mentioned Mincho, Merren and Milira by name as well as RimVore2.
C: The weirdest part is that a devmode quick-start colony spawns the factions normally!

Error Looks like this:
Error in WorldGenStep: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 79C68052]
 at Verse.HediffMaker.MakeHediff (Verse.HediffDef def, Verse.Pawn pawn, Verse.BodyPartRecord partRecord) [0x0001a] in <9f1e970858404620af05148900af1df8>:0
 at Verse.Pawn_HealthTracker.AddHediff (Verse.HediffDef def, Verse.BodyPartRecord part, System.Nullable1[T] dinfo, Verse.DamageWorker+DamageResult result) [0x00000] in <9f1e970858404620af05148900af1df8>:0
 at Verse.HealthUtility.AddStartingHediffs (Verse.Pawn pawn, System.Collections.Generic.List1[T] startingHediffs) [0x00045] in <9f1e970858404620af05148900af1df8>:0
 at Verse.PawnGenerator.GenerateInitialHediffs (Verse.Pawn pawn, Verse.PawnGenerationRequest request) [0x005a9] in <9f1e970858404620af05148900af1df8>:0

And this Hugslog

I tried with this modlist:

Quickstart -> Spawn Raid 10k -> No Issue, Sometimes something about siblings.
New Colony -> Lost Tribe -> World Generation is "just fine".

Ok, so I believe this is a ModConflict based on SpawnRJW-Genes
They add the genes to pawns when they are not created, I believe. And then "bad stuff" happens.

I got some more reports:
The following modlist does not throw an error:  CE, CE armors, CE armory, CE guns, CE melee, Masochists can't rebel, Rjw, Rjw-genes, Unleashed Traits, RJW-FB from Archer so it is not "just" CE.
This Modlist throws the error. According to the User, he had to disable were Masochists can't rebel, HaremMaster Trait, RJW Unleashed Traits, Multiple Orgasms, RJW FB, Simple Bed For 10 and Ideology, RJW Genes, having just one of these together with CE and addons crashes my worldgen, either not spawning factions or deleting UI.
A user I asked to remove his SpawnRJW-Genes updated me with This Hugslog
My current guess:
The change in 2.2.1 to Introduce Missing-BodyPartHediff for #133 introduces weird behaviour for Pawns before generation.

I do not get any errors with this ModList:

But I tried multiple seeds, so I don't know.

New Log from a user.

Should all be good with 2.3.0


Add an option for setting a prefix on events

Just getting bare events from Segment into your Librato stats is fairly hard to manage, so this allows you to configure a prefix for your event names in Segment. This will allow you to send segment.test.signed_up and segment.prod.signed_up rather than just signed_up in every environment.
Note: I do not fully understand how settings come in from the actual system, so my tests assume certain things that may not be the case. If there's something you see as odd in here, let me know and I'll fix it up.

I think this might be better handled as a property, instead of a prefix to the event name. You could attach a property environment: 'production' for each event, and then filter it by that attribute in Librato.


Update new documentation project tutorial from Docs Guide

This PR aims to update the tutorial to reflect the change from deploying to qiskit.org/documentation to deploying to qiskit.org/ecosystem.
Some typos and wrong indentations are also fixed.
Added a note about the Rclone configuration file and secret keys

Thanks for making clearer what parts are the example! There are still a few other references to hal_provider that I would recommend making more explicit.
I've learned that people do not closely read docs and are especially quick to copy and paste code.

You mean something more along the lines of changing the code examples to make the distinction explicit instead of doing that only for the text parts (like in e8823bb) @Eric-Arellano?
For example going from this:
rclone sync --progress --exclude locale/** ./docs/_build/html IBMCOS:qiskit-org-web-resources/ecosystem/hal-provider
to this
rclone sync --progress --exclude locale/** ./docs/_build/html IBMCOS:qiskit-org-web-resources/ecosystem/<Enter Your Project Name, e.g. hal-provider>

Exactly


fixFix mtmv name to resolve conflicts in regression test

Proposed changes
fixFix mtmv name to resolve conflicts

run buildall

run p0


Case-sensitive exact match should trump all

Currently, because of the way the values are toLowerCase-ed before comparison (https://github.com/kentcdodds/match-sorter/blob/master/src/index.js#L203), equal lowercased values (bob, Bob, boB) will be returned in their original order, with no priority given to a case-sensitive exact match. Here's an example to illustrate
const list = ['bob', 'Bob', 'Bobby', 'Janice'];
matchSorter(list, 'Bob') // will return ['bob', 'Bob', 'Bobby']

Presumably the first result returned should instead be the exact case-sensitive match (Bob).
One way to solve this would be to add a new CASE_SENSITIVE_EQUAL threshold. Thoughts?

Yes, this sounds perfect. Thanks!

This was implemented and merged with #22 🎉


Example not working

I want to build a slide down panel but your example not working with react native 0.40 and android platform. I haven't tested it on ios.
How can I build a slide down panel like your gif?

@quangtruong I'm no longer maintaining it. Someone made a pr to fix it. But I didn't publish the new fix. You can try installing this package referencing the source to git.
If you would like to see how it works you can look at the source code. It's pretty light. If you want to take over this project let me know (:

not working your example

@ayyoobcastro Hey, I have just replaced the example app. It works!

Great job @jim-at-jibba!


New Template Advantages

post creation wizard
tags
search
light/dark mode
copy & paste code snippets
pagination

Moved this to the wiki: https://github.com/danielmackay/nextjs-blog-v2/wiki


Can I maintain event sequence based on a given timestamp?

Hi,
I would like to know that is it possible that durable_rules processes events in the same sequence as they are posted from the client if I have only one local client which can attach an strictly incremental timestamp to each event.
I try to approach this with the following code, but no luck.
from durable.lang import *

gid = 0

with ruleset('fraud_detection'):
    @when_all(m.time == gid + 1)
    def detected(c):
        global gid
        gid = gid + 1
        print ('purchase from {0}'.format(c.m.location))

    @when_start
    def start(host):
        host.post('fraud_detection', {'id': 1, 'sid': 10, 't': 'purchase', 'location': 'US', 'time': 1})
        host.post('fraud_detection', {'id': 2, 'sid': 10, 't': 'purchase', 'location': 'CA', 'time': 3})
         host.post('fraud_detection', {'id': 3, 'sid': 10, 't': 'purchase', 'location': 'TW', 'time': 2})

run_all()

I am expecting the result would be
purchase from US
purchase from TW
purchase from CA

However, the actual result is
purchase from US

I really appreciate any help you can provide.
Thanks

Yes, if you can guarantee the monotonic sequence increase in the client I can think of a couple of ways:

Assert facts, write a rule to define the relation between two facts, retract the oldest fact when an action is triggered.
Post events, use the ruleset context to store the latest observed id, write a rule to define the relation between id and context state.

Hope this helps. It sounds like fun. I'll play with this as soon as I get a chance.
Sent from my phone

On Aug 15, 2016, at 10:03 AM, shinrairis<EMAIL_ADDRESS>wrote:
Hi,
I would like to know that is it possible that durable_rules processes events in the same sequence as they are posted from the client if I have only one local client which can attach an strictly incremental timestamp to each event.
I try to approach this with the following code, but no luck.
from durable.lang import *
gid = 0
with ruleset('fraud_detection'):
@when_all(m.time == gid + 1)
def detected(c):
global gid
gid = gid + 1
print ('purchase from {0}'.format(c.m.location))
@when_start
def start(host):
    host.post('fraud_detection', {'id': 1, 'sid': 10, 't': 'purchase', 'location': 'US', 'time': 1})
    host.post('fraud_detection', {'id': 2, 'sid': 10, 't': 'purchase', 'location': 'CA', 'time': 3})
     host.post('fraud_detection', {'id': 3, 'sid': 10, 't': 'purchase', 'location': 'TW', 'time': 2})

run_all()
I am expecting the result would be
purchase from US
purchase from TW
purchase from CA
However, the actual result is
purchase from US
I really appreciate any help you can provide.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi,
Thanks for your quick reply.
I have been trying this for the entire morning, but I am not quite sure how to define the relation between id and context state with event posting.
I have stored the latest observed id in context state and write a rule to trigger action only if the event id equals the latest observed id plus 1
from durable.lang import *

 with ruleset('fraud_detection'):
     @when_all(m.time == c.s.latest_id + 1)
     def detected(c):
         print ('purchase from {0}'.format(c.m.location))
         c.s.latest_id = c.s.latest_id + 1

     @when_start
     def start(host):
         host.patch_state('fraud_detection', {'sid': 10, 'latest_id': 0})
         host.post('fraud_detection', {'id': 1, 'sid': 10, 't': 'purchase', 'location': 'US', 'time': 1})
         host.post('fraud_detection', {'id': 2, 'sid': 10, 't': 'purchase', 'location': 'CA', 'time': 3})
         host.post('fraud_detection', {'id': 3, 'sid': 10, 't': 'purchase', 'location': 'TW', 'time': 2})

 run_all()

Also, I am wondering if it is possible for a client to assert facts by sending requests to URL like "http://<IP_ADDRESS>/fraud_detection/10". For what I have learned from the source code, it seems like a client can only post events and patch states via HTTP POST and PATCH.
Thanks again for your help.

You are pretty close. These couple of rules worked for me:
from durable.lang import *

with ruleset('fraud_detection'):
    @when_all(c.first << +s.last,
              c.second << m.time == c.first.last + 1)
    def detected(c):
        c.s.last = c.second.time
        print('fraud_detection: {0}'.format(c.second.location))

    @when_start
    def start(host):
        host.patch_state('fraud_detection', {'sid': 10, 'last': 0})
        host.post('fraud_detection', {'id': 1, 'sid': 10, 't': 'purchase', 'location': 'US', 'time': 1})
        host.post('fraud_detection', {'id': 2, 'sid': 10, 't': 'purchase', 'location': 'CA', 'time': 3})
        host.post('fraud_detection', {'id': 3, 'sid': 10, 't': 'purchase', 'location': 'TW', 'time': 2})

with ruleset('fraud_detection2'):
    @when_all(c.first << +m.time,
              c.second << m.time == c.first.time + 1)
    def detected(c):
        print('fraud_detection2: {0}, {1}'.format(c.first.location, c.second.location))
        c.retract_fact(c.first)

    @when_start
    def start(host):
        host.assert_fact('fraud_detection2', {'id': 1, 'sid': 10, 't': 'purchase', 'location': 'US', 'time': 1})
        host.assert_fact('fraud_detection2', {'id': 2, 'sid': 10, 't': 'purchase', 'location': 'CA', 'time': 3})
        host.assert_fact('fraud_detection2', {'id': 3, 'sid': 10, 't': 'purchase', 'location': 'TW', 'time': 2})

run_all()

The reason why the rule you attached doesn't quite work is because the state rvalue is not loaded in the client for every rule evaluation. It will eventually expire and be reloaded.

Thanks for your quick reply.
I wrote these rules to test your solution to see if it works and fits my use case.
However, it does not work as excepted.
import redis
from durable.lang import *

with ruleset('test'):
	@when_all(c.first << +s.last,
			  c.second << (m.id == c.first.last + 1) & (m.action == 'open'))
	def open(c):
		c.s.last = c.second.id
		print('open path {0} action = {1}'.format(c.second.path, c.second.action))

	@when_all(c.first << +s.last,
			  c.second << (m.id == c.first.last + 1) & ((m.action == 'read') | (m.action == 'write')))
	def access(c):
		c.s.last = c.second.id
		print('access path {0} action = {1}'.format(c.second.path, c.second.action))

	@when_start
	def start_test(host):
		host.patch_state('test', {'sid': 1, 'last': 0})
		host.post('test', {'id': 3, 'sid': 1, 'action': 'open', 'path':'test3'})
		host.post('test', {'id': 2, 'sid': 1, 'action': 'open', 'path':'test2'})
		host.post('test', {'id': 1, 'sid': 1, 'action': 'open', 'path':'test1'})

if __name__ == "__main__":
	redis.StrictRedis().flushall()
	run_all()

The actual outputs are
access path test1 action = open
open path test2 action = open
open path test3 action = open

As you can see, the event(id = 1, action = "open") triggers the "access" rule which should only be triggered by events with action = "read" or "write".
If I rewrite the "access" rule into two different rules, it works as expected.
@when_all(c.first << +s.last,
		  c.second << (m.id == c.first.last + 1) & (m.action == 'write'))
def daware_access(c):
	c.s.last = c.second.id
	print('access path {0} action = {1}'.format(c.second.path, c.second.action))

@when_all(c.first << +s.last,
		  c.second << (m.id == c.first.last + 1) & (m.action == 'read'))
def daware_access(c):
	c.s.last = c.second.id
	print('access path {0} action = {1}'.format(c.second.path, c.second.action))

The output would be like the following which is correct.
open path test1 action = open
open path test2 action = open
open path test3 action = open

Hi, thanks for reporting the problem. There seems to be a bug in the construction of the tree for the expression: (m.id == c.first.last + 1) & ((m.action == 'read') | (m.action == 'write')). The alpha node filtering is not being applied, so all messages match. Let me debug a little more and I will post my findings back.

Quick update: I have a fix ready for this problem. I just need to finish adding more tests.

Hi, reporting back on this issue. I have fixed the code an published a new build to npm, gem and pypi.
The alpha tree for nested 'or' was not being constructed correctly. To ensure the modularity of the constructs in the 'or' case there is a single forward node joining all the branches.


Pixi core 7.0.0 dependancy

Pixi filters is dependant on pixi core v7 which is still in beta. Throws peer dependancy error for anymore on latest stable version of pixi.  You should keep filters on v4 for compatibility with PixiJS v6. Only use v5 if you are transitioning to the PixiJS v7 prerelease.

Got it working with "@pixi/filter-drop-shadow": "4.2.0"


Update and modify Windows docs

Removed sudo from not necessary locations, since it is a windows doc.
Added CUDNN setup information link(s).

Description
(Brief description on what this PR is about)
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

Thanks for your contribution @vrakesh
@mxnet-label-bot[pr-awaiting-review]


[BUG] koinViewModel in precompose-koin not consistent across platform

In precompose-koin version 1.6, for jvm, just calling koinViewModel<BudgetViewModel>() work, but for wasmJs  I get this error:
No value passed for parameter 'vmClass'

When digging into precompose-koin, I can see that koinViewModel has 2 different signatures.
In commonMain/kotlin/moe/tlaster/precompose/koin/Koin.kt the signature is:
fun <T : ViewModel> koinViewModel(
    vmClass: KClass<T>,
    qualifier: Qualifier? = null,
    stateHolder: StateHolder = checkNotNull(LocalStateHolder.current) {
        "No StateHolder was provided via LocalStateHolder"
    },
    key: String? = null,
    scope: Scope = LocalKoinScope.current,
    parameters: ParametersDefinition? = null,
): T

And in jvmAndroidMain/kotlin/moe/tlaster/precompose/koin/Koin.jvmAndroid.kt the signature is:
inline fun <reified T : ViewModel> koinViewModel(
    qualifier: Qualifier? = null,
    stateHolder: StateHolder = checkNotNull(LocalStateHolder.current) {
        "No StateHolder was provided via LocalStateHolder"
    },
    key: String? = null,
    scope: Scope = LocalKoinScope.current,
    noinline parameters: ParametersDefinition? = null,
): T

No need to pass a vmClass: KClass<T> parameter. Why not have a consitent api across platform?

Because there's a bug for Kotlin/Native with Compose: https://github.com/JetBrains/compose-multiplatform/issues/3147, the doc dose mention this in here.

Thx
/RL
On Thu, Mar 28, 2024 at 11:11 PM Tlaster @.***> wrote:

Because there's a bug for Kotlin/Native with Compose:
JetBrains/compose-multiplatform#3147
https://github.com/JetBrains/compose-multiplatform/issues/3147, the doc
dose mention this in here
https://github.com/Tlaster/PreCompose/blob/master/docs/component/view_model.md#:~:text=NOTE%3A If you're using Kotlin/Native target%2C please use viewModel with modelClass parameter instead
.
—
Reply to this email directly, view it on GitHub
https://github.com/Tlaster/PreCompose/issues/292#issuecomment-2026545174,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACNEDW3G5XTZKC4Q7ETDXQ3Y2TLWLAVCNFSM6AAAAABFNVY2H2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGU2DKMJXGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Looks like the bug was fixed? JetBrains/compose-multiplatform#3147

Seems like the fix is included in compose compiler <IP_ADDRESS>, so we can get generic inline composable function now!

@Tlaster seems like androidx now supports kmp lifecycle, navigation and viewmodel (at least in the alphas). Plans to wind down this library?

@Tlaster seems like androidx now supports kmp lifecycle, navigation and viewmodel (at least in the alphas). Plans to wind down this library?

I haven't decided yet, but since Google and Jetbrains officially releasing ViewModel and Navigation for multiplatform, maybe PreCompose have done its job.

🫡
Sent from Proton Mail Android
-------- Original Message --------
On 5/4/24 1:30 PM, Tlaster  wrote:

@.***(https://github.com/Tlaster) seems like androidx now supports kmp lifecycle, navigation and viewmodel (at least in the alphas). Plans to wind down this library?

I haven't decided yet, but since Google and Jetbrains officially releasing ViewModel and Navigation for multiplatform, maybe PreCompose have done its job.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


PHP Library

This issue tracks creating a tangram library for PHP using the FFI functionality introduced in PHP 7.4.

Is there an expected timeline for this? Using tangram for fun, deployed in flask but would like to use Laravel to test it out.

@afeezaziz At the moment we don't have a timeline, but we'll update this issue when we do.

I really looking forward to this...


Texture atlas fails

trying to run a texture atlas on my model that was imported with cats but only end up with a traceback error as seen here (https://cdn.discordapp.com/attachments/487731343632105480/487762101205467137/Capture.PNG)

now its failing to find the textures (just a node im doing this in the cycles render with Space engineer Havok texture nodes)

Well cats needs to find the texture files. Are they stored differently with your method?

the original texture files for the model were never released so you have to convert them from BC7 to BC4 compression for blender after that you load it into blender and the textures are loaded with another addon (space engineers block tools) so it loads these textures in a rather taboo way

This doesn't sound like cats could support that. But you could try to create the texture atlas by searching for smart uv project in Blender. Maybe this works

Alright ill keep digging but this is what I mean (https://cdn.discordapp.com/attachments/303428933209292800/487771870297325579/Capture.PNG)

ok I got a somewhat update I removed the textures it was trying to find that dont exist but now its at another error (https://cdn.discordapp.com/attachments/303428933209292800/487773842782158849/Screenshot_25.png)

"Permission Error, the device is not ready." Maybe try starting Blender as an admin.
Also this error occurs in the material combiner plugin, not in cats. Try to use the material combiner plugin directly and see if the error persists.


Revert 'Remove back button when using end drawer #63272'

Fixes #80256
#63272 introduces some  leading back button showing bugs when the AppBar have an endDrawer
This change reverts it and adds more tests.

Some tests failed, still investigating.

(triage) Hey @xu-baolin are there any blockers to proceeding with this change? It looks like it has not been updated in a while. :) Let me know if this needs another review.

As discussed above, maybe need some refactoring for a long-term fix.
Close and unsign myself in case someone else interesting in this.


Ellipsize is not showing at the end of the text after rendering MarkDown text

Markwon version: 4.2.0

I have to render markdown text into TextView but want to show ellipsis at the end If the text is more than max lines set for TextView.
I have set ellipsize="end" attribute inside TextView but it is not showing three dots at the end of the TextView after rendering the Markdown text.
Is there any workaround to do this?

Hello @mtariquekhan !
There are few stackoverflow threads on this topic (1, 2) and from them it doesn't seem that there is a definite answer.  It worked for me.

You are welcome @mtariquekhan 🙌

@noties the above code worked for me but I am facing one issue with that code.
When the ellipsis has given to TextView inside the RecyclerView then it doesn't work properly.
When the user scrolls the list then the three dots("...") gets disappeared.

Hello @mtariquekhan !
Unfortunately I was not able to reproduce this issue. Would you mind sharing the code that is used to bind markdown to a TextView in a RecycleView.Adapter?

MarkDownParser.Builder builder = new MarkDownParser.Builder(context);         builder.useHtmlPlugin();         builder.useStrikeThroughPlugin();         builder.useAbstractPlugin();         builder.setLinkClickListener(null);         MarkDownParser parser = builder.build();         if (parser != null) {             Spanned spannedMarkDown = parser.getSpannedMarkDown(markDownText);             if (spannedMarkDown != null) {                 parser.renderMarkDown(textView, spannedMarkDown);                 textView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {                     @Override                     public void onGlobalLayout() {                         textView.getViewTreeObserver().removeOnGlobalLayoutListener(this);                         final int max = textView.getMaxLines();                         final Layout layout = textView.getLayout();                         if (layout != null && layout.getLineCount() > max) {                             final int end = layout.getLineEnd(max - 1);                             textView.setText(textView.getText().subSequence(0, end - 3), TextView.BufferType.SPANNABLE);                             textView.append("...");                         }                     }                 });             }         }
Here MarkdownParser is my class which handles the Markwon instance and its functionality.

Hello @noties
I think the issue is with textView.getViewTreeObserver() because getViewTreeObserver doesn't work properly inside RecyclerView. I was facing the same issue while using "https://github.com/bravoborja/ReadMoreTextView" to show "show more/show less" at the end of the TextView(If use trimMode=Lines) inside the RecyclerView.

MarkDownParser.Builder builder = new MarkDownParser.Builder(context);
builder.useHtmlPlugin();
builder.useStrikeThroughPlugin();
builder.useAbstractPlugin();
builder.setLinkClickListener(null);
MarkDownParser parser = builder.build();
if (parser != null) {
Spanned spannedMarkDown = parser.getSpannedMarkDown(markDownText);
if (spannedMarkDown != null) {
parser.renderMarkDown(textView, spannedMarkDown);
textView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
textView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
final int max = textView.getMaxLines();
final Layout layout = textView.getLayout();
if (layout != null && layout.getLineCount() > max) {
final int end = layout.getLineEnd(max - 1);
textView.setText(textView.getText().subSequence(0, end - 3), TextView.BufferType.SPANNABLE);
textView.append("...");
}
}
});
}
}

Hello @noties
I am still facing the same issue for RecyclerView's item.
Do you have any workaround for the same?
Please see the question asked in StackOverflow ==> https://stackoverflow.com/questions/33159492/recyclerview-itemview-ongloballayoutlistener-doesnt-fire-for-all-itemviews

Hello @mtariquekhan !
It might be that setting onGlobalLayoutListener in ViewHolder's contructor won't work because itemView (due to recycling) is attached and detached multiple times. You can apply onAttachStateListener for example in constructor of ViewHolder to register your OnGlobalLayoutListener on view attached and unregister it on view detached.
But. My initial answer implied that you apply OnGlobalLayoutListener once directly before setting markdown on your TextView. In RecyclerView context it would be - in onBindViewHolder method.

You apply OnGlobalLayoutListener
You apply your markdown which triggers global layout change event
Your OnGlobalLayoutListener is invoked, it does its job and it unsubscribes itself from receiving further layout events


fix: Auto-delete stacks that failed creating before new attempt

Restore the previous behavior around stacks that failed creation,
detecting the condition and automatically deleting the stack before
making a new attempt.
The stack is not deleted after the failure in order to allow for
forensics to be performed. Also, deleting the stack on the next creation
attempt is more robust.
Fixes #901

Merge as fix(aws-cdk): ...


Inconsistent Copy / Paste Behavior

When you copy/paste a date (like '09/04/1948') into a datepicker field with Ctrl+V and hit Tab the datepicker works as expected, updating on paste / keeping the date you pasted once you hit tab.
However, If you (may have to refresh prior to this) paste that same date, 09/04/1948 into the field using Right Click -> Paste and then press Tab it will change the date you pasted to the default date.
Win7 x64, Google Chrome
Feel free to confirm on this Bootply

I'm working on a fix for this - it already works on Firefox and Chrome for my company's use cases. Testing for Safari and IE is in progress.
We need to have this fix into version 1.3.0, but we can fork that specific version ourselves if needed.
Message me if you have any questions. I haven't pushed my changes to my fork yet, but I will soon.

Ok, looks like my fix is working on FF, Chrome, Safari, IE 11, and IE 9. @acrobat are there any other browsers you would want me to test on?
My apologies that I can't post the code just yet - I need to make 100% sure I have legal permission - but expect it shortly (in a few days at the absolute worst).

Fixed in #1297


chore: replace testid usage where applicable

Replace data-testid usage in tests where applicable (to better mimic testing real user behavior).

👍🏻


[LSP] - infinite diagnostics notifications when initialized with onlyAnalyzeProjectsWithOpenFiles as false

It seems that when the dart_analysis_server is started with the onlyAnalyzeProjectsWithOpenFiles as false the server keeps sending a lot of repeated publishDiagnostics notifications to the client for the same file even without moving the cursor.
This doesn't happen when initializing the server with onlyAnalyzeProjectsWithOpenFiles as true.
Tested on flutter channel stable, dart 2.9.0 and flutter dev channel, Dart 2.9.0 (build 2.9.0-21.0.dev 7e72c9ae7e) using lsp-dart.

@DanTup I could not reproduce with vscode using previewLsp and setting onlyAnalyzeProjectsWithOpenFiles to false for some reason...

@ericdallo are you able to capture a log (using --instrumentation-log-file=/foo/bar.txt) of this happening?

I used the capture log but without this instrumentation-log-file settings and I didn't see the server publish a lot of diagnostics like testing with lsp-dart

@ericdallo sorry, I meant - are you able to add the --instrumentation-log-file= option when using lsp-dart to capture a log? It might help understand why the diagnostics are being sent repeatedly.
Thanks!

@DanTup, I recorded a file with onlyAnalyzeProjectsWithOpenFiles as true and another with false:
onlyAnalyzeProjectsWithOpenFiles: true
lsp-dart-ok.zip
onlyAnalyzeProjectsWithOpenFiles: false
lsp-dart-bug.zip
I recorded only 6-7 seconds with the bug one as the server publish a lot of diagnostics and the file would be huge, but I think you can get the point.
Hope it helps!

Hmm, it looks like the server might not be caching the results for that file - which means when requests for things like codeActions are coming through, the file is being re-opened and parsed (which will trigger sending diagnostics).
We had this in VS Code when we sent priority files before setting analysis roots (https://github.com/Dart-Code/Dart-Code/issues/2438) but I don't think anything similar should be possible here.
How simple would it be for me to set this up and reproduce it here? (I have easy access to macOS and Windows, though can also run Linux in Docker fairly easily). I've never used emacs though 🙃

@DanTup really odd, I think you can download emacs 27(latest), and use this for basic lsp-mode/lsp-dart setup, then open a dart/flutter project and lsp-dart should connect it
Also for reproducing the bug, add this to your init.el:
(setq lsp-dart-only-analyze-projects-with-open-files nil)

Feel free to ask anything or for a fast chat, ask on our gitter, and thank you very much for trying to help with that :)

You can also follow this if helps: https://emacs-lsp.github.io/lsp-mode/page/installation/

@ericdallo I think I've managed to get it set up, as I see yellow(!) text for quick fixes near where I have bad code:

However, it's not clear where the diagnostics are supposed to show up, or how I can enable logging of the LSP server (or pass the --instrumentation-log-file switch so the server will log).

Also - can you confirm how I should set a custom server path? I tried:
(setq lsp-dart-server-command "/Users/danny/Dev/Google/dart-sdk/sdk/pkg/analysis_server/bin/server.dart")

But I think this is missing the --lsp args (appending it to the string doesn't help), I get

Command "/Users/blah" is not present on the path.

(setq lsp-dart-server-command "/Users/danny/Dev/Dart SDKs/nightly-2020-08-24/bin/dart /Users/danny/Dev/Google/dart-sdk/sdk/pkg/analysis_server/bin/server.dart")

Should be:
(setq lsp-dart-server-command '("/Users/danny/Dev/Dart SDKs/nightly-2020-08-24/bin/dart" "/Users/danny/Dev/Google/dart-sdk/sdk/pkg/analysis_server/bin/server.dart")

@yyoncho aha! Thanks! I needed "--lsp" on the end too, but seems to be working now 🙂

I've managed to run this from source with a log, and I think I have an idea of the issue - though I'm struggling to repro. I think the issue might be that I'm not sending documentSymbol requests (which the broken log file above was). Is there something I need to do to enable support for document symbols somewhere? Thanks!

@ericdallo ok, I'm mostly there.. however, despite having (setq lsp-dart-only-analyze-projects-with-open-files nil) in my ~/.emacs file, I'm still seeing "initializationOptions"::{"onlyAnalyzeProjectsWithOpenFiles"::true in the instrumentation file. The other settings there are working (for example the command to run the server from source). Any ideas?
full .emacs file

@DanTup, you can check the current variable value on emacs with M-x describe-variable, also if you change a variable after the server has started, you need to lsp-workspace-restart to restart the server.
Try to move the setqs to a :init block on lsp-dart's use-package, like here.
Let me know if that doesn't fix the issue

@ericdallo I was restarting emacs after changing. I ran describe-variable but it says it's nil:

Try to move the setqs to a :init block on lsp-dart's use-package

That seems to have done it, thanks!

This seems to be the same issue as https://github.com/Dart-Code/Dart-Code/issues/2438, however my fix (https://dart-review.googlesource.com/c/sdk/+/147183/) was only applied to the original (non-LSP) server.
I've applied the same fix to LSP here:
https://dart-review.googlesource.com/c/sdk/+/147183/
The issue is that when running with the setting above, we use the client-provided folder as analysis roots (not the open files), but applying them may be delayed while we send requests to the client to get configuration. Opening a file before the analysis roots were set would result in the file not being marked as priority, and therefore not being cached.
There was another way to fix this, which was to always set analysis roots prior to asking the client for config. That would work today, but if we add configuration in future that affects analysis, it would mean we'd start initial analysis without those settings.

Thank you very much @DanTup for putting effort in figuring out that!

https://dart-review.googlesource.com/c/sdk/+/160225/

This LSP fix is already on master?

This LSP fix is already on master?

Sorry, not yet - I've just opened a review for it. The blue badge in the top left corner that says "Active" will be green and say "Merged" once it's merged into master - though it'll be the next day before it's available in a nightly Dart SDK.
If you're eager to test it, you could clone https://github.com/DanTup/sdk/tree/seed-lsp-drivers-priority and run the server from source. You'd probably want to use the latest nightly build for the SDK (you'll get weird issues if the VM running the server from source is too far out-of-sync with the server source) and then just set the path to the server like:
(setq lsp-dart-sdk-dir "/Users/danny/Dev/Dart SDKs/nightly-2020-08-24")
(setq lsp-dart-server-command '("/Users/danny/Dev/Dart SDKs/nightly-2020-08-24/bin/dart" "/Users/danny/Dev/Google/dart-sdk/sdk/pkg/analysis_server/bin/server.dart" "--lsp"))

I see, no worries, Is there any way to subscribe for that status change? or could you let me know when the fix is on the latest dart SDK version?

Thank you! I'll test it later :)

@ericdallo it should be in the nightly that was built around an hour ago:
http://gsdview.appspot.com/dart-archive/channels/be/raw/latest/sdk/
Let me know if you still see issues with it. Thanks!


usb: device: allow uneven SN to be obtained from HWINFO

If the length of the string literal reserved for the serial number descriptor is odd, the string is not used because its length is always even and therefore one character longer. Fix this by using the shortest length for the copy.
Fixes: #69585

I cannot understand the commit message. Why does it specifically refer to odd length, when the code is more about "different length"?

Default implementation of usb_update_sn_string_descriptor returns string with length of 2*(int)(default_sn_len+1)/2), so the result is incorrect for serial numbers of odd lengths, resulting string is 1 character longer.


404 Error on Corese-Command Application Page in French Language Setting

Hello,
While browsing the Flathub website with the French language setting, I encountered a 404 error when trying to access the "Corese-Command" application page via the search functionality. Below are the detailed steps to reproduce the issue:

Set the Flathub website language to French.
Use the search function to find "Corese-Command." You can use this link to get to the French search results directly.
Click on the "Corese-Command" application from the search results.

Following these steps leads to a 404 error page. Interestingly, this issue doesn't occur when accessing the application page directly through this specific URL, suggesting the problem might be with the internal linking on the Flathub website.
Browser/OS: I tested this issue on Fedora 38 and Windows 11 using browsers: Firefox, Chrome, and GNOME Web. The result was the same across all platforms and browsers.
Further observations:

This issue seems to be isolated to the "Corese-Command" application when using the French language setting, as I have tested other applications and language settings without encountering this problem.
Directly accessing the page through its specific URL is a current workaround.

I hope this information helps resolve the issue. Thank you for your attention to this matter.
Best regards

I can reproduce it too.
Further observation: Disabling brotili compression makes the bug go away.

Open Firefox about:config
Change the value of network.http.accept-encoding.secure from gzip, deflate, br to gzip, deflate
Follow the steps reported by @remiceres

Seems to be back working for now

#1931 tracks a permanent fix


cv rodrigo

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Drohiro sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Update Dockerfile

Review my change and approve it

Adding Comment 1

Adding Comment 2

Adding Comment 3

Final COmment Closiong


Strict enforcement of principal inertial canonical directions.

In some cases (e.g., symmetric molecules) our principal inertial tensor does not have a canonical directionality. This is probably unavoidable, but may cause problems in crystal building / parameterization.
Some ideas:

de-symmetrize incoming molecules in featurization, even by a tiny bit (at float32 precision) - this may cause problems with the physical crystal however
simply reject symmetric molecules
harmonize parameterization scheme with symmetric inputs

Believe this is strictly impossible for high symmetry molecules. In any case looking to remove the need for explicit absolute orientation parameterization where possible. Instead, use a relative parameterization e.g., a rotation matrix from a given initial condition.


All versions, but <IP_ADDRESS> are missing from the repository

Hi,
http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/<IP_ADDRESS>/elasticsearch-river-jdbc-<IP_ADDRESS>-plugin.zip currently returns a 404.
And on a side note, would you consider changing the filename so that it becomes elasticsearch-river-jdbc-<version>.zip? In other words skipping the -plugin suffix? This makes it more in line with other Elasticsearch plugins and the conventions used in maven repositories. Adding <appendAssemblyId>false</appendAssemblyId> to the configuration section of the assembly plugin in the pom should do the trick. At least this makes sense to me, since the zip assembly is the main artifact of a plugin project.
Best regards
Konrad Beiske

I wiped the plugin repo by accident, sorry for that.
The version <IP_ADDRESS> is restored and a new version <IP_ADDRESS> is released. The assembly ID is removed.

Hi Jprante, you will restore <IP_ADDRESS>?

Yes, it will take a few minutes.

Link to http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/<IP_ADDRESS>/elasticsearch-river-jdbc-<IP_ADDRESS>-plugin.zip is restored.

thank's !!

Hello we need elasticsearch-river-jdbc-<IP_ADDRESS>-plugin.zip can you add it back ?
tx

@frederic-jomedia Can you try <IP_ADDRESS>?

Will try tx

@frederic-jomedia Did it work? Just asking since we used the same version and repo does not have it.


feat: plugin state per tab

Describe the problem
The plugin is scoped to a single tab, meaning that enabling it on a second tab disables the first one first.
Describe the solution
The state should be scoped to the tab, so that many instances of NNP could leave at the same time.

something like this can register a new tab
    vim.api.nvim_create_autocmd({ "TabLeave" }, {
        callback = function()
            vim.schedule(function()
                if E.skip(S, false, false) then
                    return
                end

                S.tabs = Ta.refresh(S.tabs)
            end)
        end,
        group = "NoNeckPain",
        desc = "Refreshes the tabs state",
    })


chore(main): release 1.2.3

:robot: I have created a release beep boop
1.2.3 (2024-07-10)
Bug Fixes

deep merge no cover (a60dec1)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.2.3
:sunflower:


Pause bug

When a song is being played after a search, if paused and resumed then it starts from beginning. Same issue in notification also. Also the song is on repeat after the song ends.

Fixed in YouTube-In-Background 3.1.0 release.


MSAA causes Lights to create a pixelated rim around Objects

Godot version
4.0 Beta 4
System information
Windows 11, Vulkan, GTX 1050 Ti 516.94
Issue description
For some reason MSAA starts creating pixelated, out of place lighting on edges of objects, that shouldn't be lit
MSAA 8x

MSAA Off

Steps to reproduce
Open MRP, toggle MSAA on and off. Objects with higher Aliasing tend to have more issues.
Minimal reproduction project
MSAA.zip

The issue is barely noticeable on the screenshot, and likely occurs in every engine.

Unfortunately I can't reproduce your issue, nor can I see the issue you described in the screenshots you provided (even comparing the images side by side). Turning MSAA on just anti-aliases the image without introducing any out of place lightning.

This is a Regression in the Vulkan Renderer, I've been unable to replicate in Godot 3.5.1. Stable


support resume for failed job

Current Behavior
only paused job could be resumed
Proposed Behavior
failed job could also be resumed

locally tested


How to replace json specific response value over resnponse transformer plugin?

Summary
Hello, I tried to configure to replace the response code value from upstream. The case is, if response code return: 2 than I want to transform to 22.
Original response code: responsecode: 2
With transformer expected value will be: responsecode: 22
Steps To Reproduce

Activate Response Transformer Plugin
Add replace value: responsecode:22 on body

within this configuration, all response response return to 22
Additional Details & Logs

Kong version ($ kong version)
Kong debug-level startup logs ($ kong start --vv)
Kong error logs (<KONG_PREFIX>/logs/error.log)
Kong configuration (the output of a GET request to Kong's Admin port - see
https://docs.konghq.com/latest/admin-api/#retrieve-node-information)
Operating system
Thanks

Solved!!! thanks for great plugin

Hi, @zkenstein  -san
May I know how your problem was solved?
thank you ~


OIDC First Logon - Force username / email address

Gitea version (or commit ref): 1.14.3, binary release

Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[x] No (--> there is no OpenID logon button)

Description

Hi,
Thanks for the great software!
I integrated Gitea with Keycloak via OpenID - it works smoothly! There is one small flaw I am noticing however: whilst the user is prohibited from changing their email address in their profile after signing up (which is perfect, as their should be no email-address inconsistencies across services hooked up to the SSO), they ARE given the option to set their email address at their first logon to Gitea.
It'd be fantastic if this could be prohibited / "greyed out" by an administrative option, in order for the user not getting tempted to modify the email address that is set in their SSO backend.
This would benefit environments which rely on consistent user profile data across services.
Screenshots

Best
Georg
Edit: I just realized that the same is the case with the username, which the user is being told "Non-local users are not allowed to change their username. Please contact your site administrator for more details. " in the profile (which is perfect), whilst they were able to define their own Gitea username upon their first OIDC authentication to Gitea. Maybe the hole "Register new account" section could be administratively set to force username and email address values, with the "Link to an existing account" section only allowing to link to an account matching the email address?
Apologies for the long description - I hope it makes sense.

I realize this is pretty old, but have you tried the ENABLE_AUTO_REGISTRATION = true flag combined with the ACCOUNT_LINKING = auto flag? I think that might give you your desired behavior. It will skip the screen that allows users to set their username/email when logging in for the first time via OIDC. If no user with the IdP-provided email exists, it will create a new user, whereas if a user with the IdP-provided email already exists, it will link that login to the existing user. Users won't have a chance to set those parameters.

I realize this is pretty old, but have you tried the ENABLE_AUTO_REGISTRATION = true flag combined with the ACCOUNT_LINKING = auto flag? I think that might give you your desired behavior. It will skip the screen that allows users to set their username/email when logging in for the first time via OIDC. If no user with the IdP-provided email exists, it will create a new user, whereas if a user with the IdP-provided email already exists, it will link that login to the existing user. Users won't have a chance to set those parameters.

this is a workaround indeed. but the fact ENABLE_AUTO_REGISTRATION is required in order for ACCOUNT_LINKING to be working should be considered a bug. is there any issue about this please?


PSO-1380 Handle invalid timestamps and replace with current system time

Let's look at the changes and retest again tomorrow.

As some of the changes are from your end so you may update them if any checks are not required.


Update DACUM_1.0 to 1.1

The DACUM_1.0 database was updated to version 1.1 integrating all information from SKEMPI.
The "readme" was updated for DACUM_1.1.

Hi Cunliang
It looks like the branch has conflicts…
"This branch has conflicts that must be resolved
Use the command line to resolve conflicts before continuing.”
Did you update your local version before the update?
Cheers
Alexandre

On 18 May 2016, at 16:05, CunliangGeng<EMAIL_ADDRESS>wrote:
The DACUM_1.0 was updated to version 1.1 integrated all information from SKEMPI.
The "readme" was updated for DACUM_1.1.
You can view, comment on, or merge this pull request online at:
https://github.com/haddocking/DACUM/pull/2
Commit Summary
• Update readme for DACUM_1.1
• add DACUM_1.1.csv file
File Changes
• A DACUM_1.1.csv (1873)
• M README.md (67)
Patch Links:
• https://github.com/haddocking/DACUM/pull/2.patch
• https://github.com/haddocking/DACUM/pull/2.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

==================================
Alexandre Bonvin
Talingweide 91, 3403 AC IJsseltstein, NL
Tel: +31-30-7525883
Email<EMAIL_ADDRESS>


Update NestableTrait.php

Multiple elements passed to attributes array is not getting applied. For example
Category::attr(['name' => 'parent_id', 'class' => 'form-control'])->renderAsDropdown();

Above line is supposed to take both name and class parameter. But only name is added to select box. Below line on 221 rejects all parameters except first element.
static::$parameters[$method][key($value)] = current($value);

So if the $value is array, then I'm looping them to add to $paramater variable
foreach ($value as $key => $attr) {
       static::$parameters[$method][$key] = $attr;
}

Hi @Sarav-S
I approved your PR.  Thank you for contribute.


jcenter deprecation

JCenter is shutting down.
Because maven central is already being used as a repository, jcenter should be removed from build.dependencies.gradle (as maven central is the goto replacement for jcenter).
This will also stop gradle from emitting deprecation warnings.

Forgot that jcenter is also used in build.gradle

Thank you for the reminder.  This is being tracked internally.   Clarification however, that JFrog has announced that it is leaving JCenter online in a read only fashion indefinitely.  It's not however clear yet whether or not the gradle team will reverse track on their decision to remove the jcenter support in v8.0.


Cookies table without a description

Describe the bug
In order to be accessible to visually impaired users, it is important that tables provides a description of its content before the data is accessed.

The simplest way to do it, and also the one recommended by WCAG2 is to add a <caption> element inside the <table>.

Other technics this rule accepts are:

referencing the description element with an aria-describedby attribute in the <table>.
embedding the <table> inside a <figure> which also contains a <figcaption>.
adding a summary attribute to the <table> tag. However note that this attribute has been deprecated in HTML5.

To Reproduce
Steps to reproduce the behavior:
designer/server/views/help/cookies.html
<table class="govuk-table">
Additional context
sonarqube issue

#755

issue solved and merged into main


Searching from a specific folders returns items from the root

Created from Stack Overflow question http://stackoverflow.com/questions/33671644/onedrive-search-api-always-returns-the-result-from-the-root

When I try to search something from a SPECIFIC folder:
https://api.onedrive.com/v1.0/drive/items/{the_folder_id}/view.search?q=txt
the API always returns the search result from the ROOT folder. I tried using the API console, and the problem is still the same. Is this a OneDrive bug ?

I have a repro, and it's definitely returning things outside of the scope of the target item.

This issue should now be resolved.


index not found

Not sure what is wrong here. the db and index folders are at their default locations. Even so I copied them to each and evey folder possible. But still it is giving the same error.
File "C:\Users\Administrator\Documents\chatdocs\chatdocs\Lib\site-packages\langchain\vectorstores\chroma.py", line 312, in similarity_search_with_score
   results = self.__query_collection(
             ^^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\Administrator\Documents\chatdocs\chatdocs\Lib\site-packages\langchain\utils\utils.py", line 30, in wrapper
   return func(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\Administrator\Documents\chatdocs\chatdocs\Lib\site-packages\langchain\vectorstores\chroma.py", line 145, in __query_collection
   return self._collection.query(
          ^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\Administrator\Documents\chatdocs\chatdocs\Lib\site-packages\chromadb\api\models\Collection.py", line 227, in query
   return self._client._query(
          ^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\Administrator\Documents\chatdocs\chatdocs\Lib\site-packages\chromadb\api\local.py", line 437, in _query
   uuids, distances = self._db.get_nearest_neighbors(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\Administrator\Documents\chatdocs\chatdocs\Lib\site-packages\chromadb\db\clickhouse.py", line 585, in get_nearest_neighbors
   uuids, distances = index.get_nearest_neighbors(embeddings, n_results, ids)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\Administrator\Documents\chatdocs\chatdocs\Lib\site-packages\chromadb\db\index\hnswlib.py", line 240, in get_nearest_neighbors
   raise NoIndexException(
chromadb.errors.NoIndexException: Index not found, please create an instance before querying

load INSTRUCTOR_Transformer
max_seq_length  512
Using embedded DuckDB with persistence: data will be stored in: db
CUDA extension not installed.
The safetensors archive passed at C:\Users\Administrator/.cache\huggingface\hub\models--TheBloke--Llama-2-7b-Chat-GPTQ\snapshots\b7ee6c20ac0bba85a310dc699d6bb4c845811608\gptq_model-4bit-128g.safetensors does not contain metadata. Make sure to save your model with the save_pretrained method. Defaulting to 'pt' metadata.
skip module injection for FusedLlamaMLPForQuantizedModel not support integrate without triton yet.
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'

Serving Quart app 'chatdocs.ui'
Environment: production
Please use an ASGI server (e.g. Hypercorn) directly in production
Debug mode: False
Running on http://localhost:5000 (CTRL + C to quit)  this doesn't seem like the ideal output. I am on a windows server using pyton 11. Someone said, 7B models are "lightinig fast" . I am using the following yml
*embeddings:
model: hkunlp/instructor-large

llm: gptq
gptq:
model: TheBloke/Llama-2-7b-Chat-GPTQ
model_file: C:\Users\Administrator\Downloads\gptq_model-4bit-128g.safetensors
device: 0
pipeline_kwargs:
max_new_tokens: 256
download: false
host: localhost
port: 5000
auth: false
chroma:
persist_directory: db
chroma_db_impl: duckdb+parquet
anonymized_telemetry: false
retriever:
search_kwargs:
k: 4  , could you please guide me a little on how to get this "lighting fast" performance out of this? I am on a Tesla T4 AWS EC-2. If there is no other option than to move to linux, I will do that as well, but it will increase my work manyfold, so tell me if there is a way to get this done on the same machine please.

Got the same error:
File "/media/vmirea/NTFS_8TB/projects/chatdocs/venv/lib/python3.11/site-packages/chromadb/db/index/hnswlib.py", line 240, in get_nearest_neighbors
raise NoIndexException(
chromadb.errors.NoIndexException: Index not found, please create an instance before querying
(venv) (base) vmirea@vmirea-Z390-GAMING-SLI:/media/vmirea/NTFS_8TB/projects/chatdocs$ chatdocs ui
load INSTRUCTOR_Transformer
max_seq_length  512
Using embedded DuckDB with persistence: data will be stored in: db

Serving Quart app 'chatdocs.ui'
Environment: production
Please use an ASGI server (e.g. Hypercorn) directly in production
Debug mode: False
Running on http://localhost:5000 (CTRL + C to quit)
[2023-10-31 11:30:36 +0000] [1643863] [INFO] Running on http://<IP_ADDRESS>:5000 (CTRL + C to quit)
[2023-10-31 11:31:27 +0000] [1643863] [INFO] <IP_ADDRESS>:53040 GET / 1.1 200 4416 4190
[2023-10-31 11:31:27 +0000] [1643863] [INFO] <IP_ADDRESS>:53040 GET / 1.1 - - 4484
[2023-10-31 11:31:27 +0000] [1643863] [INFO] <IP_ADDRESS>:53052 GET /ws 1.1 101 - 422


[Bug] \d+ for cloudberry partitioned table segfault.

Cloudberry Database version
HEAD
What happened
There is an issue with psql \d+ feature for partiotion root tables that i encountered while reviewing pr https://github.com/cloudberrydb/cloudberrydb/pull/695.
Long story short:
db2=# \d+ star.trd_fct
row number 0 is out of range 0..-1
row number 0 is out of range 0..-1
cannot duplicate null pointer (internal error)

This is because psql query for partition root returns zero tuples
https://github.com/cloudberrydb/cloudberrydb/blob/main/src/bin/psql/describe.c#L2297
db2=# SELECT a.compresstype, a.compresslevel, a.blocksize, a.checksum FROM pg_catalog.pg_appendonly a, pg_catalog.pg_class c WHERE c.oid = a.relid AND c.oid ='star.trd_fct'::regclass::oid;
 compresstype | compresslevel | blocksize | checksum
--------------+---------------+-----------+----------
(0 rows)

What you think should happen instead
No response
How to reproduce
CREATE TABLE star.trd_fct (
trd_date_key date NOT NULL ,
prod_key integer NOT NULL ,
cust_key integer NOT NULL ,
notional_val numeric(20,10) ,
num_of_shares integer ,
num_of_trades integer ,
trd_id bigint NOT NULL ,
ins_ts timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL
)

WITH (
appendoptimized=true
,orientation=row
,compresstype=zlib
,compresslevel=5
)
DISTRIBUTED RANDOMLY
PARTITION BY RANGE (trd_date_key) (
START ('2020-01-01'::date) INCLUSIVE
END ('2027-01-01'::date) EXCLUSIVE
EVERY (interval '1 Year')
)
;

\d+ star.trd_fct

Operating System
any
Anything else
No response
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct.

In fact, we can avoid this by not querying this for partition root. But what info we should provide for \d+ in this case?

nice catch. I'll fix it in https://github.com/cloudberrydb/cloudberrydb/pull/695

Has fixed in #695 . I'll close this issue.


Add CI tests for MSVC 2019

We'd appreciate a PR to add CI tests for MSVC 2019. Ideally, we are looking for a maintainer that also takes care of maintenance of those jobs and MSVC support in general.

Added MSVC 2019 to the CI matrix, the 2.x branch shows errors with MSVC 2019.

Fixed.


Switching language in middle of application navigates to 404 page

Describe the bug
In the middle of the application, if you switch languages, the browser navigates to a URL that does not seem to exist.
To Reproduce
Apply for ORCA program
Fill out some question screens
Switch languages using the picker at the top of the screen
Expected behavior
Expect language to switch successfully (even if not all strings have been translated this should be best effort).
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser Edge
Version [e.g. 22]

I think this only happens if you tried to submit with unanswered required questions.

can't reproduce this anymore

jk, was able to reproduce this immediately after i closed this


[bug] hydration mismatch

For the hydration mismatch this is probably a bug, do you have a repro ? With useFetch the data fetched on SSR is passed in the payload to the client (so you should see it in the nuxt devtools in Payload/Data)

Here's a minimal reproduction on stackblitz: https://stackblitz.com/edit/nuxt-starter-trga3p?file=components%2FBooks.vue
Again, same minimal code from README using ServerLoader, tested on nuxt v3.6.5 + form-actions-nuxt 0.2.0-beta.1.

Screenshot

You can see the Hydration text mismatch warning on the console.
Some interesting points:

console.log inside the component is run more than once on the server (see lower left, console from terminal). Here you see it three times, but on my actual project I consistently see it twice.
console.log on the client does not return result value -- see console on Chrome dev tools: result.value: null. I think this is where vue figures out there is a mismatch. One thing interesting is if you check the network request, you DO get a response with data in it. It seems like the data gets lost during returning it to the component.
Despite the node mismatch you can still see the rendered screen in the screenshot, but on the actual project the client fails to render the data. (Maybe its because on stackblitz the client also renders the component twice, but not the actual project.)

I'm also checking on the route params update as well. Stay tuned for feedbacks! :)
Originally posted by @jangxyz in https://github.com/Hebilicious/form-actions-nuxt/discussions/29#discussioncomment-6687814

I was able to reproduce it initially, but as soon as I switched to /pages the bug went away.
Still interesting that it happens with app.vue, but that's probably an upstream bug.
I did notice a couple of other bugs and will push fixes now
https://github.com/Hebilicious/form-actions-nuxt/pull/32
https://github.com/Hebilicious/form-actions-nuxt/pull/35

I can confirm that with the v0.2.0-beta.4 release, the mismatch is gone -- for both pages/ and default app.vue approach. Great work! 😎


[UX2.0] AAAParcel: add function to add user and set server_auth_order list.

Description
Path: cisco-catalyst-wan-sdk/catalystwan/models/configuration/feature_profile/sdwan/system/aaa.py

Add add_user function similar to add_radius_group or add_accounting_rule.
Add set_server_auth_order function that will take list as an argument.

Validated in dev-uxmt.


Why don't I have easy access to the model in migrations?

Forgive me if this is the wrong way to go about this but the wiki is out of date and there doesn't appear to be a forum for this.
I'm developing a provider and am wondering why in the ColumnDefinition method that is called from a create db op I don't have ready access to the property in the model that defines the column?  I have set StoreGeneratedPattern on the column in the model and simply want to check that value in the migration sql generator to generate the SQL.  However I am simply passed some values from the model (name, table, etc) along with the model and the AddColumnOperation object.
Yes, I could write a method to iterate through the model looking for my property but that seems needlessley inefficient as the EF framework has already mapped the column in the model to the AddColumnOperation.  Why should I have to go find it  again?

I'm starting to work on some significant changes to the migrations pipeline for #1825, #1904 & #1975. When I'm finished, any provider-specific annotations on the model should flow into the migration operations.
Direct access to the model in a Migrations SQL generator is generally discouraged. Our intention is that you should only have to use it for truly exceptional operations like rebuilding a table.

Since a big part of EF is generating SQL from a model it seems counter-intuitive to say that you cannot access the model from the sql generator.  Why is it discouraged?

It seems quite simple to set the StoreGeneratedPattern on a property to Identity (for autoinc columns) and then in the ColumnDefinition method of the migrationsqlgeneator to simply check for that StoreGeneratedPattern and generate the appropriate SQL.  However the model property is not there.

Generating DML from a model goes through the Migrations pipeline. This allows users to create database artifacts that don't directly map to items in their model. For example, a customer may want to create an auditing table with an autoincrementing column. In this case, there is no property in the model to look at the StoreGeneratedPattern.
Instead, you're provider should create a convention so whenever the StoreGeneratedPattern is set to Identity, an annotation like MyProvider:Autoincrement=True gets added. This would then flow into the migration operation.
Alternatively, a user could do something like this inside of their migration code:
migrationBuilder.AddColumn(
        name: "Id",
        type: "int")
    .ForMyProvider(x =>
    {
        x.AutoIncrement();
    });

The call to AutoIncrement would also add the MyProvider:Autoincrement=True annotation to the operation. In this case, there is no property object backing the Id column.
I hope this illustrate why we try to decouple DDL generation from the metadata model.

yes, thanks for the explanation.  That makes it more clear.


Remove build warnings and turn on warning as errors in IISLib.

For #638. Seems we forgot to decrease build warning level on IISLib from 4 to 3.
cc/ @natemcmaster

Thanks for a taking a look at this so quickly. :shipit:


"Let's go" button in update info popup invisible and scrolling unobvios

The "Let's go" button in update info popup invisible and scrolling unobvious unless app windows is expanded.

@voldemarz Your window is smaller than average.  We actually chunked a bit off the changelog so that the button fitter on most peoples displays.
Not much we can do about this.

@MarshallOfSound I have 1920x1080 display, just tend to use smaller windows. Can't you add a scroll bar? Add button on top or next to title? Allow closing it by pressing Escape? It definitely is confusing currently.

@voldemarz There is a scroll bar, it is just unfortunately quite hard to see.
I'll add a flex rule to the changelog so the button is always visible


Address copy to clipboard button doesn't work when displaying ENS domain

Describe the bug
When connected with a wallet that has an ENS domain resolving to it, the button to copy the address on the top bar copies the ENS domain instead of the full address.
To Reproduce
Steps to reproduce the behavior:

Go to https://amarok-testnet.coinhippo.io/
Connect an address with an ENS domain resolving to it
Click on the clipboard button
See error

Expected behavior
The button should always copy the full 0x address.
Screenshots

works for me now closing


Keys and Shortcuts

Microsoft PowerToys version
v0.58.0
Running as admin

[X] Yes

Area(s) with issue?
Keyboard Manager
Steps to reproduce
Navigate to Keyboard Manager -> Shortcuts

Map Ctrl G to PgUp "c:\program files\draw.io\draw.io.exe"
Map Ctrl Shift U to PgDn "c:\program files\draw.io\draw.io.exe"

✔ Expected Behavior
This seems to work only if I Remap a key as above, however that's not what I thought should happen as Remap a key is global change and Shortcuts is or should be linked when used in the context of an application ?
❌ Actual Behavior
Shortcuts does not work,
Navigate to Keyboard Manager -> Shortcuts

Map Ctrl G to PgUp "c:\program files\draw.io\draw.io.exe"
Map Ctrl Shift U to PgDn "c:\program files\draw.io\draw.io.exe"

Other Software
PowerToysReport_2022-05-05-11-56-48.zip
No response

Hi @sre84 ,
I'm not sure what was the expected behavior here. Could you be more specific? What should happen when you press Ctrl G for example and what is happening that shouldn't be happening. /needinfo

Thanks to the PowerToys Team (one and all) 🙌
Just to rephrase what sre84 was trying to say @jaimecbernardo is, as per the current documentation of PowerToys see link https://docs.microsoft.com/en-gb/windows/powertoys/keyboard-manager#keys-that-cannot-be-remapped
"You can exchange shortcut key combinations. For example: The shortcut key Ctrl+C will copy text in many applications. With PowerToys Keyboard Manager utility, you can swap that shortcut for ⊞ Win+C. Now, ⊞ Win+C will copy text. If you do not specify a targeted application in PowerToys Keyboard Manager, the shortcut exchange will be applied globally across Windows."
We are trying to associate the shortcut keys to a target application in PowerToys keyboard Manager, that's broken or the documentation is not accurate, which one is it?
Hope this is much clearer ?


⚠ Spryr has degraded performance

In ef53d5b, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 4838 ms

Resolved: Spryr performance has improved in 528f2c4 after 13 minutes.


Select OCL Rules to be used when validating SCL using SCL Validator Service

This means create separate issues, one returning the list of rules by the SCL Validator, one to support retrieving the selected options by the SCL Validator to use it and finally in CoMPAS OpenSCD to show the list, make it possible to select them and pass the selection to the SCL Validator.


ci: run test suite for pull requests

This commit modifies the Travis-CI configuration so that the tests
are run for pull requests.
Fixes: https://github.com/cloudevents/sdk-javascript/issues/51

LGTM


Allow user to specify more parameters for energy storage

The most important one here for our short-term work is duration, but while we're at it we could also allow specification for others (e.g. efficiencies). These are currently hardcoded in powersimdata.network.usa_tamu.usa_tamu_model.TAMU._set_storage(), and we would want to extend the functionality of powersimdata.input.change_table.ChangeTable.add_storage_capacity().

Another important thing to be able to model: storage losses. Sticking with the old MATPOWER/MOST table formats, there is a LossFactor that can be specified as a % of stored energy per hour. This is not currently interpreted by REISE.jl however.

Another important thing to be able to model: storage losses. Sticking with the old MATPOWER/MOST table formats, there is a LossFactor that can be specified as a % of stored energy per hour. This is not currently interpreted by REISE.jl however.


Add configuration to no-inferrable-types to ignore function return types

The no-inferrable-types currently complains if a function has a return type annotation when it could be inferred.
TypeScript code being linted
    function calcSum(x: number, y: number): number {
        return x + y;
    }

This is simple example - in more complex functions it can take a bit of inference to figure out what the return type is.
with tslint.json configuration:
"no-inferrable-types": true

Actual behavior
ERROR: Type number trivially inferred from a number literal, remove type annotation

Expected behavior
It would be nice if the rule had a configuration to skip function return types.
Proposed solution
Ability to specify this in tslint.json:
"no-inferrable-types": [true, "ignore-return"]

woops I was mistaken.


Add a read-only Python wrapper for SGroups

At some point we need to get a version working that allows modifying the SGroups too, but this is already useful.
I also added a bunch of example SGroup files that we use in future tests.

@ricrogz, @d-b-w  : it would be cool if you could take a look at this and make sure you think it looks reasonable

This looks good to me. I only would recommend not using spaces in the names of the test files.

Will merge when the tests pass


Empty working directories should be created by package, not init script

Directories should have perms set in postinstall

:+1:


WIP: contour guide

Signed-off-by: Paul Czarkowski<EMAIL_ADDRESS>

I know this is WIP but just added a few comments as FYIs...