duo_unix has moved from edge/testing to edge/community

informational
i'm posting here just in case somebody gets surprised by this change and comes across it here via google or whatever...
duo_unix package for alpine linux has moved as of http://git.alpinelinux.org/cgit/aports/commit/?id=bdec50e9793a2e95c14be561f289e1d6b4271496
before
you had to install duo_unix via the edge/testing repo:
apk add --no-cache -X http://dl-4.alpinelinux.org/alpine/edge/testing duo_unix

now (2016-Jan-19)
you need to install duo_unix via the edge/community repo:
apk add --no-cache -X http://dl-4.alpinelinux.org/alpine/edge/community duo_unix

future
a stable release of alpine should include duo_unix in community repo accessible from the default /etc/apk/repositories file.

as an aside, anybody who needs/wants Duo Authproxy in a container can look at https://github.com/jumanjihouse/docker-duoauthproxy
in my dreams, I'd add the authproxy as an alpine package.
Suggestions? Help?


Parts of the settings UI are cut off on Linux

Arch Linux
KDE Plasma

also i can't resize either of the windows


[TASK][CHALLENGE] JDBC driver supports affected rows

What's the level of this task?
CHALLENGE
Code of Conduct

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

Search before creating

[X] I have searched in the task list and found no similar tasks.

Mentor

[X] I have sufficient expertise on this task, and I volunteer to be a mentor of this task to guide contributors through the task.

Skill requirements

Knowledge of Java, Thrift, JDBC

Background and Goals
JDBC standard requires the following method return affected rows.
java.sql.Statement#executeUpdate(java.lang.String) => int

Hive added such a feature in 4.0.0 https://issues.apache.org/jira/browse/HIVE-14388
Implementation steps
This is an umbrella ticket to track all sub-tasks

https://github.com/apache/kyuubi/issues/6252 covers thrift protocol upgrading, which adds an optional field numModifiedRows in TGetOperationStatusResp
Modify the JDBC driver to support affected rows, refer to https://github.com/apache/hive/issues/4819
As Kyuubi supports multi-computing engines, some engines like Spark themselves do not report affected rows but some engines like JDBC do. We can start with the JDBC engine to let them report affected rows after completing the DML operations, and propagate to client side
Making changes in computing engines to allow them to report affected rows (this is the most challenging part of this task)

Additional context
Introduction of 2024H1 Kyuubi Code Contribution Program

@pan3793 Could you assign this issue to me? Thank you very much!

@slfan1989 thanks, assigned.
@zhaohehuhu do you have minutes to address comments on https://github.com/apache/kyuubi/pull/6262, so we can get it in and unblock this task

@slfan1989 do you have any progress/questions on this task?


protoc-gen-go: export oneof interface types

This pull request addresses #261 , which asks to export the generated isX_Union interface types.
This allows for manipulation methods which return oneof types, which can be helpful for writing switch statements. Exporting generated oneof interfaces enables the construction and return of union types, which can be useful for writing helper methods (among other things).
make test passes.

Alright, tweaked to merge into dev and kept the interface methods private.

PR looks good to me, but the CLA bot seems unhappy.

Ah, strange. Seems like the only move might be to close this PR and open another...

Feel free to do so.


w Webpack 4 browser-side is failing on libvips

Env.  ubuntu 16.04  / Webpack 4.0
installing sharp, running tests works fine in linux / bash using version of libvips that is a dependency of sharp. There is no installed version libvips on the system outside this package.
BUT , when i run webpack build for std webapp, i get libvips warnings  -- PHOTO 1
--details --
the requires right at top of ./sharp/lib/libvips.js are failing...
const fs = require('fs');      *******  this module not found at runtime in browser
const os = require('os');
const path = require('path');
const spawnSync = require('child_process').spawnSync;
const semver = require('semver');
const platform = require('./platform');

