\ or new line character not allowed in curl statement

The Character '' for new line is not allowed in the curl statement, if it is put inside the json.
curl --request POST   --url http://localhost:8080/v1/graphql \    <- Allowed.
--header 'content-type: application/json' \    <- Allowed.
--data '{"query":"query {categories(filter: { name: "Dried" })  \    <- This one is not allowed.
{id name}}","variables":"{}"}';
Edit: I thought, that a new Line isn't a Problem in a JSON.
Edit0:
Same with an invisible new line character.
{"timestamp":1503920520738,"status":400,"error":"Bad Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"JSON parse error: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value; nested exception is com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n at [Source: java.io.PushbackInputStream@1b1e7e6; line: 1, column: 29]","path":"/v1/graphql"}

The JSON is incorrect encoded, can you try with the application GraphiQl and try to execute the query.

Thank you for your fast replay! :)
I wrote
{categories(filter: { name: "Dried" }) \ {id name}}
and there it worked.
if I write \n, I get a error message not similar to the one in intelliJ.

I don't understand why this issue is logged here.
To me it looks like bad usage of curl - \ should not be used inside the single quoted string.
But even if I am wrong and this curl command is correct then this is a problem in graphql-java where the query parsing happens.
This project is about providing Spring goodies to graphql-java.

Thank you for your help and sorry, that I'd stole your time.
I will ask the graphql-developers. :)
Because the \ is allowed in JSON and GraphiQl has no problems with it. :)

ok, no problem


Using [page.render] to get pictures on ios devices is abnormal in some pdfs.

