feat: add accessible text alternative in when a graphic and link

This PR adds accessible text to the SVG when used inline so that people using assistive technologies (ATs) can read the dynamic badge values.
It also fixes the tab order and content of links so they are read out to ATs.
This will not help GitHub for instance which post-processes SVGs into PNGs, though we can advocate for this functionality. 😄♿
Tested in:

Chrome + Narrator (Windows)
Chrome + NVDA (Windows)
IE 11 + Narrator (Windows)
IE 11 + NVDA (Windows)
Chrome Mobile + TalkBack (Android)

Parallel to https://github.com/badgen/badgen/pull/62
Related issues:

https://github.com/badges/shields/issues/3795
https://github.com/badges/shields/issues/229

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @evelynhathaway!

  Generated by :no_entry_sign: dangerJS against 3901a0eca92028681df9fba637445df70a36e18d

This PR doesn't fix the pre-existing compatibility issue with NVDA + IE not handling aria-hidden and SVG links correctly. I gave it a go, but it doesn't seem possible without upstream fixes with supporting SVG links.
Overall, this improves the AT-user experience when used with <object> embeds like on the footer of the website. Maybe in the future, GitHub will add  support to their markdown parser.

Just wanted to say a quick thanks for this important contribution @evelynhathaway! I or one of the other maintainers will take a look at this soon!

Cheers for having a look at this. I haven't looked at the code properly yet, but I've had a quick test on the staging deploy ( https://shields-staging-pr-5289.herokuapp.com/ ) and generating a badge with links doesn't render any text for the flat/flat-square/pastic badges (social and FTB seem to be ok). So for example, this:
 - https://img.shields.io/badge/badges-shields-blue?link=https%3A%2F%2Fgithub.com%2Fbadges%2F&link=https%3A%2F%2Fgithub.com%2Fbadges%2Fshields%2F&style=flat
renders as expected, but the equivalent call on the review app:
 - https://shields-staging-pr-5289.herokuapp.com/badge/badges-shields-blue?link=https%3A%2F%2Fgithub.com%2Fbadges%2F&link=https%3A%2F%2Fgithub.com%2Fbadges%2Fshields%2F&style=flat
shows no text (the staging deploy might take a few seconds to spin up). Can you have a look at fixing that before we review this please.
This is going to be a bit of a fiddly diff to review, but I'll try and carve some time out to have a look at it. @calebcartwright - given we're close to changing our raster proxy, as part of the review, can you try running these through squint (once fixed) and see if there's any impact of these changed to the rendered SVGs on rasterization?

@chris48s Fixed!
I know it's a big PR that reworks a lot, so I am definitely open to any suggestions on how to make it simpler. This was a bigger task than I thought for someone not familiar with the codebase. Haha.

As it stands, this PR introduces a change in behaviour. Right now, if we create a social badge with only one link, only the left side of the badge is a link (this is different to the other 4 badge styles where the whole badge is a link in this situation). This PR changes that behaviour. Compare
http://img.shields.io/badge/badges-shields-blue?link=https%3A%2F%2Fgithub.com%2Fbadges%2F&style=social
with
https://shields-staging-pr-5289.herokuapp.com/badge/badges-shields-blue?link=https%3A%2F%2Fgithub.com%2Fbadges%2F&style=social
Bringing them into line probably simplifies things, but I have no idea if they're currently different by design or if its just inconsistency. Can anyone remember if they are different for good reasons or not? I wouldn't be opposed to just changing it if this makes the code simpler tbh.

I am definitely open to any suggestions on how to make it simpler. This was a bigger task than I thought for someone not familiar with the codebase

Having read it all over, I have written some notes on tidying this up, but I am also conscious reading over them that this is quite involved for a first contribution and where to go next with it is a bit subjective. If you're keen to get further into it, I'm happy to post some thoughts but also if you're not (my instinct is that this is a PR motivated by caring about accessibility in widely used projects rather than caring specifically about this project per-se?) I think it would be reasonable to review up to the point where we are happy with the core change/impact on the rendered outputs and one of the maintainers can pick up a bit of refactoring/tidy-up as a follow-up.
I'll leave it to you to lead us on where you want to go with it..

Bringing them into line probably simplifies things, but I have no idea if they're currently different by design or if its just inconsistency. Can anyone remember if they are different for good reasons or not? I wouldn't be opposed to just changing it if this makes the code simpler tbh.

If I had to guess, it's that the difference wasn't by design. I'm content with the change 👍
I noticed from these two links that the hover appearance and targets have changed slightly, though I think that's not blocking and could be looked at in a follow-on if anyone is interested. (You can compare these three links to see what I mean.)

Old one link: http://img.shields.io/badge/badges-shields-blue?link=https%3A%2F%2Fgithub.com%2Fbadges%2F&style=social
Old two links: http://img.shields.io/badge/badges-shields-blue?link=https%3A%2F%2Fgithub.com%2Fbadges%2F&link=http://example.com&style=social
New one link: https://shields-staging-pr-5289.herokuapp.com/badge/badges-shields-blue?link=https%3A%2F%2Fgithub.com%2Fbadges%2F&style=social

Just to clarify as this is quite subtle stuff now.
At the moment on shields.io, hovering over the left side when there is a link slightly darkens the background fill, whereas on staging it doesn't change it (although there may be a slightly flicker just as you hover). I hadn't spotted that until you pointed it out.
so on live you've got

un-hovered

and hovered

whereas on staging it is like

with or without hover

Is that the only difference you're calling out, or is there another?

Yea, quite subtle stuff (and definitely not blocking). No, it's about how the hover state activates and deactivates. There is actually a hover behavior on the left side but it only activates along the border instead of over the whole path. I think the easiest way to show this would be with a screencap, but I think you can see what I mean if e.g. you slowly move the mouse from outside the left side to the center of the left side. On the old one the hover activates and stays activated, and on the new one it's janky. On the new one, the behavior on the right side is a bit cleaner though I think ideally the hover behavior would apply to the whole area. (I'm on Firefox; it's possible this is different in different browsers.)

activates along the border instead of over the whole path

You're correct. The left link's click target rectangle is also an overlay. I moved it to its correct order in the SVG so that it once again overlays over the text. I've also moved the :hover to match the new link behavior if that behavior is preferred. It now activates the hover styles when hovering over the <a>, rather than the overlay. (e.g. hover over either side of a single link social badge)
If the old behavior works better, I can add the special cases for that just let me now.

Having read it all over, I have written some notes on tidying this up, but I am also conscious reading over them that this is quite involved for a first contribution and where to go next with it is a bit subjective.
[...]
I'll leave it to you to lead us on where you want to go with it..
@chris48s

Either way, let me know what works best for the project, and I'll do my best to help out. 😄

Nice. In terms of the changes to the SVG output, I think this is now looking good :+1: Thanks
@calebcartwright - it would be useful to hear from you just to check there's nothing we need to tweak re: rasterization. My instinct is its probably fine, but I'd like to know if there's something here that is going to give us any additional problems with librsvg (beyond those we already have :grimacing: )

In terms of code structure, this is somewhat subjective. There's a tradeoff here between DRY, seperation of concerns and keeping the control flow easy to follow and we probably can't achieve perfection on all of those, but these are my thoughts:
I think the main problems here are we're doing too much directly in renderBadge() and the handling of links is too fragmented. Essentially the way this should ideally be layer-seperated is Flat/FlatSquare/Plastic/forTheBadge()/social() should accept the directly user-supplied params (label, message, logo, links, etc), turn them into XML fragments and then hand the XML strings (or variables calculated during that process) off to renderBadge() to assemble a valid SVG output. I think we were actually breaking our own rule here with the original implementation by passsing links straight to renderBadge() (we should probably have been calling renderLinks() elsewhere) but I think with these changes we're now leaking too many of the user input params all the way through here.
I think what I'd probably do is call createAccessibleText() in Badge.constructor/social()/forTheBadge(), extract a renderTitle() function (which returns '' or <title...) and do the same with that (passing in title). The downside there is we're then calling those things in 3 places (your solution is more DRY), but that's true of renderLogo(), renderText() etc too.. Broadly the thinking here is Flat/FlatSquare/Plastic are slight variations on the same thing and should code-share as much as possible via inheritance whereas social() and forTheBadge() are just different things and there is some duplication :shrug:
I think optionally wrapping the whole body in an <a> tag probably can live in renderBadge(), but we could do it outside in another function. Either way, the thing I found hardest to get my head round while reading this was this pattern in social() and forTheBadge():
if (hasLeftLink && hasRightLink) { ...

//bunch of other stuff

renderBadge(
  {
    links: hasOnlyLeftLink ? links : []
    ...
   }
)

..and then regardless of whether we supply hasLink to renderBadge(), its always hasLeftLink || hasRightLink (but sometimes we've manually fiddled with links before we calculate it).
I reckon what we probably want to do here is pull out all the hasLeftLink / hasRightLink stuff out of renderBadge(), maybe into another helper function (shouldWrapBodyWithLink()?? Naming things is hard). Maybe social/FTB need their own slightly different version of this logic? Another reason to pull it back a step in the proces.. Then we make the decision "are we going to wrap the whole thing in an <a> tag?" in Badge.constructor/social()/forTheBadge(). Then at the point we get to actually calling renderBadge() we've made that decsion and we just pass it a param link (which by this point is either a URL string or null/undefined/whatever) and the logic in renderBadge() becomes just
${ link ? `<a target="_blank" xlink:href="${link}">${main}</a>` : main }

I think bringing all that back a layer into Badge.constructor/social/forTheBadge should allow us to clean up this whole // Override for aria if links are handled elsewhere (i.e social style) business and make the link rendering logic a bit easier to understand.
What do you think? If you agree/want to pick that up, that would be great. If you don't really have the appetite for it I could pick it up.

@chris48s

@calebcartwright - it would be useful to hear from you just to check there's nothing we need to tweak re: rasterization. My instinct is its probably fine, but I'd like to know if there's something here that is going to give us any additional problems with librsvg (beyond those we already have grimacing )

Have checked locally with the same battery of test badges I've been using with the upstream svg source pointed to the review app for this PR (https://shields-staging-pr-5289.herokuapp.com) instead of Shields.io; No change/issues observed

You're correct. The left link's click target rectangle is also an overlay. I moved it to its correct order in the SVG so that it once again overlays over the text. I've also moved the :hover to match the new link behavior if that behavior is preferred. It now activates the hover styles when hovering over the <a>, rather than the overlay. (e.g. hover over either side of a single link social badge)

Wow, this is looking great! 😍 Thank you!

What do you think? If you agree/want to pick that up, that would be great. If you don't really have the appetite for it I could pick it up.
@chris48s

I took a shot at it in 14edc13ff7ee347a6dd4b63ce6d938b8d443c1ea. Let me know what you think. I didn't move some things out entirely since some directly or indirectly depended on the SVG tag.


Instrument send_offers with attr instead of at use

This will have one extra span in ConnectionEstablished.
Originally suggested by @holzeis in #2798

bors r+


Ng schematics pipe

The module option still needs to be implemented. I didn't see an example of that yet in the component schematic so I am not sure how the desired implementation should go (looks like it will probably need a resolveModulePath utility function).
@Brocco can you check this out and let me know if I got everything (besides the module option) please? 😄

Thanks for the initial feedback @Splaktar! Got those code format changes made and changed skip-import to camel case.

This looks good, sans the module import code which I'm refactoring for the angular-app schematic. I should have that pushed in a few hours which will allow you to update this PR.

@jschwarty PR #29 contains the updates for module resolutions.


root

I have a problem with the root. With xelatex everything is fine but with lualatex only when unicode-math is not loaded:
\documentclass{article}
\usepackage{unicode-math}
\begin{document}
$\sqrt[3]{\frac1n}$
\end{document}

With unicode-math:

Without:

running up-to-date TL2017 under Linux (Ubuntu)

Apologies, there is a bug in the most recent update which I've fixed but not yet uploaded...

I think this is now fixed as of v0.8h…


Update package.json to run in electron

Electron was failing due to System being undefined.

I think it's better just to update the Readme.
Run electron as:
electron index.js

No need to change the package.json

@genadis seems fair

I think that would be more confusing, though. Electron is usually run as electron ., and I wonder about compiling the package to an executable, that may break with the current package.json (I'm still grasping electron, so excuse the uncertainty in that statement).

@pavlindrom It's not that difficult to change the documentation to show both options.

If you swap regularly between browser and electron use @genadis electron index.js
If you use electron every time or are packaging and so-forth use the change I submitted

@petersgiles that works for me


Update docker-compose files

Actualizing docker-compose files with new versions of binaries stored on Github registry. Updated docker/acra-build.dockerfile with ability to compile binary files with native Golang netgo DNS resolver.
Corresponding changes displayed in CHANGELOG_DEV.md.

[+] Change is covered by automated tests
[+] The coding guidelines are followed
[+] Public API has proper documentation in the Acra documentation site or has PR on documentation repository
with new changes
[+] CHANGELOG.md is updated (in case of notable or breaking changes)
[+] CHANGELOG_DEV.md is updated
[-] Benchmark results are attached (if applicable)
[+] Example projects and code samples are up-to-date (in case of API changes)

I propose to leave this PR open until @shadinua confirms that all is okay with other cases of resolving and after that merge. To not merge not tested configurations. To not revert changes after that with new one PR)


[SAML] Idp Connection Assertion Consumer Service (ACS) URL param is wrong for super tenants.

Describe the issue:
Common auth endpoint for super tenant should be without the t/carbon.super content. With this, IdP connection will not work.

How to reproduce:

Create a SAML Connection
Verify the Assertion Consumer Service (ACS) URL field

Expected behavior:
Should be https://localhost:9443/commonauth
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: [e.g., IS 5.10.0, IS 5.9.0]
OS: [e.g., Windows, Linux, Mac]
Database: [e.g., MySQL, H2]
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

Part of https://github.com/wso2/product-is/issues/18558


[image_picker] Improves documentation around the destruction of the MainActivity.

Improves the documentation around the destruction of the MainActivity by the Android OS while the Intent.ACTOIN_GET_CONTENT or MediaStore.ACTION_IMAGE_CAPTURE is executing as there is still some confusion regarding this phenomenon (see flutter/flutter#48016).
Resolves flutter/flutter#93807.
Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [relevant style guides] and ran [the auto-formatter]. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the [CLA].
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
[x] I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style].
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] All existing and new tests are passing.

I forgot to say: thanks for taking this :) It's been on my to-do list but I hadn't gotten to it.


calico-kube-controllers-789dc4c76b-779wx stuck in container creating phase

Summary

I'm trying to set up the Kubernetes k8s cluster manually with Calico as the CNI part.
I have referred to the Kubernetes official docs for bridge network setup and docker installation and Kubernetes tool setup.
Then with the help of Quickstart for Calico on Kubernetes  I have setup the calico CNI pods under the calico-system namespace.
The cluster is updated to READY state. But when I look into the particular calico-system  namespace, I have got the following status

calico-kube-controllers-789dc4c76b-779wx   0/1     ContainerCreating   0          15m
calico-node-b2c8b                          1/1     Running             0          15m
calico-typha-549dc6597-jfkpt               1/1     Running             0          15m
csi-node-driver-nmsmx                      0/2     ContainerCreating   0          15m

When I look into container creating pods using describe commands, I got these responses below for both the pods.

Events:
  Type     Reason                  Age                 From               Message
  ----     ------                  ----                ----               -------
  Warning  FailedScheduling        16m                 default-scheduler  0/1 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/not-ready: }. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling..
  Normal   Scheduled               16m                 default-scheduler  Successfully assigned calico-system/calico-kube-controllers-789dc4c76b-779wx to kali
  Warning  FailedCreatePodSandBox  16m                 kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "454652cdd673c537f7a88fe5263a84e863658755afaa2ed44834845c33590820": plugin type="calico" failed (add): failed to find plugin "calico" in path [/usr/lib/cni]
  Normal   SandboxChanged          69s (x71 over 16m)  kubelet            Pod sandbox changed, it will be killed and re-created.