And when i run in the browser , its failing on constructor for new Sharp()  --PHOTO 2
Im using standard webpack config for bundle on a JS file for an entrypoint.
The webpack warn points at line 51  in libvips and i hava photo of that from devtools FWIW
im not expert at Webpack but it seems like the webpack build is mis-handling the dependecies for this node package for some reason??
==  webpack config    chunk
  entry: {
    main: "./app/scripts/main.js",
...

  module: {
    rules: [

   { test: /\.js$/,
        exclude: [
          path.resolve(__dirname, "node_modules"),
          path.resolve(__dirname, "app/scripts/cacheWorker.js")
        ],
        use: {
          loader: 'babel-loader',
            options: {
              presets: ['@babel/preset-env'],
              "plugins": [
                ["@babel/plugin-proposal-decorators", { "legacy": true }],
                ["@babel/plugin-syntax-dynamic-import"],
              ],
            }
        }
      },

photo 1
photo 2

Hello, did you see https://webpack.js.org/configuration/externals/ ?

I did not see that section.
so i should use 'sharp' as an external   OR
i should use 'libvps' as an external ??  im confused.

i want to use 'sharp' on the client?  need to downscale 12M photos from phone's camera before POST ing it to the back end.  If the sharp stuff is not bundled then it will not work on the client.

This is a native module for Node.js - it won't work in a web browser - perhaps try jimp.

my mistake .. sorry


pythonPackages.selectors2: fix build by disabling failing test_above_fd_setsize

Motivation for this change
This fixes the following error in the selectors2 test suite:
======================================================================
ERROR: test_above_fd_setsize (tests.test_selectors2.PollSelectorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/tests/test_selectors2.py", line 530, in test_above_fd_setsize
    self.assertEqual(limit_nofile // 2, len(s.select()))
  File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/selectors2.py", line 402, in select
    fd_events = _syscall_wrapper(self._wrap_poll, True, timeout=timeout)
  File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/selectors2.py", line 662, in _syscall_wrapper
    return func(*args, **kwargs)
  File "/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-python3.8-selectors2-2.0.1.drv-0/selectors2-2.0.1/selectors2.py", line 397, in _wrap_poll
    result = self._poll.poll(timeout)
OSError: [Errno 22] Invalid argument

----------------------------------------------------------------------

Things done
Disable the specific test_above_fd_setsize test.

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

[ ] NixOS
[x] 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/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@NixOS/ofborg build pythonPackages.selectors2

@GrahamcOfBorg build python3Packages.selectors2


programmatic access to doccano

How can I create projects and add users/documents/labels programmatically? By using python to hit an endpoint for example.

Related to #299, Documentation is now in progress.


Instructions bare no resemblance to the actual app

Trying to connect to our WVD RDP session, the IOS app does not resemble mentioned in steps above... just hopeless...

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

ID: b3b22a7c-4bf1-84fa-17e8-9c7690f6e242
Version Independent ID: a8d5060f-186b-c55b-0ff6-bb53d9278410
Content: Connect to Windows Virtual Desktop from iOS - Azure
Content Source: articles/virtual-desktop/connect-ios.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

@nazidk
Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

@Heidilohr
Can you please check and add your comments on this doc update request as applicable.

Thanks for the feedback. This article is now representative of the steps.
#please-close


Definitions for Analysis Set, Analysis Group and Where Clause

Deliver definitions to Bhavin by 3rd Jan.

Analysis Set
Class: AnalysisSet

Definition: A set of subjects whose data are to be included in the main analyses. This should be defined in the statistical section of the protocol. NOTE: There are a number of potential analysis sets, including, for example, the set based upon the intent-to-treat principle. [ICH E9]
Comments: This is the CDISC Glossary definition of "Analysis Set of Subjects", which is available in the NCI Thesaurus (C142390).

Analysis Group
Class: AnalysisGroupingFactor

Definition: A factor used to subdivide the subject population for comparative analysis (e.g., treatment, sex, race, age).
Comments: This class was previously named "AnalysisGroupSet".

Class: AnalysisGroup

Definition: A subdivision of the subject population based on a defined factor (e.g., subjects whose treatment is Drug A, subjects whose gender is male).
Comments: This class was previously named "AnalysisGroupMember", but was changed because "member" could be misinterpreted as a reference to a subject (i.e., a member of the group). There should be at least two AnalysisGroup classes associated with each AnalysisGroupingFactor class.

Where Clause
Class: DataSubset

Definition: A subset of data identified by selection criteria for inclusion in the analysis.
Comments: There is a "WhereClause" class defined in the model, which is referenced in the definitions of the AnalysisSet and AnalysisGroup classes. Modelling for the DataSubset class is not yet complete, but it is intended to allow for additional subject- or record-level data restrictions. Note that "Treatment-Emergent Adverse Events" will be as a Data Subset instead of an Analysis Set.

FYI: @bhavinbusa

@ASL-rmarshall definitions looks good. I see you commented "There should be at least two AnalysisGroup classes associated with each AnalysisGroupingFactor class". I think there could be a situation where there is only one AnalysisGroup within a AnalysisGroupFactor. What happens in that case? I recently worked on analysis where it was a single dose/treatment arm was used for analysis. May be we can discuss this tomorrow.

@bhavinbusa I have included an additional analysis grouping for "Sex" in the example in the hope that it will help to illustrate the structure, where the instances of the AnalysisGroup class are nested under an instance of the AnalysisGroupingFactor class:


Some Parsley's given examples are not working in Codepen

Hello,
I'm working with multisteps form and I tried this example http://parsleyjs.org/doc/examples/multisteps.html.
On Parsley's website it works but when I click on the link "Try it in codepen" on top of page, the codepen example doesn't work and I don't understand why !
I tested other examples and the example "Using events to make complex validation" here http://parsleyjs.org/doc/examples/events.html has a problem too.
Thank you

Thanks for reporting this!
Codepen was loading the wrong version of Parsley. Fixed now :smile:


List Operations

I would like to make a notepad with detailed list structure from declaration to all operations and a related read me.

Never close an issue or PR from your end. @SANJAY-NT


COVID Trend Widget: 2 word countries problem?

Any problems with a two word country? As example “South Africa”.
If I set in in line 39:
const country = args.widgetParameter?args.widgetParameter:'South Africa'
i get a:
2021-12-05 14:35:08: Error: The URL is invalid.
error.
Any one word country work flawless.

Wrong place

Maybe not? Idk

Did you put it in the widget parameter as explained in the instructions? You should not have to modify the code itself

Both. First in widget parameter, later in the code self. Should I delete the widget and start from the beginning?

I've updated the widget code to accommodate country names with spaces better. You can get it to work with "South Africa" now.

After update it works flawless. Thx for your fast reaction and work. :))

So glad to hear it! Also, thanks for using this widget!!!


ANC - LMP - Progress Report [6h]

Issue
In Issue #616  we added in a follow-up question to get more information as to why a patient did not remember their LMP.
Now we need to map that information to the progress report.

It will go under Obstetrical History
It will read: "Uncertain dating due to _(insert reason selected)"

Figma

design can be found here

To Do

Update logic for progress report
Style per design

@adamhstewart @anvmn

nutrition env
tablet

Checked and Approved:
The answer to "What is the reason the patient is unsure?" (about LMP date) is displayed in the progress report under Obstetrical History
Nurse:

CHW:


Feature request: allow setting sticky-flag in directoryPermissions

Environment:
Jib version: jib.core 0.20.0
Build tool: N/A
OS: N/A
Description of the issue:
Jib only allows directoryPermissions and filePermissions of 3 octal digits. With this limitation it is not possible to set extended attributes like sticky-bit for directories or setuid/setgid for files.
For example, temp directories usually are created with mode 01777, this is not possible with jib.
Expected behavior:
Jib should allow extended file permission bits like sticky-flag in directoryPermissions and filePermissions.
Steps to reproduce:
Scenario is to add a build artifact into a docker image inside /tmp using jib:
layers:
    ...
      files:
        - src: work/artifacts/
          dest: /tmp
          includes:
            - "**/binary.tar.gz"

The directory /tmp exists in the base image with mode 1777. Due to https://github.com/GoogleContainerTools/jib/issues/1270 jib overwrites the pre-existing /tmp with default permissions 755.
Trying to workaround https://github.com/GoogleContainerTools/jib/issues/1270 by explicitly adding /tmp to my jib config:
layers:
    ...
      files:
        - src: jib-placeholder/
          dest: /tmp/
          properties:
            user:  "0"
            group: "0"
            directoryPermissions: "1777"
        - src: work/artifacts/
          dest: /tmp
          includes:
            - "**/binary.tar.gz"

This fails due to jib enforcing directoryPermissions to be 3 octal digits.
Log output:
[cutycapt] [ERROR] com.fasterxml.jackson.databind.exc.ValueInstantiationException: Cannot construct instance of `com.google.cloud.tools.jib.cli.buildfile.FilePropertiesSpec`, problem: octalPermissions must be a 3-digit octal number (000-777)

Additional Information:
Some code search showed at least two places that would need to change:

https://github.com/GoogleContainerTools/jib/blob/master/jib-core/src/main/java/com/google/cloud/tools/jib/image/ReproducibleLayerBuilder.java#L156-L158
https://github.com/GoogleContainerTools/jib/blob/master/jib-build-plan/src/main/java/com/google/cloud/tools/jib/api/buildplan/FilePermissions.java

Hi @tnaroska, thanks for filing the issue and describing your use case! This relates to assigning permissions to directories on the container so we want to be careful about the formats we allow. Looking at previous discussions around implementation, using the 3-digit format seemed like a very intentional change to reduce any ambiguity (sometimes 0777 could mean something different than 777) in interpreting the permissions so I'm a little hesitant about going ahead with this at the moment. We can reopen this and discuss further if there is more interest in this feature from the community.
Additionally, on the topic of temporary directories, take a look at this comment on the best practices.


Newsletter-135:Translate into Japanese

@AkioNak do you plan to review the content of this translation?

@bitschmidty Yes, I will do this weekend.

@AkioNak Tahnks! I fixed.

@azuchi Thanks! It looks good to me.
@bitschmidty @harding @jnewbery Is this magic of generating anchors going to come true?
https://github.com/bitcoinops/bitcoinops.github.io/pull/508#discussion_r567669891

@bitschmidty @harding @jnewbery Is this magic of generating anchors going to come true?
#508 (comment)

@AkioNak There is no magic yet so we will need to manual change any ja/ links for now

I was able to build and test locally. No broken links.


Clicking on background of text fields doesn't focus field.

e.g., in the above, if you click on the outer white part not near the text, the field isn't focused. This is a usability problem - makes it hard to focus and leads to lots of executing the block instead. Not sure when this was introduced, it used to work fine.

Looks like it was from the merge:
https://github.com/LLK/scratch-blocks/pull/720/files#diff-393b262d7ed6406aa328f2e57e089e5fL177
That needs to be changed back.


Update deps

Description
A small PR which updates submodules and remapping, to prepare to implement diff checking.

#51 is merged but I think we'll need to rebase this one now for it to take effect here?

Ah nice, just needed to refresh 😅


⚠ Orpheus has degraded performance

In 84d9c4f, Orpheus ($OPS) experienced degraded performance:

HTTP code: 200
Response time: 1231 ms

Resolved: Orpheus performance has improved in fcfcc2e after 6 minutes.


Need better solution for internal ports

Right now -p 80 will expose 80 to the world and -p 80,internal=true will expose 80 internal only.  This is ugly and seems a bit wrong.  I don't know the solution though.

Already changed to -p 80,exposed=false
Is this enough?

Do you really want it to be an option on the -p instead of just --expose like Docker?


allow insert and get generics to be the same when querying with crefs

This PR attempts to merge the logic for defining cross references in generics by having inserts and gets depend on the same Reference class that exposes class methods for specifying relationships from collections to other collections and for building the reference class from the result of a gRPC query
I'm not sold on the implementation or API surface so critical discussion is necessary at this stage

Codecov Report
Patch coverage: 89.47% and project coverage change: -0.17% :warning:

Comparison is base (08cf78b) 93.45% compared to head (63346c5) 93.28%.

Additional details and impacted files
@@                        Coverage Diff                        @@
##           refactor-grpc-class-hierarchy     #460      +/-   ##
=================================================================
- Coverage                          93.45%   93.28%   -0.17%
=================================================================
  Files                                 84       84
  Lines                              10922    10933      +11
=================================================================
- Hits                               10207    10199       -8
- Misses                               715      734      +19

Files Changed
Coverage Δ

integration/test_collection_model.py
84.58% <28.57%> (ø)

weaviate/collection/classes/internal.py
87.23% <94.73%> (-2.77%)
:arrow_down:

integration/test_collection.py
99.82% <100.00%> (-0.01%)
:arrow_down:

weaviate/collection/collection.py
95.45% <100.00%> (ø)

weaviate/collection/data.py
71.28% <100.00%> (-2.65%)
:arrow_down:

weaviate/collection/grpc.py
72.16% <100.00%> (+0.19%)
:arrow_up:

... and 3 files with indirect coverage changes

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


#563 fix map upload bad request

Also, please Write "Fix #563" into the commit message, so that the related issue gets closed automatically as soon as this PR is merged


Create ledger stuck due to zk-connection loss

Actual behavior
Broker creates a new ml-ledger when current ledger gets full and it doesn't publish any new messages until new ledger creation completes. However, For some reason if zookeeper quorum restarts and zk-connection is lost at broker then bk-client fails to create new ledger and it should fail broker's create-ledger callback to notify broker. But Bk-client doesn't complete the broker's callback so, related topic gets stuck and producer is not be able to produce any new messages until we unload the topic.
We saw following exception when broker lost the zk-connection
05:43:35.364 [main-EventThread] ERROR o.a.b.meta.ZkLedgerIdGenerator       - Could not generate new ledger id
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /ledgers/idgen-long/HOB-0000000001/ID-
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:99) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
        at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
        at org.apache.bookkeeper.meta.ZkLedgerIdGenerator$1.processResult(ZkLedgerIdGenerator.java:78) ~[bookkeeper-server-<IP_ADDRESS>-yahoo.jar:<IP_ADDRESS>-yahoo]
        at org.apache.bookkeeper.util.ZkUtils$1.processResult(ZkUtils.java:79) [bookkeeper-server-<IP_ADDRESS>-yahoo.jar:<IP_ADDRESS>-yahoo]
        at org.apache.bookkeeper.zookeeper.ZooKeeperClient$9$1.processResult(ZooKeeperClient.java:527) [bookkeeper-server-<IP_ADDRESS>-yahoo.jar:<IP_ADDRESS>-yahoo]
        at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:605) [zookeeper-3.4.6.jar:3.4.6-1569965]
        at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498) [zookeeper-3.4.6.jar:3.4.6-1569965]

Therefore, we can fix bk-client issue and upgrade the bk-version at broker.
Bk-client PR: https://github.com/yahoo/bookkeeper/pull/14

@merlimat can you please review yahoo/bookkeeper#14 as we see zk-restart in multiple colo and many of the topics get stuck due to this issue.