Describe the bug
pdfx: ^2.2.0
Using [page.render] to get pictures on ios devices is abnormal in some pdfs.
The second page of the obtained picture contains the third page pdf.
The third page of the obtained image contains the second page pdf.
Smartphone (please complete the following information):
iPad (mobile)  • ios        • iOS 15.4.1 19E258
Flutter (Channel stable, 3.0.5, on macOS 12.3 21E230 darwin-x64, locale zh-Hans-CN)
• Flutter version 3.0.5 at /Users/admin/flutter
• Upstream repository https://github.com/flutter/flutter/
• Framework revision f1875d570e (6 weeks ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
Additional context
It is correct to use [page.render] to get pictures on Android devices.

This is the pdf used.

This is the pdf used.
Uploading<PHONE_NUMBER>572_1656037971536.pdf…

This is the pdf used.
1656037923572_1656037971536.zip
The second page image obtained under normal circumstances should be this.

But the picture obtained now is this.


Adding new apps

I wish to try this framework out but am required to fill out the certificate textbox. I am not sure where to get this from.

You've stumbled upon a new product that we haven't made public yet. We're about to start some early beta testing. I'm going to reach out to you privately and help you get set up.


Create a class for managing comics

This class uses sqlite3 to manage local comics. I believe it can perform the tasks of the current system which include:

adding comics to a persistent collection
retrieving best search matches through the use of a weighted index
filtering certain words out of the search algorithm

Is it necessary to create a class for the comic? I remember having created one at the beginning and discard it.

I'm looking into it now. I think it could be useful to decouple comic attributes from both the database and JSON response implementations. Though I'm not sure if comics have enough behavior to justify an entire class. I may have a better idea once I determine what remains after implementing the new storage system.
This is kind of a start if you want to work on that.

There are a few things left regarding this class. I've secured the sql queries using parameter substitution (yet to be committed) and plan on making it thread safe. I'm closing this PR for now and will open a new one with the final Collection implemented.


M02Unit3Task1 and 2 powershell script to create coreservicevnet does not work

Module: 02
Lab/Demo: Unit3
Task: 1
Step: 03
Description of issue
East US should be EastUS or "East US".
Either way, neither deployment of the underlying VNet templates worked for the four students nor me. The Virtual network	CoreServicesVnet could not be selected.
Solution
M02-Unit 3 Create and configure a virtual network gateway
Inbox
Task 2: Create CoreServicesTestVM
I went through Unit 3 tonight.
Attempt 1. Lab as presented. No go.
Attempt 2. Change the PowerShell script to use "East US" with quotes instead of EastUS (which we also tried). No go.
Attempt 3. I had to create a new template and parameter file for the first VM deployment. After that, things fell in line. You can find the attached template.
You will need to log in to your VM in a Private Mode Edge web browser with your Personal Email. Yes, I know I told you not to do that! Download the JSON files and replace the ones that are provided in the Allfiles\Exercises\M02 folder. I cannot do that for you. Continue with the lab.
However, the deployment of the Virtual Private Gateway in Task 6 takes 45 minutes for a 2-hour
Mod2Unit3Task2_CreatVMJsonTemplate (1).zip
lab. However, again, you can keep extending the lab time by 15 minutes as long as you are still working on the lab.

Note: My template only recreates the CoreServicesVnet vnet object instance. We ended up copying the three vnet configuations and recreated them manually. That worked.

I am having the same issue of the VNET existing but NOT showing as an option when creating the first Virtual Machine.  Instead of using the PowerShell in the CloudShell, I did a graphical deployment using the "Deploy a Custom Template" tool without the parameter file and it worked. When creating the Virtual Machine it now sees the CoreServicesVent.   This all maybe some temporary Azure clitch.
At least fix the issue the PowerShell of East US should be "East US" for now since that is definitely a mistake.
When prepping Module 4's lab and had a similar issue with a deployed NSG called "MyNSG" being deployed via PowerShell but not showing up when I was creating the test VM in Task 5.  The MyNSG just allows inbound RDP 3389 from anywhere which you can create on the fly in the VM creation but opening Port 3389 in the networking section.
Cheers,
Jeff Smalley  MCT
Chicagoville
Thanks for posting this Arnold..

Glad it helped another Instructor. I did similar approaches but it all takes time to resolve.
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: JeffSmalley @.>
Sent: Thursday, January 20, 2022 8:52:15 PM
To: MicrosoftLearning/AZ-700-Designing-and-Implementing-Microsoft-Azure-Networking-Solutions @.>
Cc: Arnold Villeneuve @.>; Author @.>
Subject: Re: [MicrosoftLearning/AZ-700-Designing-and-Implementing-Microsoft-Azure-Networking-Solutions] M02Unit3Task1 and 2 powershell script to create coreservicevnet does not work (Issue #73)
I am having the same issue of the VNET existing but NOT showing as an option when creating the first Virtual Machine. Instead of using the PowerShell in the CloudShell, I did a graphical deployment using the "Deploy a Custom Template" tool without the parameter file and it worked. When creating the Virtual Machine it now sees the CoreServicesVent. This all maybe some temporary Azure clitch.
At least fix the issue the PowerShell of East US should be "East US" for now since that is definitely a mistake.
When prepping Module 4's lab and had a similar issue with a deployed NSG called "MyNSG" being deployed via PowerShell but not showing up when I was creating the test VM in Task 5. The MyNSG just allows inbound RDP 3389 from anywhere which you can create on the fly in the VM creation but opening Port 3389 in the networking section.
Cheers,
Jeff Smalley MCT
Chicagoville
Thanks for posting this Arnold..
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftLearning/AZ-700-Designing-and-Implementing-Microsoft-Azure-Networking-Solutions/issues/73#issuecomment-1018089365, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIIKAOUCUD5MSWEIMSURA3UXC347ANCNFSM5MLPNXPQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>

One method that seems fix the issue of the VNET not showing up when creating the Virtual Machine is to not deploy the ARM Template via PowerShell.   I did create the Resource Group via PowerShell, then I deployed the Resource template via the Deploy a Custom Template graphical tool. I did NOT add the Parameter file since it doesn't change anything from the original. I tried this a couple times and it seems to work.  If the VNETs were deployed via the PowerShell just delete them before trying the graphical technique.     I have NO idea why this is happening..
Please can someone at least fix the issue with the PowerShell script with East US not being quoted or remove the space.  "East US"   or EastUS
Thanks,
Jeff Smalley  MCT
Jeff Smalley

That is what I did as well, but make sure you deploy all three Vnets and their respective subnets at the same time.
Arnold Villeneuve<PHONE_NUMBER>
On Monday, January 24, 2022, 05:06:33 p.m. EST, JeffSmalley<EMAIL_ADDRESS>wrote:

One method that seems fix the issue of the VNET not showing up when creating the Virtual Machine is to not deploy the ARM Template via PowerShell. I did create the Resource Group via PowerShell, then I deployed the Resource template via the Deploy a Custom Template graphical tool. I did NOT add the Parameter file since it doesn't change anything from the original. I tried this a couple times and it seems to work. If the VNETs were deployed via the PowerShell just delete them before trying the graphical technique. I have NO idea why this is happening..
Please can someone at least fix the issue with the PowerShell script with East US not being quoted or remove the space. "East US" or EastUS
Thanks,
Jeff Smalley MCT
Jeff Smalley
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

MOC Labs Review did not experience this issue.


Use cmdstan canonicaliser to update syntax

@avehtari It looks like the canonicaliser also made some updates to spacing and adding braces to if statements. Let me know if you don't want those changes as well, and I can revert.
New syntax checked for correctness via:
stan_files <- list.files(".",pattern=".stan$",recursive=TRUE)

purrr::walk(stan_files, \(stan_file) {
    cmdstan_mod <- cmdstanr::cmdstan_model(stan_file, compile = FALSE)
    cmdstan_mod$check_syntax()
})

Strangely it seems like some lines are being removed?

Ah sorry, I'd fixed that locally but hadn't pushed the changes. One sec

All updated


Does iroh-gossip guarantee that messages sent by the same sender are received by everyone in the same order?

I'm almost positive it doesn't, but either way, we need to document an answer on what the current behavior is

There is no notion of order in gossip at all, and a perceived reordering is expected simply given the existence of lazy peers, which might be eager peers of our eager peers. This is a known not-guarantee and I doubt we should try to make it one even in the simple cases

Thanks, closing, please let us know if you find an issue with iroh


agent deployment - improve scripts

Impact of the new feature
I would suggest a couple of improvements for the WMAgent deployment procedure:

cronjobs should be installed as soon as initializing the agents
we should enforce that we do not initialize an agent if the local couchdb is not empty

Is your feature request related to a problem? Please describe.
When deploying a new wmagent, in order to install the cronjobs inside the wmagent docker container, we need to run the script wmagent-docker-run.sh twice, which makes little sense.
Last time Andrea and I deployed an agent, we forgot to wipe the local couchdb. Since we never want to start an agent with a non-empty local couch, we should enforce this check
Describe the solution you'd like
I will open the proper PR to make these changes
Describe alternatives you've considered
We could live as is, but it would be sub-optimal

@mapellidario haven't we resolved this issue with the following CMSKubernetes developments:
https://github.com/dmwm/CMSKubernetes/pull/1561
https://github.com/dmwm/CMSKubernetes/pull/1563
and
https://github.com/dmwm/CMSKubernetes/pull/1562
?
If so, then I think this issue can be closed out. In the future, please make a reference from the CMSKubernetes PR to the WMCore GH issue, this way we can easily keep track of these developments. Thanks

Ooooops yes we did, thanks alan for the bookkeeping :)


fixed example in README.

accpet_request -> accept_request

Coverage remained the same at 100.0% when pulling 6a0570e2433466d57bcb70ff3e9e16178e9456a7 on Syd:patch-1 into d8d8dec90dbcfeca5f845f881050637b278485c2 on sungwoncho:master.

Thanks for this. :+1:  Merged.


Begin PR to merge changes into master

Totally an accident.  Meant to do changes to a local fork, my bad.

lol, no problem. Feel free to open PRs in the future if you got cool edits.


[Challenges] Filter by Difficulty level

Filter the challenges list by difficulty level. Allow multi select dropdown

I would like to take this one. Let me know if I can work on it.

I wasn't able to work on this issue due to some other work commitments. In the interest of getting this feature completed asap, I'm unassigning myself. Anyone else interested can take it @sadanandpai .

@sadanandpai could you assign this to me?


Add support for damage dice downgrades

Also cleanup unused code and useless test

This does not appear to be working properly. Adding the following DamageDice RE to a Falchion makes the Falchion roll 1d12 instead of 1d8:
{
  "key": "DamageDice",
  "selector": "damage",
  "override": {
    "downgrade": true
  }
}


Show also "detail" (not just "label") in Suggester

To allow the correct choice of an entity (or creation of a new one), it is necessary that the Suggester displays not only the "label" but also the "detail" field (if not empty).
This is an absolutely crucial feature to start real work.
(BTW it is probably not relevant to search the text of "detail", but it is very important to display it in Suggester.)

Also #273

What about showing detail on tooltips like this?

Just wanted to ask, otherwise I will redesign the list to show every detail.

I think these tooltips work very well, also because they allow longer "detail" if needed. So yes, tooltips. Just one thing to add: put only "detail" in the tooltip. Putting also the "label" there again means duplicating this info.


Help commands show capital instead of lowercase

When the help command is entered, the commands listed are shown in capital, but they are only accepted when entered all lowercase.

you can type commands in any case you want
done in .29


Native proxy support

Is there any way to let v8r use a proxy natively? I'm failing to run v8r in our corporate network:
root@e9c0fed03724:/app# export | grep proxy
declare -x http_proxy="http://<IP_ADDRESS>:8888"
declare -x https_proxy="http://<IP_ADDRESS>:8888"

root@e9c0fed03724:/app# v8r -v .gitlab-ci.yml
ℹ No config file found
ℹ Merged args/config: {
  "_": [],
  "v": 1,
  "verbose": 1,
  "ignore-errors": false,
  "ignoreErrors": false,
  "cache-ttl": 600,
  "cacheTtl": 600,
  "format": "text",
  "$0": "v8r",
  "patterns": [
    ".gitlab-ci.yml"
  ]
}
ℹ Processing ./.gitlab-ci.yml
ℹ Cache miss: calling https://www.schemastore.org/api/json/catalog.json
✖ Failed fetching https://www.schemastore.org/api/json/catalog.json

Forcing all connections to use the proxy via proxychains however works like a charm:
root@e9c0fed03724:/app# proxychains v8r -v .gitlab-ci.yml
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/aarch64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
ℹ No config file found
ℹ Merged args/config: {
  "_": [],
  "v": 1,
  "verbose": 1,
  "ignore-errors": false,
  "ignoreErrors": false,
  "cache-ttl": 600,
  "cacheTtl": 600,
  "format": "text",
  "$0": "/usr/local/bin/v8r",
  "patterns": [
    ".gitlab-ci.yml"
  ]
}
ℹ Processing ./.gitlab-ci.yml
ℹ Cache miss: calling https://www.schemastore.org/api/json/catalog.json
[proxychains] Strict chain  ...  <IP_ADDRESS>:8888  ...  www.schemastore.org:443  ...  OK
ℹ Cache miss: calling https://json.schemastore.org/schema-catalog.json
[proxychains] Strict chain  ...  <IP_ADDRESS>:8888  ...  json.schemastore.org:443  ...  OK
ℹ Searching for schema in https://www.schemastore.org/api/json/catalog.json ...
ℹ Found schema in https://www.schemastore.org/api/json/catalog.json ...
ℹ Cache miss: calling https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json
[proxychains] Strict chain  ...  <IP_ADDRESS>:8888  ...  gitlab.com:443  ...  OK
ℹ Validating ./.gitlab-ci.yml against schema from https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json ...
✔ ./.gitlab-ci.yml is valid

Unfortunately there is no easy way to install and run proxychains when running v8r within megalinter as we do in our CI.
As the used http lib got supports using a proxy I wondered if there's any way to use that.
Thank you very much!

There is not any native support for this.
The most common solution I see for adding proxy support to node apps is global-agent. See:

https://www.npmjs.com/package/global-agent
https://blog.ropnop.com/proxying-cli-tools/#example-4---proxying-node-js

I guess this is quite a similar solution to proxychains, but it is a JS library rather than C. Not sure if that makes things any easier or not. Does it just give you a slightly different configuration of the same problem?
I don't use MegaLinter myself, so I can't really advise on how to configure it. One thing I would be interested in is: It seems like MegaLinter bundles something like ~100 different tools. Does every other tool implement native proxy support? If not, does it make more sense to frame this as a feature request to MegaLinter to make it easier to use tools like proxychains or global-agent that allow proxy support to be added to arbitrary tools? Maybe v8r might be slightly unusual among that class of tools in that it makes network requests. I guess a lot of them work on local files only.

Does every other tool implement native proxy support?

It seems like the tools that need to reach the internet know how to use a proxy.
I gave it a try and added proxy support for v8r in #442. I hope you don't mind adding this small feature.

We came across a similar limitation with repolinter, which uses node-fetch and this library which does not work behind a proxy.
I think another way of adding proxy support could be to use the native fetch API:
The Fetch API is finally stable in Node.js v21
But I'm node.js illiterate, please correct me if I'm wrong.


General Grievance: Watch faroenewsfo.biz

General Grievance requests the watch of the watch_keyword faroenewsfo\.biz. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

faroenewsfo\.biz has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Rejected by Spevacus in Charcoal HQ. Reason: 'Duplicate watches from a spam discussion, closing the oldest ones'


Bash string manipulation

I wanted to do some string manipulation with bash in a recipe.
The following bash script is working with no issues in terminal:
LL="ABCDEFGH"; echo ${LL:3}

it prints "DEFGH"
When I tried it inside a just recipe as the following:
remove-3:
    LL="ABCDEFGH"; echo ${LL:3}

The command just remove-3 failed the following outputs:

LL="ABCDEFGH"; echo ${LL:3}
sh: 1: Bad substitution
error: Recipe remove-3 failed on line 2 with exit code 2

The default shell is is sh, try setting bash as default shell
set shell := ["bash", "-uc"]

remove-3:
    LL="ABCDEFGH"; echo ${LL:3}

if you'd like to avoid changing defalt shell call bash directly in the recipe, like:
remove-3:
    bash -uc 'LL="ABCDEFGH"; echo ${LL:3}'

Thanks a lot @shamil. That solves the problem.


Publish recommended links to publishing api

Save and publish recommended links in the publishing API as well as rummager. This will let rummager ingest these links from the publishing API's message queue, reducing the number of publishing apps which index pages in rummager directly.
We'll remove the rummager publishing step once we've fully migrated this format to the new index.
https://trello.com/c/rDurYmt8/525-send-external-links-from-search-admin-to-the-publishing-api

Marked as "do not merge" because I tested the branch on integration and saw 401 Unauthorized errors. I think we need to give search-admin permissions for the publishing API.

I've tested this on integration, so I think it's ready to merge and test on staging and production.


Screenshot from VSTS require an update

This screenshot was done in VSTS, for Azure DevOps url will be different. Please update, to avoid potential issues with artifact troubleshooting.

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

ID: 30d1eafd-a130-355c-a0d6-fd3a5b1b37b0
Version Independent ID: 809003e5-b5bc-611b-3f56-9e5e62f2ee56
Content: Keep your OSS packages safe with upstream sources
Content Source: docs/artifacts/tutorials/protect-oss-packages-with-upstream-sources.md
Product: devops
GitHub Login: @elbatk
Microsoft Alias: elbatk

Thanks @SychevIgor, I've created a work item to address this!

I have updated the screenshot and should see the updates within 24 hours. Thank you for your feedback!


Fix check for missing digest in id_and_digest_from_event

The check for blank digest was wrong. It has to execute the manifest
fetching in case it is blank and not when it is not blank.

This PR fixes one of the cases where Portus hangs on push (e.g. https://github.com/SUSE/Portus/issues/940). The reason was that even though incoming events already had a digest set, it still tried to get it from the registry, resulting in a deadlock due to authentication hanging (as described here https://github.com/SUSE/Portus/issues/1235)

@mssola PTAL
I'm not sure why tests are failing with this PR. Maybe a test case was wrong before and thus always succeeded?

@mssola Friendly PING :) I'm going through all my open PRs atm which are queued since some time already.
It's just a one-liner fix and it should be very easy to verify by only reading the code.

Hey @codablock! Sorry for taking so much to reply...
This method is called whenever we got an event from the registry and we want to fetch the manifest for the given digest. Therefore, the digest should not be blank: it's fine the way it is. Try to trace the HTTP request sent to the registry in order to check what it looks like.

Ahh sorry, I see. I mixed up the id and digest and didn't realize the method tries to fetch the id and not the digest. Closing this PR now.
I'm currently not working for the client that I supported with the Portus installation but will maybe continue to work for him in a few weeks. I'll try to debug further when doing so.


issue #2, post tags are shown as "object"

fixes issue where the javascript function for generating new tags was then saving as "object object"

closes issue #2 - this fix changes the format of the keywords input from "object object" to a string by pulling the "val" of the input field instead of the field itself


Always use RequestContext instead of just Context

Coverage remained the same at 66.76% when pulling 20cc7f84156a18cbb7281febbda26e485dc9fcb4 on j00bar:patch-1 into 24eb40bae7d5a1e2e7b093cacb1caaa60874a166 on stefanfoulis:develop.

Thanks @j00bar and @gavinwahl !

just curious, why use render_to_response when render exists (and has existed since Django 1.3).

@rockymeza I guess because of historical reasons (filer predates Django 1.3 and nobody felt compelled to update it). A PR is very welcome to fix this :)