But the calico is installed in the /opt/cni/bin directory path.

Expected Behavior

I expect it to update the status to running format.

Your Environment

Calico version: Latest
Orchestrator version  Kubernetes :v1.27.1
Operating System and version: Kali Linux
Running environment: Linode Shared Public VM.

just  about CNI  workdir .....  keep kubelet and calico CNI same ..
check  kubelet CNI workdir config ,
/opt/cni/bin  is default CNI bin workdir

I got the Issue fixed and resolved. @gaopeiliang  Thank you for your support.

@NareshChinnusamy Could you please elaborate on how you resolved the issue?

When I run the manifest for calico CNI driver setup. The CNI executables
are created inside the /opt/cni/bin/ folder.
But the kubelet service is looking for CNI executables in the /usr/lib/cni
folder. So the calcio pods are still in the container creating phase.
We had to perform the following steps to get them running.

mkdir -p /usr/lib/cni

cp -r /opt/cni/bin/* /usr/lib/cni

systemctl restart kubelet.service

kubectl get pods -n calico-system - to check all the cni pods are in
running status.

On Sat, Oct 7, 2023 at 7:47 PM faisalchishtii @.***>
wrote:

@NareshChinnusamy https://github.com/NareshChinnusamy Could you please
elaborate on how you resolved the issue?
—
Reply to this email directly, view it on GitHub
https://github.com/projectcalico/calico/issues/7581#issuecomment-1751724098,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVRG53XPJPIIHNUVLMHJ7T3X6FQADAVCNFSM6AAAAAAXHYQWKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRG4ZDIMBZHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


WB chacha20's reference

Is the white box implementation of chacha20 based on existing papers? Could you please provide a reference link?
Thank you very much.

Hi @Clinale there is no paper, and I hope you don't intend to use it for any serious cryptography work.
The reality is that Chacha20 algorithm does not allow a way to produce a Whitebox such as you find for AES; this code will simply expand the key and set it up statically as precomputed data, so it is relatively simple to obtain the actual key.
This repository was created purely as an experiment, exploratory work around the Chacha20 algorithm.
Regards,
Guilherme.

The key stream generation algorithm of chacha20 can be simplified as follows:
XOR-MATRIX=X+X^20
where X^20 represents performing 20 rounds of chacha20_core_qr operations on X.
When encrypting plaintext PLAINTEXT, simply XOR PLAINTEXT with XOR-MATRIX.
According to the simplified algorithm mentioned above, the key stream generation algorithm of chacha20 can be modeled as
F (x)=x xor P (x)
where F represents the output of the key stream generation algorithm and P (x) represents the output after 20 rounds of chacha20_core_qr operation.
According to cryptographic knowledge, when x has enough bits and P (x) is a random permutation, F (x) is a one-way function. In a one-way function, for each input, the function value is easy to calculate (polynomial time), but given a random input function value, it is difficult to calculate the original input (deterministic turing machines cannot be used to calculate in polynomial time).
Therefore, the key can be expanded and hidden in the lookup table XOR-MATRIX. Even if the attacker knows the value of XOR-MATRIX, due to the unidirectional nature of the chacha20 round function, the attacker cannot reverse solve the original key value by selecting plaintext attacks.
Reference:
Is the ChaCha20 block function reversible using known plaintext?

Remember we're interested in protecting data too, not just the key.
We usually say to protect the key just because it is what you use to obtain access to the data when not using whitebox cryptography. But in whitebox cryptography the code represents the key.
Ciphers such as Chacha20, XChacha20, etc in which there is only one code block used both to encrypt/decrypt aren't good for whitebox cryptography simply because if your adversary possess the code (which we assume they do), then they can encrypt or decrypt data as they will. The key becomes a superfluous accessory.
Consider the model:
cipher_text = plain_text XOR chacha_stream(key, nonce)
plain_text = cipher_text XOR chacha_stream(key, nonce)

The chacha_stream(key, nonce) is a pseudo-random generator that depends on the key and nonce. So in a whitebox unit of it you can either embed just the key (as this code does) or both the key and the nonce:

In the first case, if the nonce isn't known, then the adversary can brute-force in just 2^16 (65536) rounds.
In the second case now the adversary has everything to encrypt/decrypt data, no brute-force needed.

I recommend you to take a look at the AES Whitebox. AES has different modes of operation, in which ECB is the one of interest for whitebox cryptography just because you need two blocks of code: an encrypting one and a decrypting one. That means if your adversary owns one part of the code, they get only 50%, therefore they are obliged to break the embedded tables if they want to fully operate. The mentioned repository doesn't implement the decrypting block, so it is as limited as Chacha20 whitebox regarding overall security.
NOTE: There is a long time since I worked with this code, so if I make some mistake please apologize.


feat: eth manual related assets data

Description
Adds all ETH related assets (WETH and ETH on Arbitrum and Optimism) as manual related assets, on top of the Zerion-fetched related assets.
Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes https://github.com/shapeshift/web/issues/6256
Risk

High Risk PRs Require 2 approvals

Low, though the generate script could be borked. I wasn't able to run it because of 429s on regular connection/VPN, and extremely slow (30mn expected) while tethered, so the diff was manually crafted from running a monkey patch with the Zerion-fetching disabled locally.

What protocols, transaction types or contract interactions might be affected by this PR?

Testing

Existing related assets are still happy
ETH now shows WETH and ETH on Arbitrum/Optimism as related assets
WETH related assets look sane against develop (i.e now all ETH assets vs. WETH assets previously)

Engineering

Diff looks sane
Asset generation script is still happy

Operations

☝🏽

Screenshots (if applicable)

Current dependencies on/for this PR:

#6273  👈
develop

This stack of pull requests is managed by Graphite.

Couple nitpicks and tests need fixing, but overall looks good!


Ability to activate a controller function

I just thought that this might be a nice to have and hopefully it gets feedback from others.. Lets use this github issue as the scenario
So My route to view the issue is issues/:id and lets say that we also have the actions on an issue like close. We might want to link to these and run the action so we'd want an optional parameter like issues/:id/action.
Currently in UI-Router we'd have to create two routes so that issues/:id and issues/:id/:action both resolve. Then we have to check state params and call the right function.
It would be kind of sweet if I could link to issues/my_id/close and it would resolve with state: { id: 'my_id', action: 'close' } and it would instantiate my controller and then try to call a function called close() on my controller if it exists.
Thoughts?

I was thinking that maybe you define the route param as &action and if it's prefixed with & then try and call it as a function.

Having something like this would save us from having to do boiler plate code  like this commit: https://github.com/exceptionless/Exceptionless.UI/commit/c24a6f14411e224c05b31d42b0799d2b543a41b6

I think this is an interesting idea, but I don't think it really needs to be a default behavior.
Right now, you could do it like this:
class ActionClass {
  constructor(routeParams) {
    this.params = routeParams;
  }
  activate() {
    if (this.params.action && typeof this[this.params.action] === 'function') {
      this[this.params.action]();
    }
  }
}

I've written the above example with ES6 classes because it's less verbose, but this trivially maps to ES5.
If you want to mix this behavior into other controllers, you could extend this class.

Awesome, thanks for that.
On a side note: Is there any utility functions exposed to convert mark-fixed to markFixed (like how directives are resolved?) It would make it easier to call a function based on a friendly url.

IIUC, this sounds like it would be begging for cross-site-scripting attacks.
For example, imagine passing around this deceptively labeled link:
See some cute kitties

Actions should always require user interaction beyond navigating to the page...

You still have checks server side to see if they can do something /
prompt a dialog when the method is called to confirm the action...
It's just removing boilerplate..
On 1/16/15, Evan Winslow<EMAIL_ADDRESS>wrote:

IIUC, this sounds like it would be begging for cross-site-scripting
attacks.
For example, imagine passing around this deceptively labeled link:
See some cute kitties

Actions should always require user interaction beyond navigating to the
page...

Reply to this email directly or view it on GitHub:
https://github.com/angular/router/issues/53#issuecomment-70346969

--
Thanks
-Blake Niemyjski

Server side checks are not going to save you here. XSS was not quite the right term. This is more similar to cross site request forgery. If an attacker can convince an unsuspecting user to click on a link that takes some destructive action,
then that is a security problem.
Throwing up a dialog to confirm the action would solve this issue.

@ewinslow is correct.
I'm not advocating this pattern, but I think it should be possible to implement at the application layer.
I think it's worth adding this to the router's documentation as a note on security.

Yes, I agree with you on security too. But that should be left up to the developer to implement a check/prompt client side.

I'm going to close this since there are a variety of ways to implement it given the hooks exposed to controllers.
If this question comes up repeatedly, I'll add something about it to the documentation. For now, I think just being able to point devs with a similar question to this thread is good enough.
Thanks!


no such file or directory: /User/xx/development

Steps to Reproduce
while I run
cd ~/development  in my Mac
it shows that

...
...
...

Logs

Logs

That's your filesystem, not flutter related


Connecting QBitNinja with Litecoin

I've successfully setup QBitNinja using Bitcoin Core. I am having trouble configuring with litecoin. The readme just specifies with Bitcoin Core. Is it safe to assume that i'll need to install litecoin core to use the altcoin capabilities with Litecoin? Would that also mean that if I used an altcoin that I would need to use a different component than Bitcoin Core?

If you want Litecoin, you need Litecoin node software. Chain should be LTC, the rest should be the same. (I have not tried it though, so let me know how it goes)

In Litecoin Core [testnet], it shows im connecting for a transaction. My problem is using clientQBitNinja.GetBalance. The Operations.Count always return 0. The pub key it's using has 10 test coins there and its using that pub key to get the balance. but without this operations count, i'm unable to see the unspentCoins and effectively get the balance. Do you have any ideas on what I can try to make it work?

Please read the doc: "QBitNinja.Listener.Console.exe --Listen"

how do you instanciate clientQBitNinja ?

QBitNinjaClient clientQBitNinja = new QBitNinjaClient(NetworkAPI, m_network);
The NetworkAPI is assigned "http://tapi.qbit.ninja/"
& m_network is assigned NBitcoin.Altcoins.Litecoin.Instance.Testnet

http://tapi.qbit.ninja/ only support BTC you need your to host your own server.

Follow https://github.com/MetacoSA/QBitNinja#setup-the-front

After much testing, I think the problem is how I have litecoin.conf set up. Is there anything you would recommend changing in this?

litecoin.conf configuration file. Lines beginning with # are comments.

IMPORTANT: do not use the daemon's wallet
disablewallet=1
datadir=/ltc
Network-related settings:
Run on the test network instead of the real lite network.
testnet=1
Listening mode, enabled by default except when 'connect' is being used. Port 19335 (TestNet4)
listen=1

JSON-RPC options (for controlling a running Litecoin/litecoind process)

server=1 tells litecoind to accept JSON-RPC commands
server=1
Accept public REST requests (default: 0)
rest=1
RPC username or password is not specified, so a cookie is written to the /ltc/testnet4 directory for the CLI to use for auth

The timeout has nothing to do with this.  The front does not connect to RPC. I don't really know how to troubleshoot this. If you can manage to get azure logs for the front it would be good.

It's strange but when I enabled "Application Logging" for the webapp in Azure, it started working. Even after disabling "Application Logging". My app goes through the flow and I get a Transaction Success result from
BroadcastResponse broadcastResponse = _clientQBitNinja.Broadcast(_customerTransaction).Result;
But the wallets and testnet do not reflect the transaction.
I did retrieve the web server logs from Azure, ill email them to you.

please do not email, just copy paste here. What is your server url?

https://alarisbattles.azurewebsites.net

OK, let's try to solve it, can you try to run the front under visual studio with the same config as the website?

I started running QBitNinja in Visual Studio with the same config as the website.

Any exception or anything you can notice? You have the same timeout?

When reviewing the logs there were a few exceptions, this was one of them:
System.TimeoutException, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089The client could not finish the operation within specified timeout.   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NBitcoin.Indexer.IndexerClient.<GetChainChangesUntilFork>d__22.MoveNext()
at NBitcoin.Indexer.ChainChangeEntryExtensions.UpdateChain(IEnumerable`1 entries, ChainBase chain)
at QBitNinja.QBitNinjaDependencyResolver.UpdateChain()
at QBitNinja.UpdateChainListener.<Listen>b__10_0(Object _)
at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireQueuedTimerCompletion(Object state)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
System.TimeoutException: The client could not finish the operation within specified timeout.

I should be able to fix that, can you send me your account storage creds by mail?

Sent

@TJvrDev can you verify that your storage account and your front website reside in the same datacenter ? (region)

It looks like the storage account resides in East US & West US. The website resides in Central. Ill get them in the same region.

Alright I have Web App residing in East US now. I did have to create a new web app but I applied to updated PublishSettings for QBitNinja and republished it.

The new server url is:
http://alarisbattlesapp.azurewebsites.net/

storage account resides in East US & West US a storage account can't live in two different place.
It does not seem to have resolved the issue.
I will try something.

Actually it solved, it, it is not timing out now.

It is quite slow though... Querying on an address take a while.

Actually timing out. It does not make sense. What is your machine specification for the front? I am wondering if the server does not get restarted because it uses too much memory or something like this. One sec, I check on my servers.

Ok so this is my tier for the service plan Basic: 1 Large

Before it had:
100 total ACU
1.75 GB memory
Now has:
400 total ACU
7GB memory

It is still timing out it seems. That is super strange. Trying to replicate it as much as I can.

Can you get the applications logs on your server at all? Is it still this timeout?


prepare App Store listing for Bank Wallet

I need titles for these images.

@Dianaaiym
looks good for the most. minor changes:

one screen for each tab: balance, transactions, settings
remove header/title texts from images
don't show receive controller on balance tab
settings tab: show settings parent page, so that all options are visible


Update http4s-blaze-client, http4s-dsl to 0.22.3

Updates

org.http4s:http4s-blaze-client
org.http4s:http4s-dsl

from 0.22.2 to 0.22.3.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

labels: library-update, semver-patch

Superseded by #506.


definitive way of implementation

Hi all
sorry if i missed something here, but i followed the documentation provided in the link:-
https://medium.com/swlh/running-jupyterhub-with-istio-service-mesh-on-kubernetes-a-troubleshooting-journey-707039f36a7b
and at the bottom of the page it says that i have to patch kubespawner, and a link to a PR which puts a service in front of the spawned pod, i dont know if i no longer need to use this for jupyterhub with istio or there is some other way of deploying that i am not aware of?
any help much appreciated
Thanks in advance
Tony

Hi Tony, The patch was needed with the jupyterhub version at the time and is likely needed now too unless that functionality is available out of the box now. Here is a working version of JH with istio that I had prepared for my talk at ServicemeshCon. https://github.com/harsimranmaan/servicemeshcon2020/tree/main/jh-patch. The project has a working version of JH with this proxy.

harsimran,
you are a gentleman :)
If we ever meet i owe you a beer! lol
thanks very much


Future panics if it was polled immediately after it was submitted to the CpuPool

This snippet of code reproduces the panic.
extern crate futures;
extern crate futures_cpupool;
use futures::Future;
use futures_cpupool::CpuPool;

fn main() {
    let f = futures::lazy(|| Ok::<u32, u32>(1));
    let pool = CpuPool::new(1);
    let mut c = pool.spawn(f);
    let _ = c.poll();
}

Yep, when I run that code I get the error message:
thread 'foo' panicked at 'no Task is currently running'

The problem is that Future::poll() is only allowed to be called from a task, because it needs to be able to arrange to be called later if it's not currently ready. (#250 and #136 have some discussion about how this kind of this can be confusing.) Typically poll() is used in implementations of the Future trait, but not in higher level code.
If you don't need to do any async I/O, then Future::wait() might be sufficient for your needs. It handles creating a task on which to run a future:
    let f1 = futures::lazy(|| Ok::<u32, u32>(1));
    let f2 = futures::lazy(|| Ok::<u32, u32>(2));
    let pool = CpuPool::new(1);
    let mut c1 = pool.spawn(f1);
    let mut c2 = pool.spawn(f2);
    println!("{:?}", c1.join(c2).wait());

If you are going to need to do async I/O, then you'll need some way to manage tasks that are waiting on external events. The easiest path forward in that case is to add a dependency on the tokio-core crate and launch a tokio_core::reactor::Core.

I think @dwrensha hit the nail on the head, so closing in favor of the linked issues.

@dwrensha then how do I know a task is finished and get the result outside the worker thread of CpuPool if I'm using the async way? I currently using code like this to check if a future is resolved and send the result to elsewhere in my main thread:
// push the future
fn push_futures(&mut self, fut: BoxFuture<HQMessage, Error>) {
        let fut = self.future_pool.spawn(fut);
        self.pending_futures.push(fut);
}

// see if they are finished
fn resolve_futures(&mut self, cli: &mut RtmClient) {
        let unresolved: Vec<_> = self.pending_futures
            .drain(..)
            .filter_map(|mut fut| {
                if let Ok(Async::Ready(HQMessage(channel, user, text))) = fut.poll() {
                    let _ = cli.send_message(&channel, &format!("<@{}> {}", user, text));
                    None
                } else {
                    Some(fut)
                }
            })
            .collect();
        self.pending_futures = unresolved;
    }

@alexcrichton I think there's a legitimate use-case here which is not currently supported (or at least not easy): the ability to check whether a future is complete without setting up any unpark events. (Say you have a real-time application rather than an event-based one).
At the moment the way to do this is to spawn the future, and then poll the spawned future, passing in a dummy Unpark value.

@alexcrichton I think there's a legitimate use-case here which is not currently supported (or at least not easy): the ability to check whether a future is complete without setting up any unpark events. (Say you have a real-time application rather than an event-based one).
At the moment the way to do this is to spawn the future, and then poll the spawned future, passing in a dummy Unpark value.

yeah, after looked into the source code, thats how I solved this problem.
On Sun, 1 Jan 2017 at 11:43 PM Diggory Blake<EMAIL_ADDRESS>wrote:

@alexcrichton https://github.com/alexcrichton I think there's a
legitimate use-case here which is not currently supported (or at least not
easy): the ability to check whether a future is complete without setting up
any unpark events. (Say you have a real-time application rather than an
event-based one).
At the moment the way to do this is to spawn the future, and then poll the
spawned future, passing in a dummy Unpark value.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/alexcrichton/futures-rs/issues/289#issuecomment-269907692,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA88zry9Gte-Ran6GYX8gI9s0sw4ETQsks5rN8mygaJpZM4LLcwW
.

--
Young Wu
Data Scientist
Data Team, Strikingly
a: 248 Daxue Road, Yangpu District, Shanghai
w: wooya.me  e<EMAIL_ADDRESS>https://cn.linkedin.com/in/wooya


no module named 'Adafruit_GPIO' (even though I checked everything)

Platform/operating system (i.e. Raspberry Pi with Raspbian operating system,
Windows 32-bit, Windows 64-bit, Mac OSX 64-bit, etc.):  Raspbian GNU/Linux 9 (stretch)

Python version (run python -version or python3 -version):  python 2.7.13 and 3.5.3

Error message you are receiving, including any Python exception traces:
Traceback (most recent call last):
File "/home/pi/Desktop/python-lis3dh-master/LIS3DH_bus1.py", line 2, in
from Adafruit_GPIO import I2C
ImportError: No module named 'Adafruit_GPIO'

List the steps to reproduce the problem below (if possible attach code or commands
to run):

installed Adafruit_GPIO for both python and python3 (it appears on the lists of pip and pip3).

checked for RPi.GPIO and it is installed as well

still after just first line which is 'from Adafruit_GPIO import I2C' I get the error I mentioned, no idea what's wrong

checked every step, power is adequate, and 'sudo i2cdetect -y 1' detects the device

Thanks for the detail, can you provide a simplified version of LIS3DH_bus1.py which replicates this issue and I will give it a go myself.
So far the symptoms do not look like my library is actually the root cause of the issue, more like something wrong with the package installation on your system. It might be a idea to also raise this issue in the appropriate Raspberry Pi forum. If you do this send me a link.
regards,
Chris

This turned out to be some system error. Reinstalling the system was the solution.


libechonest: 2.3.0 -> 2.3.1

Motivation for this change
Just a package revamp
+ one less sha1 hash in nixpkgs
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @

Result of nix-review 1

3 package were build:

clementine
clementineUnfree
libechonest

@GrahamcOfBorg build clementine


Accessing index.html

Is it possible to access the index.html and say, for example, add additional headers or CSS imports directly in the index.html?

Currently, the project is using HtmlWebpackPlugin to generate the index.html for you. You can decide to remove that plugin and create your own index.html file or create a template and pass it to the plugin.
Check out the different options here: https://github.com/jantimon/html-webpack-plugin


fix: correctly document RQv2 /head/lock limits

The RQv2 /head/lock endpoint only allows locking 25 requests with one API call. This was missing in the OpenAPI docs.

Is the broken test alright? It seems to be something completely unrelated (ignored_auth).


#21661: fixed GraphNode title offset

Bugsquad edit: Fixes #21661.

Thanks, the fix looks good. For future PRs, note that you can use "Fixes #21661" in the commit description and the referenced issue will be automatically closed when the PR is merged, like this:
Fix GraphNode title offset on HiDPI

Fixes #21661.

Cherry-picked for 3.0.7.


Webpack build does not run due to terser-webpack-plugin dependency

Thanks
First off great starting guide! Decided I wanted to learn Typescript and your starter guide has helped a lot. Just so you are aware when using the additional webpack configure the project will not build. Im not sure if you would like a PR with the fix to this issue as it seems the maintainers are already working on solving this on there end but if so I would be happy to help.
Problem
terser-webpack-plugin crashes when Webpack is ran.
Logs
Starting type checking service...
Using 1 worker with 2048MB memory limit
Hash: 8deabb4a8938f47197c2
Version: webpack 4.28.3
Time: 498ms
Built at: 2019-02-02 21:17:59
 1 asset
Entrypoint main = bundle.js
[0] ./src/index.ts 1.66 KiB {0} [built]

ERROR in bundle.js from Terser
TypeError: Cannot read property 'minify' of undefined
    at minify (/home/jacob/Development/personal/content-tweeter/node_modules/terser-webpack-plugin/dist/minify.js:175:23)
    at module.exports (/home/jacob/Development/personal/content-tweeter/node_modules/terser-webpack-plugin/dist/worker.js:13:40)
    at handle (/home/jacob/Development/personal/content-tweeter/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/home/jacob/Development/personal/content-tweeter/node_modules/worker-farm/lib/child/index.js:51:3)
    at emitTwo (events.js:126:13)
    at process.emit (events.js:214:7)
    at emit (internal/child_process.js:772:12)
    at _combinedTickCallback (internal/process/next_tick.js:141:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR<EMAIL_ADDRESS>build:js: `webpack --mode=production`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build:js script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

More Info
This has already been reported to the maintainers https://github.com/webpack-contrib/terser-webpack-plugin/issues/67
And is explained in https://github.com/webpack-contrib/terser-webpack-plugin/issues/66
Fix
As stated in Issue 66 add the following to your package.json
  "resolutions": {
    "terser": "3.14.1"
  }

Issue has been fixed in the latest version


Should a bean that implements Closable / AutoClosable automatically get a PreDestroy hook?

Currently we don't do this. For myself this does not seem intuitive.  (Noting Micronaut DI also does not do this).

@Singleton
public class ShouldCloseAuto implements Closeable {

  /**
   *  Treated as a PreDestroy method
   */
  @Override
  public void close() {
    ...
  }

}

