The remote server returned an error: (401) Unauthorized.

Hi. I’ve the next issue:
The request failed. The remote server returned an error: (401) Unauthorized.
I’m trying to send an appointment but when the process ends (appointment.save()) I have this problem.
I'm trying to connect the service as follows:
        ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
        ExchangeCredentials credentials =  WebCredentials(user, pass, domain);
        service.setCredentials(credentials);
        service.setUrl(new URI("https://XXXXXXX/ews/exchange.asmx"));

Somebody knows how to fix it? Thanks.

I have one problem. The program is in an environment where only the administrator has access. Therefore I can not perform the test with the tool mentioned.
Is there any other way to solve this problem locally?

The reason I suggested this tool is to check on your credentials or the provided URL as the error you reported might have its origin there. This API is about requests and responses to an exchange Server so if you dont have your exchange Server configured locally there is nothing to test with. Maybe provide some additional information about your environment.

To test general connectivity issues to an Exchange Server you can also try this:
https://testconnectivity.microsoft.com/
Select "Service Account Access (Developers)" under "Microsoft Exchange Web Services Connectivity Tests".

I found the problem. the domain that was using was wrong. I change the domain and effectively the problem of authorization was eliminated.
Thank you for your help.

Hi,
I tried to connect to exchange mail server using the ews service provided but I am getting the following issue. Can you please help me on this..
microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The request failed. The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:74)
at microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:158)
at microsoft.exchange.webservices.data.core.ExchangeService.internalCreateItems(ExchangeService.java:598)
at microsoft.exchange.webservices.data.core.ExchangeService.createItem(ExchangeService.java:657)
at microsoft.exchange.webservices.data.core.service.item.Item.internalCreate(Item.java:245)
at microsoft.exchange.webservices.data.core.service.item.EmailMessage.internalSend(EmailMessage.java:147)
at microsoft.exchange.webservices.data.core.service.item.EmailMessage.send(EmailMessage.java:258)
at mailservice.MSExchangeEmailService.main(MSExchangeEmailService.java:211)
Caused by: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.core.request.ServiceRequestBase.validateAndEmitRequest(ServiceRequestBase.java:651)
at microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:62)
... 7 more
Caused by: microsoft.exchange.webservices.data.core.exception.http.HttpErrorException: The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.core.request.ServiceRequestBase.getEwsHttpWebResponse(ServiceRequestBase.java:725)
at microsoft.exchange.webservices.data.core.request.ServiceRequestBase.validateAndEmitRequest(ServiceRequestBase.java:646)
... 8 more


codecov

closes #117

Codecov Report

Merging #128 (6913b22) into master (f35855e) will decrease coverage by 2.42%.
The diff coverage is 82.85%.

@@            Coverage Diff             @@
##           master     #128      +/-   ##
==========================================
- Coverage   95.94%   93.52%   -2.43%
==========================================
  Files           9        8       -1
  Lines         987      957      -30
==========================================
- Hits          947      895      -52
- Misses         40       62      +22

Impacted Files
Coverage Δ

src/Xtals.jl
100.00% <ø> (ø)

src/distance.jl
78.72% <47.61%> (-17.48%)
:arrow_down:

src/bonds.jl
94.32% <97.43%> (-2.39%)
:arrow_down:

src/crystal.jl
94.70% <100.00%> (-0.42%)
:arrow_down:

src/misc.jl
97.70% <100.00%> (+0.05%)
:arrow_up:

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 405e543...6913b22. Read the comment docs.


Login via a bookmark leads to the unexpected behavior

Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.1.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
2.0.3
Public or Confidential Client?
Public
Description
If a user sets a bookmark on AAD B2C login page, it leads to problems with the login.
The following scenario:
User A logs in: clicks the login button, is redirected to the login screen, enters his data and is successfully logged in und is redirected back to the application then closes the browser without logging out.
User B opens the browser and navigates directly via bookmark to the login screen, enters his data and is successfully logged in, is redirected back to the application and ends up in the session of user A.
It is not about protecting the session of user A, as you can also use the session of user A without logging in by simply opening the application, as user A has not logged out, but to prevent the error situation that user B accidentally and unknowingly uses the session of user A.
It would be helpful to be able to intercept and handle the unexpected redirect somehow.
Error Message
No response
MSAL Logs
No response
Network Trace (Preferrably Fiddler)

[ ] Sent
[ ] Pending

MSAL Configuration
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/samples/msal-react-samples/b2c-sample/src/authConfig.js without any change

Relevant Code Snippets
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-react-samples/b2c-sample/src without any change

Reproduction Steps

Start b2c-sample from msal-react-samples as described in readme.
Click Sign in using redirect
Set a bookmark
Log in with user A
Expected: Redirect to the application and claims from user A are displayed
Close the browser without logging out
Open the browser
Use bookmark from step 3 to get to the login screen
Log in with user B
Expected: Redirect to the application and claims from user B are displayed or there is an error
Actual: Redirect to the application and claims from user A are displayed

Expected Behavior
I would have expected there to be an event for the unexpected redirect (state and nonce unknown), like the login failed event.
Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Chrome
Regression
No response
Source
External (Customer)

This is expected behavior, the login must begin from the app attempting to login as there are ephemeral request artifacts that need to be generated for each distinct login request. Bookmarking and returning to a previous login url is not supported.


Simplify and improve leader election

Motivation and Context
Leader election was spitting out errors into the logs, and I suspect that it might be the reason why we have an integration test which fails occasionally.
What has changed
Got rid of the complex locking in favour of much simpler locking. Handled the dead heat in a more elegant and explicit way. Generally simplified and improved.
How to test?
Ensure that the table cluster_leader is empty, then start Case Processor up. You should see zero errors on startup (before you would have seen some kind of key violation occasionally).
Links
Trello: https://trello.com/c/68HFsjax

 Simplify & improve leader election in Case Processor


Certification tests for nacos Bindings

nacos : https://github.com/dapr/components-contrib/tree/master/bindings/alicloud/nacos
Certification: https://docs.dapr.io/operations/components/certification-lifecycle/#certification-tests
refer to :
https://github.com/dapr/components-contrib/issues/1679
https://github.com/dapr/components-contrib/issues/955

/assign

Thanks for this first shot in the certification test. Please, refer to other certified components for a more detailed test plan before this component can be called stable candidate.

Please, refer to this documentation for additional guidance: https://docs.dapr.io/operations/components/certification-lifecycle/#certification-tests

The Alibaba Nacos binding is not currently registered in dapr/dapr because it caused a performance regression long ago.
Before this component can be certified we first need to determine whether it can be included in Dapr again at all. Right now it is not included!
See https://github.com/dapr/dapr/issues/5873

Unassigning from any milestone because its dependent issue isn't addressed yet.


Updating to RC2 from RC1 - Missing Manifest and Service-Worker

Short description of the problem:
Followed instructions to update project from RC1 to RC2. Seeing issue below
21:57:24]  copy: Error copying "C:\scoutlitProjects\basketball-stat-tracker\src\manifest.json" to             "C:\scoutlitProjects\basketball-stat-tracker\www\manifest.json": File not found [21:57:24]  copy: Error copying "C:\scoutlitProjects\basketball-stat-tracker\src\service-worker.js" to             "C:\scoutlitProjects\basketball-stat-tracker\www\service-worker.js": File not found
What behavior are you expecting?
Expected for everything to work as expected or to at least ionic serve to work.
Steps to reproduce:

Follow instruction https://github.com/driftyco/ionic/blob/master/CHANGELOG.md#packagejson-updates
delete node_modules folder
npm install
ionic serve
see issue

 Package.json i am using

`
"scripts": {
"build": "ionic-app-scripts build",
"watch": "ionic-app-scripts watch",
"serve:before": "watch",
"emulate:before": "build",
"deploy:before": "build",
"build:before": "build",
"run:before": "build",
"test": "ng test"
},
"dependencies": {
"@angular/common": "2.1.1",
"@angular/compiler": "2.1.1",
"@angular/compiler-cli": "2.1.1",
"@angular/core": "2.1.1",
"@angular/forms": "2.1.1",
"@angular/http": "2.1.1",
"@angular/platform-browser": "2.1.1",
"@angular/platform-browser-dynamic": "2.1.1",
"@angular/platform-server": "2.1.1",
"@ionic/storage": "1.1.6",
"@types/lodash": "^4.14.37",
"font-awesome": "4.6.3",
"ionic-angular": "2.0.0-rc.2",
"ionic-native": "2.2.3",
"ionicons": "3.0.0",
"moment": "2.15.1",
"pouchdb": "6.0.6",
"rxjs": "5.0.0-beta.12",
"zone.js": "0.6.21"
},
"devDependencies": {
"@ionic/app-scripts": "0.0.39",
"@types/jasmine": "^2.5.35",
"angular-cli": "^1.0.0-beta.18",
"codelyzer": "^1.0.0-beta.2",
"jasmine-core": "^2.5.2",
"jasmine-spec-reporter": "^2.7.0",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-mocha-reporter": "^2.2.0",
"karma-remap-istanbul": "^0.2.1",
"typescript": "2.0.3"
},
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard",
"cordova-sqlite-storage",
"cordova-plugin-device-orientation",
"cordova-plugin-screen-orientation",
"cordova-plugin-network-information"
],
`
Error

Which Ionic Version? 1.x or 2.x
Ionic 2
Run ionic info from terminal/cmd prompt: (paste output below)
Your system information:
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.39
OS: Windows 7 SP1
Node Version: v6.2.0

these files were under src/assets in RC0, just move them directly under /src and you should be good

See project ionic2-app-base and adjust  your project
Thanks

@ghenry22 thanks I just copied the missing files and was able to compile but I am now seeing this error on console. The error below wasn't happening in RC1 and i didn't touch any other files in app besides the package.json.
Any idea?

never mind I fixed it by changing how the dependencies are resolved.

@abartolo I', experiencing the same problem. what do you mean with " I fixed it by changing how the dependencies are resolved"
Thanks