@yakky :smile: hehe ok, fair enough!

Opened a new issue to track the code cleanup, thanks @rockymeza for pointing this put


Update Issue: Update updates the values of blank fields

What version of Go are you using (go version)?
go version go1.9.3 darwin/amd64
Which database and its version are you using?
Postgres (cockroachdb)
Please provide a complete runnable program to reproduce your issue. IMPORTANT
package main

import (
	"fmt"
	"time"

	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/postgres"
)

var db *gorm.DB

type User struct {
	ID        uint `gorm:"primary_key"json:"id"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
	CompanyID uint
	Company   Company
	Name      string
}

// Company is the company stuct
type Company struct {
	ID        uint `gorm:"primary_key"json:"id"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
	Name      string
	Users     []User
}

func init() {
	var err error
	db, err = gorm.Open("postgres", "postgresql://root@localhost:26257/test?sslmode=disable")
	if err != nil {
		panic(err)
	}
	db.LogMode(true)
	db.CreateTable(&User{}, &Company{})
}

func main() {

	user := User{
		Name: "Bob",
		Company: Company{
			Name: "My Comany",
		},
	}
	db.Save(&user)

	modifyUser := User{
		ID: user.ID,
		Company: Company{
			ID:   user.Company.ID,
			Name: "My Company",
		},
	}
	db.Model(&User{}).Updates(&modifyUser)

	if modifyUser.Company.CreatedAt.IsZero() {
		fmt.Println("failed")
	} else {
		fmt.Println("success")
	}
}

(/Users/mark/go/src/bug/main.go:40)
[2018-04-10 20:10:51]  pq: relation "users" already exists

(/Users/mark/go/src/bug/main.go:40)
[2018-04-10 20:10:51]  [1.10ms]  CREATE TABLE "users" ("id" serial,"created_at" timestamp with time zone,"updated_at" timestamp with time zone,"deleted_at" timestamp with time zone,"company_id" integer,"name" text , PRIMARY KEY ("id"))
[0 rows affected or returned ]

(/Users/mark/go/src/bug/main.go:40)
[2018-04-10 20:10:51]  [0.01ms]  CREATE TABLE "companies" ("id" serial,"created_at" timestamp with time zone,"updated_at" timestamp with time zone,"deleted_at" timestamp with time zone,"name" text , PRIMARY KEY ("id"))
[0 rows affected or returned ]

(/Users/mark/go/src/bug/main.go:51)
[2018-04-10 20:10:51]  [1.40ms]  INSERT INTO "companies" ("created_at","updated_at","deleted_at","name") VALUES ('2018-04-10 20:10:51','2018-04-10 20:10:51',NULL,'My Comany') RETURNING "companies"."id"
[1 rows affected or returned ]

(/Users/mark/go/src/bug/main.go:51)
[2018-04-10 20:10:51]  [3.28ms]  INSERT INTO "users" ("created_at","updated_at","deleted_at","company_id","name") VALUES ('2018-04-10 20:10:51','2018-04-10 20:10:51',NULL,'338549314600763393','Bob') RETURNING "users"."id"
[1 rows affected or returned ]

(/Users/mark/go/src/bug/main.go:60)
[2018-04-10 20:10:51]  [1.38ms]  UPDATE "companies" SET "created_at" = '0001-01-01 00:00:00', "updated_at" = '2018-04-10 20:10:51', "deleted_at" = NULL, "name" = 'My Company'  WHERE "companies"."deleted_at" IS NULL AND "companies"."id" = '338549314600763393'
[1 rows affected or returned ]

(/Users/mark/go/src/bug/main.go:60)
[2018-04-10 20:10:51]  [1.46ms]  UPDATE "users" SET "company_id" = '338549314600763393', "id" = '338549314614886401', "updated_at" = '2018-04-10 20:10:51'  WHERE "users"."deleted_at" IS NULL AND "users"."id" = '338549314614886401'
[1 rows affected or returned ]
failed

I've followed the docs and the update method is described as:
// WARNING when update with struct, GORM will only update those fields that with non blank value
// For below Update, nothing will be updated as "", 0, false are blank values of their types