Change via:
https://github.com/avaje/avaje-inject/commit/ab94530d0127d134c7f47d591ce47e6e966c977c


Devices: Setup local development environment

https://www.fer.unizg.hr/_download/repository/hardware_upute.pdf

Ubuntu OS version > 17.04 comes with the cp210x driver already installed.

When setting up the Additional boards manager URL, if copy-pasting from the file linked in the description, there is a chance that the link gets pasted wrong, so check that if Arduino IDE throws any errors.

@dsmircic move to done when you are finished


Rearranged code, ignored errors

This PR rearranges the polus-plugins base package. It ignores CI checks, and should be resolved by @camilovelezr

This mostly looks good. I think we should commit up to one of poetry.lock and requirements.txt because they contain functionally the same information. We should also open an issue to resolve the CI checks.


Deleted file in PR shows Open Anyway for both sides

Extension version:
VSCode Version: insider
OS: web
Repository Clone Configuration (single repository/fork of an upstream repository): https://github.dev/check-spelling-sandbox/binary-files-pr/pull/1
Github Product (Github.com/Github Enterprise version x.x.x): GitHub.com

Steps to Reproduce:

(if you're using chrome and have a content policy, enable javascript for default)
visit https://github.dev/check-spelling-sandbox/binary-files-pr/pull/1
click Files>bin

As the file is D, only one of the two sides should show the open anyway, the other should say "deleted" or something...

Moved to microsoft/vscode as this is decided by the diff editor.

The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.
Happy Coding!


mPulse Loader Snippet v15 (v1.3.0)

@nicjansma should we change this comment in mPulse.hooks.php
// For IE 6/7, falls back to dynamic script node.

to
// For IE 6/7/8, falls back to dynamic script node.

Fixed!


Look into Problems with Brax

Offloading BRAX to graphics card does not work on cip pool as expected. Look into this.

Can you be more specific about the issue? It may be a brax related issue, but we are happy to investigate and share the problem with the brax team.

Sorry, I didn't mean to ask this on this here.


GUVNOR-2195 - Guided Decision Table V&V -Redundant Conditions/Actions

I merged InsertFactActionInspectorKey and SetFieldColActionInspectorKey. Could not think of a good enough reason to have the info about inserting/editing in the key. Better to just have a simple key and then the information is stored in the actual ConditionInspector.
Again, threw in some bug fixes with unit tests. Conflicts between rows were a bit too eager to report conflicts. If the StringConditionInspector has value set to "" we do not generate source for it. The checks were picking up that the "" value is not conflicting with what ever was set for the field in another column.

http://github.com/droolsjbpm/drools-wb/commit/a06401fbf


Cannot use Uyghur 2.5 model

Dear colleagues,
thank you for your work on this package!
When I try to use the pre-downloaded Uyghur model
nlp = spacy_udpipe.load_from_path(lang="ug",
                                      path="./resources/uyghur-udt-ud-2.5-191206.udpipe",
                                      meta={"description": "Uyghur 2.5 model."})

I receive the following error:
ImportError: [E048] Can't import language ug or any matching language from spacy.lang: No module named 'spacy.lang.ug'

Are there any proper solutions or workarounds for this issue?
Thanks in advance!

I have a similar problem with Old Church Slavonic.
To me it seems that unlike spacy-stanza which provides the .load_pipeline() method for languages not supported by spacy, spacy-udpipe does not allow for such a scenario.


[bug] Using the Weasel input method in the always-on-top window will get stuck

Describe the bug
I found that using the Rime Input Method Engine based Weasel input method in my tauri application causes the window to get stuck, I tested other applications and no such problem occurs, only in the tauri application, so I think it might be a tauri problem.
Reproduction
No response
Expected behavior
No response
Platform and versions
Environment
  › OS: Windows 10.0.22621 X64
  › Webview2: 112.0.1722.68
  › MSVC:
  › Node.js: 19.9.0
  › npm: 9.6.3
  › pnpm: 8.4.0
  › yarn: Not installed!
  › rustup: 1.26.0
  › rustc: 1.69.0
  › cargo: 1.69.0
  › Rust toolchain: stable-x86_64-pc-windows-gnu

Packages
  › @tauri-apps/cli [NPM]: 1.2.3 (outdated, latest: 1.3.0)

Stack trace
No response
Additional context
https://user-images.githubusercontent.com/59004461/236631795-f1f5002d-bd27-4da8-9933-a3b92ca5c612.mp4
Since I couldn't get the window to un-top when it was stuck, I tested it by using PowerToy to make the window top, and it looked like the input method was blocked, and the previous input would appear quickly when the top was un-topped.

What about default IME? Does it work fine for you?
And it's better to bring a minimum repo or step to reproduce. It can help us a lot to narrow the scope.

What about default IME? Does it work fine for you?

Yes, it works fine

My Step:

pnpm create tauri-app
pnpm install
Edit tauri.conf.json to make window always-on-top(or make window on-top by PowerToy later)
pnpm tauri dev
Input something using Weasel,then window get stuck

This problem has been fixed by Weasel, It seems that this is not a problem with Tauri.

This problem has been fixed by Weasel, It seems that this is not a problem with Tauri.

How did you manage to fix it? I've recently encountered the same problem.

is problem has been fixed by Weasel, It seems that this is not a problem with Tauri.

How did you resolve this issue back then?

This is my version of RIME, and I still have this issue.

@Blushyes
got some solution?


Issues when migrating to a new phase with fact sheet answers/different tasks that outputs identical data

Let COMP be a competition with 2 phases named DEVELOP and TEST, each with identical tasks. Set the results to 'Force Latest Multiple' and add a few mandatory Fact Sheet entries. Submit several runs with Fact Sheet responses for the TEST phase.
Now, add MIGRATE as a new phase with a new task created through the Resources menu, containing the exact same files (scoring scripts, etc.) as the task created for the TEST phase. During the migration of submissions from TEST to MIGRATE, the leaderboard displays only 'n/a' values. However, upon re-evaluation of the runs in the migration process, the actual submissions do have values, visible in the submission list of the MIGRATION phase task. The only difference is that in the ADMIN console, the Fact Sheet answer list is null.
Now, edit the COMP settings, and replace the MIGRATE phase task with the TEST phase task. the Fact Sheet answers are still n/a but now, the values are displayed correctly in the Leaderboard.
Remove the Fact Sheet questions from the COMP settings; now the results are displayed correctly.
In conclusion, there is an issue with: 1) the Fact Sheet answers when migrating the submissions, 2) the submissions results when using other tasks for the new phase that output the same exact data as the task from the previous phase. The answers are not migrated, and the actual results are displayed with n/a.