Nice catch!


ELINA(--crab-dom=opt) uses octagon instead of opt_octagon

Given the description of crab options, I expected crab-llvm to use optimized octagon. This seems to be not the case in the current implementation.

Yes, I should have updated the description. The problem is that the Elina version used by crab-llvm is a pretty old one. In that version I found some termination problems so I decided to switch to Apron. The solution here is to switch to the latest Elina version. It has been on my TODO list for a while. It should be straightforward but didn't have time. You are the first person complaining so maybe it's time to do it.

Elina has been already integrated. More comments in https://github.com/seahorn/crab-llvm/pull/23


Nick: Watch gatographql.com

Nick requests the watch of the watch_keyword gatographql\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

gatographql\.com has been seen in 3 true positives, 0 false positives, and 0 NAAs.

Approved by Mast in Charcoal HQ


update MMM-JsonTable.js

allowing nested arrays

Let me fix the build errors tomorrow

Sorry @timdows never ment the readme to be pulled 😅
Can you ignore readme or should i make another request?


[Feature Request] API to access coordinates and dimensions of form fields

Looking at the low level acroform spec, we should be able to get dimensions / positions of fields.
A good use case for this is knowing where and what size to stamp an image. We can leave a blank readOnly field in our form, and effectively "fill" it with an image.
const form = doc.getForm();
const field = doc.getField('somefield');

// This would be useful
const fieldDimensions = field.getDimensions(); // {x: number, y: number, width: number, height: number}

I'd like this feature as well

Hello @jamesmfriedman!
Happy to accept PRs for this. The information is certainly accessible. The main thing to be aware of when designing such an API is that form fields do not necessarily have just one single location on a page. The same field can actually be rendered in multiple locations on different pages. So, effectively, a single field can have multiple coordinates and dimensions. See https://pdf-lib.js.org/docs/api/classes/pdffield for a bit more detail about this.
Here's an example of how you can access the information with the current APIs:
import { PDFDocument } from 'pdf-lib';

(async () => {
  const url = 'https://pdf-lib.js.org/assets/dod_character.pdf';
  const fancyFields = await fetch(url).then((res) => res.arrayBuffer());

  const pdfDoc = await PDFDocument.load(fancyFields);

  const form = pdfDoc.getForm();

  const textField = form.getTextField('CharacterName 2');

  const widgets = textField.acroField.getWidgets();

  widgets.forEach((w) => {
    const rect = w.getRectangle();
    console.log(rect);
  });
})();

Note also that if you're specifically looking to stamp images on fields, pdf-lib provides a PDFButton.setImage method that does exactly this. Though it currently only exists for button fields.

Thanks @Hopding, that little bit of guidance went a long way. I'll see if I can get it in there.

Hello @jamesmfriedman!
Happy to accept PRs for this. The information is certainly accessible. The main thing to be aware of when designing such an API is that form fields do not necessarily have just one single location on a page. The same field can actually be rendered in multiple locations on different pages. So, effectively, a single field can have multiple coordinates and dimensions. See https://pdf-lib.js.org/docs/api/classes/pdffield for a bit more detail about this.
Here's an example of how you can access the information with the current APIs:
import { PDFDocument } from 'pdf-lib';

(async () => {
  const url = 'https://pdf-lib.js.org/assets/dod_character.pdf';
  const fancyFields = await fetch(url).then((res) => res.arrayBuffer());

  const pdfDoc = await PDFDocument.load(fancyFields);

  const form = pdfDoc.getForm();

  const textField = form.getTextField('CharacterName 2');

  const widgets = textField.acroField.getWidgets();

  widgets.forEach((w) => {
    const rect = w.getRectangle();
    console.log(rect);
  });
})();

// Output:
//   { x: 47.52, y: 705.92, width: 208.44, height: 20.879999999999995 }

Note also that if you're specifically looking to stamp images on fields, pdf-lib provides a PDFButton.setImage method that does exactly this. Though it currently only exists for button fields.
how about text rotate?

Hello @jamesmfriedman!
Happy to accept PRs for this. The information is certainly accessible. The main thing to be aware of when designing such an API is that form fields do not necessarily have just one single location on a page. The same field can actually be rendered in multiple locations on different pages. So, effectively, a single field can have multiple coordinates and dimensions. See https://pdf-lib.js.org/docs/api/classes/pdffield for a bit more detail about this.
Here's an example of how you can access the information with the current APIs:
import { PDFDocument } from 'pdf-lib';

(async () => {
  const url = 'https://pdf-lib.js.org/assets/dod_character.pdf';
  const fancyFields = await fetch(url).then((res) => res.arrayBuffer());

  const pdfDoc = await PDFDocument.load(fancyFields);

  const form = pdfDoc.getForm();

  const textField = form.getTextField('CharacterName 2');

  const widgets = textField.acroField.getWidgets();

  widgets.forEach((w) => {
    const rect = w.getRectangle();
    console.log(rect);
  });
})();

// Output:
//   { x: 47.52, y: 705.92, width: 208.44, height: 20.879999999999995 }

Note also that if you're specifically looking to stamp images on fields, pdf-lib provides a PDFButton.setImage method that does exactly this. Though it currently only exists for button fields.

I'm sorry if it's kinda naive quiestion, but how can I distinguish page number of a field or a widget?

@Hopding can you please take a look?

@chislin @jamesmfriedman Considering an element can have multiple widgets, what do you expect the return to be?
Imagine having a FirstName TextField both at the top and the bottom of the page.
Would you want something like this?
const textField = form.getTextField('FirstName');
const coordinates = textField.getCoordinates();