But this doesn't seem to apply for associated values. The Company Created At is set to blank.
[2018-04-10 20:10:51]  [1.38ms]  UPDATE "companies" SET "created_at" = '0001-01-01 00:00:00', "updated_at" = '2018-04-10 20:10:51', "deleted_at" = NULL, "name" = 'My Company'  WHERE "companies"."deleted_at" IS NULL AND "companies"."id" = '338549314600763393'
``` is the culprit

I guess one solution would be to not pass the ID and have it re-create the company...

I believe the CreatedAt/UpdatedAt/DeletedAt columns are managed columns.
You can see the callback for UpdatedAt here: https://github.com/jinzhu/gorm/blob/aa3fd6de13fee7e0ae715eeaad3bc2f329db2366/callback_update.go#L51
And CreatedAt here:
https://github.com/jinzhu/gorm/blob/aa3fd6de13fee7e0ae715eeaad3bc2f329db2366/callback_create.go#L32
You can delete the callbacks when initializing the db instance or use the UpdateColumn API.

Okay i can workaround by doing:
u := User{}
DB.Preload("Company").Where(user).First(&u)
jsonDecoder := json.NewDecoder(r.Body)
err := jsonDecoder.Decode(&user)
DB.Save(&user)

But figured the other way should work


supercharged-dhbw:1.2.0

I am submitting

[ ] a new package
[x] an update for a package

Description:
Version 1.1.0

fix bug that course of studies is display twice even if similar
fix bug where title text is not semibold
add option to hide page header
add option to provide numbering style
add option to change numbering alignment

Version 1.2.0

fix missing dynamic var in confidentiality statement
add option to choose between english and german
add logo size ratio option

I have read and followed the submission guidelines and, in particular, I

[x] selected a name that isn't the most obvious or canonical name for what the package does
[x] added a typst.toml file with all required keys
[x] added a README.md with documentation for my package
[x] have chosen a license and added a LICENSE file or linked one in my README.md
[x] tested my package locally on my system and it worked
[x] excluded PDFs or README images, if any, but not the LICENSE

[x] ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.

Thank you for the updates!


fix: Made the home page responsive for mobile-view

Title and Issue number

Title : I want to make home page responsive
Issue No. : #1290
Code Stack : HTML, CSS
Close #1290

Description

Made the home page responsive using css media-queries.
Now, the home page will look responsive in mobile-view as well.

Video/Screenshots (mandatory)

https://github.com/user-attachments/assets/3228ce11-b1dc-4400-bdf9-394312394a27
Type of PR

[x] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Checklist:

[x] I have performed a self-review of my code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have gone through the  contributing.md file before contributing

Additional context:

Please review & merge this pull-request under GSSoC'24
Are you contributing under any Open-source programme?

Yes, GSSoC'24

[x] I am contributing under GSSOC'24
[ ] I am contributing under VSOC'24

@apu52 @itsekta please review & merge my pull-request under GSSoC'24


Success from Google Apps request raises TypeURIMismatch

Successful consumer requests from Google Apps generate a TypeURIMismatch.  The requested AX and SREG requests generated return None.
            sreg_request = sreg.SRegRequest(optional=['email', 'nickname'],
                                        required=['dob'])
            auth_request.addExtension(sreg_request)

            # Add Attribute Exchange request information.
            ax_request = ax.FetchRequest()
            # XXX - uses myOpenID-compatible schema values, which are
            # not those listed at axschema.org.
            ax_request.add(ax.AttrInfo('http://schema.openid.net/namePerson',
                                       required=True))
            ax_request.add(ax.AttrInfo('http://schema.openid.net/contact/web/default',
                                       required=False, count=ax.UNLIMITED_VALUES))
            auth_request.addExtension(ax_request)

    response = c.complete(request_args, return_to)

    sreg_response = sreg.SRegResponse.fromSuccessResponse(response) # None
    ax_response = ax.FetchResponse.fromSuccessResponse(response) # None

Generated checkid_setup request to https://www.google.com/accounts/o8/ud with assocication AOQobUdVBCrd-GZRcasn9tD-yOUF0Y8pJLAQrYXODqLxUUjN62G1BXR1
Error attempting to use stored discovery information: <openid.consumer.consumer.TypeURIMismatch: Required type http://specs.openid.net/auth/2.0/signon not found in ['http://specs.openid.net/auth/2.0/server', 'http://openid.net/srv/ax/1.0', 'http://specs.openid.net/extensions/ui/1.0/mode/popup', 'http://specs.openid.net/extensions/ui/1.0/icon', 'http://specs.openid.net/extensions/pape/1.0'] for endpoint <openid.consumer.discover.OpenIDServiceEndpoint server_url='https://www.google.com/accounts/o8/ud' claimed_id=None local_id=None canonicalID=None used_yadis=True >>
Attempting discovery to verify endpoint
Performing discovery on https://www.google.com/accounts/o8/id?id=AItOawkKU4uzJV9Q_FGMECNGsbiXG2caISYMyCw
Received id_res response from https://www.google.com/accounts/o8/ud using association AOQobUdVBCrd-GZRcasn9tD-yOUF0Y8pJLAQrYXODqLxUUjN62G1BXR1

I'm having the same situation.
could a solution like that be related?


add VideoSwin

This task is part of the KerasHub project ( Consolidating all of KerasCV and KerasNLP models in to one place)
Models from KerasCV will be added to KerasNLP in KerasNLP infrstructure style. The development is now under the keras-hub branch in KerasNLP - https://github.com/keras-team/keras-nlp/tree/keras-hub
Steps to complete this Task

Source code : https://github.com/keras-team/keras-cv/tree/master/keras_cv/src/models/backbones/video_swin
Destination : A model folder here https://github.com/keras-team/keras-nlp/tree/keras-hub/keras_nlp/src/models
Example PR : https://github.com/keras-team/keras-nlp/pull/1737, please follow the style from here and take a look at the comments on the PR for any design clarifications
copy the model over
If the model has multiple versions with small changes in architecture, they should be added as one model and the configuration should be handled in the args
use KerasNLP test routines to update the tests
for reformatting the code run shell/api_gen.sh, shell/format.sh and shell/lint.sh
The backbone will be added as a model, any downstream task model will be under the same model folder - example the video classifier task model.

Add either @divyashreepathihalli, @mattdangerw or @SamanehSaadat for review of any PR.

I'm interested in contributing to this task for the KerasHub project by adding models from KerasCV to KerasNLP in the specified format. Before I get started, could you clarify a few things?
File Locations: Could you confirm if the full path for the source files is keras-cv/keras_cv/src/models/backbones/video_swin? Additionally, should all files within this folder be moved to a new folder under keras-nlp/keras_nlp/src/models?
Model Configuration: For models with multiple versions, do you have any preferred method or example in KerasNLP to manage these configurations within the model’s arguments?
Testing Requirements: Are there any specific test cases or benchmarks for video models that need to be prioritized during testing, or should I follow the general test routines provided in KerasNLP?

@divyashreepathihalli is this model will be placed in this path https://github.com/keras-team/keras-hub/tree/keras-hub/keras_nlp/src/models


Multilanguage support

Is it possible to develop the choice of language among the variables? Commands are given directly in English and the response is always in English (unless the prompt is typed directly by the user).

I guess I could add the top 5 languages as an option in plugin settings. Will try to implement it soon.
and if you don't mind me asking what language are you looking for?

I am Italian! I don't know if Italian is in the top 5 languages you was thinking about but i it can be very useful. Thank you so much

I use the configuration page to do commands in different languages. You can see
this here.
https://github.com/omagdy7/ollama-logseq?tab=readme-ov-file#configuration-page-ollama-logseq-config
On Mon, May 20, 2024 at 11:39 PM fabiojust @.***>  wrote:
I am Italian! I don't know if Italian is in the top 5 languages you was thinking
about but i it can be very useful. Thank you so much
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID:
@.***>


Enable Link-Time Optimization (LTO)

Hi!
I noticed that in the Cargo.toml file Link-Time Optimization (LTO) for the project is not enabled. I suggest switching it on since it will reduce the binary size (always a good thing to have) and will likely improve the application's performance a bit.
I suggest enabling LTO only for the Release builds so as not to sacrifice the developers' experience while working on the project since LTO consumes an additional amount of time to finish the compilation routine. If you think that a regular Release build should not be affected by such a change as well, then I suggest adding an additional dist or release-lto profile where in addition to regular release optimizations LTO will also be added. Such a change simplifies life for maintainers and others interested in the project persons who want to build the most performant version of the application. Using ThinLTO should also help to reduce the build-time overhead with LTO. If we enable it on the Cargo profile level, users, who install the application with cargo install or building the Release Docker image, will get the LTO-optimized version "automatically". E.g., check cargo-outdated Release profile.
Basically, it can be enabled with the following lines:
[profile.release]
lto = true

I have made quick tests (Fedora 41, Rustc 1.82) by adding lto = true to the Release profile. The binary size reduction is from 24 Mib to 21 Mib.
Thank you.

Hey thanks so much for the contribution! I'm not familiar with LTO but based on some quick research it seems like it can produce smaller binaries and slightly faster code but at the expense of longer compile times.
My take is that it might make sense to add this in the future, but given right now we're pushing out releases pretty quickly, compile times do matter a lot (especially when we're building a docker image for a non-native platform using emulation). And I think the size of the whole docker image is more the dominant factor than the binary itself.
Curious to hear your take!

If you care about the Release profile compile time, I suggest you create a dedicated profile with LTO (smth like [profile.heavy-release] where you can enable all heavy compiler optimizations. Then, you are free to use this profile in creating heavily optimized builds (and users who build Docker images manually will also be able to choose this option). As an example of multiple Cargo profiles, I have a good one: https://github.com/girlbossceo/conduwuit/blob/main/Cargo.toml#L547

@zamazan4ik hey, is there a usecase where the binary size reduction is meaningful?
the overall performance is dominated by language servers like jdtls or jedi, which are much slower and resource-intensive than our rust code.
this hasn't been a priority so far, the reduction is modest and doesn't seem worth adding another profile but happy to reevaluate in the future

hey, is there a usecase where the binary size reduction is meaningful?

Binary size is only one thing that is easy to measure (that's why I shown it). Another point is allowing the compiler to perform more aggressive optimizations that lead to better performance/UX/TCO/etc. Even if the majority of the performance/binary size is coming from 3rd party, FMPOV it's not the reason to avoid additional optimizations applied to the Rust part. However, the final decision on this question of course is up to you :)

happy to reevaluate in the future

In this case, I suggested just leaving the issue open with such a mark instead of "Not planned".


[SMALLFIX]Java 8 Improvement: replace anonymous type with lambda in alluxio.client.file.RetryHandlingFileSystemMasterClient#unmount

Change
retryRPC(new RpcCallable() {
@Override
public Void call() throws TException {
mClient.unmount(alluxioPath.toString(), new UnmountTOptions());
return null;
}
});
to
retryRPC(() -> {
mClient.unmount(alluxioPath.toString(), new UnmountTOptions());
return null;
});
2nd attempt, done by DZ1733015
The previous attempt is failed because of one extra space.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/17441/
Test PASSed.


TP2000-1148 Create asynchronous confirmation page

TP-2000-1148 Create asynchronous confirmation page

Why

What

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (TP2000-1140--move-measure-bulk-editing-into-celery-task@da4a32d). Click here to learn what that means.

:exclamation: Current head 9dcbb21 differs from pull request most recent head e1e460d. Consider uploading reports for the commit e1e460d to get more accurate results

Additional details and impacted files
@@                                    Coverage Diff                                     @@
##             TP2000-1140--move-measure-bulk-editing-into-celery-task    #1151   +/-   ##
==========================================================================================
  Coverage                                                           ?   93.08%
==========================================================================================
  Files                                                              ?      576
  Lines                                                              ?    43088
  Branches                                                           ?     3100
==========================================================================================
  Hits                                                               ?    40110
  Misses                                                             ?     2371
  Partials                                                           ?      607

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


Pipeline parameters

When triggering a pipeline it would be nice to be able to specify input parameters. This would allow users to have dynamic configuration for their pipelines.
An example would be a pipeline that runs database migrations and it needs an input of the database name.

Hi.
So, a pipeline is just Go code. What prevents you from adding in parameters to your pipeline in whatever means you wish, like a config file or environment property?
Or are you looking for a different solution?

You are correct however there is no way from what I can tell for gaia to pass configuration information when triggering a pipeline.
The configuration I am looking for would only be useful while a single pipeline is ran. So each run of the pipeline can have slightly different inputs.

This is really high on my want/need list.
If I'm ever to adopt this as more than an exploration task, it's right up there.

Oh I didn't know the front-end can't pass in stuff, like environment property values. :)
So, you could, in theory, create a single pipeline and iterate over a config file which contains all the data you need which could fire off a multitude of routines that would show up in the pipeline as things that diverge then come together and create a single view. Fan-out fan-in.
I realize that's probably not what you are looking for but could very well be a plausible solution for now. Or not? :)

@Skarlso Yeah, that is my intention for the time being.
I understand it's no small ask, but it's one of two really important requirements I would need if I'm to ever adopt Gaia as more than a shiny thing in my own time.
The other is writing tasks which can write to the local file system. Unfortunately the only other product which still allows that is Jenkins - so I'm tied down for now.

Yes that could be a temporary solution however having the ability to have input parameters would still be nice.
@Skarlso I am more than willing to contribute and add this feature if that is a concern.

Oh for sure, don't get me wrong, I'm not against it. :) Was just trying to come up with a temporary solution so you guys aren't blocked. There is no concern here.
@rmb938 By all means. I'm sure @michelvocks would be delighted. :) In fact, he probably has it on his todo list. :)

Exactly, this is on my todo list. 😄
I actually already planned it in the gRPC protocol: https://github.com/gaia-pipeline/protobuf/blob/master/plugin.proto#L15
The idea is to define arguments in the pipelines and Gaia should dynamically render a view for those arguments. I think this is really close to jenkins job arguments which is nice and needed for sure.
I also thought about questions (questions sounds somehow weird, we have to find a better name I guess). https://github.com/gaia-pipeline/protobuf/blob/master/plugin.proto#L20
Imagine this scenario: You have a huge pipeline with several jobs included. At some point, you want to stop the pipeline and maybe wait for manual input from a real human. Or maybe you want to ask for an argument from a real human.
This is identical to jenkins input functionality.
Anyway, this is a huge task and includes frontend and backend changes. If you are ready for a challenge, feel free to start on this task! I would be more than happy about this! 🤗

Maybe for the questions follow what spinnaker is doing and rename them to manual judgements? https://www.spinnaker.io/guides/tutorials/codelabs/safe-deployments/#adding-a-manual-judgment-to-deployment-pipelines


Add coin::split_n function

Splits a Coin into n (best-effort) equal parts

Is it worth adding an assert that balance::value(&self.balance) >= n?

Sorry if I'm review spamming anyone. Still getting used to Github PR workflows and I think I maybe should have merged instead of rebased, or something like that 😬

Sorry if I'm review spamming anyone. Still getting used to Github PR workflows and I think I maybe should have merged instead of rebased, or something like that 😬

All good, not spamming. Rebase and merge should essentially result in the same

Sorry if I'm review spamming anyone. Still getting used to Github PR workflows and I think I maybe should have merged instead of rebased, or something like that 😬

No worries, we were all new at one point :)


added footer-blue-10 file

please accept pull request

Good job @Mayureshkaulwar
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/) .
Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


[Bug] __call__/predict has different shape using differentiable head

Hello!
Bug overview

When using a differentiable head, the output shape of calling __call__ or predict (they're aliases) is (N, 1) with N as the number of parameters.
When using the logistic regression head, the output of that same call is (N,).

How to Reproduce
For a differentiable head
Copy-pasteable reproducing script (Script 1)
from datasets import load_dataset
from sentence_transformers.losses import CosineSimilarityLoss

from setfit import SetFitModel, SetFitTrainer, sample_dataset

# Load a dataset from the Hugging Face Hub
dataset = load_dataset("sst2")

# Simulate the few-shot regime by sampling 8 examples per class
train_dataset = sample_dataset(dataset["train"], label_column="label", num_samples=8)
eval_dataset = dataset["validation"]

# Load a SetFit model from Hub
model: SetFitModel = SetFitModel.from_pretrained(
    "sentence-transformers/paraphrase-mpnet-base-v2",
    use_differentiable_head=True,
)

# Create trainer
trainer = SetFitTrainer(
    model=model,
    train_dataset=train_dataset,
    eval_dataset=eval_dataset,
    loss_class=CosineSimilarityLoss,
    metric="accuracy",
    batch_size=16,
    num_iterations=20,  # The number of text pairs to generate for contrastive learning
    num_epochs=1,  # The number of epochs to use for constrastive learning
    column_mapping={"sentence": "text", "label": "label"}  # Map dataset columns to text/label expected by trainer
)

# Train and evaluate
trainer.train()

# Run inference
preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])
print(preds.shape)

(2, 1)

Note that we don't need to train this model to show the bug.
For a logistic regression head
Copy-pasteable reproducing script (Script 2)
from datasets import load_dataset
from sentence_transformers.losses import CosineSimilarityLoss

from setfit import SetFitModel, SetFitTrainer, sample_dataset

# Load a dataset from the Hugging Face Hub
dataset = load_dataset("sst2")

# Simulate the few-shot regime by sampling 8 examples per class
train_dataset = sample_dataset(dataset["train"], label_column="label", num_samples=8)
eval_dataset = dataset["validation"]

# Load a SetFit model from Hub
model: SetFitModel = SetFitModel.from_pretrained(
    "sentence-transformers/paraphrase-mpnet-base-v2",
)

# Create trainer
trainer = SetFitTrainer(
    model=model,
    train_dataset=train_dataset,
    eval_dataset=eval_dataset,
    loss_class=CosineSimilarityLoss,
    metric="accuracy",
    batch_size=16,
    num_iterations=20,  # The number of text pairs to generate for contrastive learning
    num_epochs=1,  # The number of epochs to use for constrastive learning
    column_mapping={"sentence": "text", "label": "label"}  # Map dataset columns to text/label expected by trainer
)

# Train and evaluate
trainer.train()

# Run inference
preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])
print(preds.shape)

(2,)

Note that the LogisticRegression head must be fitted before we can call __call__, hence the larger example. This example is nearly directly taken from the README.md.
Expected behaviour
I would expect the output shape to be (2,) in both situations.
Consequences
This is a fairly easy fix, but I found it curious that this was not discovered earlier. After all, the predictions from SetFitHead should be used in a loss function when training, right? An issue in the shape would be discovered there. Through some testing, I found out that the following fitting loop for the differentiable head is never called with the script above for the differentiable head:
https://github.com/huggingface/setfit/blob/4a613b08267690dad0840444fc3e2caf60f29a44/src/setfit/modeling.py#L214-L240
If instead I use the Trainer like recommended from the following training script, with keep_body_frozen=True, then I do get an error.
https://github.com/huggingface/setfit/blob/4a613b08267690dad0840444fc3e2caf60f29a44/scripts/setfit/run_fewshot.py#L132-L142
Copy-pasteable reproducing script (Script 3)
from datasets import load_dataset
from sentence_transformers.losses import CosineSimilarityLoss

from setfit import SetFitModel, SetFitTrainer, sample_dataset

# Load a dataset from the Hugging Face Hub
dataset = load_dataset("sst2")

# Simulate the few-shot regime by sampling 8 examples per class
train_dataset = sample_dataset(dataset["train"], label_column="label", num_samples=8)
eval_dataset = dataset["validation"]

# Load a SetFit model from Hub
model: SetFitModel = SetFitModel.from_pretrained(
    "sentence-transformers/paraphrase-mpnet-base-v2",
    use_differentiable_head=True
)

# Create trainer
trainer = SetFitTrainer(
    model=model,
    train_dataset=train_dataset,
    eval_dataset=eval_dataset,
    loss_class=CosineSimilarityLoss,
    metric="accuracy",
    batch_size=16,
    num_iterations=20,  # The number of text pairs to generate for contrastive learning
    num_epochs=1,  # The number of epochs to use for constrastive learning
    column_mapping={"sentence": "text", "label": "label"}  # Map dataset columns to text/label expected by trainer
)

# Freeze head
trainer.freeze()

# Do contrastive training
trainer.train()

# Unfreeze head and freeze body
trainer.unfreeze(keep_body_frozen=True)

# Train end-to-end
trainer.train(
    num_epochs=25,
    body_learning_rate=1e-5,
    learning_rate=1e-2,
    l2_weight=0.0,
)

# Run inference
preds = model(["i loved the spiderman movie!", "pineapple on pizza is the worst 🤮"])
print(preds)

The error is the following:
Traceback (most recent call last):
  File "[sic]\setfit\demo_diff_head_freeze.py", line 42, in <module>
    trainer.train(
  File "[sic]\setfit\src\setfit\trainer.py", line 376, in train
    self.model.fit(
  File "[sic]\setfit\src\setfit\modeling.py", line 236, in fit
    loss = criterion(predictions, labels)
  File "[sic]\envs\setfit\lib\site-packages\torch\nn\modules\module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "[sic]\envs\setfit\lib\site-packages\torch\nn\modules\loss.py", line 619, in forward
    return F.binary_cross_entropy(input, target, weight=self.weight, reduction=self.reduction)
  File "[sic]\envs\setfit\lib\site-packages\torch\nn\functional.py", line 3086, in binary_cross_entropy
    raise ValueError(
ValueError: Using a target size (torch.Size([16])) that is different to the input size (torch.Size([16, 1])) is deprecated. Please ensure they have the same size.

Triggering training on the differentiable head is very confusing right now, and so I would like to continue the discussion at https://github.com/huggingface/setfit/issues/179#issuecomment-1316710169 on a new class structure.
I'll submit a PR for this shortly.

Tom Aarsen

Hi @tomaarsen,
Thanks for raising this up! I should test the differentiable head for binary classification.
This issue is also similar to one in my mind that maybe we should use CrossEntropyLoss for both binary and multi-class classification, so we won't forget to test either. And it can solve the issue in PR #187 about different data types for different loss functions. Plus also make #179 easier. 😃
Does it sound good? I can fix it with a PR.
cc: @lewtun for your comment and advise

That sounds reasonable! Assuming that we can expect similar performance for CrossEntropyLoss rather than BCELoss, as I believe they are a bit different (sigmoid vs softmax).

yeah good point! I will run some experiments to test whether they can perform similarly. If so, will open a PR for it

Solved via #203


Add customizable section name feature

Fixes Issue
Closes #38
Changes proposed

[x] Allow customization of section-name in the file.

Check List (Check all the applicable boxes)

[X] My code follows the code style of this project.
[X] My change requires changes to the documentation.
[X] I have updated the documentation accordingly.
[X] All new and existing tests passed.
[X] This PR does not contain plagiarized content.
[X] The title of my pull request is a short description of the requested changes.

Note to reviewers

The default value is still present in the actions.yml, so no breaking changes
This allows having multiple different sections on the same file (which is something that I use in some of my projects)

@eddiejaoude could you please review this PR? Thanks in advance!

Thank you for the PR. What are the new files tech stack for?

Hi @eddiejaoude. This is to show the stack used by the repository, which is a feature from StackShare website.
I merged it with my branch, if you want I can remove it from this PR. Let me know if you need any other changes.


MultiDex Error

When i updated UtilCode to v1.9.8 I got this error:
Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/blankj/utilcode/util/LogUtils;

u can try it.
dexOptions {
    preDexLibraries = false
}

clean and build ur project.

Thanks for reply, I deleted .gradle cache folder and rebuild my project. It fixed my issue.


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/networking-wg-leads
/assign knative-sandbox/networking-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/control-protocol ef4c10a...827b25d:
  > 827b25d upgrade to latest dependencies (# 195)
  > 1af6f36 upgrade to latest dependencies (# 193)
bumping knative.dev/pkg 97eb150...e60d250:
  > e60d250 upgrade to latest dependencies (# 2543)
bumping knative.dev/networking c3aef9c...f087178:
  > f087178 upgrade to latest dependencies (# 689)
  > 5bf508e generate schema for networking types (# 688)

/lgtm
/approve


net/http/cgi: PATH_INFO should be empty or start with a slash

What version of Go are you using (go version)?

$ go version
go version go1.21.3 darwin/amd64

Does this issue reproduce with the latest release?
yes
What did you do?

As described at https://datatracker.ietf.org/doc/html/rfc3875#section-3.3 and https://datatracker.ietf.org/doc/html/rfc3875#section-4.1.5,
seems to require that PATH_INFO either is empty or begins with a slash, which would imply that the SCRIPT_NAME variable for this case must not end with a slash.
https://go-review.googlesource.com/c/go/+/538861/comment/d24b7001_5770e9f5/
What did you expect to see?
What did you see instead?

(CC @neild @bradfitz)


Add index.html file for C# coverage reports

This should make gcov report for C# on windows visible.

merge?


[SPARK-36705][SHUFFLE] Disable push based shuffle when IO encryption is enabled or serializer is not relocatable

What changes were proposed in this pull request?

Disable push-based shuffle when IO encryption is enabled or serializer does not support relocation of serialized objects.
Why are the changes needed?

Push based shuffle is not compatible with IO encryption or non-relocatable serialization.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Added some tests to check whether push-based shuffle can be disabled successfully when IO encryption is enabled or a serializer that does not support relocation of serialized object is used.

Can one of the admins verify this patch?

cc @mridulm @Victsm @venkata91 @zhouyejoe @otterc
Please take a look.

Ok to test

Test build #143195 has started for PR 33976 at commit aace904.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47697/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47697/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47697/

Test build #143195 has finished for PR 33976 at commit aace904.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143195/

Can one of the admins verify this patch?

Test build #143217 has started for PR 33976 at commit 9f4e4f4.

Ok to test

Will merge after tests pass, thanks for working on this @rmcyang !

Test build #143218 has started for PR 33976 at commit 9f4e4f4.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47719/

Test build #143219 has started for PR 33976 at commit 0e5e229.

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47719/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47719/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47720/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47720/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47720/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47721/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47721/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47721/

Test build #143217 has finished for PR 33976 at commit 9f4e4f4.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #143218 has finished for PR 33976 at commit 9f4e4f4.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143218/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143217/

GA tests passed.
Merged to master/branch-3.2
+CC @gengliangwang
Thanks for fixing this @rmcyang !
Thanks for the reviews @gengliangwang, @zhouyejoe :-)

@rmcyang To assign the jira, what is your apache id ?

@mridulm My apache id is minyang.

Thanks for reviewing @mridulm @gengliangwang @zhouyejoe !

Test build #143219 has finished for PR 33976 at commit 0e5e229.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143219/

+1, late LGTM (with two nit comments about warning message and one question)
Thank you, @rmcyang , @zhouyejoe , @gengliangwang , @mridulm .


[New port request] mimalloc

https://github.com/microsoft/mimalloc

mimalloc.zip
test windows x64 shared

I’d love a Microsoft policy that all their c/c++ libs must be published also on vcpkg. It would make everything much easier!


How to move ou?

Hi,
I have found the example to update user uo to another uo.
Is there any Example for uo move.
At first, I try to update the dn, and do it like this :
$uo->dn = new dn;

It not work.
Than i do it with move function:
Adldap::getConnection()->showErrors();
$uo= Adldap::ous()->find('Test Uo');
$uo->move('OU=Test Uo',  'OU= New Uo,OU=ad,DC=test,DC=com')

It return false without error msg.
Could you help me?
Thanks.

$uo->dn = new dn

This is incorrect usage.
The correct usage would be:
$dn = new \Adldap\Objects\DistinguishedName('dc=corp,dc=acme,dc=org');

$dn->addCn('John Doe');

$user->setDn($dn);

Also are you sure an OU with this dn exists?
'OU= New Uo,OU=ad,DC=test,DC=com'

Closing due to inactivity.


#143117755 Document Actions

What does this PR do?
Sets up document actions allowing a user to view documents on the dashboard as well as create them
What are the relevant pivotal tracker stories?
#143117755

Codecov Report

Merging #28 into develop will decrease coverage by 4.19%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           develop      #28     +/-   ##
==========================================
- Coverage    93.71%   89.52%   -4.2%
==========================================
  Files           17       17
  Lines          334      334
  Branches        67       67
==========================================
- Hits           313      299     -14
- Misses          21       35     +14

Impacted Files
Coverage Δ

server/controllers/UserController.js
84.04% <ø> (ø)
:arrow_up:

server/controllers/DocumentController.js
76.71% <33.33%> (-19.18%)
:arrow_down:

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 0b4467c...534c83b. Read the comment docs.


Add documentation outlining the workflow process for opening a SIG-NET-PEP or NPEP

Add "Enhancement Proposals" page explaining how to create NPEPs.
Add Meeting details to the "Community, discussion, contribution, and support" section, since this section is now linked from the enhancements page for existing ways to connect.
Add npep folder and template.
Most of the content is based on Gateway API src <3.
TODO:
[ ] Update link to create enhancement issue when we have templates
Closes https://github.com/kubernetes-sigs/network-policy-api/issues/95

/ok-to-test

@npinaeva When this merges let's get you into the ORG :) https://github.com/kubernetes/org

/lgtm
/approve
Thanks @npinaeva!


Include rate limit headers in response

Responses contain a lot of information in headers.
x-ratelimit-limit-requests
x-ratelimit-limit-tokens
x-ratelimit-remaining-requests
x-ratelimit-remaining-tokens
x-ratelimit-reset-requests
x-ratelimit-reset-tokens

These are not accessible as the response objects are json representations of the response body.
Having access to these values would be helpful to implement custom rate limiting without relying on parsing out values from error messages.
There are a few ways to do this:

To keep backwards compatibility an optional flag: include_headers could be provided to the client interface. The response object could then contain a top level key with the headers (parsed into a usable format). This modifies the payload from the underlying service so it isn't a very clean solution.
Break backwards compatibility and return response objects. This is a pretty big design change, but it may have other benefits like avoiding code such as response.dig("choices", 0, "message", "function_call", "arguments") when you're trying to fetch values from the payload
Add, and document, custom errors that are raised that contain all of the rate limiting information in a readable format. This doesn't allow for implementing back-off logic prior to encountering an error, but could be implemented without breaking the api.

This PR enables this kinda thing as needed I think. eg. if you set
OpenAI::Client.new do |client|
  client.response :logger, ::Logger.new(STDOUT), bodies: true
end

ya get everything including
openai-version: "2020-10-01"
strict-transport-security: "max-age=15724800; includeSubDomains"
x-ratelimit-limit-requests: "3500"
x-ratelimit-limit-tokens: "90000"
x-ratelimit-remaining-requests: "3499"
x-ratelimit-remaining-tokens: "89980"
x-ratelimit-reset-requests: "17ms"
x-ratelimit-reset-tokens: "12ms"

That looks great. Allowing the ability to pass in middleware means anything can be modified. I can access the headers and set them as variables, add them to the response, log them, etc.
Absolutely solves my use case. Thanks for the quick reply.

@JaredShay Awesome, that's released in v6.3!


Issue/build master loosen test assertions

Description
This build was failing because the assertion is too strict.
This PR reworks the way we test for the presence of the warnings in this test and the surrounding ones.
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[ ] Attached issue to pull request
[ ] Changelog entry
[ ] Type annotations are present
[ ] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

Processing this pull request

Merged into branches master in fb6cccd8e850b6608da311a3a2e72651418aead0

Processing #4987.


Where is your Wiki?

What's wrong with the wiki? Can't find it today

its inside docs folder but I hope they return back the wiki page ...

Depending opn what version you're running
https://github.com/PokemonGoF/PokemonGo-Bot/tree/master/docs
or
https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev/docs

#3602 #3595


Boot fails when importing a ZFS pool of LVM volumes with Failed to find executable lvm: No such file or directory

Describe the bug
From some time (might coincide with lvm2 upgrade to 2.03.15, but haven't checked yet) one of my servers has problems booting – it gets stuck at ZFS import. After some debugging I have pinpointed the issue to be caused by LVM – if I go into the rescue shell and do vgchange -ay && exit  the system boots successfully. When looking at verbose boot logs I can see the following message:
Mar 20 23:05:53 ronin lvm[4242]: PV /dev/dm-12 online, VG ThunderbayCacheVolumeGroup is complete.

... quite a bit of udev stuff

Mar 20 23:05:53 ronin systemd-udevd[4164]: dm-12: Running command "/run/current-system/systemd/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-ThunderbayCacheVolumeGroup lvm vgchange -aay --nohints ThunderbayCacheVolumeGroup"
Mar 20 23:05:53 ronin systemd-udevd[4164]: dm-12: Starting '/run/current-system/systemd/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-ThunderbayCacheVolumeGroup lvm vgchange -aay --nohints ThunderbayCacheVolumeGroup'
Mar 20 23:05:53 ronin systemd-udevd[4164]: Successfully forked off '(spawn)' as PID 4245.
Mar 20 23:05:53 ronin systemd-udevd[4164]: dm-12: '/run/current-system/systemd/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-ThunderbayCacheVolumeGroup lvm vgchange -aay --nohints ThunderbayCacheVolumeGroup'(err) 'Failed to find executable lvm: No such file or directory'
Mar 20 23:05:53 ronin systemd-udevd[4164]: dm-12: Process '/run/current-system/systemd/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-ThunderbayCacheVolumeGroup lvm vgchange -aay --nohints ThunderbayCacheVolumeGroup' failed with exit code 1.
Mar 20 23:05:53 ronin systemd-udevd[4164]: dm-12: Command "/run/current-system/systemd/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-ThunderbayCacheVolumeGroup lvm vgchange -aay --nohints ThunderbayCacheVolumeGroup" returned 1 (error), ignoring.

As you can see, udev fails to activate the volume group because the lvm seems to be missing – I can however call vgchange without problems from the rescue shell, so it might not be as simple as the binary not being available.
If it helps, the machine disk layout is as follow:

ronin-storage pool on /dev/nvme0n1, the device is decrypted in initrd and has preLVM set,
tank pool on 4 HDDs in a Thunderbolt enclosure with /dev/nvme1n1 for slog/L2ARC; the devices are decrypted via crypttab.

Where LVM comes into play here is that the slog/L2ARC SSD is partitioned via LVM into three devices 2 for mirrored slogs and 1 for L2ARC (let's disregard whether it's a smart thing to do, I have done it mostly to learn how to set it up and had only one SSD to spare). This setup has worked without a hitch for a while, but has started breaking from some time.
Let me know what parts of my configuration would you like me to provide or any other information that would help debugging this.
Steps To Reproduce
Good question… I imagine it would be something like this:

have ZFS pool inside LUKS devices decrypted via crypttab,
with at least one of the devices partitioned via LVM
try to import the pool at boot
fail due to the LVM volumes failing to activate

But can't really test what is a minimal reproduction of this issue without having to restart server a lot and staying sane.
Expected behavior
The system should keep booting without a hitch, properly activating LVM volumes before ZFS pool import
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
╭─jaen@ronin ~
╰─$ nix-shell -p nix-info --run "nix-info -m"
this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/rmhwi0jcya8f87gzk2jjdwv4hifmmbb4-nix-info
copying path '/nix/store/rmhwi0jcya8f87gzk2jjdwv4hifmmbb4-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.28, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.8.0pre20220311_d532269`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Generation from 04.01.2022 boots without problems, I'll see if I have made any configuration change that's rlevent since, but I don't think I've touched the setup of my pools for a while.

