[stable/postgresql] Using non 5432 service.port will not work

Is this a request for help?:

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

Version of Helm and Kubernetes:
Helm: 2.12.3
minikube: 1.0.0
Which chart:
stable/postgresql
version: 3.18.1
What happened:
If i set the service.port to something other than 5432, eg 2345 other pods will not be able to connect to the postgres server
What you expected to happen:
Other pods can connect to the server over specified pod
How to reproduce it (as minimally and precisely as possible):
helm install \
  --name postgresql-1 \
  --set postgresqlDatabase=postgres \
  --set postgresqlUsername=postgres \
  --set postgresqlPassword=postgres123 \
  --set servicePort=2345 \
  stable/postgresql;

helm install \
  --name postgresql-2 \
  --set postgresqlDatabase=postgres \
  --set postgresqlUsername=postgres \
  --set postgresqlPassword=postgres123 \
  --set servicePort=5432 \
  stable/postgresql;

From postgres-1 this command succeeds to connect:
$ psql -h postgresql-2-postgresql -p 5432 -U postgres -W postgres
Password for user postgres:
psql (10.7)
Type "help" for help.

my_database=>

From postgres-2 this command fails to connect:
$ psql -h postgresql-1-postgresql -p 2345 -U postgres -W postgres
Password for user postgres:
<hangs>

From a third pod with nc installed
# successfully connected to server-1 2345 (port is open)
$ nc -zv postgresql-1-postgresql 2345

# successfully connected to server-2 5432 (port is open)
$ nc -zv postgresql-2-postgresql 5432

Anything else we need to know:

Hi @isen-ng,
The key servicePort does not exist in the values.yaml. You should use service.port when installing the chart.
In any case, I tried with the correct key and it didn't work either. The port information is not being passed to the docker image so it is always configured in the same port (5432). We will further check this issue and let you know once we have more information.

The key servicePort does not exist in the values.yaml. You should use service.port when installing the chart.

Yes, it's bad copy, pasting and redacting on my side. I have been using service.port and it does not work.
I'm not terribly sure as im not well versed in kubernetes but is the issue here in
https://github.com/helm/charts/blob/master/stable/postgresql/templates/statefulset.yaml#L154
        ports:
        - name: postgresql
           containerPort: {{ template "postgresql.port" . }}

the containerPort should be tied to the hostPort??

I took a quick look to docker image and I think the issue is there.
@javsalgar can you check if this issue is fixed after the changes you are implementing?

Hi,
Thanks for letting us know. My question would be, would you like the postgresql container port to be different from 5432. It looks to me that what you want to change is the service, not the containerport itself

@isen-ng The previous PR that is already merged should have fixed the issue.


Clean up giles docs for code and formatting

Clean up giles-sender book docs from inline code
Overhaul wallaroo-tools/giles-receiver.md
Replace giles/README and with refs to book

[skip ci]
closes #1527
One reviewer should do for this, so whoever approves first can merge.

A reminder that this should be merged before EOW, and is ready for review.


feat: logs as events for azure VM agents

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

113 of 116 (97.41%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+2.8%) to 83.491%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

client/pkg/client/grpc.go
10
11
90.91%

client/pkg/client/csr.go
8
10
80.0%

Totals

Change from base Build<PHONE_NUMBER>:
2.8%

Covered Lines:
440

Relevant Lines:
527

💛  - Coveralls


Extending forc init --template <source> with support for arbitrary git sources (+ short-hand for Sway examples and GitHub)

Current State
Currently, forc init --template <source> assumes that the specified <source> is a name of a sway example, and will attempt to fetch a forc project from the sway repo's examples/ directory.
Goal
Our goal is to not only support sway examples, but to enable 3rd-parties to also provide their own custom templates, inspired by the cargo generate command.
How
The plan is to implement this on top of git and our existing support for finding forc projects within subdirectories of git repositories.
Curiously, even though the current forc init --template implementation only supports sway examples, it is implemented by fetching the sway repo (rather than shipping the examples in the binary) via an ad-hoc GitHub REST API approach.
Depending on GitHub's REST API is unsustainable, as it omits more general git support and centralises our tooling around GitHub. Further, if we were to extend it, we would likely end up duplicating existing work in our more generalised git support for forc dependencies.
Instead, we should remove the GitHub REST API approach in favour of more general git support. E.g.
forc init --template <git-repo-url> <proj-name>

The above assumes that a template forc project (indicated by a Forc.toml) exists at the root of <git-repo-url>.
In order to support pulling an example from the subdirectory of a repo (e.g. the examples/ directory within the sway repo), we could allow for indicating the name of the template forc project to search for with something like:
forc init --template <git-repo-url> --template-name <template-proj-name> <proj-name>

This still makes the assumption that we only care about whatever commit happens to be at the HEAD of the repository. We could possibly also support specifying particular git references (e.g. --tag "v1.0.0"), but we could keep this simple to start by assuming HEAD.
This is of course quite verbose, but could act as the foundation for some short-hand commands.
Short-hand
While we should avoid depending on github's REST API in our tooling, I think it's fine to add some high-level sugar seeing as it's by far the most common way of sharing repositories. Likewise, while we don't want to only

forc init --template github:owner/repo proj-name expands to:

forc init --template https://github.com/owner/repo proj-name

forc init --template github:owner/repo:template-name proj-name expands to:

forc init --template https://github.com/owner/repo --template-name template-name proj-name

forc init --template example:counter proj-name expands to:

forc init --template github:fuellabs/sway:counter proj-name

Very open to suggestions/improvements on the above syntax, but more wanted to show that we can add friendly support for things like github repositories or sway examples as short-hand on top of a more general git support - a lot of which we already support through our support for forc git dependencies.
forc init implies template?
Perhaps we should have a dedicated command for initialising from a template? We could do something like:

forc new <proj-name> - Creates a new empty project called <proj-name>.
forc init <template-source> <proj-name> - Using init instead of new could imply we're initialising from some template, removing the need for a separate --template option.

By having forc init imply the use of a template, we could simplify the short-hand commands further too, e.g.

forc init example:counter proj-name
forc init github:fuellabs/swayswap proj-name

And so on.

cc @SilentCicero @adlerjohn @Braqzen @JoshuaBatty I've noticed lots of fuzzy discussion around init and template stuff lately so thought I'd get some thoughts down and try lay out a rough design. Thoughts?