/* coordinates: [
 *   { x: 23, y: 44, width: 100, height: 20 },
 *   { x: 23, y: 844, width 75, height: 14 }
/* ];

Something else?

@chislin @jamesmfriedman Considering an element can have multiple widgets, what do you expect the return to be?
Imagine having a FirstName TextField both at the top and the bottom of the page.
Would you want something like this?
const textField = form.getTextField('FirstName');
const coordinates = textField.getCoordinates();

/* coordinates: [
 *   { x: 23, y: 44, width: 100, height: 20 },
 *   { x: 23, y: 844, width 75, height: 14 }
/* ];

Something else?

I'd love to see page number along with coordinates

I'm not sure it makes sense to mix the page with the coordinates.
Once #695 gets merged, you would be able to find the page or page number of a widget:
let page = document.getPages().find(x => x.ref === widget.P());

let pageNumber = document.getPages().findIndex(x => x.ref === widget.P());

element.getCoordinates() is trivial to implement, if we just want the coordinates.
@Hopding is the plan to keep acroField private? We could document it, along with widget.
Otherwise, we could implement a getCoordinates() on the element.

I'm not sure it makes sense to mix the page with the coordinates.
Once #695 gets merged, you would be able to find the page or page number of a widget:
let page = document.getPages().find(x => x.ref === widget.P());

let pageNumber = document.getPages().findIndex(x => x.ref === widget.P());

element.getCoordinates() is trivial to implement, if we just want the coordinates.
@Hopding is the plan to keep acroField private? We could document it, along with widget.
Otherwise, we could implement a getCoordinates() on the element.

This is even better, thanks for reply!

Hi thanks for this wonderful lib!
Might I ask, is there any way to pull the raw text off the page/form and or images from an existing pdf?

Added this to the roadmap for tracking: https://github.com/Hopding/pdf-lib/discussions/998.

B"H
@chislin you probably got your answer anyways, but just in case, and for anyone else out there:
			```
                               function getRectsFromField(field,doc) {
				var widgets = (
					field
					.acroField.getWidgets()

				)

				if(doc) {
					return widgets.map(q=>{
						var rect = q.getRectangle()
						var pageNumber = doc
							.getPages()
							.findIndex(x => x.ref == q.P())
						rect.pageNumber = pageNumber;
					})

				} else
					return widgets.map(q=>q.getRectangle());
			}


InvalidArgumentError: Input to reshape is a tensor with 26 values, but the requested shape has 416

While converting a tensorflow model to coreml, I get this error:
Caused by op u'feaure_convolution/fcn/BatchNorm/Reshape_1', defined at:
  File "tfcoreml_converter.py", line 4, in <module>
    coreml_model = tfcoreml.convert(tf_model_path = 'Frozen_graph/frozen_model-1.pb', mlmodel_path = 'CoreML/coreml_model-1.mlmodel', output_feature_names = ['loss/SeqDecoderLoss/mean_squared_error/SquaredDifference'], input_name_shape_dict = {'inputs/isTrainingflag:0': [], 'inputs/dropout_keep_prob:0' : []}, add_custom_layers = True)
  File "/usr/local/lib/python2.7/dist-packages/tfcoreml/_tf_coreml_converter.py", line 586, in convert
    custom_conversion_functions=custom_conversion_functions)
  File "/usr/local/lib/python2.7/dist-packages/tfcoreml/_tf_coreml_converter.py", line 153, in _convert_pb_to_mlmodel
    tf.import_graph_def(gdef, name='')
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/importer.py", line 442, in import_graph_def
    _ProcessNewOps(graph)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/importer.py", line 234, in _ProcessNewOps
    for new_op in graph._add_new_tf_operations(compute_devices=False):  # pylint: disable=protected-access
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 3440, in _add_new_tf_operations
    for c_op in c_api_util.new_tf_operations(self)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 3299, in _create_op_from_tf_operation
    ret = Operation(c_op, self)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1770, in __init__
    self._traceback = tf_stack.extract_stack()

InvalidArgumentError (see above for traceback): Input to reshape is a tensor with 26 values, but the requested shape has 416
	 [[node feaure_convolution/fcn/BatchNorm/Reshape_1 (defined at /usr/local/lib/python2.7/dist-packages/tfcoreml/_tf_coreml_converter.py:153)  = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:GPU:0"](feaure_convolution/fcn/BatchNorm/cond/Merge, feaure_convolution/fcn/BatchNorm/Shape)]]
	 [[{{node feaure_convolution_1/fcn/BatchNorm/cond/Merge/_927}} = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_2857_feaure_convolution_1/fcn/BatchNorm/cond/Merge", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]

I am using this code for conversion:
import tfcoreml

coreml_model = tfcoreml.convert(tf_model_path = 'Frozen_graph/frozen_model-1.pb', mlmodel_path = 'CoreML/coreml_model-1.mlmodel', output_feature_names = ['loss/SeqDecoderLoss/mean_squared_error/SquaredDifference'], input_name_shape_dict = {'inputs/isTrainingflag:0': [], 'inputs/dropout_keep_prob:0' : []}, add_custom_layers = True)

coreml_model.save("CoreML/coreml_model-1.mlmodel")

OS: 64-bit Ubuntu 16.04
Python 2.7
Any help would be appreciated.
Cheers!

@Mahanotrahul could you please paste a small snippet demonstrating the issue?


Print Receipt on Bluetooth Printer (Bixolon)

Hello,
is it possible to print the payment receipt on a bixolon spp-r200ii printer instead of sending it via e-mail?
Thank you

Hi @alexschled,
Thank you for your message, the SDK is not made to connect directly with the printer, it is the responsibility of your application to communicate with the printer. The receipt that we send is not made to be printed. You can use what is in the response ok the SDK/API or use our Receipt REST API to build your own receipt.
Many thanks,


[zephyr] rename SOURCE_DIR to ZEPHYR_TARGET_SRC_DIR in Makefile.zephyr

In Makefile.zephyr the SOURCE_DIR variable was introduced recently.
However, the SOURCE_DIR variable is heavily used in zephyr. If you try to build
the jerryscript zephyr port from a zephyr project using the makefiles, the
SOURCE_DIR gets set by the zephyr build system and points to wrong place here.
This patch creates unique name to avoid the name clash.
JerryScript-DCO-1.0-Signed-off-by: Sakari Poussa<EMAIL_ADDRESS>

LGTM

LGTM

LGTM


Add Discord OAuth

Closes #1684
We'll have to explain in the docs how to setup this.
You need to create an OAuth application in Discord's Developer Portal (like for RichPresence in VMSAcars, you can use the same app). https://discord.com/developers/applications
Then set these variables in .env
DISCORD_OAUTH_ENABLED=true
DISCORD_CLIENT_ID={your_client_id}
DISCORD_CLIENT_SECRET={your_client_secret}

I couldn't find private_channel_id in the Discord docs so I don't know what this field is in the users table and how to fill it. In addition the OAuth connection that I establish has an expiration time but since we don't want to connect the user but just retrieve their id I do not store the tokens to reconnect because we need to send a single request to discord. If we want to make requests to Discord at other places in the code, we must take these tokens into account.

Having the user's access token allows your application to make certain requests to the API on their behalf, restricted to whatever scopes were requested.

The access token / refresh token actually allow you to interact completely with the Discord API. For example, we can make the user join a server and automatically give him a specific role/nickname. So it could be useful to store them but I didn't really want to change the structure of the table not knowing what you want to do with the discord integration in the future.
This OAuth is based on laravel/socialite which allows us to easily addother providers to do OAuth with others webapps if necessary.

Okay so I figured out how to get the private_channel_id. This requires putting the DISCORD_BOT_TOKEN in .env and therefore creating a discord bot (example here https://discordgsm.com/guide/how-to-get-a-discord-bot-token) . Then with this private channel id we can send PMs to a discord user via the bot. Just send a POST request to https://discord.com/api/channels/{private_channel_id}/messages with the header Authorization: Bot {DISCORD_BOT_TOKEN} and the json {"content": "Your message"}. I have to look at how everything works in notifications but I can try to make another PR adding this system to notifications

This looks awesome. Don't think we need to change notifications right now, though.
Is there more configuration for socialite?

For socialite everything works out of the box you just have to add the drivers you want to use. There I put discord for that but if we want we can also add things like login with google etc... There are more than 200 providers that we can add. It also works with IVAO/VATSIM providers but I feel like the procedure for obtaining keys isn't as simple as for discord/others big companies.
So you wouldn't have added notifications with discord DMs? Because I was thinking about that and it would be a lot of work but I was imagining something with user preferences, each user chooses which notifications they want to receive and via which driver (email/discord/others if we add them) and I thought it was cool, maybe a bit overkill but cool/GPDR friendly also.
Since I don't store tokens we can't really talk (100% I mean) with the discord api for a user in fact we talk by acting as the bot whose token we have (to send dm for example) but if we want to do things like, as I said, join servers etc. to really act as the user, we must store the user's tokens. If we don't plan to implement it one day, it's okay not to, but I don't know if we can do a migration later without requiring the account to be unlinked/linked.

So how the oAuth application should be configured to work with v7 ? There are options, which should be selected, how stuff should be defined.
If this is being published in a dev release, we should provide the docs about it, otherwise there will be lots of questions about this new feature being shipped :)

Yes, docs will need to be written, this is mainly testing right now and I think @arthurpar06 is figuring out the "Login with Discord" bit.


Grammar check

I have a number of hand-rolled wildcard files, where file A sometimes includes one of files A1-A5, and so on. Somewhere in a few dozen files there's an error, and the error message is just that there's a problem, somewhere. I dunno where. And the files have a variety of syntax in them, so visual scanning is time consuming and didn't show me the issue. Would it be feasible to include something like a grammar check on wildcard files?
If you have a BNF I could maybe put together a solution and PR?

I'm sorry, I'm not quite following... What is the actual error message you're getting?
There's no up-to-date BNF (don't necessarily trust the comment at the top of the file), but the parser is https://github.com/adieyal/dynamicprompts/blob/main/src/dynamicprompts/parser/parse.py


tutorials/quickstart-app-auth is out of date

The Monorepo App Setup With Authentication tutorial is out of date. See detailed bug report at https://github.com/johnson-jesse/simple-backstage-app/issues/1
Expected Behavior

I should be able to use the demo repo to build a new app.
Current Behavior

A number of compilation errors due to changes in the code base since the tutorial repo was created.
Possible Solution

Upgrade the tutorial docs/repo and keep current, or perhaps just remove this tutorial.
Steps to Reproduce

Detailed at https://github.com/johnson-jesse/simple-backstage-app/issues/1
Context

Trying to build my first backstage app starting with create-app which I noticed was missing frontend apis. Saw
a lot of documentation for plugins saying to use builder.add but couldn't find any examples in the current backstage repo but did find in the demo repo. This looks like I went down a long twisty path of historical code that isn't used that way anymore.
And, no, I am not an experienced typescript developer by any means. I copy/paste/modify until stuff works;-)
Your Environment

NodeJS Version (v12): 12 or 14
Operating System and Version (e.g. Ubuntu 14.04): MacOS Catalina
Browser Information: N/A

I think I could take a stab at this to revamp the documentation and create an example repository for this.

I think I could take a stab at this to revamp the documentation and create an example repository for this.

Ok, assigned!

Ok, assigned!

@Xantier I believe this one can be closed - would you agree? cc @n2ygk

Yeah, I believe so. We could extend the tutorial a little bit by adding more information about the usage of app-config.local.yaml but the documentation of using that is already in here: https://backstage.io/docs/conf/writing so it's not necessarily needed. Unrelated to this issue though.

Taking the liberty to close this then.  The app config is in there as you note, so if any further clarity can be needed, PRs can be opened to further address. Thanks for all the support and @n2ygk if you need any further clarification, don't hesitate to open an issue or post on Discord!
https://backstage.io/docs/support/support

Taking the liberty to close this then. The app config is in there as you note, so if any further clarity can be needed, PRs can be opened to further address. Thanks for all the support and @n2ygk if you need any further clarification, don't hesitate to open an issue or post on Discord!
https://backstage.io/docs/support/support

@adamdmharvey Honestly I've stopped doing it this way and am just maintaining a branch off of master with my local config.


MRR/Members chart axis fix

ref https://linear.app/ghost/issue/DES-869/dashboard-mrr-member-chart-axis-is-making-flat-growth-look-like
A slight decline/increase on the MRR/members chart was shown as a very dramatic shift. These changes will make the chart appear more gradual when the changes are small. The chart will effectively "zoom in" on the range where the values fluctuate, making small changes more visible without appearing overly dramatic.
I've tested it with hardcoded values, as well as values inserted via the API, and the charts look a lot better.
Before

After (same two values)

Gradual decline

More pronounced decline

As a recovering scientist, these charts have always bugged me, because the Y axis really ought to start at zero.  This is at least better! :)
I'd vote for starting at zero, if that were an option.  And yes, that means that changes from 50,000 to 50,001 will look flat.  Because functionally, they ARE flat.  Trying to make changes that are too small to see into big news (or even small news) is really just inflating the noise.  If I can't see changes in the 90 day view, perhaps I'm  just looking at noisy data... :)


Add changelogs and statistics for meta-mender/dunfell-v2021.01.

Signed-off-by: Kristian Amlie<EMAIL_ADDRESS>

The failure is due to known issues regarding traefik, which are being worked on. This passed in older release branches without traefik. Merging.

The failure is due to known issues regarding traefik, which are being worked on. This passed in older release branches without traefik. Merging.


fix: update generator templates so new packages pass build

Previous Behavior
When following the contributing guidelines a freshly scaffolded package would not pass the build.

Current Behavior
Generator templates have been updated so a freshly minted package passes the build.

extra kudos for your shell prompt !


Remove old badge generation code

Currently we generate badges using separate piece of software, we just get data from epcon to populate it. There are some old functions related to badge generation, we can safely remove them.

I'll take a look at this.


Need SapSQLContext.getOrCreate

I am trying to store streaming data into database using SapSQLContext, and running into serialization and checkpointing issue identical to the one in https://issues.apache.org/jira/browse/SPARK-7478. So an identical solution by providing SapSQLContext.getOrCreate will help.

Currently SapSQLContext registers itself as the global SQLContext (because its super constructor does), so using SQLContext.getOrCreate() after a new SapSQLContext() should work.


Bring focus to main window after clicking "Preferences..."

Currently, it simply stays in the background while doing that.

Fixed in https://github.com/zeit/hyperterm/pull/109


fix: update command & resolve onu-ui miss components style

Now, can't use onu-ui package with only, it was missed @onu-ui/components styles.

Maybe this is not the best way, I will continue to study it later.


date format sanifications

this line remove double spaces to avoid bad field classification "Oct  1" is different from "Oct 1" this code avoid skip some access

Array
(
[0] => Jan
[1] =>
[2] => 1
[3] => 08:31:09
[4] => minosse
[5] => simplesamlphp[xxxz]:
[6] => 5
[7] => STAT
[8] => [xyzxxzxxz]
[9] => saml20-idp-SSO
[10] => https://moodle2.unime.it
[11] => https://minosse.unime.it/simplesaml/saml2/idp/metadata.php
....
)
field 1 is a double space in the date first January and fail control on 'if ($array[8] == 'saml20-idp-SSO)'
probably in some cases in SSP log formats a fixed length is used
other details on https://simplesamlphp.org/docs/contrib_modules/statistics/statistics.html


Is there any way to use the driver with SQLITE_ENABLE_UPDATE_DELETE_LIMIT flag?

This flag is useful when one is executing DELETE query with LIMIT clause: DELETE FROM "sometable"  WHERE (name = 'foo') LIMIT 5.
By default the driver returns an error: near "LIMIT": syntax error.
Is there any way to enable it for the driver? There is one possible problem: documentation says that this flag cannot be used with "amalgamation" source of sqlite3 driver: https://www.sqlite.org/compile.html

:+1:

anyone have objection?


[Feature Request] Only allowed user/group can access specified bot

Describe the solution you'd like
Admin can assign a bot to a user or group and only assigned user/group can access the bot.
Why the solution needed
The data may only belong to the team and only allow team member to access it.
Additional context
N/A
Implementation feasibility
Are you willing to discuss the solution with us, decide on the approach, and assist with the implementation?

[X] Yes
[ ] No

Deprecated: #257


fix(mvc): Fix router injection

Closes: #272

:tada: This PR is included in version 5.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


something's wrong at authentic.pl line 8.

I'm running webmin 1.770 with authentic-theme 16.01 on ubuntu 15.10 and I have warning messages in my log files on sysstats (http://webminstats.sourceforge.net/)  module
[Sun Nov 29 18:34:27 2015] log.cgi: Warning: something's wrong at /usr/share/webmin/authentic-theme/authentic.pl line 8.
[Sun Nov 29 18:37:54 2015] index.cgi: Warning: something's wrong at /usr/share/webmin/authentic-theme/authentic.pl line 8.
[Sun Nov 29 18:38:00 2015] log.cgi: Warning: something's wrong at /usr/share/webmin/authentic-theme/authentic.pl line 8.
[Sun Nov 29 18:38:00 2015] log.cgi: Warning: something's wrong at /usr/share/webmin/authentic-theme/authentic.pl line 8.
If I comment the line 8, it's good ... , but

Yes, right. Update to the latest,  17.11.

done : It is now ok
but I had to install manually the last release : it was not proposed on webmin dashboard as usual

sorry , I still have the same warning message with 17.11

You need to manually enable it in settings.

You need to restart Webmin. If doesn't help restart  the server.

restart does not help ( same problem on fedora 22 )

Yes, for some reason it's still there! I thought that I removed it. I just did and it will be fixed on the next release! So far please remove it manually.

Same here. What exactly should I remove? As you can see, line 8 of authentic.pl is an empty line the one between 'do' and 'sub':
#
# Authentic Theme 17.40 (https://github.com/qooob/authentic-theme)
# Copyright 2016 Ilia Rostovtsev<EMAIL_ADDRESS># Licensed under MIT (https://github.com/qooob/authentic-theme/blob/master/LICENSE)
#

do "authentic-theme/authentic-lib.cgi";

sub theme_header {
    print '<!DOCTYPE html>', "\n";
    print '<html data-background-style="'
        . __settings('settings_background_color')
        . '">', "\n";
    print '<head>',                 "\n";
    print '<title>',                $_[0], '</title>', "\n";
´´´

There was this on that line:
warn $@;

It was removed since 17.20+. You shouldn't be having it. In case you still have it, please make sure:

That you really have latest authentic-theme in Webmin folder.
Make sure to restart Webmin
In case it doesn't help, please reboot the server.

I ask you please, in case, it only works after rebooting the server, please let me know here.
Looking forward for your reply.

My fault, I mis-interpreted the web_log view; the log entry was an old one:
[Thu Dec 31 01:00:29 2015] index.cgi: Warning: something's wrong at /usr/share/webmin/authentic-theme/authentic.pl line 8.
´´´

Everything fine; sorry bout that.


Diverge Branch: Pulling devmelon's implementation

Attempting to create a new branch diverge to pull in devmelon's work on his diverge branch for archiving.

Woah. Way too many conflicts :laughing:
Clearly this is not the proper way to go about this. (re: a branch archive)
I'll probably just download devmelon's source as a .zip and go from there.

Something worked with the pull request.
The archive is now on branch pr/25

Created a clean devmelon/master branch which is currently just his files from his diverge branch.


All components are encapsulated and re-usable

General
Each graph should not be affected from the configuration of other graphs in the same page.
DoD

graph components are isolated
graph configs won't affect other graphs in the same page

Note


Paginate Checks in UI

As a workaround for not displaying the proper number of checks, we increased the initial page size to 100. This was only intended to be a temporary work around.
We should allow the user to page through the checks.

https://github.com/influxdata/idpe/issues/6592


Update input from route within the search component and refactor

A continuation of https://github.com/snapshot-labs/snapshot/pull/355

 Networks: when click on a network we should see all the spaces for that network

@samuveth when we click on search dropdown it should not clear existing search query in URL.. somehow that is clearing now

@samuveth when we click on search dropdown it should not clear existing search query in URL.. somehow that is clearing now

Good catch! Pushed the fix


Question: Is libpfc code C89

I saw you made a change to make the code compile under C89. Is that the general policy for libpfc? In that case I'll update the makefile to set it to compile in C89 which will catch those issues in the future. Personally I recommend no earlier than C99 as a reasonable baseline that almost is likely to have a compiler for.

It's not a general policy, but the Meson build on my machine with the system GCC (4.8.5) failed because that version still assumes C89. I thought that fix was relatively simple so I did it.
But frankly, this kernel module probably only works only relatively recent kernels, and the oldest GCC still allowed to compile the kernel probably supported C99 for ages. I'll look at modifying the default Meson so it asks for C99.
Let's pretend the C standard to follow here is C99.

@travisdowns To make this more precise, Linus Torvalds has an ambivalent attitude to it, but the kernel code is generally C89 with occasional use of C99 features. I don't think it matters that much since
But the userland code I don't mind being solid C99.

Cool. To be clear, it seems like we are using "gnu" extensions (e.g., asm among other things) so I set the standard to -std=gnu99 in the makefile and that seems to work.

@travisdowns Yeah for my part I just added gnu99 to meson.build. We should both be able to work in C99 for userland code now.

I have added -std=gnu99 to Makefile in the mending pull request.


Add African Animal Facts  to Animals

[ ] My submission is formatted according to the guidelines in the contributing guide
[ ] My addition is ordered alphabetically
[ ] My submission has a useful description
[ ] The description does not have more than 100 characters
[ ] The description does not end with punctuation
[ ] Each table column is padded with one space on either side
[ ] I have searched the repository for any relevant issues or pull requests
[ ] Any category I am creating has the minimum requirement of 3 items
[ ] All changes have been squashed into a single commit

Let's save nature

a great addition,  Let's save nature

Read #3104

Hi @otienosteve
Thanks for your contribution ;)
We have some problems with Public APIs, so we won't be able to review/add this improvement right now.
Read this issue for more information, please: https://github.com/public-apis/public-apis/issues/3104


clientv1_tokens: use 3 seconds idle conn timeout for token introspection

Previous experiment with always creating a new client did not work out https://github.com/sourcegraph/sourcegraph-accounts-sdk-go/pull/3, trying to forcefully setting a much short idle conn timeout value (3s).
Test plan
CI

@chrsmith - we are doing some experiments here trying to address [service.cody.requireSAMSTokenHandler] error introspecting token: connection reset by peer, as we don't really know what's the real root cause, idle connection timeout is our current hypothesis that either we nail it, or it doesn't matter and the root cause continues to be a mysterious 🥲 i.e. we don't even know if it's a "fix"... or introduce a bug...

@unknwon gotcha.
In case you haven't ran across them, skim these blog posts. I'm pretty sure I've needed to refer to it at least 6 times when dealing with HTTP requests and timeouts, and configuring HTTP clients and things.
https://blog.cloudflare.com/exposing-go-on-the-internet/
https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/
I would guess that the most likely culprit of "connection reset by peer" is the GCP-networking infrastructure just closing the connection for you. (So yeah, I'd hope that setting the idle connection timeout would do the trick.)
But taking a quick scan at the Go docs here, maybe the next step would be to look at the DialContext timeouts? Or maybe just set MaxIdleConns: 0?
https://pkg.go.dev/net/http#RoundTripper

In case you haven't ran across them, skim these blog posts. I'm pretty sure I've needed to refer to it at least 6 times when dealing with HTTP requests and timeouts, and configuring HTTP clients and things.
https://blog.cloudflare.com/exposing-go-on-the-internet/ https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/

Yep that's the golden article for HTTP timeouts in Go since its publish.

Merging as-is, happy to address post-merge feedback!


Bunyan.child is not a function

I'm getting a strange error, that seems to come from Bunyan's logger not having a child method at some times.
/my-project/node_modules/ldapjs/lib/client/client.js:318
  this.log = options.log.child({clazz: 'Client'}, true);
                         ^
TypeError: undefined is not a function
    at new Client (/my-project/node_modules/ldapjs/lib/client/client.js:318:26)
    at new createClient (/my-project/node_modules/ldapjs/lib/client/index.js:54:12)

The thing that's really strange though, is that if I add a console.log() right before the line that's throwing (318), this error doesn't happen.
Any idea why that might happen?
Running node v0.12.2 off the master branch here.

Could you provide more info about the code hitting this issue?

I'd never seen the issue before, until I put a node-ldapjs lookup on an ActionHeroJS action controller, it might be related to that.
I'll try to isolate the problem better when I get a chance.

Please let me know if you find anything of note.

I've just experienced this error in a project of mine. As this issue is closed, is there a fix for this yet?

⚠ This issue has been locked due to age. If you have encountered a recent
problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example
when opening a new issue.


Create non partition topic err V2.6.0

Describe the bug
[root@cn-hz-h-test-pulsar00 apache-pulsar-2.6.0]# ./bin/pulsar-admin topics create persistent://picturebook/sale/second_topic
21:34:14.984 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/test/test/test_topic] Failed to perform http put request: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.
null

@lhui1991 Did you see any errors at the broker side?


can not install cvxpy on apple m1 chip macbook

Describe the bug
when I type pip install cvxpy
I get the following error:
homefolder@DN0a1fe2b6 ~ % pip install cvxpy
Defaulting to user installation because normal site-packages is not writeable
Collecting cvxpy
Using cached cvxpy-1.2.2-cp39-cp39-macosx_10_9_universal2.whl (1.1 MB)
Requirement already satisfied: scipy>=1.1.0 in ./Library/Python/3.9/lib/python/site-packages (from cvxpy) (1.9.3)
Requirement already satisfied: numpy>=1.15 in ./Library/Python/3.9/lib/python/site-packages (from cvxpy) (1.23.5)
Requirement already satisfied: ecos>=2 in ./Library/Python/3.9/lib/python/site-packages (from cvxpy) (2.0.5)
Collecting osqp>=0.4.1
Using cached osqp-0.6.2.post8.tar.gz (227 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting scs>=1.1.6
Using cached scs-3.2.2.tar.gz (663 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting qdldl
Using cached qdldl-0.1.5.post2-cp39-cp39-macosx_10_9_universal2.whl
Building wheels for collected packages: osqp, scs
Building wheel for osqp (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for osqp (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [162 lines of output]
Disabling LONG
Remove long integers for numpy compatibility. See:
- https://github.com/numpy/numpy/issues/5906
- https://github.com/ContinuumIO/anaconda-issues/issues/3823
You can reenable long integers by passing: --osqp --long argument.
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-universal2-cpython-39
  creating build/lib.macosx-10.9-universal2-cpython-39/osqppurepy
  copying src/osqppurepy/interface.py -> build/lib.macosx-10.9-universal2-cpython-39/osqppurepy
  copying src/osqppurepy/_osqp.py -> build/lib.macosx-10.9-universal2-cpython-39/osqppurepy
  copying src/osqppurepy/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/osqppurepy
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp
  copying src/osqp/_version.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp
  copying src/osqp/interface.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp
  copying src/osqp/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp
  copying src/osqp/utils.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/mkl_pardiso_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/warm_start_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/polishing_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/derivative_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/codegen_matrices_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/update_matrices_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/primal_infeasibility_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/codegen_vectors_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/utils.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/non_convex_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/unconstrained_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/dual_infeasibility_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/basic_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/feasibility_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  copying src/osqp/tests/multithread_test.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen
  copying src/osqp/codegen/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen
  copying src/osqp/codegen/utils.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen
  copying src/osqp/codegen/code_generator.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/__init__.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/files_to_generate
  copying src/osqp/codegen/files_to_generate/setup.py -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/files_to_generate
  running egg_info
  writing src/osqp.egg-info/PKG-INFO
  writing dependency_links to src/osqp.egg-info/dependency_links.txt
  writing requirements to src/osqp.egg-info/requires.txt
  writing top-level names to src/osqp.egg-info/top_level.txt
  listing git files failed - pretending there aren't any
  reading manifest file 'src/osqp.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  writing manifest file 'src/osqp.egg-info/SOURCES.txt'
  creating build/lib.macosx-10.9-universal2-cpython-39/extension
  creating build/lib.macosx-10.9-universal2-cpython-39/extension/include
  copying src/extension/include/osqpinfopy.h -> build/lib.macosx-10.9-universal2-cpython-39/extension/include
  copying src/extension/include/osqpmodulemethods.h -> build/lib.macosx-10.9-universal2-cpython-39/extension/include
  copying src/extension/include/osqpobjectpy.h -> build/lib.macosx-10.9-universal2-cpython-39/extension/include
  copying src/extension/include/osqpresultspy.h -> build/lib.macosx-10.9-universal2-cpython-39/extension/include
  copying src/extension/include/osqputilspy.h -> build/lib.macosx-10.9-universal2-cpython-39/extension/include
  copying src/extension/include/osqpworkspacepy.h -> build/lib.macosx-10.9-universal2-cpython-39/extension/include
  creating build/lib.macosx-10.9-universal2-cpython-39/extension/src
  copying src/extension/src/.gitignore -> build/lib.macosx-10.9-universal2-cpython-39/extension/src
  copying src/extension/src/osqpmodule.c -> build/lib.macosx-10.9-universal2-cpython-39/extension/src
  copying src/osqp/codegen/.gitignore -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen
  copying src/osqp/tests/solutions/test_basic_QP.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_feasibility_problem.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_polish_random.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_polish_simple.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_polish_unconstrained.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_solve.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_unconstrained_problem.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_A.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_A_allind.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_P.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_P_A_allind.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_P_A_indA.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_P_A_indP.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_P_A_indP_indA.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_P_allind.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_bounds.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_l.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_q.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/tests/solutions/test_update_u.npz -> build/lib.macosx-10.9-universal2-cpython-39/osqp/tests/solutions
  copying src/osqp/codegen/files_to_generate/CMakeLists.txt -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/files_to_generate
  copying src/osqp/codegen/files_to_generate/emosqpmodule.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/files_to_generate
  copying src/osqp/codegen/files_to_generate/example.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/files_to_generate
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/configure
  copying src/osqp/codegen/sources/configure/osqp_configure.h.in -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/configure
  copying src/osqp/codegen/sources/configure/qdldl_types.h.in -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/configure
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/CMakeLists.txt -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/auxil.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/constants.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/error.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/glob_opts.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/kkt.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/lin_alg.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/osqp.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/proj.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/qdldl.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/qdldl_interface.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/scaling.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/types.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  copying src/osqp/codegen/sources/include/util.h -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/include
  creating build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/CMakeLists.txt -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/auxil.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/error.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/kkt.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/lin_alg.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/osqp.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/proj.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/qdldl.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/qdldl_interface.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/scaling.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  copying src/osqp/codegen/sources/src/util.c -> build/lib.macosx-10.9-universal2-cpython-39/osqp/codegen/sources/src
  running build_ext
  -- The C compiler identification is AppleClang <IP_ADDRESS>00029
  -- The CXX compiler identification is AppleClang <IP_ADDRESS>00029
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- We are on a Darwin system
  -- Embedded is OFF
  -- Printing is ON
  -- Profiling is ON
  -- User interrupt is ON
  -- Floats are OFF
  -- Long integers (64bit) are OFF
  -- Code coverage is OFF
  -- MKL Pardiso: ON
  -- Floats are OFF
  -- Long integers (64bit) are OFF
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /private/var/folders/m_/7f2q0cyx3t7943h54s9lkbl00000gn/T/pip-install-iwgryxfp/osqp_f5e3ba454cbe4661985922027f7a276f/osqp_sources/build
  [  3%] Building C object lin_sys/direct/qdldl/qdldl_sources/CMakeFiles/qdldlobject.dir/src/qdldl.c.o
  [  3%] Built target qdldlobject
  [  6%] Building C object lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_interface.c.o
  In file included from /private/var/folders/m_/7f2q0cyx3t7943h54s9lkbl00000gn/T/pip-install-iwgryxfp/osqp_f5e3ba454cbe4661985922027f7a276f/osqp_sources/lin_sys/direct/pardiso/pardiso_interface.c:1:
  In file included from /private/var/folders/m_/7f2q0cyx3t7943h54s9lkbl00000gn/T/pip-install-iwgryxfp/osqp_f5e3ba454cbe4661985922027f7a276f/osqp_sources/lin_sys/direct/pardiso/pardiso_interface.h:8:
  In file included from /private/var/folders/m_/7f2q0cyx3t7943h54s9lkbl00000gn/T/pip-install-iwgryxfp/osqp_f5e3ba454cbe4661985922027f7a276f/osqp_sources/include/lin_alg.h:9:
  In file included from /private/var/folders/m_/7f2q0cyx3t7943h54s9lkbl00000gn/T/pip-install-iwgryxfp/osqp_f5e3ba454cbe4661985922027f7a276f/osqp_sources/include/types.h:8:
  /private/var/folders/m_/7f2q0cyx3t7943h54s9lkbl00000gn/T/pip-install-iwgryxfp/osqp_f5e3ba454cbe4661985922027f7a276f/osqp_sources/include/glob_opts.h:44:13: fatal error: 'Python.h' file not found
  #   include <Python.h>
              ^~~~~~~~~~
  1 error generated.
  make[3]: *** [lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_interface.c.o] Error 1
  make[2]: *** [lin_sys/direct/CMakeFiles/linsys_pardiso.dir/all] Error 2
  make[1]: *** [CMakeFiles/osqpstatic.dir/rule] Error 2
  make: *** [osqpstatic] Error 2
  error: [Errno 2] No such file or directory: 'osqp_sources/build/out/libosqp.a'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for osqp
Building wheel for scs (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for scs (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [224 lines of output]
Namespace(scs=False, gpu=False, mkl=False, float32=False, extraverbose=False, gpu_atrans=True, int32=False, blas64=False)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-39
creating build/lib.macosx-10.9-universal2-cpython-39/scs
copying src/init.py -> build/lib.macosx-10.9-universal2-cpython-39/scs
running build_ext
In file included from scs/linsys/csparse.c:3:
In file included from scs/linsys/csparse.h:10:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/cpu/direct/private.c:1:
In file included from scs/linsys/cpu/direct/private.h:8:
In file included from scs/linsys/csparse.h:10:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/external/amd/SuiteSparse_config.c:27:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/external/amd/amd_aat.c:18:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/external/amd/amd_2.c:16:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/external/amd/amd_control.c:16:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/amd_1.c:In file included from 27scs/linsys/external/amd/SuiteSparse_config.h:
:In file included from 47scs/linsys/external/amd/amd_internal.h:
:154scs/include/glbopts.h:
:In file included from 51scs/linsys/external/amd/amd.h:46:
In file included from :scs/linsys/external/amd/SuiteSparse_config.h10:In file included from scs/linsys/external/amd/amd_defaults.c::1547:
scs/include/glbopts.h:fatal error: 51:
:In file included from 10scs/linsys/external/amd/amd_internal.h:: 154fatal error: :
'Python.h' file not foundIn file included from
scs/linsys/external/amd/amd.h'Python.h' file not found:
46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
#include <Python.h>
^~~~~~~~~~
#include <Python.h>
^~~~~~~~~~
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error1 error generated.
1 generated error generated.
1 error generated.
.
In file included from scs/linsys/external/amd/amd_dump.c:16:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/external/amd/amd_order.c:15:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>1
error         ^~~~~~~~~~
generated.
1 error generated.
In file included from scs/linsys/external/amd/amd_info.c:15:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
In file included from scs/linsys/external/amd/amd_post_tree.c:13:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/external/amd/amd_preprocess.c:19:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
1 error generated.
In file included from scs/linsys/external/amd/amd_postorder.c:13:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
In file included from scs/linsys/external/amd/amd_valid.c:36:
In file included from scs/linsys/external/amd/amd_internal.h:154:
In file included from scs/linsys/external/amd/amd.h:46:
In file included from scs/linsys/external/amd/SuiteSparse_config.h:47:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
In file included from scs/linsys/external/qdldl/qdldl.c:1:
In file included from scs/linsys/external/qdldl/qdldl.h:5:
In file included from scs/linsys/external/qdldl/qdldl_types.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
In file included from scs/src/cones.c:1:
In file included from scs/include/cones.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/linsys/scs_matrix.c:2:
In file included from scs/linsys/scs_matrix.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/src/linalg.c:1:
In file included from scs/include/linalg.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
In file included from scs/src/aa.c:25:
In file included from scs/include/aa.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from In file included from scs/src/rw.c:1:
In file included from scs/include/rw.h:8:
scs/src/normalize.cscs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
:1:
In file included from scs/include/normalize.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
1 error generated.
1 error generated.
1 error generated.
1 error generated.
In file included from scs/src/scs.c:2:
In file included from scs/include/aa.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
In file included from scs/src/scs_version.c:5:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
1 error generated.
src/scspy.c:15:10: fatal error: 'Python.h' file not found
#include "Python.h"            /* Python API */
^~~~~~~~~~
In file included from scs/src/util.c:1:
In file included from scs/include/util.h:8:
In file included from scs/include/cones.h:8:
scs/include/glbopts.h:51:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
1 error generated.
blas_mkl_info:
NOT AVAILABLE
blis_info:
NOT AVAILABLE
openblas_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/opt/arm64-builds/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
runtime_library_dirs = ['/opt/arm64-builds/lib']
blas_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/opt/arm64-builds/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
runtime_library_dirs = ['/opt/arm64-builds/lib']
lapack_mkl_info:
NOT AVAILABLE
openblas_lapack_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/opt/arm64-builds/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
runtime_library_dirs = ['/opt/arm64-builds/lib']
lapack_opt_info:
libraries = ['openblas', 'openblas']
library_dirs = ['/opt/arm64-builds/lib']
language = c
define_macros = [('HAVE_CBLAS', None)]
runtime_library_dirs = ['/opt/arm64-builds/lib']
Blas info:
{'extra_compile_args': ['-I/System/Library/Frameworks/vecLib.framework/Headers'], 'extra_link_args': ['-Wl,-framework', '-Wl,Accelerate'], 'define_macros': [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]}
Lapack info:
{'extra_compile_args': ['-I/System/Library/Frameworks/vecLib.framework/Headers'], 'extra_link_args': ['-Wl,-framework', '-Wl,Accelerate'], 'define_macros': [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]}
error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DPYTHON -DCTRLC=1 -DDLONG=1 -DUSE_LAPACK -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Iscs/include -Iscs/linsys -Iscs/linsys/cpu/direct/ -Iscs/linsys/external/amd -Iscs/linsys/external/dqlql -I/private/var/folders/m_/7f2q0cyx3t7943h54s9lkbl00000gn/T/pip-build-env-2a6r28/overlay/lib/python3.9/site-packages/numpy/core/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -c scs/linsys/external/amd/amd_aat.c -o build/temp.macosx-10.9-universal2-cpython-39/scs/linsys/external/amd/amd_aat.o -O3 -I/System/Library/Frameworks/vecLib.framework/Headers -I/System/Library/Frameworks/vecLib.framework/Headers" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scs
Failed to build osqp scs
ERROR: Could not build wheels for osqp, scs, which is required to install pyproject.toml-based projects
To Reproduce
A minimal code example that reproduces the bug or unexpected behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Output
If applicable, include program output. If reporting a program crash, please include the entire stack trace.
Version