This seems to not be happening anymore, maybe this fixed the issue:
https://github.com/NixOS/nixpkgs/pull/168302/files#diff-3c570009a2c7ab89324c8b85e157992451fecd47f332e51c4dc8d4351b7c1540R44
Can anyone confirm this would be a possible fix?


Cake4: Support

I have started the branch for Cake4 beta:
https://github.com/php-http/cakephp-adapter/compare/master...dereuromark:master
Are you able to make a cake4 branch here for now?
So I can remove the overhead in config?
    "require": {
        ...
        "php-http/cakephp-adapter": "dev-master as 0.2.0"
    },
    "repositories": [
        {
            "type": "git",
            "url": "git@github.com:dereuromark/cakephp-adapter.git"
        }
    ],

Thank you :)

ping @Nyholm etc

@dereuromark would you be open to stepping up as a maintainer for this package? I can add you to the repo if you are.

Sure, I can definitely help out here.

Great! I added you to the repo, so you should be able to create that branch.

Cool. I let you know once you can review.

https://github.com/php-http/cakephp-adapter/pull/11 can now be reviewed.


Sandbox Environment - Azure SQL Connection Failure

Describe the bug
Failed to establish a connection to the Azure SQL database
What happened?
Upon attempting to connect to the Azure SQL database from the sandbox environment, an "Upcoming breaking changes in the cmdlet 'New-AzSqlDatabase" error is encountered consistently.