@skill83 If you are referring to the issue below.  I am currently mapping @injectable services in a file called "core".... so instead of importing ex. below.
import {a} from './a'; import {b} from './b'; import {c} from './c';
.. I am mapping into 1 file and importing is 1 line now.
import {a,b,c} from './core'
Not sure exactly but as soon as I imported them individually it resolved the issue... So that's why I assumed that the order they are imported mattered. I'm not the best technically so if anyone has the exact reason please feel free to let me know =)
https://cloud.githubusercontent.com/assets/5394228/20041785/9439e02e-a43c-11e6-8a61-57086d1dd169.png

@abartolo Thanks!
I solved in this way:
import { HttpService } from './http.service';
import { Store } from './store.service';
before i was importing the services like this:
import { HttpService, Store } from './';


Fix Matplotlib renderer.M deprecation

Summary
When plotting a bloch sphere using Matplotlib version 3.4.2, the following deprecation warning is given:
/opt/conda/lib/python3.8/site-packages/qiskit/visualization/bloch.py:69: MatplotlibDeprecationWarning:
The M attribute was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use self.axes.M instead.
  x_s, y_s, _ = proj3d.proj_transform(xs3d, ys3d, zs3d, renderer.M)

By changing x_s, y_s, _ = proj3d.proj_transform(xs3d, ys3d, zs3d, renderer.M) to x_s, y_s, _ = proj3d.proj_transform(xs3d, ys3d, zs3d, self.axes.M), the warning is fixed.
Details and comments
Version information:

Qiskit Software
Version

Qiskit
0.27.0

Terra
0.17.4

Aer
0.8.2

Ignis
0.6.0

Aqua
0.9.2

Matplotlib
3.4.2

We made the same change in qutip/qutip#1556.  Given that this is the same file (give or take), there's another change about deprecated automatic adding of axes to figures (see qutip/qutip#1503) that might be necessary as well?

I looked at this problem back when matplotlib 3.4 was first released here: https://github.com/Qiskit/qiskit-terra/pull/6087 the issue we hit is that there doesn't seem to be a way to thread the needle on our current minimum supported matplotlib version and fixing the deprecation warnings. The only way we can fix this is deciding to bump our minimum matplotlib version

In QuTiP we parsed the matplotlib version from matplotlib.__version__, and then just branched on the version:
https://github.com/qutip/qutip/blob/833cea2be5a0ac503e4fc925a0a0313718f76e85/qutip/bloch.py#L23-L29
It's not the most elegant, but I was of the same opinion as you about maintaining a good period of compatibility.  For reference, mpl 2.1 is January 2018, and 3.0 is September 2018.  If 0.19 is planned for late (late late) September, then bumping to mpl 3.0 will keep a 3-year compatibility window, and ease a couple of the branching requirements.


User Experience Consultation

Hi @hairyhenderson
I am a development engineer at CODA. May I ask if you have encountered any issues while using the CODA-4680, or if there are any features you urgently need to be added?
It seems that many users are requesting the addition of a scheduled reboot feature.

Hi @TangTab, thanks for reaching out! I don't use a CODA device anymore (using fibre after a move), and I can't think of any features needing to be added.


where is UDAPDR？

I've just read that paper and want to see the detail. But I can not find the code on this page

Hi - sorry for the confusion. Typically since it’s a PrimeQA extension it is added under the extensions directory here: https://github.com/primeqa/primeqa/tree/main/extensions/udapdr


VEGA-1369 Trim whitespace before and after inputs

I also made a constant for "application/x-www-form-urlencoded" because I'm bored of typing it

Codecov Report

Merging #78 (ea45b19) into main (f9b4bb3) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   77.48%   77.57%   +0.09%
==========================================
  Files          43       43
  Lines         937      941       +4
==========================================
+ Hits          726      730       +4
  Misses        139      139
  Partials       72       72

Impacted Files
Coverage Δ

internal/server/add_complaint.go
100.00% <100.00%> (ø)

internal/server/allocate_cases.go
96.92% <100.00%> (ø)

internal/server/change_status.go
86.66% <100.00%> (ø)

internal/server/delete_relationship.go
93.33% <100.00%> (ø)

internal/server/edit_complaint.go
100.00% <100.00%> (ø)

internal/server/edit_dates.go
100.00% <100.00%> (ø)

internal/server/event.go
83.33% <100.00%> (ø)

internal/server/link_person.go
81.63% <100.00%> (ø)

internal/server/relationship.go
100.00% <100.00%> (ø)

internal/server/server.go
92.59% <100.00%> (+0.43%)
:arrow_up:

... and 3 more

Continue to review full report at Codecov.

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


from returns nill

What context is your feature request related to?
var transaction: CodableTransaction = .emptyTransaction
transaction.from = EthereumAddress(privateKeyString)
transaction.to = toAddress
transaction.value = amountInWei
print(transaction)
let result = try await web3.eth.send(transaction)
print(result)
What solution would you like?
transaction.from providing me nil value also converts the private key into the public key maybe that's why I'm facing nil in ransaction.from
Error: Server error. Error code: -32000. unknown account
Any additional context?
No response

Hi @yaroslavyaroslav any update for my query?

@dharmishthav sorry to say, but it seems like this is seems more like a question rather than the library issue. I suggest you to question it @ the Discord channel, where some volunteers folks could address it more rapidly than it would have happened here.

@yaroslavyaroslav if you don't mind can you please share your Discord name so I can send a request.

@dharmishthav sorry, I guess I've mislead you in the message above. I was trying to say, that you're more than welcome to ask your questions  in our discord channel here: https://discord.gg/8bHCNmhS7x


Validator email Yii2

class User extends \yii\base\Model
{
...
public function rules()
{
return [
['email', 'email', 'message' => 'Invalid email'],
];
....
}
$model->validate() do not work with email max length. It may be 256 symbols. But when i input more then 256 symbols, it return, then email is valid.
P.S. Sorry, i am russian =)

In EmailValidator the email is considered invalid if it is longer than 320 characters
https://github.com/yiisoft/yii2/blob/master/framework/validators/EmailValidator.php#L74
But I found the answer to the SO which states that the maximum length 254
http://stackoverflow.com/a/574698