Now, edit the COMP settings, and replace the MIGRATE phase task with the TEST phase task. the Fact Sheet answers are still n/a but now, the values are displayed correctly in the Leaderboard.

I am afraid that the submissions in MIGRATE phase are run on TEST Phase task. That is also the reason for seeing n/a on the leaderboard. I don't understand completely the issue with factsheet answers but will check this in detail soon.

I close this issue to merge and keep track of it here: #1540.


Feedback form not submitting, No 'Access-Control-Allow-Origin' errorr

Getting the following error when submitting feedback on Chrome:
XMLHttpRequest cannot load https://docs.google.com/a/developmentseed.org/forms/d/1VOcERexikGP5N6xkjPDgUuDLUcS_Ktxj_ALNokNuttc/formResponse. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://map.openaerialmap.org' is therefore not allowed access.

This is an error but one that is happening only because our method of posting to a Google Form is a workaround. Error can be ignored.


[release]: Bump version to 1.1.4

Include missing changeset in NPM package from previous build.

Resolve #82


BFT synchronizer: integration test against an orderer that does block censorship

Run a 4 orderer smart bft cluster.
Do 5 TXs.

Do 5 more TXs.
Shutdown o1,o2,o3
Prepare 3 orderer mocks with 10 TXs, with the addresses of o1,o2,o3