What did you expect to happen?
The connection should be successfully established, allowing interaction with the Azure SQL database.
I suggest investigating the authentication configuration for the Azure SQL database and sandbox environment
How would you reproduce the bug?
Steps to reproduce:

Navigate to the Azure portal.
Select the desired sandbox environment.
Attempt to establish a connection to the Azure SQL database using the defined steps.

Did this happen via Desktop and/or Smartphone?
Desktop
Operating System
Windows 11
What browsers are you seeing the problem on?
Microsoft Edge
Version
114.0.1823.37 (Official build) (64-bit)
Device
HP EliteBook
What is your current role?
Student Ambassador
What technical topic is this bug related to?
AI/Data Science/Machine Learning
Relevant log output
No response

@AnthonyByansi I'll could you share the module link? Thanks!

The Azure SQL Bug bash module and  Azure Sql fundamentals modules I thought it was a problem for the Azure SQL fundamentals alone, but turns out to be on the Azure SQL bug bash module as well. Tried several times though.

@paladique I am facing the same issue. However, I launch Cloud Shell in a separate browser tab by going to https://shell.azure.com
Check out the image attached here

@anupamishra333 Thank you! They might be separate issues, so would you mind making a new issue out of this just in case? You should be able to do this in the ... top right of your comment > reference new issue. You can set the title as Cloud Shell Environment - Azure SQL Connection Failure