It work only on the server side((

I guess 320 chars is:

254 chars for the email address
other 66 chars for the recipient name (see allowName option)

It may be fixed to use different allowed length depending on allowName property, but it's not a serious problem.

It work only on the server side((
@vorobyev what do you mean? Do you have problems with JS validation?

SilverFire, JS not check email length. Validation is go, when form is submitted. Other validations are normal work in the client side.

@vorobyev you're right, there is not length check on the client-side. See yii.validation.js:188
@samdark should it be fixed?

JavaScript length check could be added.
Allowed length could be corrected as well but we need to make sure. In that StackOverflow answer there are many good references including reference validator.

SO links to IETF RFCs errata so that is a good source to refer to. Should be checked in very detail though.

I'm handling this


Should we rename AskJSX to AskCompiler?

AskScript is our parser of the source code
AskJSX is the compiler
AskCode is the format of the compiled code
AskVM is the runtime, needs an environment to run

@mhagmajer Sounds good to me.

Task:

[ ] rename folder askjsx to askcompiler


simple-table checkbox problem

Using the simple-table (checkboxChange) function, if you just click the checkbox in the table without clicking the checkbox header, the output array is empty, how to get the correct array?

Below is my solution by using viewChild annotation and implement the AfterViewChecked interface, and it works well.

The problem has been solved, thank you very much


atbash exercise added

Awesome! Also in response to your question about when this will show up in exercism... this isn't an active track yet. We need 10 exercises. Almost there!

@mhelmetag My question was more specifically about why these new ones should show up instead of just the 7? With the 3 I've provided we should be at 10 now though :)

Ah, you mean the languages page. If I am not wrong this is because xapi is not yet updated http://x.exercism.io/v3/tracks/crystal/todo. Which is because the submodule in https://github.com/exercism/x-api is not yet updated.

Sorry—yes, this is my fault. I've had a bit of a hectic week. Deploying now.


galaxy-buds-client: add desktop file

Description of changes
Added the missing desktop file to my recent galaxy-buds-client PR (#195991).

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

lets move that to meta.mainProgram to also fix nix run.

Was not aware of that option until now!
Moved it to meta.mainProgram as you had suggested.


"gas limit reached in the pool"

How can I set a gas limit to RPC ?
docker run -d ........... ethereum=doge:https://rpc02-sg.dogechain.dog
I need to set a gasLimit = 21000 GWEI

How can I set a gas limit to RPC ?
docker run -d ........... ethereum=doge:https://rpc02-sg.dogechain.dog
I need to set a gasLimit = 21000 GWEI

ETH_CALL_GAS is hard-coded as 50 million.
The block gas limit is different with every chains, I think it is better if this variable is added as environment variable.
You can update this variable to fix your issue.
https://github.com/graphprotocol/graph-node/blob/master/chain/ethereum/src/ethereum_adapter.rs#L77

@nicopatoco Could you resolve this? because i'm with the same problem, i'm already change the gas limit to the maximum value of u32 and still getting the 'gas limit reached in the pool'

I could't, but that part of the solution worked .
Thanks for that @brainstormk My Subgraph is not working properly  on Doge chain.
Some of the officials RPC are not working that properly. Maybe you should try many @badangrycloud .

I setup a node and with that i have the gas message, with the others i have the invalid request block height

I still got this problem, and dont know why to resolved. anyone can help me?

@lokialice are you using doge chain?


Documents with the same file name can collide when downloaded

Hello!
We ran into an issue where downloading a document using get_document and then reading it sometimes returns the wrong contents if we also downloaded another document with the same name, even if it's for a different envelope. __deserialize_file might be the culprit:
path = os.path.join(os.path.dirname(path), filename)

It looks like the client doesn't use the file name returned from mkstemp and appends the name of our file to the temp file's directory to create the path instead. If the path already exists, open(path, "wb") just truncates it before writing new content.

we just got burnt by this..

DCM-3631 is in code review

A fix for this has been released as part of v3.1.0+ for apiv2.1 family and v2.2.0+ for apiv2.0


question regarding publish docs to gh-pages

as far as I can see you have a github action that copies the /docs directory to the gh-pages branch.
However, github directly let you select the main branch and the /docs directory underneath it as the gh-pages source, so there would be no need for that:

Ah, this is a brand-new feature: previously you could only do this is the branch was named master, not if the branch was named, say, main. But now they let us choose the branch to deploy from, so we could switch to this.

fixed with #590


Page Improvements | Semantics & A11Y

We should add the image (with credit/citation) from this page: https://www.semrush.com/blog/semantic-html5-guide/
It's a great visual way to quickly understand for HTML what semantic means. Also, we should rewrite the headers for each section to be more descriptive:

"Why" -> "Why is Semantic HTML Important"
"A Warning" -> "Bad Practices to Avoid"

The image/banner can be directly linked to the SEM rush asset right below the "A11Y = Accessibility" bullet point in the first section. We should also provide credit right below the image to the original webpage. This can be a simple note like "Image provided by SEMRush.com"

Hi Eric, I rewrote the headers. Made a PR for the same.


Splat scale doesn't change with camera focal length

Screenshot with default 50mm camera:

Screenshot after updating to 500mm camera:

Blender 4.3, 3dgs-render-blender-addon 2.1.0

Also possibly related: the splat geometry is not being updated to point toward the center of projection. Instead, all the splats are parallel to the image plane, which means that the further a splat is toward the edges of the FOV the more they are incorrectly foreshortened.


cleanup: update GH token

Description

Update expired Github token
The token is encrypted and is base64 encoded.
It it not the plain token

:zap:  Two deployments have been created for the Point-of-Sale application. You may access and test them at: :zap:

MySQL DB backed deployment: <IP_ADDRESS>
Embedded H2 DB backed deployment: <IP_ADDRESS>


[CARBONDATA-1880] Combine input small files for GLOBAL_SORT

Combine input small files for GLOBAL_SORT to avoid carbon small file issue

[x] Any interfaces changed?
no

[x] Any backward compatibility impacted?
yes

[x] Document update required?
no

[x] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
added
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[x] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2015/

Build Failed with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/795/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2336/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2124/

retest this please

Build Failed with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/901/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2409/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2129/

Build Failed with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/909/

retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2136/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/912/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/918/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2421/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2142/

retest this please

Build Failed with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/922/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2151/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2438/

retest sdv please

retest sdv please

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2440/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/925/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2154/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2441/

Build Success with Spark 2.2.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/939/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/2168/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2452/


Symbol search hangs VSCode

Hi,
first I'd like to thank you for your work with this extension and the language server!
 Upon opening the VSC PHP language server fires and starts indexing. I can see the process consuming CPU power and output being displayed. All good so far:
[Info  - 18:00:31] All 16991 PHP files parsed in 450 seconds. 520 MiB allocated.

OK, my codebase is now indexed. Auto complete seems to be working, jump to definition as well, ... Sometimes they are a bit laggy but nothing too serious. Then I try to use the symbol search panel. At this point VSC goes nuts; CPU usage goes through the roof (VSC process, not language server), interface becomes totally unresponsive and it stays like that for minutes.
It is not happening if I disable PHP Intellisense. Any clues?
Thanks,
JAnez

My guess is that's because vscode is rendering the result list synchronously in the main thread. I had the same thing happen with "only" 5000 files.
A Solution would be to throttle the rendering but that needs to be implemented on VSCode's side.

I also think you rather create a issue at vscode and reference it here.

Done. Thanks!


fix copying top level symlinks to folders in directory unpack_strategy

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

This PR fixes a issue in the directory unpack_strategy, which currently does not preserve top level symlinks pointing to directories. Instead of copying the symlink (as a singe file) we are currently recursively copying the content of the folder to which the symlink points to. At the end the unpacked source does not contain the top level symlink (pointing to a folder within the source) anymore, because brew has converted it to a complete copy of said folder.
This breaks deno (see: https://github.com/Homebrew/homebrew-core/pull/35645#discussion_r284924995) and the added test case.
The current code is broken because child.directory? is true for symlinks pointing to folders too, but we should preserve them. That's why an additional check if the child is not a symlink was added to determine if we should recursively copy the contents of the child (in case it's a non symlink folder) or just the file itself.

Great work as usual, thanks @chrmoritz!


ipcoal.Model() - TypeError: unhashable type: 'MassMigration'

Something must have changed recently somewhere, because ipcoal.Model() is now raising a TypeError upon even simple invocation. Steps to reproduce (tested with Python 3.9):
import ipcoal
import toytree

tree = toytree.rtree.baltree(ntips=10, treeheight=10e6)
model = ipcoal.Model(tree=tree, nsamples=2, Ne=4e5, admixture_edges=(2, 3, 0.5, 0.15))

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/isaac/miniconda3/envs/ipyrad/lib/python3.9/site-packages/ipcoal/Model.py", line 242, in __init__
    self._get_demography()
  File "/home/isaac/miniconda3/envs/ipyrad/lib/python3.9/site-packages/ipcoal/Model.py", line 579, in _get_demography
    demog.add(ms.MassMigration(time, source, dest))
TypeError: unhashable type: 'MassMigration'

Nevermind, this is for ipcoal v0.1.5


[RFC] Use our own hashing routines instead of SCPs

This is a first prototype that seems to work.
I am not sure about the commit Make SCP use a hashing routine defined in D. There are probably better ways to inject a hashing function for use with SCP.. maybe through the use of constructors.
Also it's not ideal that SCPD code imports into the hashing routines, I'm not sure if we're allowed to do this.
I'd appreciate any design ideas.
Requires:

https://github.com/bpfkorea/agora/pull/737
https://github.com/bpfkorea/agora/pull/740

Note: this is only for SCPQuorumSet. I haven't changed the routines for hashing the Value.

I'll fix the linking issue in a bit.

I get linker errors with 1.20.1 but not 1.20.0. Sigh.

Fixed the linker issue.


Instructions for Migrating Data

Hello,
Can you please provide directions (or a Wiki article) on how to migrate data from one instance of Koillection to another?
I am transferring servers and need to move the SQL & Images. The Web front end provides tools to export the database and uploaded images, but there's no tools to import the SQL.
When running psql on the postgres image to try and import the *.sql, it states the database does not exist.
Could really use assistance and I think it would benefit others going forward if there was official documentation on how to do a transfer. Thank you!

Hello,
If you are using docker, I guess the easiest way to migrate is just to move the volumes around. Copy them on the new server at the same path as your configured volumes in your docker-compose.yml, and that should be all.
In your case with pgsql command, the database needs to be created first with something like
psql -U postgres
create database koillection;
exit

But I just found an error on the SQL export due to recent changes (it's missing quotes around some dates), I will publish a new version this week end to fix this.

Hi,
Thank you for the quick response and commits to resolve the issue, much appreciated!
I did try your advice and just move the postgresql volume from Server A to Server B, and it looks like it worked except there's some side effect:
it added "x2" to the end of every item:
https://i.imgur.com/etGVIHi.png
the issue is that it can't be removed because when you edit the item that text is not present:
https://i.imgur.com/CyqHIG3.png
even when adding new items that weren't imported they add with this "x2":
https://i.imgur.com/9kQdiug.png
All I did was make a backup of the volume from Server A, then copy and re-apply the same permissiosn to that folder on Server B.

I can reproduce on my own instance, that's seem to be a problem with the code, I will fix that as quickly as possible.
May I ask you which version of Koillection you are using ?

Sorry, I don't see where to see the Version numbers in the labels or Web front end, but here's the images they are using for Docker:
Server A (The Old Instance) is using:
koillection/koillection:beta@sha256:4bc42148de37669993486044a6ef296a997b30d701c1d03a532b7ee8bf0a1d68
(2022-08-04 10:15:43)
Server B (The New Instance) is using:
koillection/koillection:beta@sha256:c89f4aa0f41045a5d144fb2a693d76eccc0b64298ec4cd99c610644be7628e9c
2022-09-09 09:12:46

The last version of the beta image should fix this.

Hello,
I applied the newest beta image and the rows are correct now, I would consider this ticket resolved as I saw the commits where you fixed the SQL export. My original question was also solved by your information of just copying the volumes over directly for postgresql. Everything is running fine on the new server now!
Thank you again for all your help, fast work, and great software :)


add GenericLinearAlgebra to tackle instability

Might fix #21

From my plain test, I saw little speed penalty


[FEATURE REQUEST]: Being able to handle embeddings with Bedrock

Contact Details
<EMAIL_ADDRESS><EMAIL_ADDRESS>Feature Description
Leveraging Bedrock for Embeddings in "Insurance PDF Search"
Use Case Description
I'm a member of the Industry Solutions team at MongoDB. Today, we had a meeting with Timo where we discussed the possibility of refactoring our existing 'Insurance PDF Search' demo to use Bedrock embeddings instead of the OpenAI ones (OpenAIEmbedding). The code, which was written several months ago, still calls the 'superduperdb' library, which I believe is legacy since the library/company name has changed.
Considering our desire to move away from OpenAI embeddings and start leveraging Bedrock, perhaps we can collaborate to make this happen. By the way, Timo mentioned that we should open a feature request to explore how to handle this using 'plugins'.
Organization
Refactoring our existing 'Insurance PDF Search' demo, to use Bedrock embeddings and remove legacy imports/dependencies calling to superduperdb.
Who are the stake-holders?
MongoDB Industry Solutions team, Luca Napoli<EMAIL_ADDRESS>Jeff Needham<EMAIL_ADDRESS>

Hi @boroju happy to help! There are some examples in the /templates directory, which should work fairly well out-of-the box.

Hey @blythed, perfect! I'll look into it and reaching out in case of further questions/doubts. Thanks for replying!

Hey @Timo, hope you well :relaxed:, just a quick question:
Where can I find the classes "Table" or "Collection" within the superduper framework? According to your documentation, they should be here:
from superduper import Table
https://docs.superduper.io/docs/execute_api/data_encodings_and_schemas#create-a-table-with-a-schema
"In MongoDB this Table refers to a MongoDB collection, otherwise to an SQL table."
Previously, when the framework was "superduperdb," we were able to import "Collection" this way:
from superduperdb.backends.mongodb import Collection
BUT I couldn't find either "Collection" or "Table" as described in your current documentation. I think you should take a look. :eyes:
This is basically what I'm trying to do:
from superduper import Table
def save_pdfs(db, pdf_path: str = PDF_PATH):
db.add(unstructured_encoder)

file_path = get_file_path()
logging.info(f"File Path: {file_path}")

# Concatenating current file path with pdf path
pdf_folder = file_path + pdf_path
logging.info(f"PDF Folder: {pdf_folder}")

pdf_names = [pdf for pdf in os.listdir(pdf_folder) if pdf.endswith(".pdf")]
logging.info(f"PDF Names: {pdf_names}")

pdf_paths = [os.path.join(pdf_folder, pdf) for pdf in pdf_names]

to_insert = [
    Document({"elements": unstructured_encoder(pdf_path)}) for pdf_path in pdf_paths
]

logging.info(f"Documents to insert: {to_insert}")
logging.info(to_insert)

# In MongoDB this Table refers to a MongoDB collection, otherwise to an SQL table.
# https://docs.superduper.io/docs/execute_api/data_encodings_and_schemas#create-a-table-with-a-schema
collection = Table(COLLECTION_NAME_SOURCE)

# Inserting documents into the MongoDB
logging.info(f"Inserting documents in {COLLECTION_NAME_SOURCE} collection over MongoDB database")
db.execute(collection.insert_many(to_insert))

And I am getting this error:
from superduper import Table
ImportError: cannot import name 'Table' from 'superduper' (/Users/julian.boronat/Github/mongodb/mongodb-industry-solutions/is-insurance-pdf-search/.venv/lib/python3.11/site-packages/superduper/init.py)
The package version I am using is:
superduper-framework = "0.3.0"
I know this is the latest available version because I just added it.
The same functionality was working before with the older "superduperdb" framework version. Please see our previous code below:
from superduperdb.backends.mongodb import Collection
from superduperdb import Document
from superduperdb.ext.unstructured.encoder import unstructured_encoder
from pdf2image import convert_from_path
def save_pdfs(db, pdf_folder):
db.add(unstructured_encoder)

pdf_names = [pdf for pdf in os.listdir(pdf_folder) if pdf.endswith(".pdf")]

pdf_paths = [os.path.join(pdf_folder, pdf) for pdf in pdf_names]
collection = Collection(COLLECTION_NAME_SOURCE)
to_insert = [
    Document({"elements": unstructured_encoder(pdf_path)}) for pdf_path in pdf_paths
]
db.execute(collection.insert_many(to_insert))

I'm going to add this comment as part of the open issue:
https://github.com/superduper-io/superduper/issues/2539
I would like to point out that in the /templates directory, there is nothing for connecting to Bedrock and generating embeddings from one of the models there. This was mentioned to me by @blythed in response.
If you want to connect and pair up to fix/debug the code, I’m willing to do so with you. :blush:
Thank you!

Hi @boroju we are about to release 0.4.0 in the next couple of days. In this new version, adding pdfs is much easier than before, and is decoupled from which data-backend you would use.
Here is a pdf example, which you can play with directly/ update in the notebook: https://github.com/superduper-io/superduper/tree/main/templates/pdf_rag/build.ipynb.

Hi Duncan,
I've been following the example, and now I am looking at the "volvo""volvo" demo, which uses the old framework version. I am wondering what the alternative is now for the unstructured encoder:
from superduperdb.ext.unstructured.encoder import unstructured_encoder
The line above is no longer supported in the newer version of superduper.
The same issue occurs with "Collection," but I believe I can use "Table" instead:
from superduper import Table
Would you mind clarifying this for me?

@blythed This is basically what I'm trying to do here:
def parse_and_store(db):

    db.add(unstructured_encoder)

    pdf_folder = 'pdf-folders'

    pdf_paths = [os.path.join(pdf_folder, pdf) for pdf in os.listdir(pdf_folder)]
    collection = Table("source")
    to_insert = [
        Document({"elements": unstructured_encoder(pdf_path)}) for pdf_path in pdf_paths
    ]
    db.execute(collection.insert_many(to_insert))

@boroju do you think that you will create a bedrock plugin with the findings we discussed offline?


Schema Generator ABC (or interface)

DRF has schema generators. Starlette has schema generators. It would be nice if APIStar provided an ABC (or protocol or interface) that we could follow there (or anywhere).
e.g. Methods like get_path_parameters() should be more or less standard.
It might be that this could just be a documentation thing: I may not want to import APIStar just for an ABC.

Sorry you'll have to expand on this for me.

Don't worry: Starlette schema generation is not similar enough to DRF's to warrant this: ends up reducing to "c.f. OpenAPI Docs". If things evolve differently I'll come back to it. Sorry for the noise.


Drush bash/sh errors

Getting this error when running drush
[vagrant@ico web]$ drush cc all
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `BASH_FUNC_module'
 [success] 'all' cache was cleared.

Running centos7 on box 1.1.3

Looks like it's this issue: https://github.com/drush-ops/drush/issues/2065
I've just merged a fix in the PHP role which will allow you to fix this by adding the following to your config.yml (if you run in to this error):
php_disable_functions:
  - pcntl_exec

Then run vagrant provision to add that into the PHP configuration. Note that it won't be merged/ready in Drupal VM master until after this issue is closed out (I'm still running some tests).


DRAFT: Catch known exceptions (broken pipe)

Summary
Add mechanism to catch known exception and make affected tests skipped, not failed. Motivation for this is to not have failed tests, because of known issues, which cannot be easily disabled - such as https://github.com/quarkusio/quarkus/issues/38334.
To catch this single issue, it should be sufficient to catch exceptions just in QuarkusScenarioBootstrap (I'm not entire sure if it would be enough). But extending it also to test annotation makes it cover this exception also in tests.
Same mechanism can be used to catch any other known exception in the future.
Please check the relevant options

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Dependency update
[ ] Refactoring
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] This change requires a documentation update
[ ] This change requires execution against OCP (use run tests phrase in comment)

Checklist:

[ ] Example scenarios has been updated / added
[ ] Methods and classes used in PR scenarios are meaningful
[X] Commits are well encapsulated and follow the best practices

WDYT @mjurc ?

@michalvavrik I wouldn't mind your opinion about architecture of this either btw.

one step ahead of you, I commented first :-D

The think is - do we rather want to have it configured via CLI (something like -DignoreBrokenPipe=true). Or have a generic solution for ignoring exceptions?
I proposed this "generic" solution just as a draft I don't know if there is a real usage for it. And if I should follow @michalvavrik 's suggestions, it is going to be even more complex.
But if we want to manually enable/configure it via CLI IMHO it's not feasible (read not worth it) to make it generic.
If we really want to have it configured (or at least enabled) via CLI, then I propose to reduce this to one-sides feature, for broken pipe exclusively, and have it enabled via something like -DignoreBrokenPipe=true. Opinions @mjurc @michalvavrik ?

I agree with your assessment, although I think it's pretty easy to change it to a predicate as you basically c&p what you have into a predicate.
I'd prefer to have this enabled on demand with system property. Unless we run into an issue that is omnipresent in the future. I'd suggest -Dignore-known-issue=broken-pipe. (I absolutely don't care how you name it, please use your name).

I've changed the checker to use predicates, as @michalvavrik suggested. Now it requires a system property to be effective and you can choose which predicates to use for exception ignoring. To ignore broken pipe, start maven job with mvn .... -Dts.global.ignore-known-issue=broken-pipe.
But it supports usage such as mvn .... -Dts.global.ignore-known-issue=broken-pipe, my-failure, foo-handler, bar-handler.

@michalvavrik waiting for your review. If you like this PR, feel free to merge it (and squash it).


Use .f90 suffix for Fortran source files

Please consider changing the source file suffixes from .f08 to .f90.
The .f90 suffix means that the source code is free format, not that
the code conforms to the Fortran 90 standard. Code that uses the .f90
suffix can use features from any Fortran standard. All Fortran
compilers recognize .f90 as a suffix indicating free source form, but
some may not recognize a suffix such as .f95, .f03, .f08, or .f18.
Some users may have build tools that do not recognize suffixes other
than .f90. Most Fortran source code on GitHub that uses features from
a standard more recent than Fortran 90 still uses the .f90 suffix.

We appreciate your constructive suggestion. We have updated the file suffixes of the source files from .f08 to .f90 to improve compatibility with various tools and compilers. We value your input in optimizing the repository.


Wrong version compared

It seems that the plugin does the check in the wrong direction:

if I add a new public class Toto, I get following message:

[INFO] --- semver-check:0.4.1:check (check) @ xxx-common ---
...
[INFO] Class xxx.Toto is removed
[INFO] Determined SemVer type as major and is currently patch, next version should be: 101.0.0

I would expect a minor update when adding a public class.

after removyl of 2 public classes, I get following message:

[INFO] --- semver-check:0.4.1:check (check) @ xxx-common ---
...
[INFO] Checking SemVer against last known version 100.0.0
[WARNING] Failed to load class module-info from xxx-common-100.0.1-viretp-SNAPSHOT.jar due to: java.lang.NoClassDefFoundError module-info is not a class because access_flag ACC_MODULE is set
[WARNING] Failed to load class module-info from xxx-common-100.0.0.jar due to: java.lang.NoClassDefFoundError module-info is not a class because access_flag ACC_MODULE is set
[INFO] File META-INF/MANIFEST.MF has been changed
[INFO] Determined SemVer type as patch and is currently patch, next version should be: 100.0.1

I would expect a major update when removing public classes.
Maybe the problem has to do with the module-info file (see WARNING) ?

I've fixed some bugs in version 0.5.0 regarding non-public classes, and removal of classes/packages. Also, 0.5.0 will no longer have the Failed to load class module-info.
Please test version 0.5.0 if the problem still exists.

This issue is fixed in version 0.5.1, the jar files were swapped in the Maven plugin.


[Feature Request] I/O Redirection in Hydrogen

One feature I can see greatly improving my workflow would be Unix-like I/O Redirection with Hydrogen.
When testing for example, one might use something similar to python file.py < input.txt in order to avoid typing in the test input every time the program is run. I would love to be able to use the power of Hydrogen (watches specifically) in combination with the speed of semi-scripted testing.

This should be possible already by using an ! at the beginning of a terminal command
https://jakevdp.github.io/PythonDataScienceHandbook/01.05-ipython-and-shell-commands.html
Comment and I will reopen if you have any more troubles


Version bump

Pull Request Test Coverage Report for Build 54

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 100.0%

Totals

Change from base Build 48:
0.0%

Covered Lines:
150

Relevant Lines:
150

💛  - Coveralls


Update: NSIS.NSIS version 3.07

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Microsoft Reviewers: Open in CodeFlow

/azp run


When running "which" command, in shell script, value is always considered blank.

My script looks like this:
echo "-- Checking for existing kenkashworld on PATH..."
HAS_KEN_TOOLS=$(which kenkashworld)

if [ ! -z "$HAS_KEN_TOOLS" ]
then
    echo "Your machine already has kenkashworld installed. Nothing to do."
    echo "-- All done!"
    exit 0
fi

When I run the script by running the app generated by Platypus, the echo "Your machine already has kenkashworld installed. Nothing to do." never occurs, nor the exit or the other echo.
When I print the value of which kenkashworld later in the code:
echo "-- kenkashworld is now installed at $(which kenkashworld)"

It also prints that which kenkashworld is blank..
This shouldn't happen because when I run which kenkashworld it prints /usr/local/bin/kenkashworld.
The weirdest part is that when I go into the package contents and manually double click on the script in resources, it works just fine.
Can you help me?

Platypus doesn't automatically run the scripts via a login shell and so doesn't get the user's PATH settings.
Assuming that you're using bash, you can set the interpreter to /bin/bash and add the -l flag as an argument under "Args". This makes bash act as if it had been invoked as a login shell. See man bash for details.
Another alternative is to manually load the user's shell configuration file in your script:
source ~/.bashrc

For other shells, consult their respective documentation.


Error in creating voicemail stack on CloudFormation

Hi, as I talked with the amazon support representative, suggested that I need to directly create an issue here. The problem is that we aren't able to create the stack on CloudFormation using the template provided here(https://docs.aws.amazon.com/solutions/latest/voicemail-for-amazon-connect/deployment.html), we followed the instructions on step 1, but unable to proceed to step 2 as we are getting an error, he believe that it has error on the lambda function. Can someone would you be able to check on this. Thank you.
It has an error like these: (got these on my cloudwatch logs, hope these helps):
{
"message": "User does not exist.",
"code": "UserNotFoundException",
"time": "2020-04-28T17:51:32.720Z",
"statusCode": 400,
"retryable": false,
"retryDelay": 77.43498597769778
}
{
"message": "2 validation errors detected: Value at 'username' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'username' failed to satisfy constraint: Member must satisfy regular expression pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+",
"code": "InvalidParameterException",
"time": "2020-04-28T17:51:33.257Z",
"statusCode": 400,
"retryable": false,
"retryDelay": 44.389534760625594
}

Hi, please ignore this issue.


Unable to chat on swiped right profiles

Hello,
I've seen this bug using an android emulator and on VScode directly.
When swiping right, no chat-option pops up so I end up loosing the profile that I actually wanted to talk to.
Please look into this bug issue asap.

You are only able to chat with matches.  They have to like you as well first.

Hi that's strange
Before, when swiping right, It would open up automatically a chat with that profile. It still does it on another machine without having them to like first or afterwards.
But when I have done so the same on VScode or android emulator, it doesn't open a chat as if swiping left. I have some likes but I can't tell from which profiles because it makes them disappear afterwards.


Stop validated user

Adds a feature (controlled by option "stop_validated_user") that allows you to stop guessing credential pairs for users for which you have already found a valid password.
Also modifies UTC timestamp generation to an alternate format (tested backwards compatible to at least Python 3.8.10) that will not generate deprecation warnings on new Python releases.

Upon further review, this seems to be a partial duplication of the trim/remove feature. I added this because trim/remove does not work as expected when using a userpass file (where username and password pairs are combined), but after looking more closely it looks like it might be a better approach to modify this into a fix for trim/remove. Will close this PR and create a new one to do this instead.


Multiple Sources are mashedtogether

Description
When a building has multiple sources the site is displaying them as one continuous string. They should be separated.
For instance if you look here: https://explore.overturemaps.org/#16.64/42.655475/-71.141057
And click on any building you will see that the inspector panel looks something like this:

But the building that I selected has two separate sources:
id: 08b2a30730cc5fff0200a5ec5aeca8a3
sources: [
    {property=, dataset=OpenStreetMap, record_id=w30171118@3, update_time=2019-05-22T20:00:56.000Z, confidence=null},
    {property=properties/height, dataset=USGS Lidar, record_id=null, update_time=null, confidence=null}]
type: building

I believe we want both sources to be displayed with a comma in between since we need to make sure that we attribute OSM correctly for these buildings from OSM.
What browser are you seeing the problem on? What version are you running?
chrome 126.0.6478.183
The OS you're using
Mac OS
Steps to reproduce

Go to https://explore.overturemaps.org/#16.64/42.655475/-71.141057
select a building
observe that the "sources" field only has "OpenStreetMapUSGS Lidar" when it should list "OpenStreetMap, USGS Lidar"

GERS ID of the entity in question (if applicable)
All buildings with two sources, but here is an example: 08b2a30730564fff02004d433d0138cb
The browser URL at the time you encountered the bug
https://explore.overturemaps.org/#16.64/42.655475/-71.141057

This seems like it could be related to #103.

Yup - if you want to close this as a dup go for it. thanks!


docs(testing): adds hd path note [APE-1298]

What I did
Adds a note about hd_path to testing docs.
How I did it
Wrote the note :)
How to verify it
Checklist

[x] All changes are completed
[x] New test cases have been added
[x] Documentation has been updated

ran into this just last week and resorted to anvil_setBalance on Ape's generated accounts for local testing. thanks! 🖖


Display issue on ios

What version of @tailwindcss/line-clamp are you using?
0.2.0
What version of Node.js are you using?
12.19.0
What browser are you using?
Safari, Firefox
What operating system are you using?
Manjaro Linux, iOS
Reproduction repository
https://play.tailwindcss.com/UHz7irJniZ
Describe your issue
Given the reproduction repository:
On FIrefox it looks as expected:

On my iPhone it looks like this:

Hey! This appears to just be the nature of how this CSS feature behaves in Safari — it looks like it does weird things when you apply it to an element that has block-level children. Same thing happens with vanilla CSS and not using Tailwind at all.
Hard to know for sure what the right workaround is in your situation but you can see here it behaves as expected in Safari if applied directly to the element containing the text:
https://play.tailwindcss.com/lh6UN4RKJq
Going to close since unfortunately nothing we can do about this on our end, just a browser thing you have to work around :(

Thank you!


The caller does not have permission when attempting to use Google Cloud Storage within Cloud Run

I'm attempting to get a Node project setup on Google Cloud Run with Cloud Storage. I am running into an authentication issue when using a created Service Account.
When creating the service account I did successfully download the JSON token and got everything running correctly in my local development environment.
The issue is when I have the application deployed successfully to Cloud Run I get the following error:
Error: The caller does not have permission
This occurs when I am attempting to get a signed URL for uploading files to a Storage Bucket.
I create the Storage client like this:
const { Storage } = require("@google-cloud/storage");
const storage = new Storage();

...and further down in my script the call is like this:
const [url] = await storage
  .bucket(bucketName)
  .file(filename)
  .getSignedUrl(options);

I have setup the the following permissions for the IAM Service Account:

Cloud SQL Client - Maybe relevant? I have Cloud SQL successfully working on deployed environment.
Service Account User - Needed to be used as a Service Account?
Storage Object Creator - I only need the ability to create signed upload urls from this project.
I have also assigned the mentioned service account to the Cloud Run instance via the console.

Just to confirm, the application runs 100% correctly locally using the Service Account JSON Key, it's just not working when running in the Google Cloud.

I managed to resolve the issue. It looks like when deployed into Cloud Run it also requires the extra permission "Service Account Token Creator" to run getSignedUrl. Locally for some reason this role is not required.
I'm not sure if this mismatch needs further investigation?

From https://cloud.google.com/iam/docs/service-accounts#token-creator-role:
The Service Account Token Creator role
This role enables impersonation of service accounts to create OAuth2 access tokens, sign blobs, or sign JWTs.
We use signBlob to create signatures for signed URLs, so this role would be required.
Your local credentials (service account or application default credentials) might include wide roles that covers this permission so that could explain the difference.

Which user did you add these permissions to?

Closing due to inactivity. Please re-open if this is still an issue

Which user did you add these permissions to?

On my case
<EMAIL_ADDRESS><EMAIL_ADDRESS>

Which user did you add these permissions to?

On my case
<EMAIL_ADDRESS><EMAIL_ADDRESS>

Which user did you add these permissions to?

In general it needs to be added to the Service Account the Cloud Run Service/Revision is running under.
By default it is the Default compute service account

After attaching Service Account Token Creator role I had to wait for 5-15 mins. Then it was applied.

I hope more people find this because it solved it for me. I had the same problem (in Java) where I received the error on cloud run, but not running locally with the same service account.

check Content-Type small or Large text and check the signUrl error message


Atata webdriver can't find controls on Angular app

Hi, I'm having issues with the webdriver in my basic atata project finding controls on my angular app. I have created a stackoverflow question which I'll link here to save the double typing.
https://stackoverflow.com/questions/53428984/atata-selenium-web-driver-cant-find-controls-by-id-on-angular-app
Is there a bug in the current version of atata on .netcore that could be causing this issue?

Hi. Posted comment on StackOverlow. Please check.

I marked your reply as the answer. Thanks so much Yevgeniy, you rock.

Welcome and thanks. Feel free to ask on GitHub or StackOverflow. I try to monitor atata tag on SO.


[21.05] gnomeExtensions: Fix the package names

Motivation for this change
I did not realize the attribute names are derived from the Nix package names
so I accidentally, renamed them in https://github.com/NixOS/nixpkgs/pull/124295.
(cherry picked from commit 571d540abf447f97b9b4db4a1e0665ec0a4dc06f)
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

I think it's better to merge this than to revert the pname normalization. There are already 2 commits that depend on the rename and I think it'll be easier to backport updates this way. Sorry for the breakage!


Tar.gz files were not unzipping

After testing I saw issues with tar.gz files not being readable.
I updated archive utils to follow the example from
https://commons.apache.org/proper/commons-compress/examples.htm
As far as I can tell this has fixed the issue.

Additional error notes from the log file from my test server.
11:52:14.269 ERROR: Could not scan file /apps/sas/config/Lev1/Web/SASEnvironmentManager/agent-5.8.0-EE/bundles/agent-5.8.0/product_connectors/rt-1.0.2.tar.gz. The exception was java.nio.charset.MalformedInputException: Input length = 1
11:52:14.269 ERROR: Could not scan file /apps/sas/config/Lev1/Web/SASEnvironmentManager/agent-5.8.0-EE/bundles/agent-5.8.0/product_connectors/snmp-1.0.2.tar.gz. The exception was java.nio.charset.MalformedInputException: Input length = 1
11:52:14.286 INFO: Scanned 22250 directories and 325384 files
11:52:14.286 INFO: Found 10 vulnerable files
11:52:14.286 INFO: Found 21 patched files
11:52:14.287 ERROR: Failed to read 4 files:
    1 - /apps/sas/config/Lev1_OLD/Web/SASEnvironmentManager/agent-5.8.0-EE/bundles/agent-5.8.0/product_connectors/rt-1.0.2.tar.gz
    2 - /apps/sas/config/Lev1_OLD/Web/SASEnvironmentManager/agent-5.8.0-EE/bundles/agent-5.8.0/product_connectors/snmp-1.0.2.tar.gz
    3 - /apps/sas/config/Lev1/Web/SASEnvironmentManager/agent-5.8.0-EE/bundles/agent-5.8.0/product_connectors/rt-1.0.2.tar.gz
    4 - /apps/sas/config/Lev1/Web/SASEnvironmentManager/agent-5.8.0-EE/bundles/agent-5.8.0/product_connectors/snmp-1.0.2.tar.gz

Hi @briml3y, Thank you for you interest and contribution to this project.  We currently have a number of updates to this code being tested internally to address issues such as noted that noted in #4.

Hi @briml3y, thanks for the PR.
loguccino currently rejects corrupted or malformed .tar.gz archives. Does this PR fix that issue? From your log, it looks like you get the same results from apache commons as we do.

The log I provided was to show the original error, with this change I was able to parse further files. As far as I could tell the issue wasn't that the tar.gz files we're corrupt or malformed, but that when initializing the input streams you have to first account for the compression and then account for the Tar archive itself. There was at least one file that was indeed corrupt/malformed as I couldn't use tar/gzip commands directly on the server to unzip it. It did though allow for scanning some of the files that originally showed issues.  I didn't do further testing after it was noted you all are already testing code to fix this. I'll review my change and provide additional details shortly.


[REQUEST] tab_size=None keeps and doesn't replace tab-characters

Have you checked the issues for a similar suggestions? I have googled, but couldn't find any discussion naming this issue.
I have found no way to set tab_size in the console to None, meaning that tab-characters should not be replaced and kept as-is.
Give as much detail as you can. Example code of how you would like it to work would help.
What I'd like to achieve is the ability to print a csv-table with tabulators as delimiters. Yet I have found no way to do that using rich - all tabulator-characters are replaced with a varying amount of spaces.
>>> from rich.console import Console
>>> c = Console(tab_size=None)
>>> c.print("a\tb")
a       b
>>> print("a\t")  # I'd like to have an option to get this output from rich as well
a\tb

What problem do you have that this feature would solve? I may be able to suggest an existing way of solving it.
In rich text it should be possible to print a tab-character as-is :).

Why do you want a literal tab character?


Load Deep Learning engine from dynamic classloader

Question
Hello,
I am designing an application that runs inside a program (ImageJ/Fiji) to deploy Deep Learning models. This program loads the .jar libraries dinamically after starting the application with a custom classloader. I have realised thar in order to load the EngineProvider.class service, djl uses the Thread contextClassLoader. Is there an workaround to start the Deep Learning Engine using a custom ClassLoader?
Here is the line where my problem appears:
https://github.com/awslabs/djl/blob/79fa9ac1e44326e2a6548ddde003f055ff35e4c1/api/src/main/java/ai/djl/engine/Engine.java#L56
ServiceLoader<EngineProvider> loaders = ServiceLoader.load(EngineProvider.class);
loads the Thread ContexClassLoader, however with
ServiceLoader<EngineProvider> loaders = ServiceLoader.load(EngineProvider.class, CustomClassLoader);
we can use our own ClassLoader.
Regards and thank you for your time,
Carlos

@carlosuc3m
What preventing you set the ContextClassLoader?
Thread.currentThread().setContextClassLoader(CustomClassLoader);

I created a PR to address your issue, you can manually initialize the Engine:
Engine.initEngine(CustomClassLoader);

This solution has 2 drawback:

You will see loading engine failed when Engine class is loaded
You must call Engine.initEngine() before any other DJL code executing.

Please try it out and let me know if this works for you.
I would prefer not merge this PR if setContextClassLoader() works for you. Please let me know your test result.

@carlosuc3m
What preventing you set the ContextClassLoader?
Thread.currentThread().setContextClassLoader(CustomClassLoader);

I created a PR to address your issue, you can manually initialize the Engine:
Engine.initEngine(CustomClassLoader);

This solution has 2 drawback:

You will see loading engine failed when Engine class is loaded
You must call Engine.initEngine() before any other DJL code executing.

Please try it out and let me know if this works for you.
I would prefer not merge this PR if setContextClassLoader() works for you. Please let me know your test result.

Your solution works fine thanks!
With Thread.currentThread().setContextClassLoader(CustomClassLoader); it should be enough :)

Your solution works fine thanks!
With Thread.currentThread().setContextClassLoader(CustomClassLoader); it should be enough :)


can not set multiple configs at the same time

I tried to set multiple configs with Promise.all, but it seems as nodegit / libgit2 will lock the config on the first Config.setString call. So my first question is: Is it correct that it is only possible to set 1 config at the time?
Failed to lock file '/user/tom/.gitconfig.lock' for writing:
    ---------------------------------------------------------------------
      operator: error
      expected: |-
        undefined
      actual: |-
        [Error: Failed to lock file '/user/tom/.gitconfig.lock' for writing: ]
      at: tryCallOne (/user/tom/project/nodegit-kit/node_modules/nodegit/node_modules/nodegit-promise/lib/core.js:37:12)

Second question: Is Config.setString always --global?
I would like to set the local config of the repo:

Finally, Git looks for configuration values in the configuration file in the Git directory (.git/config) of whatever repository you’re currently using. These values are specific to that single repository.
http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

From the git docs there seems to be system, global and local. Can this be configured?

You'll have to get it off of the repository object if you want it at that level http://www.nodegit.org/api/repository/#config
I do think that the it will only allow you to set one at a time right now. There will be a config.lock file in your .git directory that will cause them to thread lock.

You are right, setting the config off the repository will store it specific for that repo in (.git/config)
Setting configs sequentially works well, it was just so tempting to use the promises in parallel with Promise.all :)
Reading user.name from a repo without specific configs will find the global Git user.name, same behavior  on Git CLI.
@johnhaley81 Thanks for your help!


UI: Fix navigation to domains

Description
This PR fixes an issue on the navigation to domains, displaying the domain details when clicking on it through different views:
Before the fix:

After the fix:

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[x] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?
Navigate to a domain through different views: Accounts, Events

@blueorangutan ui

@nvazquez a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.


DR7: CCD S7

Need to compute a zeropoint for each amplifier (decam has 2 amplifiers). One is bad other is good. Give legacypipe/tractor the zpt from the good amplifier since tractor will not use pixels of the bad one
ideas

split detected sources by ra,dec in region of amp A, vice versa amp B

Email chains

"zeropoints for eBOSS DR5" on decals-chatter
"Zero-points for CCD 31 (S7)" on decals-chatter.

Does anyone have any insights into the relevance of this issue? @dstndstn @mlandriau @djschlegel @schlafly

I believe we copied the relevant code (to ignore half of S7) from
legacypipe to legacyzpts.
I think we can close this
On Sun, Mar 3, 2019 at 10:39 AM Moustakas<EMAIL_ADDRESS>wrote:

Does anyone have any insights into the relevance of this issue? @dstndstn
https://github.com/dstndstn @mlandriau https://github.com/mlandriau
@djschlegel https://github.com/djschlegel @schlafly
https://github.com/schlafly
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/legacysurvey/legacyzpts/issues/10#issuecomment-469034467,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBD_bAf3ML4gIZAGKjmYrSp1YvxG6glks5vS-y3gaJpZM4PmNYW
.


Can not see syntax highlighting in vscode

vscode info
Version: 1.39.2 (system setup)
Submit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:35:10.237Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT ia32 6.1.7601

Closing due to age, feel free to re-open if you still have this issue with the latest version


Integration with Gradle

Can this be integrated with gradle? If yes can you please share the steps?

Are you looking to build OpenTest actor project using Gradle instead of Maven? Please provide more context about what you are trying to do.


Best jQuery version (1.x or 2.x) for SUI 2.x + CDN

HI,
Im just wandering, is it fine to work with jQuery  2.x ?
I check the Source Code of the SUI (2.0) Homepage (http://beta.semantic-ui.com), I find that your check for things before loading jQuery:
(function () {
  var
    eventSupport = ('querySelector' in document && 'addEventListener' in window)
    jsonSupport  = (typeof JSON !== 'undefined'),
    jQuery       = (eventSupport && jsonSupport)
      ? '/javascript/library/jquery.min.js'
      : '/javascript/library/jquery.legacy.min.js'
  ;
  document.write('<script src="' + jQuery + '"><\/script>');
}());

But I want to use a CDN, and I prefer to work with jQuery 2.x, is that fine ?
and What about a CDN for Semantic-UI 2.x, is there an Official one, if not can someone provide best updated CDN for SUI 2.x.

You can use any jQuery version > 1.8.

Thanx @jlukic for reply
But if there is no problem with jQuery 2.x, why are you checking for querySelector, addEventListener and JSON support !!!

1.x branch is for IE9 support and non standard compliant browsers, the code in the docs is just another version of saying.
<!--[if lt IE 9]>
    <script src="jquery-1.9.0.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
    <script src="jquery-2.0.0.js"></script>
<!--[endif]-->

I'll remove the legacy jquery links with beta docs. IE9 is no longer a supported browser.

:+1:  thats what Im saying... Thanx

https://github.com/Semantic-Org/Semantic-UI-Docs/commit/82248f68b375766e86c44fee05c970b75631d3eb


Clarify Calling HTTP_APIKey header in example

In trying to track down a bug here turns out I was trying to reference the wrong header shown in the readme.
Printing our request.env it becomes clear this is just the full request object:
{"rack.version"=>[1, 3],
 "rack.errors"=>#<IO:<STDERR>>,
 "rack.multithread"=>true,
 "rack.multiprocess"=>false,
 "rack.run_once"=>false,
 "SCRIPT_NAME"=>"",
 "QUERY_STRING"=>"",
 "SERVER_PROTOCOL"=>"HTTP/1.1",
 "SERVER_SOFTWARE"=>"puma 4.3.5 Mysterious Traveller",
 "GATEWAY_INTERFACE"=>"CGI/1.2",
 "REQUEST_METHOD"=>"POST",
 "REQUEST_PATH"=>"/api/v1/....",
 "REQUEST_URI"=>"/api/v1/...",
 "HTTP_VERSION"=>"HTTP/1.1",
 "HTTP_HOST"=>"example.com",
 "HTTP_APIKEY"=>"secret_key",
 "CONTENT_TYPE"=>"application/json",
 "HTTP_USER_AGENT"=>"PostmanRuntime/7.25.0",
 "HTTP_ACCEPT"=>"*/*",
 "HTTP_CACHE_CONTROL"=>"no-cache",
...

Failure seems unrelated to changes. A new deprecation warning?
https://travis-ci.org/github/kickstarter/rack-attack/jobs/691983057

Thank you very much! :-)


Update cosign verify instructions for 2.0

Cosign 2.0 introduced significant command syntax changes to verify images and blobs. Fixes #39775

The following values for the cosign command flags have been verified by @saschagrunert, as requested by @PushkarJ
For --certificate-oidc-issuer:

https://accounts.google.com

For --certificate-identity :

<EMAIL_ADDRESS>(verify)
<EMAIL_ADDRESS>(verify-blob)

The 'commands to verify images (cosign verify) and blobs (cosign verify-blob) listed in the solutions run successfully in my tests using Cosign 2.0.
FYI @sftim

cosign verify-blob test:
URL=https://dl.k8s.io/release/v1.27.1/bin/linux/amd64
BINARY=kubectl
FILES=(
    "$BINARY"
    "$BINARY.sig"
    "$BINARY.cert"
)
for FILE in "${FILES[@]}"; do
    curl -sSfL --retry 3 --retry-delay 3 "$URL/$FILE" -o "$FILE"
done

cosign verify-blob "$BINARY" --signature "$BINARY".sig --certificate "$BINARY".cert --certificate-identity<EMAIL_ADDRESS>--certificate-oidc-issuer https://accounts.google.com

Verified OK

cosign verify tests:
cosign verify registry.k8s.io/kube-apiserver-amd64:v1.27.1 --certificate-identity<EMAIL_ADDRESS>--certificate-oidc-issuer https://accounts.google.com |
jq .

Verification for registry.k8s.io/kube-apiserver-amd64:v1.27.1 --
The following checks were performed on each of these signatures:
  - The cosign claims were validated
  - Existence of the claims in the transparency log was verified offline
  - The code-signing certificate was verified using trusted certificate authority certificates
[...]

curl -Ls "https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/stable.txt)/release" | grep "SPDXID: SPDXRef-Package-registry.k8s.io" |  grep -v sha256 | cut -d- -f3- | sed 's/-/\//' | s
ed 's/-v1/:v1/' | sort > images.txt
input=images.txt
while IFS= read -r image
do
  cosign verify "$image" --certificate-identity<EMAIL_ADDRESS>--certificate-oidc-issuer https://accounts.google.com | jq .
done < "$input"

Verification for registry.k8s.io/conformance-amd64:v1.27.1 --
The following checks were performed on each of these signatures:
  - The cosign claims were validated
  - Existence of the claims in the transparency log was verified offline
  - The code-signing certificate was verified using trusted certificate authority certificates
  [...]

/assign @PushkarJ

Thank you for the feedback @tengqm. I've applied the suggested changes and re-tested the cosign commands, all works well.
FYI: @saschagrunert @sftim @PushkarJ

Thank you for working on this. I really appreciate the diligence.
Only question I have is if "jq" is really needed. If it is just to make json look better formatted then I would suggest to not add it in the docs so there is less stuff to install for the user.  Let me know if I missed anything.

Thank you for the comment, @PushkarJ. I thought about it but it's more than make it pretty, if you don't use jq the output is totally unintelligible. Besides, I think most Kubernetes users already have jq in their tool chest. You will find abundant use of it in the Kubectl Cheat Sheet. It may not even be necessary to list it as a prerequisite, actually, the same goes for curl. Let me know what you think.

I don't have a strong preference for either having it or not in the docs but definitely please keep the prerequisites as is.
/lgtm


Convert the multiple docker pipelines to one that uses buildx

Feature Description
The current state of the pipelines that run docker, are that there are two. One that runs on amd64, and another that runs on aarch64. This requires us to ensure we have hardware available for both arches.
This ticket is to swap the multiple pipelines to use one that builds for multiple arches using https://github.com/thegeeklab/drone-docker-buildx (note: @techknowlogick will need to add this docker image to the privileged list in drone). This would allow us to reduce the need for specialized hardware for build alternative arches for docker images (perhaps we could finally add armv6 as a target arch for our images)
Expected result: PRs would continue having a dryrun for both docker images (root and rootless) built for aarch64, tags would build/publish for both arches with the expected docker image tags (the ones that are autogenerated right now from the plugins/docker drone plugin), and main/release branches would continue to build/publish for their expected xyz-dev docker images. The MVP for published images would be to continue the aarch64/amd64 arch, and we can add more later.
Screenshots
No response

I would like to see an official armv6 docker image then to support all 32bit raspberry pi devices.


sendPhoto, using url, not works on my wordpress website

I've tried to use sendPhoto with an url of image on Amazon and it works fine.
But if i use an image present on my wordpress website it doesn't work.
What could be?

Are you using a relative path to the file or the actual URL to the image?

I've tried with actual URL to the image

This would indicate that the Telegram servers cannot access the path to your image.
Are you sure it's publicly accessible?
Also ensure that you've set the https:// address correctly.

Great! It's wasn't pubblicly accessible. Now it's work.
Thank you.


esDoc with reactjs

when i use esdoc to generate document for my reactjs project, it shows
warning: could not parse the following code. if you want to use ECMAScript proposals, see https://esdoc.org/manual/usage/featu
re.html#ecmascript-proposal
C:\Users\43957841\workspace_VSC\group-digital-wealth-common\src\web\components\widgets\tooltip\Tooltip.js
6|
7| class Tooltip extends Component {
8|
9|     tooltip: any;
10|
11|     static propTypes: Object = {
12|         autoHideAfterTimeout: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),

if esDoc can't parse PropTypes.oneOfType....?

Which version of ESDoc?
Can you show your .esdoc.json?
You have to specify the handling of proposed syntax through the options in your .esdoc.json.
pre-1.0.0
{
  "source": "./src",
  "destination": "./doc",
  "experimentalProposal": {
    "classProperties": true,
    "objectRestSpread": true,
    "decorators": true,
    "doExpressions": true,
    "functionBind": true,
    "asyncGenerators": true,
    "exportExtensions": true,
    "dynamicImport": true
  }
}

1.0.0-alpha
{
  "source": "./src",
  "destination": "./doc",
  "plugins": [
    {"name": "esdoc-ecmascript-proposal-plugin", "option": {"all": true}}
  ]
}

I'm sorry, I didn't notice immediately. Are those flow type annotations? ESDoc doesn't natively support flow annotation parsing. I believe there is a plugin commonly used for this called esdoc-flow-plugin.

@angelbeltran  Thank for your reply, i had use 'esdoc-flow-plugin', but it seems like it will skip scan my source code to generate doc when my source code has some syntax that esdoc can't recognize like
static propTypes: Object = {
12|         autoHideAfterTimeout: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),

You're welcome. I didn't get a reply about your config. Did you enable experimentalProposal.classProperties in pre-1.0.0, or the esdoc-ecmascript-proposal-plugin set to enabled (enable defaults to true)?

Looks like esdoc-flow-plugin no longer works :(

Not sure if this is best thread to ask this: but is there any current plugin for esdoc that would integrate/read data from react-docgen? It would solve needs that we have for generating esdoc from React components.
thanks!

0.5.2 "could not parse" the code containing the Flow type declarations like
@observable online:boolean = window.navigator.onLine;
All of the experimentalProposal in the .esdoc.json are copied as is from the example in the documentation.


Added 2 stub scripts for deployment

Added 2 stub scripts for deployment. These scripts use the deployAndGetContract function from the solidity-utils library version 2.3.0 to deploy contracts.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@bd0a0b4). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #16   +/-   ##
=========================================
  Coverage          ?   83.33%
=========================================
  Files             ?        3
  Lines             ?       78
  Branches          ?       13
=========================================
  Hits              ?       65
  Misses            ?       13
  Partials          ?        0

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


nx run mylib:deploy not forwarding attribute

Hello,
thanks for the hard work upfront.
I updated nx today with the migrate functionality described on the nx webpage.
After that my serverless deploy command is not working. (nx run mylib:deploy  --stage develop).
I looked into the commands that are called and found:

> nx run mylib:package

Running: npx sls package
Environment: darwin, node 16.13.0, framework 3.19.0 (local), plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Cannot resolve serverless.yml: Variables resolution errored with:

The attribute stage in not forwarded anymore, which worked before the update. I also tried it with
nx runmylib:deploy --stage=develop, but the error is the same.
Package versions:
"@nrwl/angular": "14.4.3",
"@nrwl/cli": "14.4.3",
"@nrwl/eslint-plugin-nx": "14.4.3",
"@nrwl/jest": "14.4.3",
"@nrwl/linter": "14.4.3",
"@nrwl/nest": "14.4.3",
"@nrwl/node": "14.4.3",
"@nrwl/workspace": "14.4.3",
"@ns3/nx-serverless": "^3.0.0",
"serverless": "^3.18.2",
"serverless-bundle": "^5.4.0",
"serverless-domain-manager": "^6.0.3",
"serverless-mongodb-local": "^1.5.1",
"serverless-offline": "^8.8.0",
"serverless-webpack": "^5.8.0",

Do I need to change the call for the deployment or is this a bug?
Thanks in advance!
Greetz
Chrizza

Hi chrizza87,
I had the same problem.
To fix the problem:

update NX to the latest version
change the deploy configuration by adding the "params" property with the value "forward", like that:

"deploy": {
      "executor": "@ns3/nx-serverless:sls",
      "outputs": ["apps/api/.serverless", "dist/apps/api"],
      "dependsOn": [
        {
          "target": "package",
          "projects": "self",
          "params": "forward" <-- HERE!
        }
      ],
      "options": {
        "command": "deploy",
        "package": ".serverless",
        "buildTarget": "api:build:production"
      }
    }

The problem is relative to this PR
I hope this can help you!

Hey @Puppo,
I inserted the params option in my config und it worked instantly :-)
Thank you very much, now everything is back to normal!
Have a nice evening/night

Hey @Puppo ,
i was too fast and it was probably to late yesterday :-D
I called nx run mylibr:package --stage=develop instead of nx run mylibr:deploy --stage=develop (was in my console "cache")
When i call nx run mylibr:deploy --stage=develop, the param still isn't forwarded to the package command ```nx run mylib:deploy --stage=develop

nx run mylibr:package

Running: npx sls package

Same goes for `--stage develop``

I did report that in here: https://github.com/nrwl/nx/issues/11014 and it is apparently released.
Still I have a long standing Issue on Nx repo where I wanted to address it properly. You can also take a look and maybe give it some more voice: https://github.com/nrwl/nx/issues/9034
There is nothing a can really do about Nx not passing args, sorry :(

Okay thx for the insights. i will comment the linked issues
No problem, we are using serverless command now as a workaround for now instead of nx

Hi @chrizza87,
you have the same problem I had yesterday :)
I notice you have the NX version 14.4.3, the same one I had yesterday :)
I had to migrate NX to version 14.5.0 to fix the problem, adding then the params property said before
You could try to migrate to the new version and test if the problem was fixed :) about 10 minutes at most it's the wasted time I think ;)
Let me know if this is your solution too :)

Hey @Puppo,
Nx version update to 14.5.1 fixed the issue :-) now it works with your proposed solution.
Thank you very much!

This is still an issue in newer versions of NX, maybe the forward attribute should be added during app generation

@paulhobbel Yeah, I should probably add that to generator. The executor itself work fine now. We are using that in production without problem.
I am hesitant to update generator now because I am toying with the idea of moving --stage to process.ENV. With env variables there is no issue with passing args, we can use targetDefaults to take it into the account for cache validation and can be used across many targets like e2e tests etc.
Still I haven't tested it properly yet but once I do I will update generator.


Escaping the delayed character

A keystroke for a delayed key is not being sent after a non delay key is pressed.
For Example As my 'e' key is very sensitive It woks fine when delayed for say 250ms and if I want to type 'eye', only 'ey' is being typed. I think there is no mechanism where you make a reset for the timer if another key is pressed. I think the issue is the keystoke 'e', is still being delayed even is I typed 'y' after 'e'. I dont know if I explained it well.

That’s the intended behavior. The figure below might be able to illustrate it.

250ms is too large a delay value, you can start with 50ms and increase it if needed.

Oh. I see. But, I think mine is very sensitive and it sends multiple key stokes at once like 4 'e's or Something like that. I think it is beyond the control of a software. I may have to look for a hardware solution. Thank you!

@mahmai try to turn on aggressive mode in setting. It might help with your case.

@aahung Will try that. Thanks Again


Allow angle brackets in DOI validation (#513)

Fixes #513.

@ja573 note the run-migrations failure - the migration was successful locally.  Our local machines' databases already have all of the pre-0.11.7 migrations, so just that one is run and it's successful.

@ja573 note the run-migrations failure - the migration was successful locally.  Our local machines' databases already have all of the pre-0.11.7 migrations, so just that one is run and it's successful.

Ok, in that case just change the name of the migration to something that will ensure it runs at the end. When we release v1 I'm planning on combining all migrations into a single one and start anew with migration names that follow the right structure anyway, so it's fine to change the convention now to avoid current problems


add test for prometheus driver

Coverage increased (+0.3%) to 59.707% when pulling 7e53e411a623a036f551de2669b9d544f3110428 on tests into 61a11a657bc91ebb43d710aa0d9112d110f2d1d1 on master.


Category - App returns to main chat when refreshing Categories Settings page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v1.4.45-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
Action Performed:
Precondition:

User is admin of Collect workspace that has categories.

Select the Collect workspace.
Click Categories.
Click Settings.
Refresh the page.

Expected Result:
App will remain on workspace category page (note the background).
Actual Result:
App returns to chat on home page with Categories Settings open (note the background).
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/Expensify/App/assets/38435837/4b7936ef-46b6-40d3-9cd5-033e99a5e289
Add any screenshot/video evidence

View all open jobs on GitHub

We think that this bug might be related to #wave8-collect-admins

@youssef-lr FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

This is a known issue - https://github.com/Expensify/App/issues/37517. I'll close this one in favor of https://github.com/Expensify/App/issues/37517.


Different MouseEvents in javascript

Description
Explain different MouseEvents in javascript e.g onmouseover , onmouseleave etc
Domain
Frontend Dev HTML/CSS/JS
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign

/assign

/assign

@paramsiddharth Can I work on this issue?

@jawed321 Can I work on this issue?


Draft a clear contribution process for Workgroups in boxnote

Recently we've seen workgroups struggle to understand the contribution process. While the new website is being built, we want to get out a boxnote of this process that we can share with workgroups immediately.
Pain points:

The current site several pages dedicated to a 'framework'. Users might be expecting to find a 'process' instead.
There is no quick summary of the process. Users have to go through 4 tabs with deep content.
 It's not clear that there are 2 diverging paths.
Folks with prior workgroup experience might be going on old assumptions. I.e. that they can self draft and publish without any triaging or reviewing process.
Since our triaging and reviewing process has changed internally, we need to document this for ourselves and clarify with our community
Workgroups might not know a piece of work is missing. We need to publish a definition of done and templates/processes to achieve this. For example, following docs and image production guidelines.
Workgroups might not know how to scope and project management. We can provide improved support for this.

Now that we've merged teams (core + Products) the delivery process fundamentally changed to how workgroups operate currently, we have not communicated expectations to contributors.

After Step 4 on the Iterate tab https://pages.github.ibm.com/cdai-design/pal/contributing/contribution-framework/iterate
Step 5
Publishing
We made some minor changes when publishing new documentation to the Carbon for IBM Products PAL website.
After the DSIT playback, incorporate any feedback and update your work accordingly. A Carbon for IBM Product PAL maintainer  will review your work during our next sprint (two weeks long) and may have additional feedback and questions that may not have been immediately evident during the DSIT playback.
Maintainer review
After you receive feedback from a Carbon for IBM Products maintainer, it's time to mock up the Gatsby website documentation in Figma utilizing the Gatsby theme styles and components
Review your work for typos, or grammatical and styling errors, including using the correct image aspect ratios. <Do we want to provide an image example of Do's/Don't's?>
PR submission
After we triage and align the work with our spirits, the Carbon team will submit the PR on your behalf. Due to the volume of work we receive from our community, this could take a few weeks.

@aubrey-oneal and/or @oliviaflory could you give this a review for @carrenelloyd?

I think it reads well, Carrie! Could you just add in that that they should follow the docs templates provided? They can choose to write this in MDX or in Figma?


[MERN] Node_JS: NPM

Description 📜
Brief information about NPM in documentation format. fixes #6415

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise, Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilities etc)
[x] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[x] MERN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

@manjeetdhayal can you please close this PR as well as the issue since it is solved?


Decoder loss jumps to nan

With small models there seems to be a large chance of the decoder loss becoming nan early in training. Using autograd.detect_anomaly() torch outputs the error Function 'ExpBackward0' returned nan values in its 0th output. for line 325 of dalle2_pytorch.py which is 0.5 * (-1.0 + logvar2 - logvar1 + torch.exp(logvar1 - logvar2) + ((mean1 - mean2) ** 2) * torch.exp(-logvar2)).

Thanks. I am trying to edit the code. My dataset contains about 200w pics and their embeddings. Is  this a small model?

It mostly depends on the input dimensions of your unets.

Trying to track down the cause of this has convinced me that I have no idea what is going on. With small models, around 16 to 64 input dimension, at some point the variances of logvar1 and logvar2 blow up in the space of a couple iterations, then it seems that the value of logvar1 gets clipped and the next iteration the unet outputs nan.

@Veldrovive i really don't think it is worth using the learned variance. i don't believe anyone uses except Nichol. the learned variance was even mentioned in passing here https://arxiv.org/abs/2206.00364 , but i haven't read a single paper say anything positive about it

what we can try is constraining the output of the network for the interpolation fraction value to be from 0 to 1 with a sigmoid

I think it is working for @YUHANG-Ma  now

I think I might have found the deeper cause of this. I'm haven't verified 100% yet, but when experimenting with deepspeed I only see this issue when fp16 is enabled. I have seen people complaining about LayerNorm causing this issue in some cases when using half precision so that could be a possible cause. detect_anomaly show the first NaN pops up in one of the convolutional layers though.