I like the idea of splitting up forc init --template into separate new and init commands.
The only issue I have is the naming of init vs new.
Those terms do no intuitively distinguish between the behaviour of one type or the other.
It makes more sense to me to have a new command for an empty program type (as discussed in #1186) and a template command instead of init because it is more literal than init ... what exactly?
At the moment I am unsure about the shorthand because my preference is to use the literal / verbose syntax that I am familiar with namely copy and pasting links however over time I can see how becoming familiar with the examples makes the sugar significantly nicer to use although I question why someone would become that familiar with it in the first place. That's not for me to say.

forc template isn't a bad alternative!
Here I'm inclined to not use new and init as described in OP because it collides with cargo's new and init (https://users.rust-lang.org/t/cargo-new-vs-cargo-init/40794).

TIL cargo has an init command :woozy_face:

Nice, thanks for putting these thoughts down clearly in one place. I'm also a fan of using forc template and keeping forc init for creating barebone starting projects.


Return specific error

The HexToByesIter::new constructor can only fail in a single manner, return the specific error type for this failure instead of the more general error enum.

Nice, first test of the API script :).
It is a bit noisy but I think on net it's helpful. It's good to see everything that we're committing to in the API in one place.

It is a bit noisy but I think on net it's helpful.

Perhaps we try to do re-exports as separate PRs because they are always going to be noisy? Or separate patches in a PR with multiple updates to the API files?

I found it helpful, interestingly I've found myself reaching for it in other crates that don't have it yet.

FTR both @Kixunil and I think the FromHex trait error handling is borked but this patch is objectively correct and is a step forward.

Lets just roll this into #67.


Run and deploy Unpackaged app on Windows 11 does not work.

Hello, I followed the tutorial from Microsoft site to  run and publish  unpackaged  winui 3 desktop app.  On windows 10 everything works fine., but on windows 11 app just does not start.  Everything is identical on both systems.  I only noticed one thing  after installing Microsoft.WindowsAppRuntime.1.0.msix on win11 if I try to launch it again I should see "reinstall"  button. but there is  "install" button like nothing was installed before.
Any suggestions?

@MikeHillberg @ryandemopoulos thoughts?

@Petrarca181 I do see the symptoms you describe - an Install button displayed on second run.  Despite this, the package was successfully installed on the first run.  If your concern is only with the button label, we can move this issue to a more appropriate home.


UserScript to send commands to server

Could there possibly be a UserScript to send commands to the server using Socket.io?

it would amazing.

Not at the moment, sounds a lot like OgarUL tbh.

oshoot

this can be done

Achieve player list from server using Socket.IO
Check if player stats are equal
Send command back to server
Execute command


Fix ci

Fix CI broken after https://github.com/apache/druid/commit/36193955b6d8a03fe247157dddebea0365c7e501

i think we can merge after the forbidden api check passes

Not sure why the build is still complaining about String.format. I am going to retry the build.

I am not sure why the LGTM build is still failing. Should I go ahead and merge this PR, @clintropolis, @jihoonson ? The build is failing right at the line that this PR is fixing.

i am going to go ahead and merge this PR.

@samarthjain thanks for merging this PR. I think that LGTM has a step that runs a build against master before applying your change. LGTM seems to have failed in that step, which can't be passed without your change. It makes sense to me to ignore it this time. The forbidden API checks passed after this change is merged in https://app.travis-ci.com/github/apache/druid/builds/247394888.


Add read time estimates to Instapaper articles

Can use this algorithm for calculating read time: https://blog.medium.com/read-time-and-you-bc2048ab620c
And can download article content using the /api/1/bookmarks/get_text API endpoint (https://www.instapaper.com/api)

Should probably only do this once per article since it's a big request.


API: allow marketing

When guest books #97 and also if someone edits their profile.
POST /api/v1/{apiKey}/constituents/{id}/Preferences
{
  "PreferenceDate": "Date-Time of sign-up",
  "ConsentStatement": "Nosht" ,
  "Campaign": "[Category] if available",
  "Reason": "updated in nosht/checked on booking",
  "PreferredChannel": "Email?",
  "PreferencesList": [
    {
      "PreferenceType": "Channel",
      "PreferenceName": "Email",
      "PreferenceAllowed": "true/false"
    }
  ]
}

"ConsentStatement": "Events.HUF website" ,
"Campaign": "[Category]"
"Reason": "Updated in Events.HUF booking",
"PreferredChannel": "Email",


Connection error. Your VPC must be able to connect to Lambda and STS

Hello,
My team has been attempting to use your solution, specifically Option 3. We are continuously running into several issues, the primary being " PROBLEM: Connection error. Your VPC must be able to connect to Lambda and STS, as well as Secrets Manager if authentication is required. You can provide access by configuring PrivateLink or a NAT Gateway."
This begs a few questions. Firstly, is this common and do you know how to solve it. Secondly, is Option 3 zero configuration by default?

Hi @mcnamara-charles!
That error message is displayed when the cluster is launched in a public (or default) subnet. Is that the setup you're using?
We actually recommend launching the Amazon MSK cluster in private subnets (where the default route points to a NAT gateway), as this networking setup is required if you plan to use AWS Lambda (this is described on the docs: https://docs.aws.amazon.com/lambda/latest/dg/services-msk-topic-add.html#services-msk-vpc-config).
On the second question, the only prerequisite for option 3 is that the topic provided as a parameter (Name of a Kafka topic to consume) already exists (the solution won't try to create it).

We figured this out before we got this response but thank you so much for getting back to us!


Object doesn't support property or method 'getItem' on IE11 fatal

Fatal occurs in jsbin-4.1.7.min.js (28,414).

I think this might only happen when access to localStorage can't be acquired. You might want to catch such errors and bypass all of this settings code.


evicted incorrect?

steps
% sbt -version
sbt version in this project:    1.10.1
sbt script version: 1.6.2

problem
I'm trying to track down what introduces incorrect version of jackson in my project
% sbt "set ThisBuild/asciiGraphWidth:=180" svc/Test/dependencyTree | fgrep jackson-databind | tail
[info]     | |   | | +-com.fasterxml.jackson.core:jackson-databind:2.15.2
[info]     | |   | +-com.fasterxml.jackson.core:jackson-databind:<IP_ADDRESS> (evicted by: 2.15.2)
[info]     | |   | +-com.fasterxml.jackson.core:jackson-databind:2.15.2
[info]     | |   | | +-com.fasterxml.jackson.core:jackson-databind:2.11.4 (evicted by: 2.15.2)
[info]     | |   | | +-com.fasterxml.jackson.core:jackson-databind:2.15.2
[info]     | |   | | +-com.fasterxml.jackson.core:jackson-databind:2.11.4 (evicted by: 2.15.2)
[info]     | |   | | +-com.fasterxml.jackson.core:jackson-databind:2.15.2
[info]     | |   | +-com.fasterxml.jackson.core:jackson-databind:2.15.2
[info]     | |   | +-com.fasterxml.jackson.core:jackson-databind:2.9.6 (evicted by: 2.15.2)
[info]     | | +-com.fasterxml.jackson.core:jackson-databind:2.15.2

Trying to find where 2.15.2 is coming from
% sbt "set ThisBuild/asciiGraphWidth:=180" svc/Test/evicted | fgrep jackson-databind | tail
[info]      +- com.fasterxml.jackson.core:jackson-databind:2.13.3 (depends on 2.13.3)
[info]      +- com.fasterxml.jackson.core:jackson-databind:2.13.3 (depends on 2.13.3)
[info]  * com.fasterxml.jackson.core:jackson-databind:2.13.3 is selected over {<IP_ADDRESS>, 2.12.6, 2.11.4, <IP_ADDRESS>, <IP_ADDRESS>, 2.9.6, 2.12.0}

Looks like evicted is unaware of 2.15.2 for some reason
expectation
Evicted agrees with dependencyTree and actual dependency list.
notes

This is pretty deep in $work project with massive number of in-house deps so can't easily provide repro

Could you try with sbt 1.10.6 since Coursier version has changed?

Looks the same unfortunately
BTW I've accidentally found the newer jackson dependency is coming from flyway

How is evicted coming up with versions that don't show up on dependencyTree?
That's unexpected too

I think the problem is that there's no Test/evicted because there's only one update, so the information you're comparing are probably different.

Does it mean I should request it as a new feature?

I guess so?


Pawelka/events

changing static ConnectAsync to instance StartAsync
adding Connected, Received, Closed events

There is a few items that still need attention but are not blocking. I don't want to make this change any bigger. I will create a comment with a running issues to address. Feedback will be addressed in this PR or, if bigger/not-critical added to this list to be addressed separately.

Running list of issues:

[ ] consider adding Disposed state
[ ] throw exception when sending and the connection is before Connected or in Disposed state
[ ] fix a possible race when StartAsync is not awaited and StopAsync/Dispose is called
[ ] HubConnection.Invoke should check the value returned by Connection.SendAsync
[ ] more unit tests for HubConnection (mostly around error conditions) - see IConnection
[ ] consider creating IConnection interface and enable passign IConnection to HubConnection. Would simplify testing HubConnection and will enable using HubConnection with custom connections (probably not common)
[ ] event handlers should not run on main SignalR thread
[ ] simplify HubConnection ctors - ILoggerFactory should not be required, IInvocationAdapter?
[ ] Received event should not be raised after the connection is disposed (what about stopped)

:watch:


SELINUX, labels

Upon using the ansible-role-omero-web on a RHEL system with SELINUX set to enforcing, the static files served up by NGINX are not loading after a fresh installation, or an upgrade of an existing running server.
Note: in the case of the output here, this was already done for the existing server at first deployment, and these steps were re-ran for an upgrade to the existing server.
[root@pub-omero ~]# audit2why < /var/log/audit/audit.log shows:
type=AVC msg=audit(1522679845.947:375427): avc:  denied  { read } for  pid=20627 comm="nginx" name="OMERO.web" dev="dm-7" ino=726 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:unlabeled_
t:s0 tclass=lnk_file

        Was caused by:
                Missing type enforcement (TE) allow rule.

                You can use audit2allow to generate a loadable module to allow this access.

after creating an audit2allow rule as it suggests, the following is generated:
[root@ ~]# audit2allow < /var/log/audit/audit.log

#============= abrt_t ==============
allow abrt_t inetd_child_t:dbus send_msg;

#============= httpd_t ==============

#!!!! WARNING: 'unlabeled_t' is a base type.
#!!!! The file '/opt/omero/web/OMERO.web' is mislabeled on your system.
#!!!! Fix with $ restorecon -R -v /opt/omero/web/OMERO.web
allow httpd_t unlabeled_t:lnk_file read;

After running restorecon -R -v /opt/omero/web/OMERO.web, the statics are happily served without a restart of NGINX.

Just ran into this again on pub-omero.

https://github.com/openmicroscopy/ansible-role-omero-web/pull/19 contains a proposal to address this issue with a conditional included playbook executing the command above for SELinux-hardened systems.


Add grant_user_in_database to set_all_user_privileges rake

Frontend tests were OK :+1: (details)

Frontend tests were OK :+1: (details)


Add source: Plot Twist no Fansub

Source name
Plot Twist No Fansub
Source link
https://www.plotfansub.com/
Source language
Spanish
Other details
Add source pleasd
Acknowledgements

[X] I have checked that the extension does not already exist by searching the GitHub repository and verified it does not appear in the code base.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a meaningful title with the source name.
[X] I will fill out all of the requested information in this form.

Do not bump issues by closing the old one and creating a new one.


Incremental prompt in md file

For incremental development it is cumbersome to use only the command line, as sometimes I want to pass on code examples or documentation.
A good start is to be able to load an instructions.md file. Or even better a folder with several md files like spec2code but for a smaller feature or change than the whole app.
Best would be best to have a web UI like Friday
https://github.com/amirrezasalimi/friday

Is there a trick to use spec2code on an existing project to modify it?

Wanted to say that you could just specify what files you want to change using prompt mode. But i noticed you did a PR for an alternative with just the "md" command

@PicoCreator would you have some ideas on how to implement this?  Would be open to attempting to create a PR for this.  I have been looking through the code and could give this a try if you could point me in the right direction

A simple version is already implemented as my PR was accepted.
You just create a file incremental.md on the project root folder, and use the command "md" as the ai prompt

Refencing and closing : https://github.com/PicoCreator/smol-dev-js/pull/10


console.log() %c handling

The following syntax for console.log works in the Chrome console, but not in flems:
console.log('%cI am orange', 'color:orange', 'I am not');

The current logic will only deal with the formatted part of the log and ignore the rest.
The behaviour seems to vary by browser, but they do seem to consistently output all the arguments from console.log regardless of how they handle the css.
I personally like how chrome handles it.

Not the prettiest fix, but the output is prettier now ;) Thanks @fuzetsu


Rage on Proposal List Add

Proposal playlists. Can we do this with Poster?

@earth2travis
We can repurpose this ticket to encompass the 'save proposal template' functionality once we have ux


For keymaps, "editor" should mean "editor-like environments"

The easiest way to understand this is to think of the debug console. It code completes like the editor, uses the same syntax highlighter, etc, yet bafflingly the keymaps are different.
I use emacs keymaps, for example. Want to escape out of a suggestion? Well, my reflexive Ctrl+g isn't going to do it. Hop to the beginning or end of a line? Ctrl+a or Ctrl+e won't work, and I certainly can't kill a line with Ctrl+k.
Even if this isn't OK by default, having it as a boolean setting would be fine.
Alternatively, a string setting for basically,

"editor" means "editor" you fool
"any place that I get syntax highlighting"
"any place with a navigatable insert point"
"any text entry at all"

What's not an acceptable replacement is going through and editing every keymap every time I add or change an extension to add all the locations logic in.

The easiest way to understand this is to think of the debug console. It code completes like the editor, uses the same syntax highlighter, etc, yet bafflingly the keymaps are different.

Regarding default keybindings: this is intentional and has to do with explicit feedback we've received from vim users. vim users do not want vim keybindings in the debug console or other places where an editor is used as an implementation detail (e.g. SCM input). So they need to be able to target them differently in keybindings.
So there are two context keys: textInputFocus and editorTextFocus. textInputFocus holds true for both editors and simple inputs built using the editor, while editorTextFocus holds true only for editors where source code would be loaded from disk.
I think you should reach out to the emacs keymap extension and make the case that they should use textInputFocus instead of editorTextFocus.


results: added support for drafts

closes https://github.com/zenodo/ops/issues/340

Added support for drafts in the results list

@slint could we reactivate the discussion here please


the “Swiss IP address” function

Is enabling the “Swiss IP address” function supposed to provide us with one ?
If so, it doesn't work for me.

“Swiss IP address = You can use functions that are only available in Switzerland”
(Schaltet Funktionen frei die nur in der Schweiz zur Verfügung stehen)
“Record and Recall only work (if?) you have a Swiss IP-address”

But what's the point of having the “schweizer IP” Einstellungen-button if it only works
in Switzerland anyway ? Without it, (greyed out) is only for Germany ?
But it literally states: "You can use functions that are only available in Switzerland".
Credentials have been put in. Clicking on “Channel list” produces an "Zatto HIQ error" message.
Disabled the YouTube Add-On according to  pcrepix (#7 ZattooHiQ 1.1.4 crashes if YouTube Add-on is enabled).
Also, when I'm on it, could a Chrome Plug-In like FreeMyBrowser
[https://freemybrowser.com/, www.vpnflat.com, De01.vpnflat.com]
be made to work with ZattooHiQ ? because it works very well with/ for Z. on the Webb.
Maybe only use the Swiss alternative ?
Scamadviser judges it between 87% to 95% safe.
Environment details:
O.S. and ver.: (Laptop Asus Zenbook UX305, no Kodi log system installed),
Win. 10 Home, 64-bit O.S., x64-based processor.
Kodi 17.3   (Streamlink 0.5.0, Python version: 3.5.1150.1013).
In Kodi's “Summary information” my routers IPv4 address is shown.

Diese Funktion gibt dir keine IP Adresse aus der Schweiz.

Was du tun kannst. Schweizer IP entweder über dein Gerät oder den Router laufen lassen.

Thanks for your answer.
Could you please give, maybe an English synonym for ”Haken” ? =Stuttering, lagging ?
In which country are you residing ?

..., dann zeigt er mir trotzdem Kanäle wie Prosieben HD an.

No channels list open whatsoever.
I will try later with TunnelBear or ChrisPC Free Anonymous Proxy.

Could you please give, maybe an English synonym for ”Haken” ? = Hacking ?

Haken (german) : checkmark
Btw I would recommend a SmartDNS service instead of a VPN. That way just your web calls to Zattoo are routed via Switzerland, all the other traffic remains untouched.
Most of these work with multiple other video/audio services as well, so that e.g. traffic to Netflix can be routed via Germany, or US if you like, Spotify could be proxied through the UK and you'd get many more options like these.


Some episodes are failing because the extraction is truncated

Lost of episodes fail on Theme or Episode because the _extraction is truncated and finished by CLEAN CLEAN CLEAN instead of the expected output "Answer:" or "- ..."
Output of _extraction
"And that's what I like to do in that could not have been scripted better. You actually got back catch, well done. Loyalty. That is all we have time for today on access all areas. We'll be back again next CLEAN CLEAN CLEAN"

Seems like a size issue: the prompt+transcript is too big: it I truncate the transcript to 21k characters, it fails less

I added a loop to reduce by 500 characters each try and then it can load ALL the files in few minutes. Let me know if you want the fix.
I also created a script to run the commands for creating py38, instead of allowing people to run it manually, that helps to reduce the risk of issues when the setup is happening


[WIP][SPARK-34716][SQL] Support ANSI SQL intervals by the aggregate function sum

What changes were proposed in this pull request?
This PR just used to test.
After test, I will close it.
Why are the changes needed?
This PR just used to test.
Does this PR introduce any user-facing change?
This PR just used to test.
How was this patch tested?
This PR just used to test.

Test build #137318 has started for PR 32156 at commit 464c4f0.

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

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

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

Test build #137318 has finished for PR 32156 at commit 464c4f0.

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

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

Test build #137338 has started for PR 32156 at commit 2624c27.

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41917/

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

Test build #137338 has finished for PR 32156 at commit 2624c27.

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

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


Undocumented feature about rolebindings

There is an undocumented feature about --rolebindings-resync-period command option, most probably, related to #151.

@MaxFedotov Could you please ad a short description of the feature, mainly for the user perspective? Thanks.

@bsctl it seems documented to me.
https://github.com/clastix/capsule-proxy/blame/master/charts/capsule-proxy/README.md#L77
Can we close this?

it seems documented to me.

The issue refers to use the feature from user point of view:
options.rolebindingsResyncPeriod | Set the rolebindings reflector resync period | 10h
Just documenting the option above does not provide enough info to understand the meaning of this option. It would be nice @MaxFedotov provides a description of his use case which led to implement such feature. I remember we discussed a lot on Slack but it seems nothing has been reported into docs.


QuantumCircuit.draw() invalid cross-device link error on linux

Informations

Qiskit version:
qiskit-terra | 0.21.0
qiskit-aer | 0.10.4
qiskit-ibmq-provider | 0.19.2
qiskit | 0.37.0
qiskit-nature | 0.4.1
qiskit-finance | 0.3.3
qiskit-optimization | 0.4.0
qiskit-machine-learning | 0.4.0

Python version:
Python version | 3.10.5
Python compiler | GCC

Operating system:
Linux, OpenSUSE Tumbleweed

What is the current behavior?
When running QuantumCircuit.draw(output='latex', filename='qteleport.pdf'), I get the following output:
OSError                                   Traceback (most recent call last)
Input In [7], in <cell line: 1>()
----> 1 teleport.draw(output='latex', filename='qteleport.pdf')

File ~/.local/lib/python3.10/site-packages/qiskit/circuit/quantumcircuit.py:1907, in QuantumCircuit.draw(self, output, scale, filename, style, interactive, plot_barriers, reverse_bits, justify, vertical_compression, idle_wires, with_layout, fold, ax, initial_state, cregbundle)
   1904 # pylint: disable=cyclic-import
   1905 from qiskit.visualization import circuit_drawer
-> 1907 return circuit_drawer(
   1908     self,
   1909     scale=scale,
   1910     filename=filename,
   1911     style=style,
   1912     output=output,
   1913     interactive=interactive,
   1914     plot_barriers=plot_barriers,
   1915     reverse_bits=reverse_bits,
   1916     justify=justify,
   1917     vertical_compression=vertical_compression,
   1918     idle_wires=idle_wires,
   1919     with_layout=with_layout,
   1920     fold=fold,
   1921     ax=ax,
   1922     initial_state=initial_state,
   1923     cregbundle=cregbundle,
   1924 )

File ~/.local/lib/python3.10/site-packages/qiskit/visualization/circuit_visualization.py:203, in circuit_drawer(circuit, scale, filename, style, output, interactive, plot_barriers, reverse_bits, justify, vertical_compression, idle_wires, with_layout, fold, ax, initial_state, cregbundle)
    189     return _text_circuit_drawer(
    190         circuit,
    191         filename=filename,
   (...)
    200         cregbundle=cregbundle,
    201     )
    202 elif output == "latex":
--> 203     image = _latex_circuit_drawer(
    204         circuit,
    205         filename=filename,
    206         scale=scale,
    207         style=style,
    208         plot_barriers=plot_barriers,
    209         reverse_bits=reverse_bits,
    210         justify=justify,
    211         idle_wires=idle_wires,
    212         with_layout=with_layout,
    213         initial_state=initial_state,
    214         cregbundle=cregbundle,
    215     )
    216 elif output == "latex_source":
    217     return _generate_latex_source(
    218         circuit,
    219         filename=filename,
   (...)
    228         cregbundle=cregbundle,
    229     )

File ~/.local/lib/python3.10/site-packages/qiskit/utils/lazy_tester.py:149, in LazyDependencyManager.require_in_call.<locals>.decorator.<locals>.out(*args, **kwargs)
    146 @functools.wraps(function)
    147 def out(*args, **kwargs):
    148     self.require_now(feature)
--> 149     return function(*args, **kwargs)

File ~/.local/lib/python3.10/site-packages/qiskit/utils/lazy_tester.py:149, in LazyDependencyManager.require_in_call.<locals>.decorator.<locals>.out(*args, **kwargs)
    146 @functools.wraps(function)
    147 def out(*args, **kwargs):
    148     self.require_now(feature)
--> 149     return function(*args, **kwargs)

File ~/.local/lib/python3.10/site-packages/qiskit/utils/lazy_tester.py:149, in LazyDependencyManager.require_in_call.<locals>.decorator.<locals>.out(*args, **kwargs)
    146 @functools.wraps(function)
    147 def out(*args, **kwargs):
    148     self.require_now(feature)
--> 149     return function(*args, **kwargs)

File ~/.local/lib/python3.10/site-packages/qiskit/visualization/circuit_visualization.py:445, in _latex_circuit_drawer(circuit, scale, style, filename, plot_barriers, reverse_bits, justify, idle_wires, with_layout, initial_state, cregbundle)
    443 if filename:
    444     if filename.endswith(".pdf"):
--> 445         os.rename(base + ".pdf", filename)
    446     else:
    447         try:

OSError: [Errno 18] Invalid cross-device link: '/tmp/tmpe6afugdr/circuit.pdf' -> 'qteleport.pdf'

Steps to reproduce the problem
Use .draw with filename='something.pdf' on linux.
What is the expected behavior?
The pdf file should be created in the cwd.
Suggested solutions
It might be an issue with Pillow / Linux root permissions. Perhaps give a way to specify the output directory to bypass automatic use of /tmp.
I temporarily got around the issue with:
im = QuantumCircuit.draw(output='latex')
im.save('output.pdf', quality=100)
im.close()

If possible, could you try a development version of Qiskit Terra and change this line: https://github.com/Qiskit/qiskit-terra/blob/eaf55816470fd64c934b36b7684a02e133dfbc5f/qiskit/visualization/circuit_visualization.py#L491
to
import shutil
shutil.move(base + ".pdf", filename)

You're working on a system where the /tmp directory is mounted on a different file-system to your working directory, and I don't have easy access to a system like that to test on.  The shutil.move form should handle the cross-filesystem copy correctly, but it'd be good if you'd be able to test it for us.  Thanks!

That did it! It was just on line 445 for me for some reason.

That's great!  Would you be interested in making a PR to apply that change? (No pressure.)
The line-number difference isn't important - it'll just be that we've made some changes to the file I linked to between Terra 0.21.0 (which you have installed) and the current development version, which I linked to.

Done. Let me know if there's something more I can do in terms of the tests/documentation contributing steps, as I'm not familiar with tox.

Fixed by #8629.


Dashboard 'Single Stat' cell error with negative values in combination with colorized threshold

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

Add 'Single Stat' cell to dashboard
Query data should return a negative value
Set a 'Colorized Threshold' (e.g. red if negative, green if positive)
Notice 'An InfluxDB error has occurred.' text

Expected behavior:
Taking the example: red if negative, green if positive.
Actual behavior:
An InfluxDB error has occurred.' text
Environment info:

System info: Darwin 17.5.0 x86_64
InfluxDB version: InfluxDB 2.0.4 (git: 4e7a59bb9a) build_date: 2021-02-08T17:47:02Z

Just found out there's a (unreleased) fix already: https://github.com/influxdata/influxdb/pull/20819. Thanks!


plugins: restore elan-wave-segment plugin

fixes #1745

Coverage increased (+1.3%) to 80.984% when pulling 06b8607338a96f781943cc4ccc2f44973fbbab14 on elan-wave-1745 into 8ba3328102da9746ce1fd390c0801f01edaaf612 on master.

@thijstriemstra is this blocked in some way?
A general note: I think the elan plugin and this segment plugin are both cool little apps in their own right, and they don't have to be plugins. They aren't really modifying wavesurfer.js in any way and can be built on top of it as regular apps.
Perhaps moving them to another repo would be a good idea.

is this blocked in some way?

yea; the actual work of bringing it back is blocking it ;)

yea; the actual work of bringing it back is blocking it ;)

Can you elaborate? Does the plugin code need to be updated because of the latest updates in wavesurfer.js?
If you're not planning to work on it, let's close the PR.


Question: Invalidate token

What would be the best practice to invalidate multiple tokens from a user?
Say the user can only be logged in one device at a time, how could I do that?

Been looking elsewhere for this.


Add Plees Tracker logo

Good find!
As an example of how our CI/CD pipelines work, here's what I did with this commit:

went to the dashboard and confirmed PleesTracker just had a "P" for a logo
clicked the button to merge this commit
watched GitHub do all the hard work

particularly looked at the "Build" step, where most of the interesting stuff happens

went back to the dashboard and confirmed PleesTracker now had a nice icon for a logo

That means there's very little I can do to mess up a release.  Frankly, I can do it all from my phone if it comes to it.


implement missing draw_indexed_indirect call

[ ] Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
[ ] Updated documentation to reflect any user-facing changes - in this repository
[ ] Updated documentation to reflect any user-facing changes - PR to the guide that fixes existing documentation invalidated by this PR.

Thanks for the PR, looks like tomaka just forgot to add this in the first place.


Update sourcemap.js

browserify with debug:true stores a sourcemap at the end of the file as a datauri
sometimes the datauri is prefixed with "data:application/json;base64," and sometimes with data:application/json;charset:utf-8;base64,
changed the regexp at line 112 to account for the difference

this PR solves #144.

@vladikoff Would you be able to bump the version so that I can pull this into my project? I'm experiencing the same bug during sourcemap creation and this patch solves it. I just have to manually edit the concat library file right now. Thanks for any help.

This broke again since Browserify changed from "charset:" to "charset=". Wtf, guys.
I fixed it by changing the regex to allow an arbitrary parameter in that position:
if (/data:application\/json;(charset.utf-8;)?base64,([^\s]+)/.test(sourceMapFile)) {

This whole code just feels way too brittle, but I don't even know if there is an official specification for what is valid after sourceMappingURL=...


Figure out route url for location header

@rclanan - could you provide a description?

description for?

The Issue. I'm not sure what's being requested, that's all.

Was pretty self-explanatory, and yes, I understand that you meant the description in the issue. Wasn't understanding why it needed a description since was self-explanatory.
I have updated the description to be a bit more explicit, though.

This is fully implemented in pull request #25.


Add Readme and instructions to create sd card images

+1 for visionfive2 specifics

Added in https://github.com/NickCao/nixos-riscv/commit/c73d9b015cac4acb7d449e0e6b9d4da8f78f35ba, feel free to ask for more information to be included.

that was quick!
thank :rocket:


Automated builds from tar archives are not working

Summary
It turns out that the file command is broken, which is used by the makepkg command. This makes makepkg think that tar.gz files are gzip archives, making it use gzip to extract it. The result is that tar files are not extracted fully, causing failures.
Details
The makepkg command uses the following file command:
file -S -bizL -- "$file"

The file variable is set to the archive name.
Here is an example in what that results in on alpine:
application/x-empty; charset=binary compressed-encoding=application/gzip; charset=binary

On Arch and Debian 12 (which use the same version of file) this results in the following with the same file:
application/x-tar; charset=binary compressed-encoding=application/gzip; charset=binary

This is not fixed on alpine edge.
Possible solutions
At the moment I see the following options:

Fix this in alpine
Use an older alpine version
Patch pacman to just try bsdtar if the archive is seen as empty

I don't think there are many other ways around this one.

Here is how the arch package is build: https://gitlab.archlinux.org/archlinux/packaging/packages/file/-/blob/main/PKGBUILD#L33
Here is how the alpine package is build: https://git.alpinelinux.org/aports/tree/main/file/APKBUILD#n25

There is a fix for it upstream in file, but it is not available in a new release yet: https://github.com/file/file/commit/1dd21dd360472d7b830825df8e40a06cdc1cbbcf

I made an upstream issue: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15047

This was resolved upstream now in Alpine 3.18. I'll test it out

This has been resolved now thanks to the upstream fix.


Error on npm start - No changes made to quickstart

Getting the following errors, I made no changes, just did npm install then npm start.
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files (x86)\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'serve' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 silly lifecycle<EMAIL_ADDRESS>no script for preserve, continuing
7 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Ahmer\My Documents\quickstart\node_modules\.bin;C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Ahmer\My Documents\quickstart\node_modules\.bin;C:\Users\Ahmer\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Ahmer\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Git\cmd;C:\Users\Ahmer\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\nodejs;C:\Users\Ahmer\Anaconda3;C:\Users\Ahmer\Anaconda3\Scripts;C:\Users\Ahmer\Anaconda3\Library\bin;C:\Users\Ahmer\AppData\Local\Microsoft\WindowsApps;C:\Users\Ahmer\AppData\Local\atom\bin;C:\Users\Ahmer\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
10 verbose lifecycle<EMAIL_ADDRESS>CWD: C:\Users\Ahmer\My Documents\quickstart
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '/d /s /c', 'lite-server -c=bs-config.json' ]
12 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
13 info lifecycle<EMAIL_ADDRESS>Failed to exec serve script
14 verbose stack Error<EMAIL_ADDRESS>serve: `lite-server -c=bs-config.json`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:877:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid<EMAIL_ADDRESS>16 verbose cwd C:\Users\Ahmer\My Documents\quickstart
17 error Windows_NT 10.0.14393
18 error argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
19 error node v6.10.0
20 error npm  v3.10.10
21 error code ELIFECYCLE
22 error<EMAIL_ADDRESS>serve: `lite-server -c=bs-config.json`
22 error Exit status 1
23 error Failed at the<EMAIL_ADDRESS>serve script 'lite-server -c=bs-config.json'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular-quickstart package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     lite-server -c=bs-config.json
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs angular-quickstart
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls angular-quickstart
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

$ npm start

><EMAIL_ADDRESS>prestart C:\Users\Ahmer\My Documents\quickstart
> npm run build

><EMAIL_ADDRESS>build C:\Users\Ahmer\My Documents\quickstart
> tsc -p src/

><EMAIL_ADDRESS>start C:\Users\Ahmer\My Documents\quickstart
> concurrently "npm run build:watch" "npm run serve"

[0]
[0] ><EMAIL_ADDRESS>build:watch C:\Users\Ahmer\My Documents\quickstart
[0] > tsc -p src/ -w
[0]
[1]
[1] ><EMAIL_ADDRESS>serve C:\Users\Ahmer\My Documents\quickstart
[1] > lite-server -c=bs-config.json
[1]
[1] ** browser-sync config **
[1] { injectChanges: false,
[1]   files: [ './**/*.{html,htm,css,js}' ],
[1]   watchOptions: { ignored: 'node_modules' },
[1]   server:
[1]    { baseDir: 'src',
[1]      middleware: [ [Function], [Function] ],
[1]      routes: { '/node_modules': 'node_modules' } } }
[0] 9:44:32 AM - Compilation complete. Watching for file changes.
[1] events.js:160
[1]       throw er; // Unhandled 'error' event
[1]       ^
[1]
[1] Error: watch karma-test-shim.js EPERM
[1]     at exports._errnoException (util.js:1022:11)
[1]     at FSWatcher.start (fs.js:1429:19)
[1]     at Object.fs.watch (fs.js:1456:11)
[1]     at createFsWatchInstance (C:\Users\Ahmer\Documents\quickstart\node_modules\chokidar\                                                                                lib\nodefs-handler.js:37:15)
[1]     at setFsWatchListener (C:\Users\Ahmer\Documents\quickstart\node_modules\chokidar\lib                                                                                \nodefs-handler.js:80:15)
[1]     at FSWatcher.NodeFsHandler._watchWithNodeFs (C:\Users\Ahmer\Documents\quickstart\nod                                                                                e_modules\chokidar\lib\nodefs-handler.js:228:14)
[1]     at FSWatcher.NodeFsHandler._handleFile (C:\Users\Ahmer\Documents\quickstart\node_mod                                                                                ules\chokidar\lib\nodefs-handler.js:255:21)
[1]     at FSWatcher.<anonymous> (C:\Users\Ahmer\Documents\quickstart\node_modules\chokidar\                                                                                lib\nodefs-handler.js:473:21)
[1]     at FSReqWrap.oncomplete (fs.js:123:15)
[1]
[1] npm
[1]  ERR! Windows_NT 10.0.14393
[1] npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\node                                                                                js\\node_modules\\npm\\bin\\npm-cli.js" "run" "serve"
[1] npm ERR! node v6.10.0
[1] npm ERR!
[1]  npm  v3.10.10
[1] npm ERR!
[1]  code ELIFECYCLE
[1] npm ERR<EMAIL_ADDRESS>serve: `lite-server -c=bs-config.json`
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the<EMAIL_ADDRESS>serve script 'lite-server -c=bs-config.j                                                                                son'.
[1] npm
[1]  ERR! Make sure you have the latest version of node.js and npm installed.
[1] npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
[1] npm ERR! not with npm itself.
[1] npm ERR! Tell the author that this fails on your system:
[1] npm
[1]  ERR!     lite-server -c=bs-config.json
[1] npm
[1] ERR! You can get information on how to open an issue for this project with:
[1] npm ERR!     npm bugs angular-quickstart
[1] npm ERR! Or if that isn't available, you can get their info via:
[1] npm ERR!     npm owner ls angular-quickstart
[1] npm ERR! There is likely additional logging output above.
[1]
[1] npm ERR! Please include the following file with any support request:
[1] npm ERR!     C:\Users\Ahmer\My Documents\quickstart\npm-debug.log
[1] npm run serve exited with code 1

Having the same exact issue, did you figured it out?

Same issue here

same here

This problem occurred when i've used built-in terminal (in my case it was terminal in webstorm), try to type npm start in command line.

There is an issue on your code, check all your classes, components and so on, in my case, I was missing a bracket }

I just switched to different directory, cloned, installed, and ran it, and it worked. I have no clue why.

I have same issue. Do we have any resolution or workaround?

Almost Same issue here.
My case is like for first time with npm start it works fine.than it is started throwing the same error

make sure you guys don't have multiple angular apps running. I had one running on my port 4200 and when I tried to run another one, it throws the same error that you're talking about.

I don't think if there's any error in the quickstart, correct me if wrong.

This repository is now deprecated. The Angular Quickstart project was a nice starting point for creating Angular applications. Now we recommend using the Angular CLI to create new Angular projects.
Starting from 1 November 2017, all the Angular documentation, at angular.io, is based on the Angular CLI.
Let's get started


Build MXNET with GPU but fail to import mxnet on CPU machine

Description
I tried to build mxnet with WARP_CTC enabled.
I need to run this mxnet on docker image with GPU
But I also need to run testing on CPU machine.
What is the build parameter that best for this purpose?
I tried to build using this make parameter
make -j$(nproc) USE_OPENCV=0 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 USE_MKLDNN=0 WARPCTC_PATH=$(HOME)/warp-ctc MXNET_PLUGINS+=plugin/warpctc/warpctc.mk

But I get error on docker on CPU machine during the import mxnet
import mxnet as mx
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/__init__.py", line 24, in <module>
    from .context import Context, current_context, cpu, gpu, cpu_pinned
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/context.py", line 24, in <module>
    from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/base.py", line 213, in <module>
    _LIB = _load_lib()
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/base.py", line 204, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 366, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcuda.so.1: cannot open shared object file: No such file or directory

If I build it using GPU docker with "nvidia default runtime" https://github.com/NVIDIA/nvidia-docker/wiki/Advanced-topics#default-runtime
I get this error instead.
"OSError: /usr/lib/x86_64-linux-gnu/libcuda.so.1: file too short"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/__init__.py", line 24, in <module>
    from .context import Context, current_context, cpu, gpu, cpu_pinned
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/context.py", line 24, in <module>
    from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/base.py", line 213, in <module>
    _LIB = _load_lib()
  File "/root/.local/lib/python2.7/site-packages/mxnet-1.5.0-py2.7.egg/mxnet/base.py", line 204, in _load_lib
    lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 366, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/x86_64-linux-gnu/libcuda.so.1: file too short

It only works if I RUN it inside Docker GPU mode regardless whether I build it with GPU or CPU
Environment info (Required)
----------System Info----------
('Platform     :', 'Linux-4.9.137-0.1.ac.218.74.329.metal1.x86_64-x86_64-with-Ubuntu-18.04-bionic')
('system       :', 'Linux')
('node         :', '587cde01f292')
('release      :', '4.9.137-0.1.ac.218.74.329.metal1.x86_64')
('version      :', '#1 SMP Wed Dec 5 15:11:05 UTC 2018')
----------Hardware Info----------
('machine      :', 'x86_64')
('processor    :', 'x86_64')
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              36
On-line CPU(s) list: 0-35
Thread(s) per core:  2
Core(s) per socket:  9
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               63
Model name:          Intel(R) Xeon(R) CPU E5-2666 v3 @ 2.90GHz
Stepping:            2
CPU MHz:             3200.195
CPU max MHz:         3500.0000
CPU min MHz:         1200.0000
BogoMIPS:            5800.11
Hypervisor vendor:   Xen
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            25600K
NUMA node0 CPU(s):   0-8,18-26
NUMA node1 CPU(s):   9-17,27-35
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq monitor est ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single kaiser fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt ida
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0069 sec, LOAD: 0.4071 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0088 sec, LOAD: 0.3336 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0143 sec, LOAD: 0.0973 sec.
Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0198 sec, LOAD: 0.0754 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0266 sec, LOAD: 0.1091 sec.
Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0143 sec, LOAD: 0.0627 sec.

Package used (Python/R/Scala/Julia):
Python
Python 2.7.15+ (default, Nov 27 2018, 23:36:35)
[GCC 7.3.0] on linux2

Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio):
make -j$(nproc) USE_OPENCV=0 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 USE_MKLDNN=0 WARPCTC_PATH=$(HOME)/warp-ctc MXNET_PLUGINS+=plugin/warpctc/warpctc.mk

MXNet commit hash:
(Paste the output of git rev-parse HEAD here.)
v1.5.x
commit 42746bc73e8bcb75bfcadd1398e6f71bc170fa10 (HEAD -> v1.5.x, origin/v1.5.x)

Build config:
(Paste the content of config.mk, or the build command.)
make -j$(nproc) USE_OPENCV=0 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 USE_MKLDNN=0 WARPCTC_PATH=$(HOME)/warp-ctc MXNET_PLUGINS+=plugin/warpctc/warpctc.mk

Minimum reproducible example
(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
Steps to reproduce
(Paste the commands you ran that produced the error.)

build with CUDA enabled
import mxnet on CPU machine

Yes, I link it with cuda path.
I am using nvidia docker image. During runtime in CPU, it has the cuda driver there inside /usr/local/cuda
But it is still complaining about cudalib

I would recommend to try to use "ldd" and work on the LD library path environmental variables.

I cannot find the "libcuda.so.1" on my CPU machine. "/usr/lib/x86_64-linux-gnu"
(I am using nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 docker image)
So my question is how to build mxnet that is compatible with GPU but also CPU.
Is there any way to do this?


MidJourney V5 only upscales the first image

When using bulkai 1.0.6 with MidJourney V5 it only upscales the first of the four variations, instead of all of them.

The issue was that midjourney V5 upscales are so fast that the receiver was not capturing them.
I made some improvements that fixes that. I've also generated a v1.0.7 with the fix.
Thanks for reporting!


Qingwei/add contract info to get contract call

Coverage remained the same at 85.981% when pulling df18875bf494a62c3937ebb09688f2a09bcd03b4 on qingweibinary:qingwei/add_contract_info_to_get_contract_call into 24c5e246b2694d2ab60064b716723234b07b874c on binary-com:master.


Yazi not previewing images with --chooser-file flag

What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
foot version: 1.16.2 -pgo +ime +graphemes -assertions
Yazi version
yazi 0.1.5 (1d1a512 2023-12-05)
Did you try the latest main branch to see if the problem has already been fixed?
Tried, but the problem is still present
Describe the bug
Hi again!
Aerc has a file-picker-cmd, and I switched from fzf to yazi which works very well.
One thing came to my attention:
With
# aerc.conf
[compose]
file-picker-cmd = yazi --chooser-file "%f"

yazi does not preview images.
It's not crucial. Just wanted to give a hint because I don't if it is a yazi issue.
Expected Behavior
Yazi should preview images with or without the --chooser-file flag.
To Reproduce
Within aerc:

:compose (or key binding)
Go to main writing area, e.g. with Ctrl + n
:wp (e.g. for helix or vim)
:attach -m<enter> (or key binding)

Configuration
No response
Anything else?
No response

When I start Yazi with yazi --chooser-file /tmp/foo, my image preview works fine.
I want to know if it works for you in Aerc without including --chooser-file?

When I followed your steps and did the final one I got:
stat -m: no such file or directory

When I followed your steps and did the final one I got:
stat -m: no such file or directory

Thanks! I cannot reproduce this but did some research

Switched to original aerc config files and just set file-picker-cmd.
:attach -m was added in aerc 0.14.0 (2023-01-04)
rg "stat .*": only slightly related in commands/compose/attach.go:log.Errorf("failed to stat file: %v", err)

could not find anything relevant for stat -m asking the search engines.

Not being familiar with rust the only idea I have for the original issue: Maybe some $TMP variable is overwritten by aerc?! Aerc uses /tmp/aerc-… files.

Thank you for the pointer. I have reproduced it after upgrading aerc.
Unfortunately, Yazi identified and used the graphics protocol correctly, but aerc's built-in terminal emulator failed to interpret them, resulting in the images not being displayed on the terminal.
And I found this, Tcell with Sixel image format. It seems that aerc doesn't support any graphic protocols currently.

Ah interesting. Thank you so much for investigating this. I did not know that yazi kind of 'inherits' this.
So this is a pure aerc issue. If you agree I’ll close this issue and provide news here when the aerc issue is solved.
Yazi as a file picker within aerc is fantastic anyways.

By the way: As a temporary solution for previewing images in aerc I use this setting within the [filter] section—but just didn’t remember:
image/* = chafa --format symbols -

I will add a new config option to Yazi to allow users to manually specify the graphics mode to use, with chafa as a fallback in this scenario.


Install error

➜  sudoku git:(master) ✗ npm run-script compile

><EMAIL_ADDRESS>compile /Users/zhengzhongzhao/Develop/reacts/sudoku
> webpack ./js/index.js bundle.js --optimize-minimize

Hash: af521416c7968406d19a
Version: webpack 1.12.9
Time: 7147ms
    Asset     Size  Chunks             Chunk Names
bundle.js  2.59 MB       0  [emitted]  main
   [0] multi main 52 bytes {0} [built] [1 error]
 [160] ./bundle.js 1.87 MB {0} [built]
    + 159 hidden modules

ERROR in multi main
Module not found: Error: Cannot resolve 'file' or 'directory' ./js/index.js in /Users/zhengzhongzhao/Develop/reacts/sudoku
 @ multi main

ERROR in bundle.js from UglifyJs
Unexpected token: name (Cell) [./bundle.js:42736,0]

ERROR in bundle.js from UglifyJs
Unexpected token: name (Cell) [./bundle.js:42736,0]

I can't discover the problem without more information.
Are you following the steps of the "Build" section on Readme? https://github.com/andreynering/sudoku/blob/master/README.md
It should work if you simple run webpack in the terminal, without any argument.


chore: automated test building for Firefly Shimmer Desktop

Summary

Please summarize your changes, describing what they are and why they were made.

...
Changelog
- Please write a list of changes

Testing
Platforms

Please select any platforms where your changes have been tested.

Desktop

[ ] MacOS
[x] Linux
[ ] Windows

Mobile

[ ] iOS
[ ] Android

Instructions

Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.

...
Checklist

Please tick the following boxes that are relevant to your changes.

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or modified tests that prove my changes work as intended
[ ] I have verified that new and existing unit tests pass locally with my changes
[ ] I have verified that my latest changes pass CI workflows for testing and linting
[ ] I have made corresponding changes to the documentation

Maybe it's better to check the reusable workflow actions on GH. This way we don't have to repeat everything across 3 files already

This was my initial strategy but I thought it best to do that in a separate PR dedicated to refactoring the workflows. It requires a bit of wiring up around the repository secrets that will take extra time.


Ability to reveal and reorder modifier decks

Perhaps I'm missing it, but is there a way to reveal top X cards and reorder modifier decks? This is required for certain Diviner abilities where you may want to reorder your or another player's deck.

Interesting ! I did not know this ability, we'll think about how to implement that

Interesting ! I did not know this ability, we'll think about how to implement that

Looks like the main functions would be:

Reveal top X cards, and reorder them
Reveal top X cards, send one or more to the bottom of the deck.

There are more, but they would only apply to the monster deck. Gloomhaven Helper has some nice support for this.

Looks like the main functions would be:

Reveal top X cards, and reorder them
Reveal top X cards, send one or more to the bottom of the deck.

There are more, but they would only apply to the monster deck. Gloomhaven Helper has some nice support for this.

Thanks for the tip, I've never played Diviner ;)

Thanks for the tip, I've never played Diviner ;)

Normally, I don't think we would either, but if you want to play the Forgotten Circles scenarios it's required. :/

@orphu We implemented this feature in the v4.7 version of Gloomhaven-deck :)
It is disabled by default, as it is rarely needed !
You can check the "sort modifiers" game option, that will add an additional button to the game screen.
There you can display up to 9 modifiers, and reorder them as you want, or putting them at the bottom of your modifier deck.
Thanks for the issue !


Add new transport io layer design and support custom socket.

The original TCPConnect/Attach will remain valid until all existing gateways are migrated, and then should become obsolete.

@akallabeth I removed the alignment just in case - leave it out for next big release.
Existing clients should work unless it also has its own custom transport implementation (because the core is now calling ConnectLayer instead of TCPConnect), and this is something I don't think there is any way to keep absolutely compatible.

@akallabeth I removed the alignment just in case - leave it out for next big release.

:+1:

Existing clients should work unless it also has its own custom transport implementation (because the core is now calling ConnectLayer instead of TCPConnect), and this is something I don't think there is any way to keep absolutely compatible.

hmm, so the stream dump of older clients is no longer compatible?
that might pose an issue, checking that a bit more in depth

@akallabeth pushed all the changes.


Deserialize subclass from other library using JsonInheritanceConverter

We found a situation where we have a base class in C# library A and a subclass in C# library B. The classes are in different namespaces.
When we do a http post of the subclass to an interface defined by the base class, the subclass is not deserialized.
The normal solution would be to add the subclass to the knowntypes, but that would create a circular dependency.
I found that it's rather easy to find the right type to deserialize to using reflection:
var type = AppDomain.CurrentDomain.GetAssemblies().                 SelectMany(a => a.GetTypes()).                 Where(t => t.IsSubclassOf(objectType)).                 Where(t => t.Name == discriminatorValue).                 FirstOrDefault();
This may be something you'd like to cache and not repeat every time. There could be security issues with this approach, but those would be the same as you have when allowing $type as discriminator.
Would it be possible to add such functionality?

I think you could override JsonInheritanceConverter and add this logic for correct serialization

For correct schema generation you can provide a custom method to load known types
https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.knowntypeattribute.methodname?view=netframework-4.8#System_Runtime_Serialization_KnownTypeAttribute_MethodName
https://github.com/RicoSuter/NJsonSchema/blob/master/src/NJsonSchema/Generation/JsonSchemaGenerator.cs
(Method must be public i think)

I didn't know you could define a method to define the knowntypes. Look like a very clean solution to this problem. Thanks!


CI: Cap the benchmark history in charts to 50 items.

What
Each data point on the benchmark charts is so close to the next one it's hard to hover over.
In addition, a drastic change isn't even really visible until it's been a few commits.
How
We cap the maximum items in each chart to 50.

This might be too big or too small. I suggest we merge it and find out.


Fullscreen unavailable

What happened?
The ability to make videos fullscreen is now unavailable on iPad but still works on iOS. This was working a few days ago until I updated the library so I'm unsure if this is a new Youtube limitation or not.
What are the steps to reproduce?

Setup a YouTubePlayerKit view with as normal
When tapping the full screen button in the YouTube player on iPad, a tool tip indicates that my browser doesn't support full screen. Doing the same on iOS works however.
If the playInline configuration property is set to false, the video plays in line too

What is the expected behavior?
I'd expect full screen to work on both device types but I appreciate this may be a YouTube limitation. Any guidance here would be greatly appreciated!

Duplicate of https://github.com/SvenTiigi/YouTubePlayerKit/issues/52


trained model issue

i trained resnet model using dlib_metric_learning_on_images. but when i'm using it for tests and try to detect any of image in johns directory it is unable to detect any person. however when i use trained model on bald_guys.jpg it detects them all as one person. what am i doing wrong while training?i also changed input_rgb_image_sized class of face_recognition to input_rgb_image class.
note:- model is trained on johns faces folder and testing it on same image bald_guys.jpg in faces folder.
i know this need to be posted on somewhere like stackoverflow but i didn't got any reply there. i'll appreciate your help

I just replied on stackoverflow.  Anyway, 61 faces is way too few.  You need more training data.


add a parameter to begin download from specific date time

if the download get stuck or timeout, we'll need a way to re-download the library, and in such situation re-download from the beginning doesn't seems a good idea

You don't have to re-download the library. Please check the FAQ in the updated README file to see how the application works.

Thanks, sorry for bothering you.


Fix the error when inspect the typing annotations

Fix #175
The previous code has the assumption that all type hints which have an origin attribute also possess an _name attribute. This is not true for certain built-in generic types like list, dict, etc. in Python, particularly when accessed via the origin attribute, which is a legacy of Python's type hinting evolution.

Codecov Report
Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.54%. Comparing base (24c9239) to head (e49393c).

Files
Patch %
Lines

tests/test_python.py
87.50%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
- Coverage   75.80%   75.54%   -0.26%
==========================================
  Files          69       69
  Lines        4608     4605       -3
==========================================
- Hits         3493     3479      -14
- Misses       1115     1126      +11

Flag
Coverage Δ

python-3.11
75.54% <90.00%> (-0.17%)
:arrow_down:

python-3.9
?

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.


Can't SSH into soft serve remotely, only localy

I was able to set up my soft serve server on a rock pi 3 in docker and wanted to make it accessible remotely with cloud flare.
I was able to set up the Cloudflare Tunnel by linking git.mydomain.com to ssh://ipofserver:23231. When I try to ssh into it ssh wont load the soft serve TUI. But when I access the soft serve server localy, it works.
Any ideas how to solve this?
Cheers,
Jay

Unable to Clone Repository (config)
I wanted to inform you about an issue I am experiencing while attempting to run the Git server on my server. Unfortunately, I am unable to successfully clone the repository from either my computer or the server itself. Everytime I try, I encounter the following error message: "Cloning into 'config'... fatal: protocol error: unexpected 'invalid repo'."
I have made several attempts to resolve this problem, but I have been unsuccessful so far.
Thank you for your attention to this matter.


ChatType wrong order

Hi, here : conversation - the latest message is at the bottom, new messages appear from the bottom new messages should appear from the top not the bottom (as messenger, discord, etc..) because now theres a whole empty space for 80% of the screen in the start of a convo.

But then there will be an empty space for 80% of the screen in the bottom of a convo, I don't see why that's better. Discord does like you say, and telegram vice versa, we do like telegram does. You are most welcome to support this library by opening a PR that adds an option to choose one of those, but I'm afraid we're not going to change the default, have a nice day

Friend, people read from top to bottom.. it's normal to have empty space there. It's like reading from left to right... (unless Hebrew or arabic but you got the idea)

Also regarding Telegram, yes it starts at the bottom, but new messages comes below not above it feel weird to read bottom - top


Etags different due double quotes in test_bucket_list_return_data

Traceback (most recent call last):
Etags different due double quotes in test_bucket_list_return_data
File "/tmp/s3-tests-master/virtualenv/lib64/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/tmp/s3-tests-master/s3tests/functional/test_s3.py", line 719, in test_bucket_list_return_data
eq(key.etag, key_data['etag'])
AssertionError: u'37b51d194a7513e45b56f6524f2d51f2' != '"37b51d194a7513e45b56f6524f2d51f2"'
Suggestion:
etag': key.etag.strip('"'),
Line 705 on s3-tests-master/s3tests/functional/test_s3.py

@monary Which S3 implementation are you testing against?  Perhaps it is missing a quote somewhere since this test works correctly with AWS and S3Proxy?


:sparkles: Add functional programming magic

Thanks for the contribution.
Looks awesome, but might need some more understanding from my side.


NTR: regulation terms for entry into reproductive diapause

Hi,
Could I have positive and negative regulation terms for:
GO:0055116 entry into reproductive diapause
Term name: positive regulation of entry into reproductive diapause
Def: Any process that activates or increases the rate or extent of the dormancy process that results in entry into reproductive diapause. Reproductive diapause is a form of diapause where the organism itself will remain fully active, including feeding and other routine activities, but the reproductive organs experience a tissue-specific reduction in metabolism, with characteristic triggering and releasing stimuli.
Ref:PMID:18650956
Term name: negative regulation of entry into reproductive diapause
Def:Any process that stops, prevents, or reduces the frequency, rate or extent of the dormancy process that results in entry into reproductive diapause. Reproductive diapause is a form of diapause where the organism itself will remain fully active, including feeding and other routine activities, but the reproductive organs experience a tissue-specific reduction in metabolism, with characteristic triggering and releasing stimuli.
Ref:PMID:18650956
GOC:ha

David, I have a terrible confession to make. I copy-pasted the wrong PMID!
Ref for both should be PMID:27689881
I will go put myself in the corner! Forgive me!

That's what I get for trusting you. I will fix it now.

I should be on some watch list!
Thanks!


onNextMonthClick & onPrevMonthclick not passed down to DayPickerSingleDateController

Hey,
First, thanks for an awesome component :) I've been using it for a few days and it's been much easier to use than other react datepickers I've tried.
My issue is that I'm trying to use a SingleDatePicker with restricted dates, which works great. However the user can still use the next / prev month navigation to go to months where there are no days available for them to select.
I thought I'd be able to stop this by playing around with the onNextMonthClick and onPrevMonthClick functions, however these don't seem to be passed down to the DayPickerSingleDateController, so only the empty function from defaultProps is called. Playing around with the src I was able to pass them from SingleDatePicker to the controller and they were called as expected.
I noticed that DateRangePicker doesn't have this issue. These functions are listed as optional props in the docs so I'm not sure if this is intentional and just something that shouldn't be used with the SingleDatePicker or if it's a bug?
Any help is appreciated, thanks again.

I've been able to work around this for some use cases by using DayPickerSingleDateController, however it looks like onNextMonthClick doesn't let me stop the navigation.
It'd be great of there was a way to stop navigation when requesting a month that is outside the supplied range, but it's not a huge issue / blocker at the moment.

Hiyo! I think this has a couple of duplicate issues: https://github.com/airbnb/react-dates/issues/628 and https://github.com/airbnb/react-dates/issues/400. :)
I will close those in favor of this issue so we can have some discussion here.
I think with the expectation of how isOutsideRange works ((- ∞, X] or [Y,  ∞) or both), it would be reasonable to have a disableOutsideRangeNavigation boolean prop that would allow for this behavior.
FYI @kakadiadarpan @AntiFish03


fix(examples/scrollbar): title wasn't displayed because of background reset

This has always been like that since scrollbar was introduced so the title was never displayed(?).

At some point it was black (shown on the example gif), but I have a black terminal, and some other people too so ... its good to change anyway.


Refactor math tests + select vector lib backend via kernel option

I've combined test_libdevice and test_libmvec into one test_math suite. This removes a great deal of code duplication. (While at it, I also sorted the test names in our github workflow file.)
Moreover, I've changed how we select the vector library -- instead of using environment variables, we now can specify it via the kernel kwargs. Environment variables are generally more awkward to work with.
Finally, I've made sleef the default vector library. It supports more functions and architectures, and since we now vendor it, we don't have to worry about portability issues.
This PR is stacked on top of #135.

Ah, looks like CI doesn't kick in if the base branch isn't main. I'll land the stacked PR and rebase.


working with two cameras

Hi, What would you recommend for running tensorrt with two cameras? How can it be integrated into coding?

What would you recommend for running tensorrt with two cameras? How can it be integrated into coding?

It depends on your application.  One simple way is to run 2 separate processes, with each one opening its own camera instance and inferencing with its own TensorRT runtime.  Camera frames would not be synced in this case, since the 2 processes run independently.
Another way is to create 2 threads in the program and to capture image frames from the 2 cameras separately.  Please refer to https://github.com/jkjung-avt/tensorrt_demos/issues/329.
If you want to synchronize image frames from the 2 cameras, you'll have to implement additional code to do that.
Yet another alternative would be to use NVIDIA DeepStream SDK.


Update com.android.tools.build:gradle:4.1.0 crash at com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity.populateIdpList

Hi guys,
so, everything works fine with this configuration:
classpath 'com.android.tools.build:gradle:4.0.2'

and in gradle-wrapper.properties:
distributionUrl = https \: //services.gradle.org/distributions/gradle-6.1.1-all.zip

and:
  implementation platform ('com.google.firebase: firebase-bom: 25.11.0')
  implementation 'com.google.firebase: firebase-analytics'
  implementation 'com.google.firebase: firebase-auth'
  implementation 'com.firebaseui: firebase-ui-auth: 6.3.0'

  implementation 'com.facebook.android:facebook-android-sdk:7.1.0'
  implementation 'com.twitter.sdk.android:twitter-core:3.3.0'

But if I update everything to the latest configuration:
gradle:4.1.0, gradle-6.5-all.zip
classpath 'com.android.tools.build:gradle:4.1.0'

distributionUrl = https \: //services.gradle.org/distributions/gradle-6.5-all.zip

firebase-bom: 25.12.0', facebook-android-sdk:8.1.0'
  implementation platform ('com.google.firebase: firebase-bom: 25.12.0')
  implementation 'com.google.firebase: firebase-analytics'
  implementation 'com.google.firebase: firebase-auth'
  implementation 'com.firebaseui: firebase-ui-auth: 6.3.0'

  implementation 'com.facebook.android:facebook-android-sdk:8.1.0'
  implementation 'com.twitter.sdk.android:twitter-core:3.3.0'

I have this crash on Firebase Crashlytics on many devices,
Pixel 3, Samsung Galaxy S9, Motorola Moto G (5S) Plus,
with Android 8 and 9:
AuthMethodPickerActivity.java line 221
com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity.populateIdpList
Fatal Exception: java.lang.RuntimeException: Unable to start activity
ComponentInfo {...... / com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity}: android.view.InflateException:
Binary XML file line # 1: Binary XML file line # 1: Error inflating class x
     at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2861)
     at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2943)
     at android.app.ActivityThread.-wrap11 (ActivityThread.java)
     at android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1630)
     at android.os.Handler.dispatchMessage (Handler.java:106)
     at android.os.Looper.loop (Looper.java:164)
     at android.app.ActivityThread.main (ActivityThread.java:6626)
     at java.lang.reflect.Method.invoke (Method.java)
     at com.android.internal.os.RuntimeInit $ MethodAndArgsCaller.run (RuntimeInit.java:438)
     at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:811)

Some help?

No, I have not removed anything. The error just says "x"

Yes, when the auth method picker screen is launched.
But in one particular case.
On first use it works.
I log out.
On second login, when I refuse to use Smart Lock and the auth method picker screen is shown.

The problem is only when updating "classpath 'com.android.tools.build:gradle:4.1.0'" which obviously needs "services.gradle.org/distributions/gradle-6.5-all.zip":
"i." and "ii." they go together and this creates the crash.
"iii." and "iv." they do not give problems.

@michelesacc thank you for the clarification, that's really strange and to be honest right now I have no idea why this is happening but it's definitely a bug!

@michelesacc have you been able to reproduce this issue lately ? I've tried to reproduce it and I am not able to do so.
If you are able to reproduce it, could you try with smart lock to be disabled ?

In debug (without Proguard) the error does not occur.
By publishing the App on the Play Store, so with Proguard enable, I also get the error in the pre-launch report, with or without smart lock.
I add my code (look, smart lock disable):
       List<AuthUI.IdpConfig> providers = new ArrayList<>();

        if (googleLogin) {

            providers.add(new AuthUI.IdpConfig.GoogleBuilder().build());
        }

        if (emailLogin) {

            providers.add(new AuthUI.IdpConfig.EmailBuilder().build());
        }

        if (phoneLogin) {

            providers.add(new AuthUI.IdpConfig.PhoneBuilder().build());
        }

        if (facebookLogin) {

            AuthUI.IdpConfig facebookIdp = new AuthUI.IdpConfig.FacebookBuilder()
                    .setPermissions(Arrays.asList("public_profile", "email"))
                    .build();
            providers.add(facebookIdp);
        }

        if (twitterLogin) {

            providers.add(new AuthUI.IdpConfig.TwitterBuilder().build());
        }

        AuthUI.SignInIntentBuilder signInIntentBuilder = AuthUI.getInstance()
                .createSignInIntentBuilder()
                .setIsSmartLockEnabled(false, false)
                .setAvailableProviders(providers);

@michelesacc I've enabled proguard in debug mode and I'm still unable to reproduce it, I'll keep trying to find a way to reproduce it. If you have anymore details on how to reproduce it (do you perhaps use a custom logo/style ?) or even a demo for it, would be much appreciated.

I use a logo.
But I also used the logo in the old version which didn't crash:
'com.android.tools.build:gradle:4.0.2'

@laurentiu-git thanks for trying to reproduce this!  I am going to leave this open but move it to the backlog for now as I don't think we'll be able to find the cause and solution for this in time for 6.4.0

Hello guys,
I updated the libraries, just to check if the situation has changed, but the "pre-launch report" of the Play Console (therefore with the App obfuscated and published on the Play Store for beta testers), always the same error.
Configuration used:
``
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
    minSdkVersion 19
    targetSdkVersion 30

....
implementation 'com.google.android.gms:play-services-auth:19.0.0'

implementation platform('com.google.firebase:firebase-bom:26.1.1')
implementation 'com.google.firebase:firebase-ads'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-config'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-database'
implementation 'com.google.firebase:firebase-functions'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-perf'
implementation 'com.google.firebase:firebase-storage'

implementation 'com.firebaseui:firebase-ui-auth:7.1.1'
implementation 'com.firebaseui:firebase-ui-storage:7.1.1'

implementation 'com.facebook.android:facebook-android-sdk:8.1.0'

implementation 'com.twitter.sdk.android:twitter-core:3.3.0'

If I use, for project:
        classpath 'com.android.tools.build:gradle:4.0.2'
and for "gradle-wrapper.properties"
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
everything is alright!!!
If I use the same configuration but only update the latter:
        classpath 'com.android.tools.build:gradle:4.1.1'
and for "gradle-wrapper.properties"
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
always same error:
Device(s) with issues
Motorola Moto E5 (pettyl) - Android 8.1
Samsung Galaxy S9 (US) (starqlteue) - Android 8.0
Google Pixel 3 (blueline) - Android 9
Nokia 1 Android Go (FRT) - Android 8.1
Huawei P8 Lite (hwALE-H) - Android 5.0
Exceptions
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eatat.app/com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity}: android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class x java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eatat.app/com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity}: android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class x java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eatat.app/com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity}: android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class x java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eatat.app/com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity}: android.view.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class x java.lang.NoClassDefFoundError: aewt java.lang.RuntimeException: Unable to start activity ComponentInfo{com.eatat.app/com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class x
Has anyone been able to replicate this error?

just if it helps, problem disappear if I add this:
if (android.os.Build.VERSION.SDK_INT > Build.VERSION_CODES.P) {

    providers.add(new AuthUI.IdpConfig.TwitterBuilder().build());
}

The problem is created by adding "Twitter Login" on my "providers" for Android version 8 and 9.


Add sanity checking

Add sanity checking so that the service can notify when strange errors are occurring on shows where it shouldn't. This is an easy way to check if there is a problem with the parsing.

Instead of querying the server for it's sanity let it check every item that leaves. If an item has an error file the anime for further inspection (text file).
Look into saving the line where the error has occurred to assist dev in debugging

Closed by ca9edc03a89ca73c82adfc93c9ce6fcb4e25f606


refactor(elements): remove ino-leading/trailing properties

Closes #252
Proposed Changes

Add utility function to check for slot content
Refactor components that have conditional slots to use the new utility function
Update stories and test where necessary

⚠ This introduces a BREAKING CHANGE due to the removal of the aforementioned properties which leads to typescript errors in consumer projects.

I will add some documentation for the slots

I will add some documentation for the slots

This is ready for review

This is ready for review


Packages step - second PR

https://user-images.githubusercontent.com/11712857/182467079-7f798eb0-e85a-4253-9eba-bd089bec5af8.mp4

Overall, great work! This is good enough to merge but there are a few issues. Please add issues to track the FormSpy error.

Done, #1467

And, when adding packages, going to review page, then back to the packages step a user will see no packages added. Can you add an issue to track that as well?

This bug should be fixed in 95a8878.


Use Tab to do code completion in the Editor

From<EMAIL_ADDRESS>on 2011-06-24T04:18:51Z
Dear Developers,
It would be nice to be able to use the tab key for calling code completion in the code editor. Pressing tab to call code completion and tab also to choose from completion list reduces keyboard work.
Now (2.0.12) it is impossible to set up this configuration via keyboard shortcuts.
One could ask, what if the programmer presses tab in order to indent and not to complete code?
Answer: when tab is pressed and only white spaces are previous to the
cursor, an indentation should be made instead of code completion. If
any not white space character stands previous to the cursor, code
completion should be called.
The following code is only a first approach (ignores keyboard shortcut settings) but does the trick:
$ diff codeeditor.py /d/Python/python-2.7/Lib/site-packages/spyderlib/widgets/sourcecode/codeeditor.py
1662c1662,1667
<             self.indent_or_replace()
---
>             # self.indent_or_replace()
>             line = unicode(self.textCursor().block().text())
>             if not line[:self.textCursor().positionInBlock()].strip():
>                 self.indent_or_replace()
>             else:
>                 self.emit(SIGNAL('trigger_code_completion(bool)'), True)
Result of diff -u codeeditor.py /d/Python/python-2.7/Lib/site-packages/spyderlib/widgets/sourcecode/codeeditor.py is attached to the issue.
Regards,
Roland
Attachment: code-completion-on-tab.patch
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=696

From pierre.raybaut on 2011-07-10T06:45:11Z
Thanks for your kind proposition, Roland.
I'm quite reluctant to implement this feature as is.
I understand your point of view, Steve, and I mostly agree with it. I shall also add that this feature would be conflicting with the "Tab always indent feature".
So the only way that I see to implement this is to add another option, say "Tab triggers code completion when cursor is at end of line" - still the conflict mentioned above will remain and adding another option like this is not as trivial as it may seem.
Status: ContributorNeeded
Labels: -Type-Defect Type-Enhancement Cat-Editor

From<EMAIL_ADDRESS>on 2011-07-05T14:04:20Z
This feature would break the editor for my use.  I frequently use the tab key to indent code in these circumstances.  With these rules I'm suddenly trying to code complete instead of indent as desired.  There is already a built in shortcut (ctrl+space) to perform code completion.  This is a common shortcut in the majority of editors I've used.  This seems like a custom feature for a very small subset of users.  If this is implemented there should be a global enable/disable flag to prevent breaking current functionality.

From pierre.raybaut on 2011-07-10T06:45:31Z
Summary: Code completion / Tab shortcut

From pierre.raybaut on 2012-03-18T14:10:20Z
Status: HelpNeeded
Labels: -Type-Enhancement Type-Enh

From<EMAIL_ADDRESS>on 2013-01-09T16:50:58Z
The eclipse command is Control+Space, and this would work here.
But this is an important issue, and it should be added regardless of the key command.
In fact, it could be added in the preference, without a default key binding.

From ccordoba12 on 2014-01-02T07:18:17Z
Summary: Use Tab to do code completion in the Editor  <span class="oldvalue"> (was: Code completion / Tab shortcut) </span>
Status: Accepted
Labels: MS-v2.3

From ccordoba12 on 2014-01-06T13:03:55Z
This issue was updated by revision c334981bcef6 .

Tab also re-triggers calltips when inside a function call
This also contains a partial fix for issue #887 .

Status: Fixed

From<EMAIL_ADDRESS>on 2014-02-04T19:41:11Z
This is rather useful for those coming from a shell or IPython perspective or background. Hitting the tab key for an auto completion and/or calltips behavior is almost instinctual for me after working with IPython for so long. With this keystroke configurable, this means less changes in workflow for folks on both sides of the aisle, those who come from say Eclips IDE or IPython.
Thanks.

From<EMAIL_ADDRESS>on 2014-02-10T11:54:38Z
Yeah, I take back my prior comment on this.  I like tab as auto complete when in the middle of the line always.  I switched to mac osx and started using sublime text.  For some reason spyder is having various issues that I haven't cared to take the time to debug...

From ccordoba12 on 2014-02-07T05:14:07Z
Yep, that was idea: to minimize friction and increase productivity. Even I am getting accustomed to it after using Ctrl+Space for so long.


image_retrainning can not run

my tensorflow  version is 1.0.0
I follow the image_retraining.md

curl -O http://download.tensorflow.org/example_images/flower_photos.tgz
tar xzf flower_photos.tgz
bazel build --config opt tensorflow/examples/image_retraining:retrain

but when I run
bazel-bin/tensorflow/examples/image_retraining/retrain
there is a errorLast login: Mon Mar  6 14:46:11 on ttys000
wangjingsideMacBook-Pro:~ ginthva$ cd tensorflow
wangjingsideMacBook-Pro:tensorflow ginthva$ bazel build --config opt tensorflow/examples/image_retraining:retrain
INFO: Found 1 target...
Target //tensorflow/examples/image_retraining:retrain up-to-date:
bazel-bin/tensorflow/examples/image_retraining/retrain
INFO: Elapsed time: 0.374s, Critical Path: 0.00s
wangjingsideMacBook-Pro:tensorflow ginthva$ bazel-bin/tensorflow/examples/image_retraining/retrain
Traceback (most recent call last):
File "/Users/ginthva/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/org_tensorflow/tensorflow/examples/image_retraining/retrain.py", line 79, in
import tensorflow as tf
File "/Users/ginthva/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/org_tensorflow/tensorflow/init.py", line 24, in
from tensorflow.python import *
File "/Users/ginthva/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/org_tensorflow/tensorflow/python/init.py", line 124, in
from tensorflow.python.platform import test
File "/Users/ginthva/tensorflow/bazel-bin/tensorflow/examples/image_retraining/retrain.runfiles/org_tensorflow/tensorflow/python/platform/test.py", line 50, in
import mock                # pylint: disable=g-import-not-at-top,unused-import
ImportError: No module named mock
I also uninstall mock and reinstall, but it doesn't work. what should I  do?

Please provide details about what platform you are using  (operating system, architecure). Also please include details of how you installed TensorFlow. We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!

It's so happy to receive your response, thank you very     @prb12
My system is macOS Sierra 10.12.
3,2.9 GHz Intel Core i5,
8 GB 2133 MHz LPDDR3
Intel Iris Graphics 550 1536 MB
I install tensorflow according  to install_sources.md

My system is macOS Sierra 10.12.
Python 2.7.13
GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-8<IP_ADDRESS>)
bazel release 0.4.4-homebrew

My system is macOS Sierra 10.12.
Python 2.7.13
GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-8<IP_ADDRESS>)
bazel release 0.4.4-homebrew
wangjingsideMacBook-Pro:tensorflow ginthva$ pip install mock
Requirement already satisfied: mock in /usr/local/lib/python2.7/site-packages
Requirement already satisfied: pbr>=0.11 in /usr/local/lib/python2.7/site-packages (from mock)
Requirement already satisfied: funcsigs>=1; python_version < "3.3" in /usr/local/lib/python2.7/site-packages (from mock)
Requirement already satisfied: six>=1.9 in /usr/local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from mock)

The symptoms seem related to the problems in #7980.  Could you please see if the solution in that thread works for you?

Having the same issues, have reinstalled tensorflow and pip, still getting same error?

Same issue here.
bleach (1.5.0)
funcsigs (1.0.2)
html5lib (0.9999999)
Markdown (2.2.0)
mock (2.0.0)
numpy (1.12.1)
pbr (3.0.1)
pip (9.0.1)
protobuf (3.3.0)
setuptools (36.0.1)
six (1.10.0)
tensorflow (1.2.0rc0)
Werkzeug (0.12.2)
wheel (0.29.0)

Still tell me ImportError: No module named mock
I also tried the methods in #7980 , none is working for me.
My system info :
macOS Sierra 10.12.4
Python 2.7.13
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)