@paladique I guess this error cuts across the virtual-Environment. Tried it out just like what @anupamishra333 did

@paladique I would you to look at a similar project that I'm working on, Utilizing the knowledge gained from Azure SQL bug bash session.

@paladique please let me know if you gat a chance to look at the implemented project, thanks


Test on unchanged code fails

In two my PRs (#65 and #68) CI / Test Linux x86_64 (pull_request)  fails:
test instance::allocator::pooling::memory_pool::tests::test_pooling_allocator_striping ... FAILED
test mpk::enabled::tests::check_initialized_keys ... FAILED
test mpk::enabled::tests::check_invalid_mark ... FAILED

All this tests definitely don't related to changes I made. Maybe something with dependencies?

I rerunned jobs in #65 and it disappears

Same for #68. Moreover, both of them fail first and second run, and succeed in third


Seem to be having embed issues on Discord

So this post has a video but the video is being embedded in the thumbnail section of the embed.

Not sure why Discord isn't loading it because Telegram can hmm


Add symplectic representation feature

Discussed in #10. This will be a breaking change necessary for representing Gaussian states, unitaries, channels, etc in different symplectic representations. For instance, in the quadrature pair representation where the symplectic form is
$\Omega = \bigoplus_{i = 1}^{N}\begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix}$, we would express a displacement unitary operator as follows:
julia> nmodes = 1; repr = QuadPairBasis(nmodes);

julia> displace(basis, 1.0-im)
GaussianUnitary for 1 mode in QuadPairBasis representation.
displacement: 2-element Vector{Float64}:
  1.4142135623730951
 -1.4142135623730951
symplectic: 2×2 Matrix{Float64}:
 1.0  0.0
 0.0  1.0

Here, we have defined the symplectic basis basis to be of type QuadPairBasis, which wraps around the corresponding number of nodes. What's also nice (and was easy to implement) is that now we can form tensor products from predefined methods such as displace, e.g., we can make a tensor product of the same unitary:
julia> nmodes = 3; basis = QuadPairBasis(nmodes);

julia> displace(basis, 1.0-im)
GaussianUnitary for 3 modes in QuadPairBasis representation.
displacement: 6-element Vector{Float64}:
  1.4142135623730951
 -1.4142135623730951
  1.4142135623730951
 -1.4142135623730951
  1.4142135623730951
 -1.4142135623730951
symplectic: 6×6 Matrix{Float64}:
 1.0  0.0  0.0  0.0  0.0  0.0
 0.0  1.0  0.0  0.0  0.0  0.0
 0.0  0.0  1.0  0.0  0.0  0.0
 0.0  0.0  0.0  1.0  0.0  0.0
 0.0  0.0  0.0  0.0  1.0  0.0
 0.0  0.0  0.0  0.0  0.0  1.0

Or we can make a tensor product of different displacement unitaries by calling a vector of complex numbers (alphas) whose size is the number of modes of the output state, e.g.,:
julia> displace(basis, [1.0-im, 2.0-2.0im, 3.0-3.0im])
GaussianUnitary for 3 modes in QuadPairBasis representation.
displacement: 6-element Vector{Float64}:
  1.4142135623730951
 -1.4142135623730951
  2.8284271247461903
 -2.8284271247461903
  4.242640687119286
 -4.242640687119286
symplectic: 6×6 Matrix{Float64}:
 1.0  0.0  0.0  0.0  0.0  0.0
 0.0  1.0  0.0  0.0  0.0  0.0
 0.0  0.0  1.0  0.0  0.0  0.0
 0.0  0.0  0.0  1.0  0.0  0.0
 0.0  0.0  0.0  0.0  1.0  0.0
 0.0  0.0  0.0  0.0  0.0  1.0

There's still a few things that need to be done before this is merged:

[ ] Add support for QuadBlockBasis, the symplectic representation with form $J = \begin{pmatrix} 0 & \mathbf{I}_N \\ -\mathbf{I}_N & 0 \end{pmatrix}$.
[ ] Add more tests for each representation.
[ ] Update readME examples and docstrings.
[ ] Add section in docs manual about symplectic representations.
[ ] Update benchmarks.

I haven't had a chance to look through the code in detail, but just wanted to comment that it looks like in the examples you have here, the symplectic matrix is printed as just identity?

I haven't had a chance to look through the code in detail, but just wanted to comment that it looks like in the examples you have here, the symplectic matrix is printed as just identity?

Yes, the symplectic map for a displacement unitary is the identity matrix (and tensor products of them as well). Are you saying that's wrong? Or maybe that there's a more efficient way of storing it? I agree with the latter very much and will address that in future PRs.


What's new for preview 8

@dotnet/efteam Should we include many-to-many here? I'm somewhat reluctant because there are a lot of additional tweaks/fixes that have gone in after we branched.

Should we include many-to-many here?

Anyone following the issue already knows that some of it it there. I think that's enough exposure for now

@dotnet/efteam:

Updated TPT to include the constraints
Added TVF mapping (/cc @pmiddleton - I started from what you wrote--it was very helpful thanks!)
Added some words on query roots

@JeremyLikness I think this has everything in it now.

@dotnet/efteam Can I get approval on this so we can push to live for the release today.


Broken font with this mod

I have no font, everything in squares when using this mod. I think the problem is in my modpack dashloader is installed, but I'm not sure

Hi, it turns out the issue might not actually be another mod, but lack of compability with 1.19.2, potentially 1.19.3, due to my lack of testing on these versions. I'm working on getting a fix for these versions.

Yes, it happened on 1.19.3 Fabric for me. Thank you for fast response, good luck with working on mod!

The latest version should now work with 1.19.2 and 1.19.3. Thanks a lot for submitting this issue, I was always thinking that the mod would work fine on those versions. If you notice any problems while using your other mods, I would love if you could create another issue.


Client randomly crashes, repeatedly

Describe the bug
At random times, under normal load, the client will crash.
To Reproduce

MacOS
Enable GPU plugin ( potentially relevant )
Play game?

Expected behavior
Client doesn't crash
Screenshots
GitHub won't allow me to post the error log from crash as it's too long.

Environment (please complete the following information):

OS: macOS, 32gb RAM, 2.3GHz i7
RuneLite version: 2.4.3
Launcher version: I don't think I have a different version for the launcher?

Additional context
Can provide crash logs, but I'm sot sure which is applicable. jvm_crash_pid_41854.log ◀ They are all like this with different PIDs.
GitHub won't let me post the error as it's too long.

Please upload the most recently-creatd jvm_crash_pid file, that will include more information.

jvm_crash_pid_16062.log

This is crashing in the Apple Intel GL driver:
C  [AppleIntelICLGraphicsGLDriver+0x1992dd]  gldExecuteKernel+0x7d
C  [OpenCL+0x12eb4]  clFlush+0xc747
C  [OpenCL+0x2ae6a]  clSetEventCallback+0x1553
C  [OpenCL+0x2cdc4]  clCreateCommandQueueWithPropertiesAPPLE+0xb39
C  [libdispatch.dylib+0x2cc9]  _dispatch_client_callout+0x8
C  [libdispatch.dylib+0x8cee]  _dispatch_lane_serial_drain+0x2b8
C  [libdispatch.dylib+0x97c8]  _dispatch_lane_invoke+0x16e
C  [libdispatch.dylib+0x137e1]  _dispatch_workloop_worker_thread+0x2f6
C  [libsystem_pthread.dylib+0x308f]  _pthread_wqthread+0x146
C  [libsystem_pthread.dylib+0x201b]  start_wqthread+0xf

We probably don't know why and can't figure out why. This is specifically crashing in the compute stuff though so if you disabled "use compute shaders" it may workaround it.

I've seen two crashes today that seem to be caused by the GpuPlugin. Pasting the relevant snippets from my client.log file below in case they are relevant or helpful. Both crashes occurred while I was standing still in the GE, not moving nor looking around. This is on an M1 chip, RuneLite version: <IP_ADDRESS>. Launcher version: 2.1.5

2022-04-26 13:11:19 [pool-6-thread-1] WARN  n.r.c.plugins.worldhopper.ping.Ping - non-echo reply
2022-04-26 13:24:00 [pool-6-thread-1] WARN  n.r.c.plugins.worldhopper.ping.Ping - non-echo reply
2022-04-26 13:40:02 [Client] ERROR client-patch - Client error: null
java.lang.RuntimeException: java.lang.NullPointerException
at jogamp.nativewindow.macosx.OSXUtil.RunOnMainThread(OSXUtil.java:324)
at net.runelite.client.plugins.gpu.GpuPlugin.invokeOnMainThread(GpuPlugin.java:1824)
at net.runelite.client.plugins.gpu.GpuPlugin.draw(GpuPlugin.java:1123)
at ao.b(ao.java:50290)
at ao.run(ao.java:340)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: null
at net.runelite.client.plugins.gpu.GpuPlugin.prepareInterfaceTexture(GpuPlugin.java:1165)
at net.runelite.client.plugins.gpu.GpuPlugin.drawFrame(GpuPlugin.java:1186)
at net.runelite.client.plugins.gpu.GpuPlugin.lambda$draw$9(GpuPlugin.java:1123)
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:143)
2022-04-26 14:02:45 [AWT-EventQueue-0] INFO  c.f.controller.DataHandler - storing data

and