same mocks as used in the peer test
emulate block censorship

Start o4
O4 should detect the block censorship attempt and get all 10 blocks to its ledger

Done


Adding clear function and removing delay from fill

As per https://github.com/blaz-r/pi_pico_neopixel/issues/4

Removing unnecessary sleep from fill()
Adding clear() function to reset the strip

Looks great. Thank you.


Support for Vaadin 8

Update this add-on to support vaadin 8

Subscribe. I may help to migrate but I'm not so familiar with github+fork workflow :/

The ColorPicker of Vaadin 8 is a field (HasValue) now so you don't need this add-on anymore.
I ported the converters of this add-on for Vaadin 8: https://vaadin.com/directory#!addon/colorconverters

Thanks for the useful info =)
Cheers.

On 2017. Apr 20., at 13:22, Max Schuster<EMAIL_ADDRESS>wrote:
The ColorPicker of Vaadin 8 is a field (HasValue) now so you don't need this add-on anymore.
I ported the converters of this add-on for Vaadin 8: https://vaadin.com/directory#!addon/colorconverters https://vaadin.com/directory#!addon/colorconverters
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/maxschuster/Vaadin-ColorPickerField/issues/1#issuecomment-295692355, or mute the thread https://github.com/notifications/unsubscribe-auth/AZgfDaMWoFU7c8fBoLYx3Qp-UhF2DhtPks5rxz_dgaJpZM4MMVuD.