OS:
CVXPY Version:

Additional context
I have the following packages installed, including ecos 2.0.5 and cmake:
homefolder@DN0a1fe2b6 ~ % pip list
Package              Version

altgraph             0.17.2
appnope              0.1.3
argon2-cffi          21.3.0
argon2-cffi-bindings 21.2.0
asttokens            2.0.8
attrs                22.1.0
backcall             0.2.0
beautifulsoup4       4.11.1
bleach               5.0.1
certifi              2022.9.24
cffi                 1.15.1
charset-normalizer   2.1.1
contourpy            1.0.5
cycler               0.11.0
debugpy              1.6.3
decorator            5.1.1
defusedxml           0.7.1
ecos                 2.0.5
entrypoints          0.4
executing            1.1.1
fastjsonschema       2.16.2
fonttools            4.38.0
future               0.18.2
idna                 3.4
importlib-metadata   5.0.0
ipykernel            6.16.0
ipython              8.5.0
ipython-genutils     0.2.0
ipywidgets           8.0.2
jedi                 0.18.1
Jinja2               3.1.2
joblib               1.2.0
jsonschema           4.16.0
jupyter              1.0.0
jupyter_client       7.4.2
jupyter-console      6.4.4
jupyter-core         4.11.1
jupyterlab-pygments  0.2.2
jupyterlab-widgets   3.0.3
kiwisolver           1.4.4
macholib             1.15.2
MarkupSafe           2.1.1
matplotlib           3.6.1
matplotlib-inline    0.1.6
mistune              2.0.4
nbclient             0.7.0
nbconvert            7.2.3
nbformat             5.7.0
nest-asyncio         1.5.6
notebook             6.4.12
numpy                1.23.5
packaging            21.3
pandas               1.5.1
pandocfilters        1.5.0
parso                0.8.3
patsy                0.5.3
pexpect              4.8.0
pickleshare          0.7.5
Pillow               9.2.0
pip                  22.3
prometheus-client    0.14.1
prompt-toolkit       3.0.31
psutil               5.9.2
ptyprocess           0.7.0
pure-eval            0.2.2
pybind11             2.10.1
pyblas               0.0.10
pycparser            2.21
Pygments             2.13.0
pyparsing            3.0.9
pyrsistent           0.18.1
pyserial             3.5
python-dateutil      2.8.2
pytz                 2022.5
pyzmq                24.0.1
qtconsole            5.3.2
QtPy                 2.2.1
requests             2.28.1
scikit-learn         1.1.2
scipy                1.9.3
Send2Trash           1.8.0
setuptools           58.0.4
six                  1.15.0
soupsieve            2.3.2.post1
stack-data           0.5.1
statsmodels          0.13.4
terminado            0.16.0
threadpoolctl        3.1.0
tinycss2             1.1.1
torch                1.13.0
torchaudio           0.13.0
torchvision          0.14.0
tornado              6.2
traitlets            5.4.0
typing_extensions    4.4.0
urllib3              1.26.12
wcwidth              0.2.5
webencodings         0.5.1
wheel                0.37.0
widgetsnbextension   4.0.3
xmodem               0.4.6
zipp                 3.9.0
homefolder@DN0a1fe2b6 ~ % cmake
Usage
cmake [options]
cmake [options]
cmake [options] -S  -B
Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.
Run 'cmake --help' for more information.