2022-04-26 17:54:42 [Client] INFO  c.f.controller.FlippingPlugin - $$$$$$$ has just logged in!
2022-04-26 17:54:42 [Client] INFO  c.f.controller.FlippingPlugin - starting slot timers on login
2022-04-26 18:04:06 [Client] ERROR client-patch - Client error: null
java.lang.RuntimeException: java.lang.NullPointerException
at jogamp.nativewindow.macosx.OSXUtil.RunOnMainThread(OSXUtil.java:324)
at net.runelite.client.plugins.gpu.GpuPlugin.invokeOnMainThread(GpuPlugin.java:1824)
at net.runelite.client.plugins.gpu.GpuPlugin.draw(GpuPlugin.java:1123)
at ao.b(ao.java:50290)
at ao.run(ao.java:340)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: null
at net.runelite.client.plugins.gpu.GpuPlugin.prepareInterfaceTexture(GpuPlugin.java:1165)
at net.runelite.client.plugins.gpu.GpuPlugin.drawFrame(GpuPlugin.java:1186)
at net.runelite.client.plugins.gpu.GpuPlugin.lambda$draw$9(GpuPlugin.java:1123)
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:143)
2022-04-26 18:11:08 [pool-6-thread-1] WARN  n.r.c.plugins.worldhopper.ping.Ping - non-echo reply
2022-04-26 18:41:49 [pool-6-thread-1] WARN  n.r.c.plugins.worldhopper.ping.Ping - non-echo reply

We have recently replaced the GL library used by the GPU plugin. Given that change and that we are not able to reproduce this issue, we are closing this. Please comment if you still experience this issue.


I can't test in video

I tried to test my dataset in video from code of official page.
It didn't exist error message, it was only thinking and didn't work correctly. could you help me?
from mmdet.apis import init_detector, inference_detector
import mmcv
config_file = 'config.py'
checkpoint_file = './work_dir/latest.pth'
model = init_detector(config_file, checkpoint_file, device='cuda:0')
video = mmcv.VideoReader('video.mp4')
for frame in video:
result = inference_detector(model, frame)
model.show_result(frame, result, wait_time=1)

Hi @Tsu-t ,
What model do you use? Could you follow the error template to provide more information with command and code for use to reproduce your issue?

Hi @Tsu-t ,
What model do you use? Could you follow the error template to provide more information with command and code for use to reproduce your issue?

Hi @ZwwWayne ,
My using model is "cascade_mask_rcnn", and I was able to train and test in image by Coco dataset. That config file is changed only coco format and some Parameters from original.

@Tsu-t Are you able to resolve this issue because I am also getting the same issue, the model is just working and not displaying anything?

@ZwwWayne in my case i am using faster_rcnn_x101_64x4d_fpn_2x_coco.py

@neomukul I haven't solved yet. I want someone to help because I'm giving up.

@Tsu-t i was advised to use "kodec" to resolve this issue, but I don't know what is kodec????


Feature/pm 7 listen to multiple factories

Use django-environ to automatically convert environment variables into list.

Pull Request Test Coverage Report for Build 1045

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 85.673%

Totals

Change from base Build 1042:
0.0%

Covered Lines:
2936

Relevant Lines:
3427

💛  - Coveralls


[Bug]: After password reset user is able to login 2nd instance in the same browser with any random password character

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Currently when a user resets the password and logins with new password the user lands to the home page, however in the same browser in a new tab the user can login successfully again by giving any random character as password.
https://loom.com/share/2d22e37c344744a68b6231f11d948eaa
Steps To Reproduce

Go to https://release.app.appsmith.com/user/login
Give valid usn & pwd for User1 > In homepage > Edit profile > Reset password
Reset password to a new password > Back to Sign in
Give usn and new password for User1 > Home page must be seen
Now in a new tab go to https://release.app.appsmith.com/user/login
Give User1 email id and any random characters in password field and click on login > Observe that homepage is seen for user1

Environment
Release
Version
Cloud

Can you see if you can reproduce this if the other tab is in another Incognito window? I think what's happening here is that the random password you are entering isn't checked at all. The point is, you are already logged in in this browser session, so you're just redirected to the applications homepage without checking for your credentials. It's just as if you refreshed the page and tried to access the login or forgot-password links, you'll just be redirected to the applications list page.
I'm closing this now, but if this bug shows up when the other tab is opened in an Incognito session, that's a problem. Please feel free to reopen. Thanks!


error message: Could not find currency

I get an error after installing the tibber_custom (log below) and I suspect that the reason for the error can be that I have signed up with tibber. But the switch from my previous supplier to tibber is not effective yet.
The following fields are missing (Unknown) from the data I get from tibber:
Monthly cost 1etg -> Unknown
Monthly net consumption 1etg ->Unknown
Monthly peak hour consumption 1etg ->Unknown
Time of max hour consumption 1etg ->Unknown
The log
2022-09-26 22:09:29.771 ERROR (MainThread) [tibber] Could not find currency.
2022-09-26 22:09:31.288 ERROR (MainThread) [tibber] Could not find currency.
2022-09-26 22:09:31.440 ERROR (MainThread) [homeassistant.components.sensor] tibber: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 703, in async_device_update
await task
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 374, in async_update
self._attr_native_value, price_level, self._last_updated = res
TypeError: cannot unpack non-iterable NoneType object
2022-09-26 22:09:32.282 ERROR (MainThread) [homeassistant.components.sensor] tibber: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 493, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 703, in async_device_update
await task
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 374, in async_update
self._attr_native_value, price_level, self._last_updated = res
TypeError: cannot unpack non-iterable NoneType object

This is an issue I have from the two resents updates in HA too.
It worked but suddenly current price is not available.

Not related to this custom component


Fix eval_gemfile in sub-directories

I have also submitted this upstream as bundler/bundler#3102:

That isn't currently a documented or officially supported method... I guess we need to decide whether we want to make it documented and supported.

If bundler accept the patch, this one here is probably obsolete.

@lgierth I'm moving away from having Gemfile.devtools. Closing this PR for that reason.


.NET Bot deployed on Facebook doesn't resume for returning Users

Version
bot framework V4 on .NET and C#
Describe the bug
I have a v4 Bot deployed on facebook. Whenever users visit the page after a few days then the Bot is not resuming the conversation on the first time call. Users can visit the bot from our website " www.travelomind.com " and upon visiting the page an API call is made and a carousel is shown to the users.  But users who are idle for say 1-2 days, after returning to the Bot get no response on the first call. Also this is not a consistent problem, as for some users the Bot does work. this seems to be a SDK issue.
Expected behavior
Bot should give result on each call when an user comes back to the messenger.
Screenshots

Only the redirection message is getting printed.

What version of the v4 SDK are you using?

4.0

@SATACHAKRA
This behavior sounds like it is related to the token refresh issue that was resolved in January. Please update to the latest version of the SDK - v4.3 - and let us know if that resolves your problem.

I upgraded to SDK - v4.3 - but still the issue persists.

Do you have application insights configured for the bot and the web app hosting the bot? You should be able to tell based on the timestamp if Facebook Messenger sent the bot a message and what went wrong.

Actually the call never reaches my bot from returning users. I have implemented a middleware now, but even that doesn't log anything. It's as if the Bot was never triggered. But as soon as the user types and make some conversation with the bot, then goes to the website and returns to the bot by using our search widget, he gets a successful result.
Moreover, this is not a consistent issue. What I mean is NOT ALL USERS experience this behaviour. only some random users do, and that also on a random basis and after any random time.
I am enabling application insights now on azure to check the fb log for the same. Meanwhile, could you please provide a workaround ?

Can you provide your bot handle and UTC times of when the errors occurred? I want to look at our logs and dig into the issue more before I suggest a fix.

@SATACHAKRA are you still having an issue with this?

@tdurnford  Yes TJ...I m still facing this issue. I have put this project on hold becoz of this issue. I upgraded to bf v4.3.2 but atill the issue persists..
How can I help u debug this ?

"Can you provide your bot handle and UTC times of when the errors occurred? I want to look at our logs and dig into the issue more before I suggest a fix. "---- i provide you this data.. how to pull this froom my azure portal ?

I actually just need the application Id which you can find in your project or by navigating to your bot at https://apps.dev.microsoft.com. I also need UTC Times around when the errors occurred.

@SATACHAKRA , can you please provide the requested app id + UTCs for the event(s) so that we can move forward and investigate?

@CoHealer  @tdurnford
I am ill and travelling..please wait 2 days within which I will provide the details from my office. thank you so much for your interest and prompt support. please bear with me for 2 days. TIA.

If you have affected conversation ids as well, that would be helpful.

Closing due to inactivity. @SATACHAKRA if you are still experiencing this issue, please reopen this issue with the app id, UTC times for the events, and affected conversation ids.

@tdurnford
Here I am attaching the log files with time when the Bot hit an issue.

facebook app id:<PHONE_NUMBER>99483
Microsoft app id: d80a18ba-6901-4229-8884-a57edd1ee61f
Page name : Travelomind

Some users are returning users while some are completely new users who are not even getting any response from the Bot. Also I am using .Net Version 4.7 .


Autosiena - Missing "Targetare.ro" link's functionality

ENVIRONMENT: production
URL: https://scrapers.peviitor.ro
Browser: Chrome
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open the URL in the browser
Search for "Autosiena" Company
Click on the "Targetare.ro" link
Open "Targetare.ro" link

EXPECTED RESULTS:
The "targetare.ro" link is functional and the page is opened.
ACTUAL RESULTS:
Missing "Targetare.ro" link
ATTACHMENTS:

The company is not present on targetare.ro. This issue will not be fixed


What's up with the hard coded urls?

https://github.com/navikt/helsesjekk-bot/blob/main/src/middleware.ts#L14
Could we get this in a .env configuration?
Thank u <3

Sure. :smile: But there is a whole lot of NAV-specific code, so your fork would have to make quite a few changes for this to be deployable anywhere else :see_no_evil:
Take a look at Politiet's fork diff: https://github.com/navikt/helsesjekk-bot/compare/main...politiet:helsesjekk-bot:main :sweat_smile:

The specific code you linked to exists purely because we changed ingress at some point. That entire if is something you would delete in your fork. :smile:

Aha I understand! Thank you Karl! :)


Splitter: Setting to Disabled doesn't set the splitter's cursor state

Whe the splitter is set to Disabled, the cursor's state remains ew-resize instead of something like default.
I've tried changing this in MudSplitter.razor, but that doesn't work.
<MudSlider Style="@($"overflow: hidden; z-index: 6; cursor:{(DisableSlide ? "default !important" : "ew-resize !important")}")" ...

Yeah this is a bug.
And for another issue, after last changes, i think you don't need to overflow: hidden, i added it in the library.


Can't open Javadoc

http://recorder.robotium.com/javadoc/ returning String pageok

You can download the document and unzip it