quaternion convert wrapped in try and catch

Basic Info

Info
Please fill out this column

Issue(s) this addresses
#423

ROS2 version tested on
Humble

Aerial platform tested on
None

Description of contribution in a few bullet points

Quaternion convert wrapped in try and catch

Codecov Report
Attention: Patch coverage is 0% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 0.00%.  Consider uploading reports for the commit 654b44a to get more accurate results

Files
Patch %
Lines

as2_core/src/utils/tf_utils.cpp
0.00%
6 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #424   +/-   ##
=====================================
  Coverage   0.00%   0.00%
=====================================
  Files        104     104
  Lines       5701    5707    +6
=====================================
- Misses      5701    5707    +6

Flag
Coverage Δ

unittests
0.00% <0.00%> (ø)

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.


Refactor: ziofy JsonLDObject accessor methods (DEV-2084)

Pull Request Checklist
Task Description/Number

Issue Number: DEV-2084

Add alternative methods on JsonLDObject for deprecated maybe* and require* accessors which always throw. Naming schema is get* for optional values and getRequired for mandatory values`.
Remove convenience methods from the JsonLDDocument which were simply delegating to the body object.
Rename StringFormatter isApiV2Schema to isOntologySchema and add methods for known schemas.

Basic Requirements
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] fix: represents bug fixes
[x] refactor: represents production code refactoring
[ ] feat: represents a new feature
[ ] docs: documentation changes (no production code change)
[ ] chore: maintenance tasks (no production code change)
[ ] test: all about tests: adding, refactoring tests (no production code change)
[ ] other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No
[ ] Maybe (not 100% sure => check with FE)

Does this PR change client-test-data?

[ ] Yes (don't forget to update the JS-LIB team about the change)
[x] No

... tests seem to fail, though


gcc-6-20160313

This updates the gcc6 formula to the latest snapshot: 20160313
More information:

ftp://gcc.gnu.org/pub/gcc/snapshots
GCC 6 Status Report (2016-03-10)
Regression list
Previous update: https://github.com/Homebrew/homebrew-versions/pull/1172

Any idea why brew doctor failed on Yosemite? It seems unrelated to the PR.

Error Message

failed: brew doctor

Stacktrace

Warning: Some installed formula are missing dependencies.
You should brew install the missing dependencies:

brew install expat liblcf icu4c

Run brew missing for more details.

False positive. Can be ignored.

Merged in https://github.com/Homebrew/homebrew-versions/commit/cf304d6ced175f8334390f550bc5a7f886bd370f. Thank you for another contribution to Homebrew @chriso! :smiley_cat:


Blog post draft for RSEcon 2023

Thanks @rqding. Is this ready to review and merge in, or it is still a draft for you?


Fix - model_id

After recent UI  code merges, when model is selected, UI is returning whole (model name + model id) instead of model_id.
simple example :
Before UI change :
lets take  "GPT-4 Turbo" model is selected, UI will set model id as  "gpt-4-0125-preview". Useful for model_client obj creation.
After recent change:
UI will set model_id to GPT-4 Turbo (gpt-4-0125-preview), which will prevent model_client obj creation and further running of program.
It will cause issue for all model_client obj creation such as Groq, Ollama, OpenAI.
FIxed this issue, Now UI will return only model_id.
-> Tested thoroughly.
Thank you !

Fixes - #178 , #180

@mufeedvh  Can you please look into this ?
As, its an P0 issue , I had made the changes already and created this pull request. Can you please review it & merge it, ASAP.
Thank you!

Confirmed ✅ I applied the change from the PR locally and tested. Solves the issue from Devika doing nothing!

@mufeedvh Thanks for the quick PR merge!

I am running the updated version however I dont know how to use postman as I am still stuck with devika doing nothing even after  entering the api keys and olla is running on http://<IP_ADDRESS>:11434/
This is my postman screen right now. Where am I to enter this url in the application and the further steps to get it running and usable?

still didnt fix my issue

Issue persists. #206 #185

Those who are facing issues, can you please create a new project in devika UI and and then add your query & check?
Only first prompt in a devika project,  yields response from devika and rest of the prompts yield no response from devika..
Unless  devika itself asks you question, then only second or consequent prompts will yield response from devika..its a known issue.
So please create a new project in devika UI and check with a prompt..
Recently, tested this fix with Chatgpt model also, it works fine as expected!

It does not initiate a prompt or anything. Even when creating a new
project. This project is not functioning.
On Thu, Mar 28, 2024 at 4:21 AM rajakumar05032000 @.***>
wrote:

Those who are facing issues, can you please create a new project in devika
UI and and then add your query & check?
Only first prompt in a devika project, yields response from devika and
rest of the prompts yield no response from devika..
Unless devika itself asks you question, then only second or consequent
prompts will yield response from devika..its a known issue.
So please create a new project in devika UI and check with a prompt..
Recently, tested this fix with Chatgpt model also, it works fine as
expected!
—
Reply to this email directly, view it on GitHub
https://github.com/stitionai/devika/pull/190#issuecomment-2024648555,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAO5EM25YDUTSRZBZ5TAIUDY2PHHJAVCNFSM6AAAAABFKWPY62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGY2DQNJVGU
.
You are receiving this because you commented.Message ID:
@.***>

It does not initiate a prompt or anything. Even when creating a new project. This project is not functioning.
…
On Thu, Mar 28, 2024 at 4:21 AM rajakumar05032000 @.> wrote: Those who are facing issues, can you please create a new project in devika UI and and then add your query & check? Only first prompt in a devika project, yields response from devika and rest of the prompts yield no response from devika.. Unless devika itself asks you question, then only second or consequent prompts will yield response from devika..its a known issue. So please create a new project in devika UI and check with a prompt.. Recently, tested this fix with Chatgpt model also, it works fine as expected! — Reply to this email directly, view it on GitHub <#190 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO5EM25YDUTSRZBZ5TAIUDY2PHHJAVCNFSM6AAAAABFKWPY62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGY2DQNJVGU . You are receiving this because you commented.Message ID: @.>

Can you please send the full log of devika_agent.log file which present in logs folder ?

It does not initiate a prompt or anything. Even when creating a new project. This project is not functioning.
…
On Thu, Mar 28, 2024 at 4:21 AM rajakumar05032000 @.> wrote: Those who are facing issues, can you please create a new project in devika UI and and then add your query & check? Only first prompt in a devika project, yields response from devika and rest of the prompts yield no response from devika.. Unless devika itself asks you question, then only second or consequent prompts will yield response from devika..its a known issue. So please create a new project in devika UI and check with a prompt.. Recently, tested this fix with Chatgpt model also, it works fine as expected! — Reply to this email directly, view it on GitHub <#190 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO5EM25YDUTSRZBZ5TAIUDY2PHHJAVCNFSM6AAAAABFKWPY62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGY2DQNJVGU . You are receiving this because you commented.Message ID: @.>

Can you please send the full log of devika_agent.log file which present in logs folder ?

for some reason my logs and project folder is empty

for some reason my logs and project folder is empty

Then it can be reason of configuration issue or you had run the wrong file, instead of devika.py file.
Note: Projects folder can be empty, if devika hasn't created a project for you, But logs folder will never be empty..

tried all the things but still no response What should i do ?
here is the log file
pls can anyone help me ?
devika_agent.log


git: Add git-fixup

That's a convenient git command I borrowed from @FiloSottile.

Modified to work on other shells than bash
Modified not to run in the user's shell (but in a separate sh)
This avoids clobbering the user's environment
Added an help message
Reliably error-out

Why is this a dotfile rather than in /usr/bin or such?

We have currently no way to deploy (& version) custom things to /usr/bin or /usr/local/bin.
If we want the dotfiles to be reuseable outside of the shell servers, it makes sense to put it there.
It lets users opt-out of the git customizations simply by unstowing the git directory, whereas removing a file from /usr/bin isn't possible.

We have currently no way to deploy (& version) custom things to /usr/bin or /usr/local/bin.

Lets fix that?

It lets users opt-out of the git customizations simply by unstowing the git directory, whereas removing a file from /usr/bin isn't possible.

This is not a customization, but a new command.

It's a customization in the sense that is changes the behaviour of the git command, and some people might prefer having completely-vanilla Git.

@daurnimator Aside from pedantic discussions about the word “customization”, do we agree this fits better in dotfiles?

@daurnimator Aside from pedantic discussions about the word “customization”, do we agree this fits better in dotfiles (than in /usr/bin or /usr/local/bin)?

I don't think so: I don't like the idea of installing executables in .local/bin just because the system we've set up for ourselves makes it too hard to drop something in /usr/local/bin.

@daurnimator Eeeeh, my point is definitely not “it's hard to drop something in /usr/local” (it's not, we can easily manage that with Ansible and/or git).

Users who want to reproduce the same experience as on #! on their own machine should be able to do so reasonably easily.
Cloning dotfiles and stowing what you want fits that requirement.
Users who want their UX not to involve anything #!-specific can opt-out of it, either on a per-module basis or entirely.
They cannot opt out of your executable in /usr/local/bin.

btw, I tried this locally and you should add -C commit.gpgSign=false to the git commit line

Good point.
OTOH, you are going to be prompted for your passphrase anyhow during the rebase, if you have commit.gpgSign=true set in your config.

@daurnimator In case Github didn't notify you, I addressed your comment yesterday.
Any further remarks?

No. that was just a minor thing I noticed. I still disagree with the idea in general.
I'd sort of like @lrvick to opine here.

@daurnimator Then I would like to know what you disagree with, since the only thing you said is that “you don't like the idea of installing in .local because we can't deploy to /usr”, and didn't reply to any of the arguments in favor of putting it in dotfiles.

@hashbang/administrators Ping?  :V

Yay, approval by timeout  :(


Error: 'wrong number of tensors; expected 292, got 291'

Trying out the current versions of ipex-llm with ollama and when trying to use the llama3.1 model the following output is displayed:
detect 1 SYCL GPUs: [0] with top Max compute units:512
llm_load_tensors: ggml ctx size =    0.30 MiB
llama_model_load: error loading model: done_getting_tensors: wrong number of tensors; expected 292, got 291
llama_load_model_from_file: exception loading model
terminate called after throwing an instance of 'std::runtime_error'
  what():  done_getting_tensors: wrong number of tensors; expected 292, got 291
time=2024-08-18T19:30:54.756Z level=ERROR source=sched.go:344 msg="error loading llama server" error="llama runner process has terminated: signal: aborted (core dumped) "
[GIN] 2024/08/18 - 19:30:54 | 500 |  1.820496414s |       <IP_ADDRESS> | POST     "/api/chat"

This error looks like an exact match of: https://github.com/abetlen/llama-cpp-python/issues/1646 . Is it possible that there needs to be an update to the llama-cpp-python or just llama.cpp components included when doing pip install --pre --upgrade ipex-llm[cpp] from the Quickstart guide?
ollama run llama3:8b-instruct-q4_K_M working fine here. Platform is linux kernel 6.5 and ARC a770 GPU.

Hi @timroster ,
I have reproduced this error, and I will try to fix it later. Once it is done, will update here to let you know.

Llama 3.1 is supported with ipex-llm[cpp] >= 2.1.0b20240819, you may try it again tomorrow : )

@rnwang04 - I update the ipex-llm to ipex-llm-2.1.0b20240819 version and it is working great. Thanks so much for the prompt response 😄

@rnwang04 - I update the ipex-llm to ipex-llm-2.1.0b20240819 version and it is working great. Thanks so much for the prompt response 😄

How do we update ipex-llm? Is it in convert_hf_to_gguf_update.py file?


re-added slumber

I modified the filter a bit. What do you think?

Also, about the test twig file, I figured the line 38 of site/test/index.twig

       <figure class="{{f.name}}">

Shouldn't it be

       <figure class="{{f.usage}}">

instead so the figures get the class name in lowercase instead of capitalized? (e.g 'slumber' instead of 'Slumber')

Wow, i just fixed the f.usage problem :) and yes i think its almost there -- maybe desaturate it a tiny bit?

Hope this suffices!

I think this looks pretty good! Thanks @shelune -- make sure its up to date with master (resolve conflicts) and i'll merge it

Fixed the conflicts and merged into 1 commit for you

You're the best!


verify any uncommited generated go mod changes during CI run

/hold
waiting for CI to fail on dummy commit.

incorrect, will be raising a new one.


fix(frontend): modal behaviour on back navigation

Motivation
When using the browser's back button, for instance, the modals were not closing as expected, leading to unforeseen behavior during navigation. In order to resolve this issue, I added an event listener to the open modals. This ensures correct handling of the browser's back navigation.
Changes

fixes modal behaviour on nagivating

Tests
before:
https://github.com/user-attachments/assets/120baaa5-bc00-4524-9177-e4b0d410e50b
after:
https://github.com/user-attachments/assets/f5d7ec41-6222-412c-a85a-7284c17de674

@AntonioVentilii @peterpeterparker
Would it be a possibility to define the onpopstate event handler in the root layout?
this means:

there will be no embedded logic in the store, which means it does not break the intended architecture.
no additional event listeners are added.

@peterpeterparker
I don't understand why we shouldn't solely rely on the popstate event and why we should add an entry to the history? Is you argument that this would be a cleaner conceptual solution?
If you have a look at the code i provided in this PR, you can see that i updated the window.onpopstate event handler so that open modals get closed. Like this we shouldn't have a problem that the listener is not removed automatically.

@peterpeterparker i just had a chat with stefan and he also meant that this would be a good idea. I will resolve this in another PR.


Some important fixes and improvements

Fix database table and colunm name generating.

Improve call interface of create_sanitized_dump.

Add support for PostGIS.

Add support for database URL forming for connection settings without
username or password, or using a non-TCP communication such as unix
socket.

See the commit messages for details.

Good job figuring out the problems with m2m fields and the non "concrete" fields. This seems fine to me except the one thing thing that I commented.

Also, were you going to submit a PR to add the postgis support to the python-database-sanitizer package?

Great work 👍Neither me nor Jesse has tried this on any proper project with the actual sanitizer so really nice to see that you was able to spot all the problems that was left in there!

@JsseL Fixed the raise statement without an exception class. The PR to https://github.com/andersinno/python-database-sanitizer is coming too.

The other PR: https://github.com/andersinno/python-database-sanitizer/pull/10


Make the website completely responsive

💥 Proposal
Make the website completely responsive.
You can use media query or bootstrap classes

Can i work on this issue

Can i work on this issue

Yeah sure @arbazalam01, You can work on this issue.
You are given 6 days to complete this.


How to change the order of two tasks

When I create the task, the structure is a queue. I wonder how to change the order of two tasks.

How should I exchange the order of task 6 and task 5?

Hello @JiahaoYao, thank you for taking the time to share your thoughts!
Given that each item is linked to a dedicated id on creation, and that items that are part of a board follow an ascending order when displayed, achieving a strict position swap would only make sense in the context of a specific board and not between items that belong to different boards (since it is not possible to guarantee a strict location swap in that case)
Let me know what you think! 😄

Hi @klaussinani , thanks for your reply. I appreciate your explanations!


Could theoretically support anything besides video services

I'm imagining this gem to be a lightweight and most importantly stand-alone alternative to http://embed.ly/, which @sindrenm investigated. Embed.ly seems to have tonnes of metadata information, but in most cases, you just want to embed stuff without having to reach out to an external API.

Soundcloud would be a cool thing to start with!

Such bump.

Totally random, I swear. Not like anyone is working on this or anything. Nope.

Let me know what you think! https://github.com/hyperoslo/embeddable/pull/16

You sneaky bastard, @jgorset.


eth_phy_802_3: esp_eth_phy_802_3_reset(140): reset timeout

I'm trying to connect an ESP32-PoE-ISO-WROVER using ethernet with a fixed IP following the examples.
I'm getting this error:
E (624) eth_phy_802_3: esp_eth_phy_802_3_reset(140): reset timeout
E (624) eth_phy_802_3: esp_eth_phy_802_3_basic_phy_init(435): reset failed
E (624) lan87xx: lan87xx_init(341): failed to init PHY
E (624) esp_eth: esp_eth_driver_install(229): init phy failed

Esp-idf version: v5.1-beta1-378-gea5e0ff298-dirt
esp-idf-svc = { version = "0.49", default-features = false }
sdkconfig:
# Ethernet
#
CONFIG_ETH_ENABLED=y
CONFIG_ETH_USE_ESP32_EMAC=y
CONFIG_ETH_PHY_INTERFACE_RMII=y
# CONFIG_ETH_RMII_CLK_INPUT is not set
CONFIG_ETH_RMII_CLK_OUTPUT=y
# CONFIG_ETH_RMII_CLK_OUTPUT_GPIO0 is not set
CONFIG_ETH_RMII_CLK_OUT_GPIO=17
CONFIG_ETH_DMA_BUFFER_SIZE=512
CONFIG_ETH_DMA_RX_BUFFER_NUM=10
CONFIG_ETH_DMA_TX_BUFFER_NUM=10
CONFIG_ETH_USE_SPI_ETHERNET=y
# CONFIG_ETH_SPI_ETHERNET_DM9051 is not set
CONFIG_ETH_SPI_ETHERNET_W5500=y
# CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL is not set
# CONFIG_ETH_USE_OPENETH is not set
# end of Ethernet

Can't say much without also looking at your program.
Some things to check is whether you are providing the correct pins. Those which are hard-coded you cannot get wrong, but for example rmii_mdio and rst are NOT hard-coded. Are you configuring those correctly, according to this [schematics](file:///home/ivan/Downloads/ESP32-PoE-ISO_Rev_K.pdf)?

Copy-paste from here as to what you need to use.

Just uploaded my code here .
I sent an email to Olimex and they advised to not use gpio12 as reset because it's meant to power PHY, but I'm still getting similar errors:

Did you read my two previous comments? Did you check- in their own C example - what pin they use for "reset"? Did you also check this in the schematics?
I hope you understand, that you can't just pick a free pin for "reset"? You have to use as a reset pin the exact pin, which - on their schematics - is connected to the resetnpin of the phy.

Ditto for rmii_mdio.

No feedback, closing.


file input at html example doesnt contain psd file extension

https://user-images.githubusercontent.com/37479424/147951204-41ef0f15-4030-48fb-99f1-906f1c9b74bf.mp4
Currently the example accepts image/vnd.adobe.photoshop,.psb, however, this actually doesn't contain the .psd at the input dialog.

Thanks for reporting this, and sorry about the delay!


[Upstream] LinearLayout conversion interface

Upstream Triton requires integrating all MMA layouts inside the original TritonGPU IR to implement LinearLayout conversion.
We need to design an interface that enables implementing LinearLayout conversion under third_party and upstream the

Currently marked blocked because this has dependency to the issue #1874 .
Once #1875 is merged, I'll begin upstreaming the changes.

Upstream PR: https://github.com/triton-lang/triton/pull/4525


scripts: twister: Make TwisterStatus autocasting more intuitive

Rather than writing the Enum key names, like 'FILTER', users probably would be more at-home using the same terms as they can find in their Twister reports, e.g. 'filtered'. None will also be accepted and converted to TwisterStatus.NONE.

This PR's tests should be rerun before merging if #77080 is merged before it.


Splink4 Comparison Levels: Clarify and improve existing code

Greater consistency around naming of dialects, return types, and docstrings

Thanks, sorry this got a bit messed up with me changing the splink4 branch name


Fix deadlock and leaking connections.

Background
I have a socket which connects to multiple endpoints. From time to time, depending on the availability of the endpoint or presence of new endpoints, I have my socket disconnect from/connect to endpoints.
Not sure if this is the best way (I am open to suggestions). On the socket I create a new dialer. and keep a map of endpoints to dialers. When I need to disconnect I retrieve the dialer from the map by endpoint and call Close().
Problem
The first problem I encountered was the leak of connections most time I did this (See Appendix A). So I wrote a simple program that does two things:
i) Create new dialer, Dial()
ii) Close()
iii) Repeat. And check for leaks.
I saw leaks however they weren't consistent so I thought it could be one of those weird race-timey conditions. So I decided to add a sleep between my Close()s and Dial()s. When I did this I found that the program hung indefinitely.
Fix
1.) The fix I'm putting in is to make sure we Unlock() the socket if we are reconnecting and the dialer is already closed.
2.) If the dialer is closed make sure we also close it's pipeDialer. Because of this I had to add some lock guarded checks to IsOpen before attempting to close 'conn', 'websockets' and 'inproc' transports.
Appendix A
sudo lsof -i | grep {process_name}
TCP localhost:52169->localhost:33033 (ESTABLISHED)
TCP localhost:52135->localhost:33033 (ESTABLISHED)
TCP localhost:33033->localhost:52135 (ESTABLISHED)
TCP localhost:52136->localhost:33031 (ESTABLISHED)
TCP localhost:52137->localhost:33032 (ESTABLISHED)
TCP localhost:33031->localhost:52136 (ESTABLISHED)
TCP localhost:33032->localhost:52137 (ESTABLISHED)
TCP localhost:52170->localhost:33031 (ESTABLISHED)
TCP localhost:52171->localhost:33032 (ESTABLISHED)
TCP localhost:33031->localhost:52170 (ESTABLISHED)
TCP localhost:33032->localhost:52171 (ESTABLISHED)
TCP localhost:33033->localhost:52169 (ESTABLISHED)
TCP localhost:52178->localhost:33033 (ESTABLISHED)
TCP localhost:52179->localhost:33031 (ESTABLISHED)
TCP localhost:52180->localhost:33032 (ESTABLISHED)
TCP localhost:33033->localhost:52178 (ESTABLISHED)
TCP localhost:33031->localhost:52179 (ESTABLISHED)
TCP localhost:33032->localhost:52180 (ESTABLISHED)

This change looks really good.  Your approach with the PR is good too.  Thanks for figuring this bug out, and fixing it!

I have only two small requests for you.  As we're updating these files, can you bump the copyright dates in the file headers for the files you modified to 2017?  And I think you should add yourself to the AUTHORS file as well.  It would be good if you could do both those things and then I'll approve this PR and merge it.

Thanks for taking a look at the PR. I changed the dates and added my name to the AUTHORS file.

Thanks for taking a look at the PR. I changed the dates and added my name to the AUTHORS file.

Thanks!


Fix cont query analyzer

usmanm=# CREATE CONTINUOUS VIEW v AS     SELECT
      path::text,
      hour(start_time::timestamptz) AS hour,
      count(*) as num_requests,
      count(*) FILTER (WHERE NOT success::bool) as num_failures,
      count(DISTINCT user::text),
      count(DISTINCT ip::text),
      percentile_cont(ARRAY[1, 5, 10, 50, 90, 95, 99]) WITHIN GROUP (ORDER BY end_time::timestamptz - start_time)
    FROM djpipelinedb_requestevent
    GROUP BY (path, hour);
ERROR:  column "hour" does not exist
LINE 10:     GROUP BY (path, hour);


Increasing threshold size for traversing memory blocks

L235 - Increased the memory threshold size so that we can further reduce fragmentation by allocating memory blocks that is close to the requested size by 16 bytes.

Thanks for the improvement!


Debian v9.5: 0.7-series setuptools cannot be installed with distribute

I am attempting to install numpy on a PocketBeagle operating under Debian v9.5.  I've successfully connected the device to the internet via USB and am using pip to install numpy for the Python 2.7 installation presently on the device.  I have setuptools v40.7.1 and pip v19.0.1 installed.
When I try to install it, however, I get the following, ending with an error.
debian@beaglebone:~$ pip install numpy
Collecting numpy
  Using cached https://files.pythonhosted.org/packages/04/b6/d7faa70a3e3eac39f943cc6a6a64ce378259677de516bd899dd9eb8f9b32/numpy-1.16.0.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/setuptools/__init__.py", line 2, in <module>
        from setuptools.extension import Extension, Library
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/setuptools/extension.py", line 5, in <module>
        from setuptools.dist import _get_unpatched
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/setuptools/dist.py", line 6, in <module>
        from setuptools.command.install import install
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/setuptools/command/__init__.py", line 8, in <module>
        from setuptools.command import install_scripts
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/setuptools/command/install_scripts.py", line 3, in <module>
        from pkg_resources import Distribution, PathMetadata, ensure_directory
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 2870, in <module>
        add_activation_listener(lambda dist: dist.activate())
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 710, in subscribe
        callback(dist)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 2870, in <lambda>
        add_activation_listener(lambda dist: dist.activate())
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 2302, in activate
        self.insert_on(path)
      File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.45-py2.7.egg/pkg_resources.py", line 2403, in insert_on
        "with distribute. Found one at %s" % str(self.location))
    ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /home/debian/.local/lib/python2.7/site-packages

And here I'm stuck.  The fixes for this elsewhere on the site that I've found involve upgrading setuptools...but, since I already have the latest, I'm at a loss as to what to do next.  Any help would be appreciated.

I forget how the distribute transition worked. Are you able to simply uninstall distribute (which has been completely superseded by setuptools)?

Just gave it a shot...ran apt-get --purge remove distribute, and got back that Debian could not locate package "distribute".  Running dpkg --list shows no package named "distribute" (or some derivative of that word) is installed (that I can see).  Is there another name that I should be looking for it under?

I am trying to uninstall it now (using pip uninstall distribute), but it seems to freeze up (and for a good 5 minutes) after I say yes to the uninstall.  This is problematic.

If your system package manager can't uninstall it and pip can't, you may need to write a script to manually remove it. The files you'll need to remove are easy_install.py setuptools* distribute-*.egg-info pkg_resources easy-install.pth setuptools.pth (not sure about the last one), all in the site-packages directory.
Given the age of your OS, you may be stuck on relying on distribute. You're definitely going to run into problems with more recent packages and tools that rely on later releases. I'm afraid I'm not going to be able to provide much more help here as I don't have that environment. Your best bet will be to search for the error messages you're encountering for other people who may have had that issue around 6 years ago.

That's unfortunate.  Really, my aim here is to just obtain a copy of numpy
that works on Debian v9.5 and an ARM processor.  I've yet to find one
around the internet, however -- is there a workaround that I wouldn't have
to worry about distribute giving me grief?
On Mon, Feb 4, 2019 at 11:15 AM Jason R. Coombs<EMAIL_ADDRESS>wrote:

If your system package manager can't uninstall it and pip can't, you may
need to write a script to manually remove it. The files you'll need to
remove are easy_install.py setuptools* distribute-*.egg-info
pkg_resources easy-install.pth setuptools.pth (not sure about the last
one), all in the site-packages directory.
Given the age of your OS, you may be stuck on relying on distribute.
You're definitely going to run into problems with more recent packages and
tools that rely on later releases. I'm afraid I'm not going to be able to
provide much more help here as I don't have that environment. Your best bet
will be to search for the error messages you're encountering for other
people who may have had that issue around 6 years ago.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pypa/setuptools/issues/1662#issuecomment-460308582,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOV8WH3GcePp-dlRKkA5q5gzRR7CML5fks5vKFyIgaJpZM4aaWDx
.

Here's how I'd approach it: manually uninstall distribute. Upgrade pip. Install setuptools with pip. Install numpy.
I did not mean to let this issue become stale. I hope by now you've figured out a solution.


Correction for raw affiliation South African Grape and Wine Research Institute, Stellenbosch University, Private Bag X1, Matieland, 7602, South Africa; UMR SPO, INRAE, Institut Agro, Université de Montpellier, Montpellier, France.

Correction needed for raw affiliation South African Grape and Wine Research Institute, Stellenbosch University, Private Bag X1, Matieland, 7602, South Africa; UMR SPO, INRAE, Institut Agro, Université de Montpellier, Montpellier, France.
raw_affiliation_name: South African Grape and Wine Research Institute, Stellenbosch University, Private Bag X1, Matieland, 7602, South Africa; UMR SPO, INRAE, Institut Agro, Université de Montpellier, Montpellier, France.
new_rors: 051escj72;05bk57929;003vg9w96;03rnk6m14;04w07sc25
previous_rors: 051escj72;05bk57929;003vg9w96;03rnk6m14
works_examples: W4401921789
contact: 8af82535e79d9bcecbeee3c98a9ca784:b5174800da3cd245afc97d522cc52e8e1e62 @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-11-18. The new affiliations should be visible within the next 7 days.