Hi @ordinarylhy !
Do you have the Xcode command line tools installed (xcode-select --install)?

Hi @ordinarylhy ! Do you have the Xcode command line tools installed (xcode-select --install)?

Thank you so much!
I think I installed it already, see below:
homefolder@DN0a22c42d ~ % xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

How did you install python 3.9?

How did you install python 3.9?

I have python 3.9.6
see below:
homefolder@DN0a22c42d ~ % python3
Python 3.9.6 (default, Aug  5 2022, 15:21:02)
[Clang 14.0.0 (clang-14<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Thank you so much.
I also googled something myself.
It seems that my python 3.9.6 was installed when I bought it.
But I do not know how to install a new python besides the default Python on my macbook.
Also, I posted my question in discord (general channel) already but did not receive a satisfactory answer so I posted here.
Thank you so much, again!

You can install another Python with homebrew or anaconda or many other methods.

I got another workaround is to install it by conda sudo conda install -c conda-forge cvxpy


Adding lawn.sdf world to have sky and grassy ground plane for rovers

This is a modified default.sdf world file - I added sky, some lightning, grid and painted the ground plane grassy green.
I also added some friction/collision properties to the best of my knowledge.
I used "XML Copy Editor" to "pretty-print" the resulting SDF file - it fixes spaces and replaces single quotes with doubles.

I agree. I think the default should be as simple as possible for the maximum machines to be able to run it. Plus the sky can be buggy when running on non-dedicated GPU machines (https://github.com/gazebosim/gz-sim/issues/2267).

@slgrobotics Yes I think that's good. Nothing to add from my side.

@slgrobotics What would you actually test on the lawn mode? I would prefer the worlds  we have actually have a use to test vehicle behaviors.

@Jaeyoung-Lim  - well, when it comes for testing - all rovers will benefit from collision and friction properties in that ground plane. I test my lawnmower model with it all the time. But overall it just makes a better aesthetics for people who want it. Sky or no sky, current GZ default world isn't very appealing, even compared with the old "classic" one.

I renamed my default.sdf to lawn.sdf to avoid conflicting with the legacy stuff. I also merged recent additions to default world into my lawn.sdf

Looks nice, would it be possible to have some more textures in the green plane? Sometimes I struggle to get a sense of speed when everything is the same color and without any features.

@PerFrivik  - At the moment this PR is stale, there's no progress in code review and I'm not sure if it is ever going to be merged. I'd guess adding texture to the plane's visual is not a big deal, but I really don't want to do/disturb anything with it until we all have understanding of its future. As an option, we could have a separate PR on texture after this one is all done.


Fix #102

Changed triggering workflows on PRs/pushes to master to triggering on main.

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

Project coverage is 95.43%. Comparing base (44bde82) to head (c97bb7c).
Report is 35 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #103      +/-   ##
==========================================
+ Coverage   95.21%   95.43%   +0.22%
==========================================
  Files          58       57       -1
  Lines        4280     4271       -9
==========================================
+ Hits         4075     4076       +1
+ Misses        205      195      -10

Flag
Coverage Δ

unittests
95.43% <ø> (+0.22%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Roll engine 6f5347c5d6bf..bf0def61e88d (1 commits)

https://github.com/flutter/engine/compare/6f5347c5d6bf...bf0def61e88d
git log 6f5347c5d6bf5867d6d5af466ee9b2298a80f365..bf0def61e88dbeebfa48a8f9b4a8f742a52e290c --no-merges --oneline
bf0def61e Roll src/third_party/skia 4c4945a25248..87e885038893 (1 commits) (flutter/engine#9325)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop
the roller if necessary.

Auto-roller completed checks. About to merge.


add tigress

https://tigress.wtf

requires to have a login on main page, can be passed with website parsing but no need.


Problems with the installation

I need help, I'm trying to install both by downloading the directory and by following the commands step by step but when using git bash I get this error, I need help

did you install wget?

did you install wget?

No, I was following the tutorial and nowhere does it mention that you have to download wget.

https://github.com/AkshitIreddy/Interactive-LLM-Powered-NPCs?tab=readme-ov-file#-wget


Update README.md

What:

Why:

How:

Checklist:

[ ] Documentation
[ ] Tests
[ ] Ready to be merged
[ ] Added myself to contributors table

Codecov Report

Merging #201 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #201   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           4      4
  Lines         268    268
  Branches       61     61
=====================================
  Hits          268    268

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 c30ae10...a939806. Read the comment docs.


Update line number of <MAP_NAME> in README.md

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Line number of <MAP_NAME> is 22 instead of 14.

Thanks!


Rebuild for CUDA 12 w/arch + Windows support

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

This is #119 reopened without merge conflicts.

LGTM

@conda-forge-admin, please rerender

Thanks Mike! 🙏
Looks like it passes 🎉

Forgot to add the automerge label :upside_down_face:


Doesn't create day archive

Type:

Bug

NLog version: 4.3.3
Platform: .Net 4.5
Current NLog config (xml or C#, if relevant)
	<targets>
        <target name="main" xsi:type="File" fileName="main.log"
                layout="${longdate} [${uppercase:${level}}] ${logger} [${threadid}-${threadname}] ${message} ${exception:format=tostring}"
                archiveFileName="main.log.${shortdate}" archiveEvery="Day"/>
    </targets>
    <rules>
        <logger name="*" minlevel="DEBUG" writeTo="main" />
    </rules>

In case of a BUG:

What is the current result?
all logs append to main.log everyday

What is the expected result?
archive main.log to main.log.YYYY-MM-DD every day

is something wrong in my configuration?

you need archiveFileName="main.log.{######}" instead of archiveFileName="main.log.${shortdate}", see https://github.com/NLog/NLog/wiki/File-target#archival-options

thx, it is working with main.log.{#} and archiveNumbering="Date"

:+1:


Refactor: Restyling the Sidebar

Made some changes to the sidebar, let me know what you think!
Closes #52

Current:

New:


RuntimeError: GlooDeviceFactory::makeUVDevice(): interface or hostname can't be empty

I get it when trying to train a model here is also my train log
train.log
I am using a windows 10 64bit with a 3060 12gb
nothing else appears in the terminal besides this
Traceback (most recent call last):
File "multiprocessing\process.py", line 315, in _bootstrap
File "multiprocessing\process.py", line 108, in run
File "C:\Users\me\Desktop\applio\Applio-RVC-Fork\lib\infer\modules\train\train.py", line 188, in run
dist.init_process_group(
File "C:\Users\me\Desktop\applio\Applio-RVC-Fork\runtime\lib\site-packages\torch\distributed\distributed_c10d.py", line 895, in init_process_group
default_pg = _new_process_group_helper(
File "C:\Users\me\Desktop\applio\Applio-RVC-Fork\runtime\lib\site-packages\torch\distributed\distributed_c10d.py", line 994, in _new_process_group_helper
backend_class = ProcessGroupGloo(backend_prefix_store, group_rank, group_size, timeout=timeout)
RuntimeError: GlooDeviceFactory::makeUVDevice(): interface or hostname can't be empty

How would I go about fixing the issue?

I just discorverd that my device name in Windows is empty. Would fixing it posibly help?

Thank you that finally fixed my issue.


[#157467347] Update stemcells to the latest versions

What
There are multiple CVEs which can be mitigated by upgrading to the latest
stemcell version.

https://www.cloudfoundry.org/blog/usn-3631-2/
https://www.cloudfoundry.org/blog/usn-3625-1/
https://www.cloudfoundry.org/blog/usn-3624-1/
https://www.cloudfoundry.org/blog/usn-3628-1/

Latest versions as listed here:

3541.25
3468.42

How to review

Review and apply https://github.com/alphagov/paas-bootstrap/pull/161 first

Deploy your CF from this branch and check whether all tests pass

BRANCH=update_stemcells_157467347 make dev deployer-concourse pipelines

Who can review
Not me

:+1: will merge on Monday