text:
Source_id augmentation to serve needs of ES-Doc

@bnlawrence @davidhassell @matthew-mizielinski @taylor13 thanks for the chat today gents.
It would be useful to centralize discussions about augmenting the CVs into this repo, you will see a number of issues already exist, and @matthew-mizielinski has a prototype/placeholder branch to kick things off which we can iterate over.
@bnlawrence I had thought to drop your *.pdf attachment here, but might let you organize your content the way you like - feel free to submit a PR, we could start collecting stuff into a src or equivalent subdir if that makes sense.
Adding a link to Karl's 2019 google doc that outlines a framework suggestion moving forward
Just dropping a second link to a document CMIP6 Infrastructure Component Dependencies and Version Management Strategy that summarizes a number of the connections between infrastructure in CMIP6 - a good place to start from when thinking about what content is contained in the CVs and how this content serves other downstream services.

@bnlawrence, just pinging you so we don't lose your *.pdf to this discussion

This is the document we discussed,
ES-DOC and CMIP source vocabularies.pdf

Also adding the very useful citation-relevant spreadsheet link here from @MartinaSt!

And adding as solution for the main pain point from the citation service:
An unchanging identifier should be added to each entry for those CVs, where short_names might change over time, e.g. source_id, institution_id.
This identifier enables automated updates of these contents in other services like citation. Currently, a manual check if the "new" model short_name is really a new one or one with an updated short_name is required.

It would be useful in addition to the institution_id having a URL and ROR (if these exist), but potentially the source_id to have an entry for additional resources, such as the info for the HadGEM3-GC31-LL configs at https://ukesm.ac.uk/cmip-es-documentation/ - this might be a way of catching info that exists early, and as other model doc libraries are being built, these could be augmented

As part of the source documentation effort, I envisioned “source_id CV” becoming a "source registry", a name that better reflects that it should contain much more than “controlled vocabulary” and that much of the content is "registered" by contributors rather than the registry manager(s)/adminstrator(s).
I also envisioned that each model would register information critical to making sense of its results.  This would include to what extent and how it conformed to the experiment requirements.  I would need to state what each “i”, “p”, and “f” value in the “ripf” variant labels
For each “collection” in the data archive a source registry could be defined, but more commonly multiple collections that are part of a compound collection will all choose to adopt the same registry.  For CMIP7, it is likely that at least 3 different source registries will be defined, one each for: models, input4MIPs sources, and obs4MIPs sources.
In order to sensibly make use of the datasets in the archive, one needs to know for each source, its name and origin, its general characteristics, and for climate models, what major component models are included, as well as for each simulation it performs what specialized initialization procedures, physics representations and forcing have been applied.  All of these could appear in a source registry:

Family name (usually omitting a version indicator)
Version (modifier of family name usually used in constructing the label)
label
source_id (same as label, but with forbidden characters replaced by “-“; e.g., “UKESM1-0” instead of “UKESM1.0”)
extended label
full name
release year
license info, including exceptions contact, history, license label (i.d.), license text, license url, data-provider-specific info.
reference (usually a URL that includes a doi or a link to a reasonably permanent webpage)
predecessors
institutions
contact info, including name, email, address, phone
Product “type” produced by the source.  Current options:
a.	Forcing datasets
b.	Model experiment results
c.	Observations
Components (for models, the name of the component atmosphere, ocean, land … models) and for each provide family name, version, grid/resolution info, and a brief description.
Definitions of the “i” and “p” indices used in distinguishing among various simulations by the model.
Simulation conformance information (for each activity/experiment/sub-experiment contributed to):
a.	Active model components (or possibly source type?)
b.	Variant status categorizing for each “ripf” ensemble member whether it is: a “preferred” run (in the eyes of the data provider), “compliant” with the experiment specifications, or “noncompliant”.  Any “preferred” runs must also be “compliant”.
c.	Calendar (with a value drawn from the CF convention CV)
d.	Start time
e.	End time
f.	Parent collection
g.	Parent experiment
h.	Parent variant
i.	Time spawned by parent
j.	Variant specialization (needed only if different values of 16a-i above apply to different ensemble members
(for each variant needing it, the same keys listed in a-i above could be given different value than the default).
k.	Associate forcing indexes with defined forcing packages and registered forcing datasets
For each forcing label (e.g., “f1”, “f2”) appearing in a source variant, specify:
•	forcing status (compliant or noncompliant with experiment specs)
•	registered forcing suite defining all forcing datasets needed for experiment
•	list of input4MIPs datasets added to the registered suite
•	list of input4MIPs datasets removed from the registered suite
•	list of input4MIPs datasets substituted for one of the datasets in the suite
•	Notes providing additional information about forcing that might be useful to those analyzing the simulations relying on

Consider also including:

Activity_participation
Cohort (not sure this is needed; could point to a cohort registry indicating criteria for belonging to a cohort).

One rendering of this information can be found in the source registry example given in https://docs.google.com/document/d/17cYDEBCXUxcOq8pqqmBNHqKUFvPIQqKhWaBKz01DI4E/edit .  Note that in defining the forcing labels (see 16k above), a “forcing suites registry” is referenced and in defining model components, a grid registry is referenced.  Examples of these are also included in the referenced document.

This is a full amalgamation of most of es-doc into the source registry, which is certainly one way of upping the ante on getting the information. However, one of the issues which is buried in this proposal is a separation of "who knows what when?" which was a key tenet of es-doc thinking (and our experience working with the modelling groups).
The underlying assumption here is that the registration of the source will happen when all the simulations are known - which is the only way the i/p and conformance information can be known when first registered.  Of course one could have a process for updating the source description for new simulations/experiments as they are run/supported, but I think this breaks the principle of maintainability of information. I'd rather these were separate documents (i.e. one for the list of r/i/p and one for conformance information) - then the source model description doesn't get updated all the time (I am uneasy about that changing over time when it shouldn't, and not changing when it should).
I'd also rather we didn't duplicate information (e.g. the parent variant and simulation times are in the data files and easily extracted from there).
(Could you please extract the "rendering of this information" example from the long google document, I'm not sure which one to look at).

You make some good points.  I had also thought about providing some of the conformance info. in a separate registry, which, as you say, would need to be updated much more frequently than a less comprehensive source registry.  It does break up the model information across multiple registries, which is somewhat less inconvenient to a human attempting to find out information about a model simulation from the file, but your "maintainability" argument perhaps trumps that.
I also had thought about the point about "duplicate" information.  The motivation is that certain metadata found in the files seemed to be difficult to get right by some modelers.  branch times and "parents", for example, were often reported incorrectly.   And some information that users seem to want to extract regarding a simulation (e.g., first and last time slice reported) is difficult to extract without downloading the files (or parsing all the filenames in a dataset).
I was hoping that the registry could provide the reference values for some of this information, overriding the values stored in the files (if those were wrong).  A modeling group could easily update this information in the registry; it would be much more difficult (and many groups will simply fail) to rewrite the files themselves correcting the attributes.
Happy to discuss and iterate further.  Will also extract my attempt to capture the source information.

I agree that stuff in multiple places is not how we want to communicate it. The issue as usual is that what we want to do for the producer is not the same as what we want to do for the consumer.  I think we have to up our game in terms of easy to use tools; for example, it should be trivial to pull any stuff we want for the source registries (plural important) which is in the dat files out of the files, so no one types the stuff in more than once.     More on this anon.

I'd like to add some comments on "maintainability", "responsibility" and purpose or function of the CV. Therefore I step a little back from the source_id content discussion and share some general remarks:

Information reused across phases, MIPs, infrastructure components or even within an individual component like persons, institutions or references:
We should have a central database maintaining this information with required content for all partners. With persons there might be some GDPR concerns.
Dependencies between CVs:
To make the CVs useful for the data citation the combinations of the CVs in the DRS is important. The DRS only specifies the order of the CVs but CVs need to contain allowed combinations. Currently we have: institution-source-activity and activity-experiment. Any additional information not contained in the CVs needs to be avoided like the publication of an experiment co-listed in two MIPs in a specific one even if the model does not participate in it.
Add unique non-changing ids to every source_id entry:
As source_id change with changing model versions, they are not reliable as key for accessing the CV. An additional id solves that problem. With the growing complexity of the CVs we should consider to define a metadata schema and use a relational database.
ES-DOC vs. source_id CV:
I think of the CV as provider of basic information on activities and on the participants with their contributions. Details should remain in ES-DOC. Therefore I suggest that the source_id contains a reference to an ES-DOC DOI
Responsibilities / Functionalities of different central components (in my view):

Central and heavily reused information should be maintained by the IPO together with contact information. I think of person, institution, and references as these central information to serve to the infrastructure partners.
The CVs contain public basic content on activities and on the participants with their contributions maintained by IPO.
An index (could be ESGF index) connects data and related information and makes them accessible in a GUI and through an API. Apart from the dataset information, these are ES-DOC, data citation and CV. Currently, furtherinfo connected to the files provides a GUI for information, same does the citation landing page. The citation url in the ESGF index provides machine access. But in the end, we need to reduce interfaces/exchange of information and define where the "master copy" is.

One more specific comment:

References for a source_id could be model documentations (ES-DOC DOIs), papers on model evaluations (crossref DOI) or a model code (software) DOI. They are important to connect these contents and make them accessible for e.g. knowledge graphs sometimes also called PID graphs.


text:
Stopped muon decay in GEANT 4.9.4

Looking at muon neutrino interactions in WCSim as part of the NuPRISM fiTQun validation I noticed that there were a number of events with clear Cherenkov rings that were not associated to any true particle.
Looking in WCSimTrackingAction.cc I found that the true particle trajectories were only saved for "Decay" processes, but that Michel electrons were being produced by both the G4Decay process and the G4MuonMinusCaptureAtRest process.  I've copied some output from the tracking action code below, listing the particle type and its creation process:
track # 2,it is a mu-
track # 49702, it is a e-
It is from a Decay
track # 49701, it is a anti_nu_e
It is from a Decay
track # 49700, it is a nu_mu
It is from a Decay
track # 49699, it is a nu_mu
It is from a muMinusCaptureAtRest
track # 49698, it is a anti_nu_e
It is from a muMinusCaptureAtRest
track # 49697, it is a e-
It is from a muMinusCaptureAtRest
This shows a single muon producing two decay electrons.  Attached is a screenshot of this event, with the muon shown as the solid green line, the electrons as solid blue lines and then the associated neutrinos as the dashed lines.  I was able to display this extra electron by adding ProcessList.insert("muMinusCaptureAtRest") to the initialisation of WCSimTrackingAction.cc.

Investigating this with Peter Gumplinger, the problem is solved by using GEANT 4.9.6 (or higher).  There were large changes to the muon capture code for v4.9.6 going to the newer version which seems to have fixed this issue.  The second screenshot shows the same event with no changes to WCSim, and the track printout showed electrons coming from the muMinusCaptureAtRest process only (as expected).

If anyone is using decay electrons in their physics studies then they should probably avoid GEANT 4.9.4 I think.  This might also give more impetus for switching the official WCSim GEANT4 version to something more recent.

Thanks for pointing this out! We are imminently moving to Geant4.10 with PR #178, but this is interesting for people who have been using the current version of the code to note.

Hi Erin - how imminent is the move to Geant 4.10?  We want to start performing analyses using WCSim for the intermediate WC detector and this bug makes it impossible to do so without updating Geant.
If there is a new release of WCSim with 4.10 in the next week or two then it would make sense for us to wait for that, but if it's not going to be ready until 2017 (say) then we will probably just update to 4.9.6.

Hi Erin - can you give us some information on the schedule to move to Geant 4.10? Thanks!

Sure. The upgrade had been stalled due to manpower issues, but a new postdoc at QMUL (@sk1806) has recently agreed to look into the remaining issues (mostly related to which secondaries model we should use in Geant4.10). This upgrade is high priority and I would say our aim is to implement these changes in the next month or so. If you do decide to use Geant4.9.6 in the interim, WCSim should work as is, though the outputs haven't been tested very extensively.

fixed with PR #211

source: gharchive/issue

repo: WCSim/WCSim

license: MIT

license_type: permissive

license_source: github-api


text:
Allow a user to pan, zoom and crop before 'printing' a map

Description
This fixes #1019 .
Adds a new button on the print dialog, enabling users to move zoom or change the output's dimentions
How to test the feature:

open print dialog
use the EDIT MAP button

Checklist - did you ...

Test your changes with

[x] REACT_APP_COUNTRY=rbd yarn start
[x] REACT_APP_COUNTRY=cambodia yarn start
[x] REACT_APP_COUNTRY=mozambique yarn start
[x] Add / update necessary tests?
[x] Add / update outdated documentation?

Screenshots

Thanks @echaidemenos. This is a great start. A couple of comments / issues:

The footer text is getting cutoff in this PR. I just checked and it was working as expected in main
When I go to 'edit' the map, it's not clear that I need to click 'preview' to get back to the previous screen. Can we replace the 'preview' button with two buttons: 'ok' and 'cancel'?
I zoomed in and cropped to the extent I'm interested in and then clicked 'preview'. The preview screen is zoomed in and makes it difficult to see what's going on. I was expecting to see the same map view I just created when I go back.
Image downloads in PNG and JPEG appear correctly. But the PDF download is zoomed in and cuts off the image.

Here's the map, cropped and zoomed as I would like to see it:

After I click 'preview', this is what I see:

And here are the outputs that I downloaded.
JPEG:

PNG:

PDF:
moz-print.pdf

Nice work @echaidemenos. It's good to see the preview automatically updates now. I found a few issues though:

If I try to print a map with a layer of type admin_level_data, the layer never renders in the print preview screen. Try Mozambique, total population as an example
The images used in the legend are missing for Mozambique, tropical storms
The bottom of the map, the scale, and the footer text are all cutoff in the PDF version I downloaded
Please change the stroke around the map preview to 1px, solid black

I'm also wondering, what was the rationale to only allow users to adjust the width and not the height? I was expecting both. Is there a constraint for the minimum height that we have to consider?
Issue 1, admin-level layer doesn't render

Issue 2, missing images in legend

Issue 3, content is cutoff in the PDF
map (11).pdf

@echaidemenos I can confirm that something is broken with the PDF size. The logic doesn't seem to take into account the new aspect ratio. So if we don't change the width the image is too small and the footer is super high, and if we adjust the width then the image goes out of bounds.

Thanks @ericboucher. A couple of small issues though:

The PDF version is now slightly cutoff on the right side (see the scale on the bottom right)
map (15).pdf

In a couple instances, the preview kept refreshing every second or so. When that happened, and I downloaded, some elements weren't redrawn and didn't appear in the PDF
map (14).pdf

Thanks @echaidemenos changes work great and the resulting size is a lot more reasonable. I think this will help with sharing and sending via email

I'm periodically seeing the continuous rendering loop I mentioned earlier
https://github.com/WFP-VAM/prism-app/assets/3343536/7fd45d1c-4f71-4dc7-901a-4fefacfe7a5b

The map refresh loop issue is resolved now, thanks @echaidemenos. A nice to have would be to show a spinner when the print preview is re-rendering but don't worry if that will hold this PR up much further.

source: gharchive/pull-request

authors: echaidemenos ericboucher wadhwamatic

repo: WFP-VAM/prism-app


text:
chore(main): release 1.9.0

:robot: I have created a release beep boop
1.9.0 (2023-03-18)
Features

add configure support and make some code cleaner (bdde859)
websit add comment feature (5216151)

Bug Fixes

replace logo (8ed5649)

Styling

adjuest websit comment style (c57ef8b)

Docs

fix CHANGELOG.md (9949b90)
make doc better (2d4f45c)
make doc better (9cb3bdd)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/WGrape/lexer/releases/tag/v1.9.0 :sunflower:

repo: WGrape/lexer


text:
IPV6 only sites are not working

Tried using node-wpapi on a website which only supports ipv6 and it returns:
code: 'ETIMEDOUT',

For others with this problem: As a workarround I fixed it by adding cloudflare to my site so it supports ipv4.

repo: WP-API/node-wpapi

license: mit

license_source: bigquery


text:
The Window subsystem for android cant run because critical files are missing from the installation folder

also is there supposed to be a separate app for gapps? because there isnt one on my pc after the procedure

check your kernel file  name

authors: NtinosChan nipwd

repo: WSA-Community/WSAGAScript

license: Unlicense


text:
Analysis of Published Records

Currently, pulling in ALL jobs; limiter to published jobs not working.

Fixed.

repo: WSULib/combine


text:
做牛魔

你做的是牛魔酬宾

不是很友善啊


text:
Working example

Upload 512x512x32 PSF stack and USAF target data.
Rewrite main to point to default settings file
Change code to expect PSF and impulse stack to be same x and y dims
Add readme

Added example PSF stack and USAF target data
Modified code to expect PSF and raw data to be the same size
Added readme

repo: Waller-Lab/DiffuserCam


text:
Question: Opening Metamask on Flutter Web

How can I use this plugin to launch my Metamask extension on the browser?

Hello @andrewkimjoseph! Unfortunately for now you would need to leverage some other package such as flutter_web3 or webthree
webthree package example for web is here https://github.com/devopsdao/webthree/blob/master/example/metamask/web/main.dart
Bear in mind that once you use an injected connector/wallet the connection is not handled by WalletConnect

authors: andrewkimjoseph quetool


text:
Disconnecting an expired pairing throws JsonRpcError

Looks like a code path in the new clear logic needs to be fixed.  I can clear an active pairing, but when I try to clear an expired paring, it throws a Unhandled Exception: JsonRpcError(code: -32602, message: Expired.
NOTE: These sessions have been stacking up on my app since the clear logic wasn't working.   Not sure if this will occur with the updated logic.
  /// For all core pairings, disconnect
  Future corePairingsDisconnectAll({ICore? core}) async {
    logger.d('clearAllPairings - ');
    core = core ?? _signClient.core;
    // Parings
    List<PairingInfo> parings = core.pairing.getPairings();

    logger.d('==Pairings (${parings.length})==');
    if (parings.isEmpty) {
      logger.d('No Pairings.');
    } else {
      for (PairingInfo pairingInfo in parings) {
        logger.d(
            'Disconnect - ${printDurationFromNow(pairingInfo.expiry)} topic: ${pairingInfo.topic}, relay: ${relayToString(pairingInfo.relay)}, active: ${pairingInfo.active}, ${pairingInfo.peerMetadata?.name ?? 'unavailable'}');
        await core.pairing.disconnect(topic: pairingInfo.topic);
      }
    }
    return;
  }

Clearing out my session table:
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - =Core Services (wc v2 crypto - uptime: 127 seconds)=
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - Relay URL: wss://relay.walletconnect.org
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - ==Pairings (10)==
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: 3c7966ebb41a8c4c21760fa6593ec3d5849efbf30ccd4a9b1d75193699ac1f2b, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: 2a08b7f14035cbab2927189c2c8d000938039c50f9ac6a325dc30c73f432f33e, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: 8d99ec404ed1c1ebd85b9ae48ff440ad4307d7e9415556b688777cc6593a9b51, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: c7b25d40be3ef150572874f00597edb8b587f935be52f1a1e63a17dc410b567d, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: 33a8e24dbc35e1958e5ffd9adda9cf1f3bec23a8ebdd3bda605a5c3c790580e3, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: 31ca0d6fbe8bd577d44dc37297a1a3dcf2e38bf9598361e9f9a82cfacf3dd6dc, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: 6e843d6d2c2c17d522d09355a3c87dc4e9324310e41e1e1d0c60af48fc28935d, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - 29.1 days topic: 460c68cf332c73cbaf4e7a9758207a17e727a00d5ef47b0388e2136abf8d948d, relay irn, active: true peer: BitKeep
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - <expired> topic: 9d1f170cef7bb27ef295369a173910d3466f8a8a91eda63a88c83fb0ad0175a5, relay irn, active: false peer: <unavailable>
I/flutter (16858): 09:20:14 🐛 WalletConnctSvc - 29.2 days topic: 0899811f65de9b6a096fcb8c763ff20ee23196b0ec750945745bc3202ce092a6, relay irn, active: true peer: BitKeep
I/flutter (16858): 09:20:38 🐛 WalletConnctSvc - clearAllPairings -
I/flutter (16858): 09:20:38 🐛 WalletConnctSvc - ==Pairings (10)==
I/flutter (16858): 09:20:38 🐛 WalletConnctSvc - Disconnect - <expired> topic: 3c7966ebb41a8c4c21760fa6593ec3d5849efbf30ccd4a9b1d75193699ac1f2b, relay: irn, active: false, unavailable
E/flutter (16858): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: JsonRpcError(code: -32602, message: Expired. pairing topic: 3c7966ebb41a8c4c21760fa6593ec3d5849efbf30ccd4a9b1d75193699ac1f2b)
E/flutter (16858): #0      Pairing.isValidPairingTopic (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:339:7)
E/flutter (16858): <asynchronous suspension>
E/flutter (16858): #1      Pairing._isValidDisconnect (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:697:5)
E/flutter (16858): <asynchronous suspension>
E/flutter (16858): #2      Pairing.disconnect (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:298:5)
E/flutter (16858): <asynchronous suspension>
E/flutter (16858): #3      WalletConnectService.corePairingsDisconnectAll (package:flutter_web3_demo/services/walletconnect_service.dart:531:9)
E/flutter (16858): <asynchronous suspension>
E/flutter (16858): #4      _MyHomePageState.build.<anonymous closure> (package:flutter_web3_demo/main.dart:237:19)
E/flutter (16858): <asynchronous suspension>
E/flutter (16858):

Note1:
The expired pairing entry (active:false) also shows up in the Sign Client Proposal List.  I suspect to reproduce this you only need to do is initiate pairing, wait 5 minutes then call disconnect on the unpaired topic.
I/flutter (19482): 13:38:10 🐛 WalletConnctSvc - relayClientConnect - protocol wc v2 url: wss://relay.walletconnect.org
I/flutter (19482): 13:38:12 🐛 WalletConnctSvc - Core.onRelayClientConnect - Marking relay connection up.
I/flutter (19482): 13:42:18 🐛 WalletConnctSvc - =Core Services (wc v2 crypto - uptime: 246 seconds)=
I/flutter (19482): 13:42:18 🐛 WalletConnctSvc - Relay URL: wss://relay.walletconnect.org
I/flutter (19482): 13:42:18 🐛 WalletConnctSvc - ==Pairings (4)==
I/flutter (19482): 13:42:18 🐛 WalletConnctSvc - 28.9 days topic: 460c68cf332c73cbaf4e7a9758207a17e727a00d5ef47b0388e2136abf8d948d, relay irn, active: true peer: BitKeep
I/flutter (19482): 13:42:18 🐛 WalletConnctSvc - <expired> topic: 9d1f170cef7bb27ef295369a173910d3466f8a8a91eda63a88c83fb0ad0175a5, relay irn, active: false peer: <unavailable>
I/flutter (19482): 13:42:18 🐛 WalletConnctSvc - 29.0 days topic: 0899811f65de9b6a096fcb8c763ff20ee23196b0ec750945745bc3202ce092a6, relay irn, active: true peer: BitKeep
I/flutter (19482): 13:42:18 🐛 WalletConnctSvc - <expired> topic: 68fb06fb7ce4794321e19e7493eb06b4bca7dba735a644ff286f2b623ac1ce91, relay irn, active: false peer: <unavailable>
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - =Sign Client Info - (wc v2)=
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - ==Sign Client Sessions (0)==
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - No sessions.
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - ==Sign Client Proposals (2)==
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - <expired> topic: 9d1f170cef7bb27ef295369a173910d3466f8a8a91eda63a88c83fb0ad0175a5 - required: [ eip155:137 ], optional: [  ], session properties: null, id: 1677608096364, relays: [ irn ]
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - <expired> topic: 68fb06fb7ce4794321e19e7493eb06b4bca7dba735a644ff286f2b623ac1ce91 - required: [ eip155:137 ], optional: [  ], session properties: null, id: 1677685680833, relays: [ irn ]
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - ==Sign Client Stats==
I/flutter (19482): 13:42:53 🐛 WalletConnctSvc - No data.
I/flutter (19482): 13:43:12 🐛 WalletConnctSvc - Core.onRelayClientDisconnect - Marking relay connection down. Connection lasted 300 seconds.
I/flutter (19482): 13:43:12 ⚠ WalletConnctSvc - Core.onRelayClientDisconnect - Attempt relayClientConnect() to recover. (isRelayClientEnabled = true, Retry Count: 44)
I/flutter (19482): 13:43:12 🐛 WalletConnctSvc - relayClientConnect - protocol wc v2 url: wss://relay.walletconnect.org
I/flutter (19482): 13:43:13 🐛 WalletConnctSvc - Core.onRelayClientConnect - Marking relay connection up.
I/flutter (19482): 13:43:51 🐛 WalletConnctSvc - clearAllPairings -
I/flutter (19482): 13:43:51 🐛 WalletConnctSvc - ==Pairings (4)==
I/flutter (19482): 13:43:51 🐛 WalletConnctSvc - Disconnect - 28.9 days topic: 460c68cf332c73cbaf4e7a9758207a17e727a00d5ef47b0388e2136abf8d948d, relay: irn, active: true, BitKeep
I/flutter (19482): 13:43:51 🐛 WalletConnctSvc - Disconnect - <expired> topic: 9d1f170cef7bb27ef295369a173910d3466f8a8a91eda63a88c83fb0ad0175a5, relay: irn, active: false, unavailable
E/flutter (19482): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: JsonRpcError(code: -32602, message: Expired. pairing topic: 9d1f170cef7bb27ef295369a173910d3466f8a8a91eda63a88c83fb0ad0175a5)
E/flutter (19482): #0      Pairing.isValidPairingTopic (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:339:7)
E/flutter (19482): <asynchronous suspension>
E/flutter (19482): #1      Pairing._isValidDisconnect (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:697:5)

Note2:
The session does get disconnected, but I am not sure what logic might not be completed.  My loop certainly exits early.

Is this still occurring with the most recent version (1.1.2? I made some updates to error handling in the library.
If it still occurs, I'll double check things.

Yes it still occurs.   I was able to reproduce it by pairing a wallet, waiting for the pairing proposal to expire, then call disconnect.
NOTE: The expired pairing is has the same topic as the sign client proposal.  It is marked active:false as the negotiated connection has a new topic string.  Maybe there is cleanup that isn't occurring on this temporary pairing topic?
Workaround
Do not call disconnect if the pairing if (active == false).
flutter: 10:02:39 🐛 WalletConnctSvc - =Core Services (wc v2 crypto - uptime: 82 seconds)=
flutter: 10:02:39 🐛 WalletConnctSvc - Relay URL: wss://relay.walletconnect.org
flutter: 10:02:39 🐛 WalletConnctSvc - ==Pairings (2)==
flutter: 10:02:39 🐛 WalletConnctSvc - <expired> topic: 82a2965bdaf216e6300ea9a2756e6d08f979a979892cecacc073118b728c639a, relay irn, active: false peer: <unavailable>
flutter: 10:02:39 🐛 WalletConnctSvc - 30.0 days topic: f1f466b146be695b54cbd30f46e6c5dbcdb929e442e0ffae0d05108a92ea19ae, relay irn, active: true peer: Keyring
flutter: 10:02:40 🐛 WalletConnctSvc - =Sign Client Info - (wc v2)=
flutter: 10:02:40 🐛 WalletConnctSvc - ==Sign Client Sessions (1)==
flutter: 10:02:40 🐛 WalletConnctSvc -  7.0 days topic: 0f3a56e4a05a0ccae857cc2eba8bfe80fb1fc85b576925912434e2a4a6a3e808, pairing topic: f1f466b146be695b54cbd30f46e6c5dbcdb929e442e0ffae0d05108a92ea19ae ack: true, peer name: Keyring accounts: [ eip155:137:0x0a639a9dd60d699c2cb4219082e26a4180b5263d ]
flutter: 10:02:40 🐛 WalletConnctSvc - ==Sign Client Proposals (1)==
flutter: 10:02:40 🐛 WalletConnctSvc - <expired> topic: 82a2965bdaf216e6300ea9a2756e6d08f979a979892cecacc073118b728c639a - required: [ eip155:137 ], optional: [  ], session properties: null, id: 1677945849000, relays: [ irn ]
flutter: 10:02:40 🐛 WalletConnctSvc - ==Sign Client Stats==
flutter: 10:02:40 🐛 WalletConnctSvc -
Sign Client topic: 0f3a56e4a05a0ccae857cc2eba8bfe80fb1fc85b576925912434e2a4a6a3e808 - messageCount: 0 (0 bytes), errorCount 0, pings(TX/RX): 0/0, expireCount: 0, extentCount: 0, connectTime: 09:57:52, deleteTime:  unknown
flutter: 10:02:47 🐛 WalletConnctSvc - clearAllPairings -
flutter: 10:02:47 🐛 WalletConnctSvc - ==Pairings (2)==
flutter: 10:02:47 🐛 WalletConnctSvc - Disconnect - <expired> topic: 82a2965bdaf216e6300ea9a2756e6d08f979a979892cecacc073118b728c639a, relay: irn, active: false, unavailable
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: JsonRpcError(code: -32602, message: Expired. pairing topic: 82a2965bdaf216e6300ea9a2756e6d08f979a979892cecacc073118b728c639a)
#0      Pairing.isValidPairingTopic (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:339:7)
<asynchronous suspension>
#1      Pairing._isValidDisconnect (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:692:5)
<asynchronous suspension>
#2      Pairing.disconnect (package:walletconnect_flutter_v2/apis/core/pairing/pairing.dart:298:5)
<asynchronous suspension>
#3      WalletConnectService.disconnectAllParings (package:flutter_web3_demo/services/walletconnect_service.dart:577:11)
<asynchronous suspension>
#4      _MyHomePageState.build.<anonymous closure> (package:flutter_web3_demo/main.dart:126:21)
<asynchronous suspension>
[VERBOSE-2:profiler_metrics_ios.mm(203)] Error retrieving thread information: (os/kern) invalid argument

If you wrap your disconnect in a try catch, does that work?
It's actually supposed to throw the expired error.
You just need to handle it accordingly.
It's safe enough to ignore it.

Much of the time with the JsonRpcErrors I am seeing:

The asynchronous method has returned and code has continued passed the try/catch before the error occurs.

I have tried widening the try/catch, but there also seem to be issues with the JsonRpcErrors not getting re-thrown so they are catch-able.

The JsonRpcErrors nor WalletConnectError are exceptions.
So your try/catch in the code above wouldn't catch them.
Instead of on Exception, just do a generic catch (e) to catch all thrown errors.
If you do that, and the issue persists, let me know.
When you disconnect, and the pairing has expired, it should automatically be deleted.
I suppose the fact that they aren't deleted for you is worrisome... I haven't experienced this in my example dApp.

#43 Changes the JsonRpcError to be a WalletConnectError.
If wrapping the disconnect with a try/catch that is looking for a WalletConnectError doesn't work, keep this issue open.
If it does work, please close this issue out.

Tested against repo sha 78a982e

Confirmed the issue can be caught with a WalletConnectError and I can just log this as a warning.
Thanks for wrapping it in a WalletConnect error.
I'll keep an eye on the growing size of core.pairing.getPairings() and signClient.sessions.getAll().

For the next developer - this code is improved:
        try {
          await core.pairing.disconnect(topic: pairingInfo.topic);
        } on WalletConnectError catch (e) {
         // technically look for WalletConnectError 6 : Expired.  to consider it a warning
          logger.w('disconnectAllParings - WalletConnectError ${e.code} : ${e.message}');
        } catch (e, s) {
        // Catch anything else (not just Exceptions) and log stack
          logger.e('disconnectAllParings - Unexpected error: $e, topic ${pairingInfo.topic}\n$s');
        }


text:
When I customize my wallet, there are two metaMasks, and my customized metaMask wallet cannot be linked, and there is also an additional coinbase wallet.

Describe the bug
When I customize my wallet, there are two metaMasks, and my customized metaMask wallet cannot be linked, and there is also an additional coinbase wallet.
SDK Version

Version [2.0.0-rc.1]

To Reproduce
https://codesandbox.io/p/sandbox/strange-sinoussi-it3utr?file=%2Fsrc%2Fcore%2Findex.ts&selection=[{"endColumn"%3A21%2C"endLineNumber"%3A110%2C"startColumn"%3A21%2C"startLineNumber"%3A110}]
Screenshots

@shenhaoguangDayDayUp

You see first metamask and coinbase wallets, because these are configured in wagmi when you use our modalConnectors() preset. To  remove them you need to change it to something like this (only wallet connect connector is required):

connectors: [new WalletConnectConnector({ chains, options: { qrcode: false } })]

Specifying metamask like that in desktopWallets will not work. This configuration is only for native desktop wallets that can be deep linked into, which metamask is not, it is a browser extension also known as injected wallet. You need to use wagmi's InjectedConnector for that. Due to the nature of ethereum, if you have multiple extensions, they will conflict with one another. In web3modal we use this InjectedConnector in our defaults and show you either first installed extension that was loaded in or fall back to metamask (which will ask user to install it).


text:
Adding Features to the Calculator App

Is your feature request related to a problem? Please describe.
This issue describes commited and future features of the calculator app
Describe the solution you'd like
the calculator app has the exact same features as the windows calculator app
Describe alternatives you've considered
none
Additional context
OpenSource Project
Related Sub Issues

[x] #7
[x] #10
[x] #11

implementing Calculator Arithmetic Functions
The implementation with eval works around using 2 List buffers that store the input values and operations in order.
when the equals button is triggered, the lists are popped from first element and are combined to create the equation which is then evaluated.


text:
无法编译

是不是缺少文件了啊？

难道是 我sdk 版本问题？
dotnet --list-sdks
6.0.101 [C:\Program Files\dotnet\sdk]

repo: WangJunZzz/abp-vnext-pro


text:
results in JSON format

Hello,
Could you provide the results on the NuScenes train, validation and test splits in JSON format? I plan to use this as the input for a tracking algorithm.
Best regards,

Hi,
For results json file in validation set: https://drive.google.com/file/d/1O34GjYdmZRoHrjnGLIVSdYPZ2H0aaymU/view?usp=sharing
For train and test split, I recommend you to load the provided model and run the inference.
Best,
Tianyuan

Hi, For results json file in validation set: https://drive.google.com/file/d/1O34GjYdmZRoHrjnGLIVSdYPZ2H0aaymU/view?usp=sharing
For train and test split, I recommend you to load the provided model and run the inference.
Best, Tianyuan

This shared file cannot be opened due to permission restrictions

authors: a1600012888 mayechi mpQuintana


text:
mac  keymap loses mod in russian layout

Hi there!
I have a couple of keymaps with cmd mod like for saving file on cmd+s
vim.keymap.set({ 'i', 'x', 'n', 's' }, '<D-s>', '<cmd>w<cr><esc>', { desc = 'Save File' })
or commenting line.
vim.keymap.set('n', '<D-/>', 'gcc', { remap = true })
and while i'm in the russian layout all these keymaps passes the letter itself without any mod, like 'cmd+s' just types 's' and 'cmd+/' passes '/'.
I've tried to bind cmd to number
vim.keymap.set({ 'i', 'x', 'n', 's' }, '<D-6>', '<cmd>w<cr><esc>', { desc = 'Save File' })
and it works both with en and ru layouts.
What am I missing here?
macos 14.5
nvim 0.10
wezterm + enable_kitty_keyboard

Yeah, it is definitely on the wezterm/kitty side, thanks


text:
Error during compilation: dss-appjoint-auth-0.9.0.jar is missing.

Missing DSS-appjoint-auth-0.9.0.jar while compiling exchangis-service.
编译exchangis-service时报缺少dss-appjoint-auth-0.9.0.jar

https://github.com/WeBankFinTech/Exchangis/pull/282，这个pr解决了

The new version of dss has fixed this problem and updated the latest code.

authors: jefftlin wrhwww

repo: WeBankFinTech/Exchangis


text:
Option to do different damage by player or entity

Description
Option to do different damage by player or entity
Configuration
  Damage:
    Player_Damage: <amount>
    Entity_Damage: <amount>

This will be added in the config.yml damage section, as it is too "extensive" to be added to every weapon

Fixed in next update 1.8.6-BETA

repo: WeaponMechanics/MechanicsMain


text:
VoxelShape support for projectiles

Link to code
https://github.com/WeaponMechanics/MechanicsMain/blob/master/WeaponMechanics/src/main/java/me/deecaad/weaponmechanics/compatibility/IWeaponCompatibility.java#L47
Related Issues
No response
Improvements
Add VoxelShape support for projectiles

Added
https://github.com/WeaponMechanics/MechanicsMain/commit/d724d153d939b9a1f9461bc78c876ca6397a5f47


text:
Need data-delete on the SVG and PATH tags

The delete button on the screen keyboard doesn't work if you click on the icon path rather than on the background. To fix this, add data-delete to the SVG and PATH tags.

Hi, I am working on this!
Could you assign this issue to me?

authors: cyberabi varungole

repo: WebDevSimplified/wordle-clone


text:
adding google analytics (#8)

Added the tag plugin for Gatsby which adds GA using the latest method. It can also easily add Google Tag Manager if needed.
https://www.gatsbyjs.org/packages/gatsby-plugin-google-gtag/

Closing this issue as it's already assigned and fixed.


text:
Created a Readme File and add detailed structure about the project #1

As per the instructions, I have created a well-structured and well-defined README file that elaborates on what Hacktoberfest 2023 is, the purpose of this project, the motivation behind it, and how to contribute. Additionally, I've added a hit button to count the number of visitors to this repository.

Hello can you include some a screenshot of what it looks like.

Hello can you include some a screenshot of what it looks like.
Here are screenshots of the preview of the README file-

Looks good will merge it asap.

authors: AmreetKumarkhuntia shivamkasaudhan

repo: Webwiznitr/Hacktoberfest-Tulip


text:
Use topojson instead of geojson.

title

maybe this could be helpful?
https://mygeodata.cloud/converter/
also, use albers projection map for USA. it would look a lot better

converted geojson to topojson


text:
Compilatio Error.

Hey!
I am on kali-linux Desktop.
I cloned this repo and tried to compiled it.
There a lot of bugs(in my view).
For instance:
In file src/neral/layer.h  enum ActivationFunction is only declared and not defined. I noticed It is defined in src/neural/neuron.h but it gave error.
I made a new  header file activationfunction.h in src/neural and defined the enum in it and then include it in both layer.h and neuron.h.
It worked file after doing other bug fixing.
was it compiled on your pc?
I just want to know.
If you want me to mention all bug I will do it.

Hi, I developed the code using Visual Studio in Windows. It seems that it simplifies the code but it makes it less compatible if you want to compile it by yourself on Linux, sorry for that. I'll try to update it when I have the time.

Well Ok then.

authors: Itz-Verma Whiax

repo: Whiax/NeuralNetworkCpp


text:
Add self-balancing mode

Every question starts at the same point value, and then drops be a certain increment based on the number of people who have solved a challenge. Should be a toggle in the config.

So each challenge is worth max(base - incr * solves, minimum)?
The team ranking query is going to be so cool.

Considering how points as of now are just derivative of a SQL query, we should be able to just supplant that based on some flag in the config file

We're currently using SQLAlchemy to map Python object properties to database columns.  For example, the property Challenge.points directly maps to the column points in the table challenge.
I wonder if there's a way to define a property (eg. Challenge.points) as something SQL should compute based on other columns, like the formula above.  It would be really nice if, any time we select a Challenge, SQLAlchemy automatically adds some + math * here AS points into the query.  It may even let us just do Challenge.query(...).order_by(Challenge.points), and know to order by the points pseudo-column.

Looks like we can use the hybrid function decorator for exactly this.
http://docs.sqlalchemy.org/en/latest/orm/extensions/hybrid.html

We want this as toggle-able, but I think discussing whether it should be used is a conversation per-ctf.
+1'd with lowest priority

authors: DeltaHeavy atti1a nickfrostatx

repo: WhiteHatCP/wrath-ctf-framework


text:
Add option to remove or transfer towns/claims after X days of inactivity

Suggested by Discord user: GrandpaCrunkle#3763

Add a remove town/claims after x amount of days of player inactivity.

Adding onto this: perhaps making it a setting, allowing for it to either transfer or remove the claims and then a setting for inactivity count. The aforementioned transferring might have to be done just by pulling the member list of the town and choosing the earliest member to become the "owner".

Yeah, pretty please! If that process could be automated it would be pretty dope.
I'm looking forward to that feature, as it's present in Advanced Region Market and saves a lot of time for the admins. ARM is a plot plugin, which enables buying, setting their flags, etc. In the Advanced Region Market inactivity reset works like this:

inactivity reset time is controlled via settings in config and permission groups (eg. an iron rank player's inactivity reset time is 7d and a diamond rank player's inactivity reset time is 21d); the plot will be reset when the Owner is offline for a certain amount of time;
if the remaining time is very close to 0 (this is also settable), the member can take over the plot from the Owner; the Owner will become a member
if nobody will prevent the remaining time by going 0, then the plot is reset, back to its original state.

The two first points could be a part of HT, the last one - could be modified. In the HT, removing the town from its existence should be enough.


text:
🛑 Transmission Web is down

In 4cdc464, Transmission Web (https://torrents.wicloz.rocks/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Transmission Web is back up in 199a928 after 28 minutes.

repo: Wicloz/upptime


text:
Refactor All DI modules inside a Modules.kt file

Fixes #290
Refactored all the files in di package in a single file Modules.kt
Screenshots
No changes in screen
Open questions and concerns
Please review my changes it also includes unit test of splash screen in earlier PR.

Should I change file and function name here?

Function Name.

Please merge this PR

Thanks @Darshpreet2000 .


text:
Update for Tutorial 5

Link to relevant issue(s)
Closes #168
How did you address these issues with this PR? What methods did you use?
Added the ability to draw text to this animation.

This should normally go to v0.2. did you change it in master?

Also, @Wikunia , I found a strange error/bug that is happening with my code. The gif draws the text the first time, but after the first drawing, the text is not redrawn. Here is the gif:

Here is the code:
using Animations
using Javis
using PeriodicTable
using Unitful

function ground(video, action, frame)
    background("white")
    sethue("black")
    text("$frame / 550", -240, -230)
end

function element(; color = "black")
    sethue(color)
    circle(O, 4, :fill)
    return val(:_current_scale)[1]
end

function info_box(args...; value = 0)
    fontsize(12)
    box(140, -210, 170, 40, :stroke)
    box(0, 175, 450, 100, :stroke)
    for element in elements
        if value == round(ustrip(element.atomic_mass))
            text(
                "Element name: $(element.name)",
                140,
                -220,
                valign = :middle,
                halign = :center,
            )
            text(
                "Atomic Radius: $(round(ustrip(element.atomic_mass)))",
                140,
                -200,
                valign = :middle,
                halign = :center,
            )
            textwrap("Description: $(element.summary)", 400, Point(-200, 125))
        end
    end
end

demo = Video(500, 500)
javis(
    demo,
    [
        BackgroundAction(1:550, ground),
        Action(
            1:550,
            :atom,
            (args...) -> element(),
            subactions = [
                SubAction(101:140, Scaling(1, 12)),
                SubAction(241:280, Scaling(12, 20)),
                SubAction(381:420, Scaling(20, 7)),
                SubAction(521:550, Scaling(7, 1)),
            ],
        ),
        Action(
            1:100,
            (args...) -> info_box(value = val(:atom)),
            subactions = [SubAction(1:30, sineio(), appear(:draw_text))],
        ),
        Action(
            141:240,
            (args...) -> info_box(value = val(:atom)),
            subactions = [SubAction(141:170, sineio(), appear(:draw_text))],
        ),
        Action(
            281:380,
            (args...) -> info_box(value = val(:atom)),
            subactions = [SubAction(281:310, sineio(), appear(:draw_text))],
        ),
        Action(
            421:520,
            (args...) -> info_box(value = val(:atom)),
            subactions = [SubAction(421:450, sineio(), appear(:draw_text))],
        ),
    ],
    pathname = "atomic.gif",
    framerate = 10,
)

Can you think of why the text in the top right box is not being displayed as a drawing each time I call the info_box action like I expect?

SubActions use relative frames so yours are never called.

authors: TheCedarPrince Wikunia


text:
git diff fails when comparing files that differ only in file mode

The steps to reproduce are as follows.
$ git config diff.external difft
$ touch foo bar
$ chmod 755 foo
$ git diff --no-ext-diff --no-index foo bar
diff --git foo bar
old mode 100755
new mode 100644
$ git diff --no-index foo bar
Segmentation fault: 11

$ difft --version
Difftastic 0.53.1

Tested on macOS 13.6.3

Thanks for the report. I think this might be a git issue: I can also replicate if the external diff is diff or cat.

I've reported upstream, the thread should soon appear in https://lore.kernel.org/git/ I think.

https://lore.kernel.org/git/CAFXAjY7XcL1APhLRXU8TO96z=f7957f2ieK56dHVsXUay55vpg@mail.gmail.com/T/#u

Fixed upstream, thanks for the report!

authors: Wilfred kkrrz

repo: Wilfred/difftastic


text:
Full exception info may be excessive

With some languages, environments, and examples, exceptions can get very long. They may get too long to fit in an SO question (dozens or hundreds of pages), but even if they fit, they may be too big for anyone to want to look at. I think the page on missing exception info should provide some tips for dealing with this situation.

That's fine. I haven't had to deal with that, nor do I venture in tags where this might be an issue (I suppose, since I've never encountered that problem before with a question), so if anybody has some tips please feel free to add!

You're more likely to encounter very long stack traces in functional
languages, where
recursion is more likely to be deep. But I was actually thinking about the
sorts of error
messages the Glasgow Haskell Compiler produces when it is compiled in
compiler-debugging
mode (not the way users normally compile it!) and it encounters "core lint"
errors (indicating
violations of internal invariants in the optimizer). These messages can be
quite absurdly
long because they try to expose the full IR the compiler was processing
when it ran into trouble.
Of course, most SO questions aren't about debugging industrial-strength
compilers....
On Mon, Dec 18, 2017 at 11:01 AM, Will Sullivan notifications@github.com
wrote:

That's fine. I haven't had to deal with that, nor do I venture in tags
where this might be an issue (I suppose, since I've never encountered that
problem before with a question), so if anybody has some tips please feel
free to add!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/WillSullivan/idownvotedbecause/issues/47#issuecomment-352470555,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABzi_VK__UU4ALvJ9aWcutbXJak4BdQPks5tBoxXgaJpZM4RE6U3
.

@treeowl have a look at some c++ compiler messages :) Seriously, there's rarely any reason to abbreviate even those. In fact, one can print messages from multiple compilers or link to an online IDE where the compiler can be easily switched/run side-by-side.
I'd simply keep the wording "complete information" because 99% of the time, "too much" doesn't exist nor hurt.

does this qualify or to much info or could it be expanded?

authors: LindaLawton WillSullivan sehe treeowl

repo: WillSullivan/idownvotedbecause


text:
Timer context manager doesn't add ".total"

https://github.com/WoLpH/python-statsd/blob/master/statsd/timer.py
Is there any purpose on and logic behind why Timer.time context manager does not add .total. into the metric name but Timer.stop() call adds it by default? It seems inconsistent.

There is some logic to it, when using the decorator you can't support intermediate times/results. With the normal start/stop you can do that.
For example:
timer = statsd.Timer('your_function')
timer.start()
# do something here
timer.intermediate('part 1')
# do some more
timer.intermediate('part 2')
# and the finishing bit
timer.stop()

It's just a slightly different pattern to work with.

authors: WoLpH pwilczynskiclearcode

repo: WoLpH/python-statsd


text:
Add Mixpanel integration

Placeholder.
Track actions on website, such as clicks etc

Let's stick to Google Analytics for now, so closed in favor of #92.

repo: WoTTsecurity/wott-io


text:
fix(deps): :arrow_up: update dependency vega to v5.26.0

This PR contains the following updates:

Package
Change
Age
Adoption
Passing
Confidence

vega
5.25.0 -> 5.26.0

Release Notes

vega/vega (vega)
v5.26.0
Compare Source
Changes from v5.25.0:
vega-functions

Add geoScale expression function. (thanks @binste)

vega-scale

Fix tickMinStep calculation. (thanks @kanitw)

vega-scenegraph

Add experimental hybrid canvas/SVG renderer (thanks @jonmmease)
Fall back to textMetrics.width for user defined width function (thanks @jonmmease)

vega-selections

Fix null handling in vlSelectionTest (thanks @arvind, @jonmmease)

vega-transforms

Add aggregate parameters to vega-transform, and exponential moving average. (thanks @Xitian9)

vega-typings

Bump typings to a 1.0 release. (thanks @domoritz)

vega-voronoi

Fix reference for voronoi path point. (thanks @suchanlee)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: package-lock.json
npm WARN cli npm v10.2.3 does not support Node.js v20.2.0. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: wolsok@3.1.0
npm ERR! Found: @angular/animations@17.0.2
npm ERR! node_modules/@angular/animations
npm ERR!   @angular/animations@"17.0.0" from the root project
npm ERR!   peer @angular/animations@"^17.0.0 || ^18.0.0" from @angular/material@17.0.0
npm ERR!   node_modules/@angular/material
npm ERR!     @angular/material@"17.0.0" from the root project
npm ERR!   2 more (@angular/platform-browser, @ngneat/spectator)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @angular/animations@"17.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/core@17.0.0
npm ERR! node_modules/@angular/core
npm ERR!   peer @angular/core@"17.0.0" from @angular/animations@17.0.0
npm ERR!   node_modules/@angular/animations
npm ERR!     @angular/animations@"17.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /tmp/renovate/cache/others/npm/_logs/2023-11-10T17_34_51_124Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2023-11-10T17_34_51_124Z-debug-0.log

repo: WolfSoko/wol-sok-mono


text:
Fix nickname lookup in fixMessage function

Old behavior: If the user being mentioned has a nickname, the fixMessage function loops through the servers until it finds one with that member, so if that user is in another server without a nickname and it comes up first, the .nick property will be null or undefined, resulting in the message saying "@null" or "@undefined"
Now: Adding an optional argument for the serverID so the correct nickname can be determined. If the server ID is not provided, the first server found in which the user has a nickname will be used. This avoids @null or @undefined results.

Awesome, much appreciated! :)


text:
New CodeAnalysis/EscapedNotTranslated sniff

At times, people will accidentally forget to add the __ when they intend to use one of the "translate + escape" functions.
I've run into this a number of times now when reviewing/fixing code and found that they aren't that easy to spot visually when you're focussed on other things.
So as it was such an easy sniff to write, I figured I may as well.
AFAICS there are only two escaping functions in core which have direct "translate + escape" sister-functions.
All the same, the sniff has been set up to allow for more similar function-combis to be added.
Includes unit tests.
Includes documentation.
Sniff has been added to the WordPress-Extra ruleset.

@GaryJones Thanks for being thorough!

Thanks for being thorough!

It's rare that I get a chance to find more than one valid thing wrong with your PRs. I suggest you take the rest of the night off as you're clearly not up to your high standards today 😛

authors: GaryJones jrfnl

repo: WordPress/WordPress-Coding-Standards


text:
Add back and correct "resendoauthverification" command

Fixes #770 by @zackkrida
Description
Corrects the email. I took a shot at the text of the corrected email but please feel free to offer better wording if you can think of any!
Testing instructions
Follow instructions from the original PR for testing locally: https://github.com/WordPress/openverse-api/pull/694
Note also that CI should pass.

@obulat and @krysal can you review this today or tomorrow so we can resend these emails this week?

I do not know why that discrepancy exists. Reading through the code it doesn't seem like it should, the counts for each thing happen independent of the deletions and deleting one thing or another doesn't make the verifications query work different, at least not in any way that is evident to me by reading the code...

It would be nice to see a unit test for it since the actual error was there

I started to add a unit test that actually made a request with the URL... but I wasn't sure how to do that without having to spin up an API :thinking: If we use the RequestFactory approach it wouldn't really be all that useful, I don't think. We could assert in a regex or something that there are no double /s. Would that work for you?

We could assert in a regex or something that there are no double /s. Would that work for you?

That sounds good!

Added the unit test. If you put back the extra / they will fail. Thanks for the suggestion, Krystle!

authors: krysal sarayourfriend zackkrida

repo: WordPress/openverse-api


text:
Add correct verbose_name and verbose_name_plural to Audio, DeletedAudio, and SensitiveAudio models

Fixes

Fixes #4655 by @dhruvkb
Description

This PR addresses the issue of missing or incorrect verbose_name and verbose_name_plural values for audio-related models. The changes improve the Django admin interface experience by providing more accurate and consistent labeling for these models, as specified in the issue description.
Checklist

[x] My pull request has a descriptive title (not a vague title likeUpdate index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.
[ ] I ran the DAG documentation generator (ov just catalog/generate-docs for catalog
PRs) or the media properties generator (ov just catalog/generate-docs media-props
for the catalog or ov just api/generate-docs for the API) where applicable.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Hi @krysal,
Thank you for the suggestion. I've made the suggested changes. Please review my PR and let me know if you have any further suggestions.

@dryruffian I've rebased your branch to try to fix that failing API test.

@dhruvkb would you be able to lend a hand with debugging why the permission group might not be available in load_sample_data? I can't make out any reason why this PR should have any effect on that :thinking:

Thanks @sarayourfriend,
I will add the suggested changes

I've run ov just api/init on my local machine, and it's working fine. However, the API test is failing in a similar stage, and I don't know why. The "Migration Safety Check / Check and Apply Labels" (pull request) is failing. Can you please help me troubleshoot this?

Yes, as I said, because this PR changes the name of the model, the name of the permission is no longer the same as it was before.
We can fix this by using a part of the permission object that is constant, the codename. Here is a diff to apply to do that:
diff --git a/load_sample_data.sh b/load_sample_data.sh
index cd5f195a3..a67d3b4c4 100755
--- a/load_sample_data.sh
+++ b/load_sample_data.sh
@@ -101,9 +101,9 @@ if created:
   print('Setting up Content Moderators group')
   for model, perms in model_perms_map.items():
     for perm in perms:
-      name = f'Can {crud_perm_map[perm]} {model}'
+      name = f'{crud_perm_map[perm]}_{model}'
       print(f'Adding permission to moderators group: {name}')
-      model_add_perm = Permission.objects.get(name=name)
+      model_add_perm = Permission.objects.get(codename=name)
       mod_group.permissions.add(model_add_perm)
   mod_group.save()
   mod_group.user_set.add(User.objects.get(username='moderator'))

You can ignore the failure on the migration safety warning; it will not complete on forks. It isn't a required request, so don't worry about it, it won't block merging the PR.

Hi @dhruvkb, I've fixed all the tests in this PR. Please review my changes and let me know if you have any further suggestions.

authors: dryruffian sarayourfriend

repo: WordPress/openverse


text:
Show log and keep running on export failure

Which problem is this PR solving?
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #147
Short description of the change
Catch error on export failure and write a log.
How Has This Been Tested?
I confirmed that the collector in my sample code emited a warning log below by executing curl localhost:8080 3 times in a row.
$ dart run bin/server.dart
uri: http://192.168.0.10:4318/v1/traces
ok
ok
ok
WARNING: 2024-02-19 16:38:23.374773: Failed to export 3 spans.

import 'dart:io';

import 'package:logging/logging.dart';

import 'package:opentelemetry/sdk.dart' as otel_sdk;
import 'package:opentelemetry/api.dart';

Future<void> main(List<String> args) async {
  final uri = Uri.parse('http://192.168.0.10:4318/v1/traces');
  print('uri: ${uri}');
  final exporter = otel_sdk.CollectorExporter(uri);
  final processor = otel_sdk.BatchSpanProcessor(exporter);
  // Send spans to a collector every 5 seconds
  final provider = otel_sdk.TracerProviderBase(processors: [processor]);

  registerGlobalTracerProvider(provider);

  Logger.root.level = Level.ALL;
  Logger.root.onRecord.listen((record) {
    print('${record.level.name}: ${record.time}: ${record.message}');
  });

  var server = await HttpServer.bind(
    InternetAddress.anyIPv4,
    8080,
  );

  await for (HttpRequest request in server) {
    final tracer = globalTracerProvider.getTracer('instrumentation-name');
    final span = tracer.startSpan('doingWork');
    request.response.write('ok');
    print('ok');
    span.end();
    await request.response.close();
  }
}

Checklist:

[x] Unit tests have been added
[ ] Documentation has been updated

Security Insights
No security relevant content was detected by automated scans.
Action Items

Review PR for security impact; comment "security review required" if needed or unsure
Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@tapih Would you please mind adding a unit test for these changes?

@tylerrinnan-wf
I added a unit test for export failure😀 Could you please take a look at https://github.com/Workiva/opentelemetry-dart/pull/148/commits/26320cbdef8e6e752fc6cd553b9a077a4d75f131 ?

RM +1

authors: aviary-wf colefeisthamel-wf tapih tylerrinnan-wf

repo: Workiva/opentelemetry-dart


text:
Circle radius not set upon initialization

When creating a circle, the radius of the resulting annotation is 4 degrees no matter what radius I put in the original call (circle = wwt.add_circle(center, radius=...)). Changing afterward through circle.radius = ... works, but it would be good if this extra step wasn't necessary.

I don't know if it was checked earlier, but this doesn't happen for me anymore. There's no difference in size between pixels and degrees, though.

I'm going to close this as the issue about radii is discussed here: https://github.com/WorldWideTelescope/pywwt/issues/115

authors: astrofrog ojustino

repo: WorldWideTelescope/pywwt


text:
Added two Euclid ERO images

NGC 6822 and IC 342 added to Constellations

These look great!

Yea, I agree!  Did these get added to any catalog as well?  I can't find them in our list of collections
<Folder Name="Collections" Group="Explorer">
<Folder Name="All-Sky Surveys" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=surveys" Group="Explorer" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=aitoff"/>
<Folder Name="HiPS Surveys" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=hips" Group="Explorer" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=aitoff"/>
<Folder Name="Spitzer Studies" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=studiesspitzer" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=spitzer"/>
<Folder Name="Chandra Studies" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=studieschandra" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=chandra"/>
<Folder Name="Hubble Studies" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=studieshubble" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=hubble"/>
<Folder Name="Astrophotography" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=astrophoto" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=egastrophoto"/>
<Folder Name="SOFIA Studies" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=sofia_studies" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=nasa_sofia"/>
<Folder Name="Radio Studies" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=studiesradio" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=radiostudies"/>
<Folder Name="NOAO Studies" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=studiesnoao" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=noao"/>
<Folder Name="Gemini Studies" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=geministudies" Group="Explorer" Searchable="True" Type="Sky" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=geminiobservatory"/>
<Folder Name="JWST" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=jwst" Group="JWST" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=jwst"/>
<Folder Name="European Southern Observatory (ESO)" Url="http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=eso" Group="Explorer" Searchable="True" Thumbnail="http://www.worldwidetelescope.org/wwtweb/thumbnail.aspx?name=jwst"/>
</Folder>

Yea, we did set up our own (https://data.openspaceproject.com/wwt/1/imagecollection.wtml). The original reason was to remove the panorama ones. Would love to just refer to your collections as much as possible to prevent duplicate work and prevent mistakes, ofc, but I can add them to our collection for the time being.
Thanks!

Yeah, there's always a tradeoff with this sort of thing. @astrodavid10 do you have any opinions about integrating Euclid images into the Windows/webclient folder hierarchy? To add a new folder we'd just have to decide where to file it and create a little thumbnail image.

authors: alexanderbock astrodavid10 pkgw

repo: WorldWideTelescope/wwt-core-catalogs


text:
跨域访问

前后端分离，前端工程调用本项目的接口，Cookie无法携带传递，ShiroUtils.getSysUser()获取不到值

用nginx可以解决这个问题


text:
Remove deprecated lifecycle methods

Component does not pass react strict mode.  Need to remove "componentWillMount" and "componentWillUpdate".  Since they don't seem to actually do anything it should be fine.
Cheers!
index.js:1452 Warning: Unsafe lifecycle methods were found within a strict-mode tree:

componentWillMount: Please update the following components to use componentDidMount instead: SideEffect(NullComponent), t

componentWillUpdate: Please update the following components to use componentDidUpdate instead: t

Learn more about this warning here:
https://fb.me/react-strict-mode-warnings

Thanks for your tip. The change will be included in next release (v2.4.0)

Cool!

authors: Wufe dstroot

repo: Wufe/react-particles-js


text:
Add WellObserve (Chinese font fixed)

I have linked Chinese font needed for the site, so the content should be shown properly. May take few more to load for the first time.
http://www.wellobserve.com/
I'd like to know if it's preferable if I use js to determine browser language and provide a google translate link on my pages?
Thanks!

The page has been updated for translation options and a better gallery page

Ah the gallery icon helps a lot :) I still can't see the font tho, where is the translation option?

Also, would you like to add yourself a 88x31 button?

I see a transbtn element in the  but it's empty inside.

Thanks for the feedback. It seems the font might be too big to load (an avera chinese font file is like 20MB). I'll incorporate a font reduction method to ensure it loads relatively quickly. What system and browser are you using? I'm not sure why the page looks like that, maybe on Ubuntu I have multiple language packs already installed. Is it possible you could pull out the data traffic page from F12 in your browser to see if anything is wrong with that font data? Thanks!
I used js to determine client browser's language, since js should not be required to view the content, I'll change it to a static "translate to English" button and if js is running, I'll replace with desired language. It redirects to Google translate though, so I imagine there will be js involved anyway.

I mostly use netsurf, but since your website didn't look too good on it, I installed firefox. The pictures from above are from firefox, I don't have chinese fonts installed, I have to look into that.
It's possible that my internet connection blocks the font, we use a satellite phone that's pretty restrictive in what it can download.
On netsurf, your site looks like:

Oh if you are using satellite phone, please don't bother wait for the font to finish loading... it's 23 MB in size and browser sometimes doesn't cache all that. Sorry for the trouble, Chinese has seen trouble since the dawn of computer age and the font indeed doesn't really work that well even for the sites we browse day to day🤔.
On the other note though... it might be a good practice to install "some" basic language packs so right now I'm able to view Russian or Japanese stuff "reasonably okay", and this saves the overall transmission for the internet. It's probably not a very good idea especially for low power use cases to handle large resources, but since I believe you don't really view Chinese content that much, it doesn't really matter to pass on that XD. Id suggest installing some language support for the OS when you guys have Wi-Fi connection :D but for the moment I guess I'll clean up the gallery so that it doesnt need js to open up the whole image.🤗

authors: ChengduLittleA neauoire

repo: XXIIVV/webring


text:
I got error when I execute "run_on_QPU.py"

Hello.
I try to execute "run_on_QPU.py"
I got the error messages below.
Traceback (most recent call last):
File "/home/watabe/quantum-transfer-learning/quantum_processors/run_on_QPU.py", line 62, in
dev = qml.device("qiskit.ibmq", wires=n_qubits, backend="ibmqx4", ibmqx_token=token)
File "/home/watabe/.tql/lib/python3.10/site-packages/pennylane/init.py", line 330, in device
raise DeviceError("Device does not exist. Make sure the required plugin is installed.")
pennylane._device.DeviceError: Device does not exist. Make sure the required plugin is installed.
I only change the token in this code.
Are there what I need to do?

Hi @masaya611!
You will need the pennylane-qiskit plugin. You can install it by using python -m pip install pennylane-qiskit . You can learn more about the plugin in its documentation.
Please let us know if this solves your problem!

After installing pennylane-qiskit, there is no ibmqx4 device.
dev = qml.device("qiskit.ibmq", wires=n_qubits, backend="ibmq_qasm_simulator", ibmqx_token=token, shots=1024)
print("Device capabilities: ", dev.capabilities()["backend"])

Device capabilities:  ['ibmq_qasm_simulator', 'ibmq_lima', 'ibmq_belem', 'ibmq_quito', 'simulator_statevector', 'simulator_mps', 'simulator_extended_stabilizer', 'simulator_stabilizer', 'ibmq_manila', 'ibm_nairobi', 'ibm_oslo']

Can you guys give me a new one, using the QPU example? This version is too old, and the IBM piece of equipment seems to be gone. Thank you very much!

Hi @OnePl3 , yes, as you noticed IBM no longer has the ibmqx4 device. However you can use ibmq_lima if you prefer. You just need to change the run_on_QPU.py file which is in folder quantum_processors. You can change the "ibmqx4" in line 62 to "ibmq_lima". It is possible that other parts of the code are still outdated but at least this is an updated device that you can use.

repo: XanaduAI/quantum-transfer-learning


text:
nodemon error: extension.match is not a function

joel ~/Desarrollo/nerd-stack git:master o % gulp dev
[22:08:55] Using gulpfile ~/Desarrollo/nerd-stack/gulpfile.js
[22:08:55] Starting 'lint'...
[22:08:55] Starting 'scripts'...
[22:08:56] Finished 'scripts' after 350 ms
[22:08:56] Starting 'styles'...
[22:08:56] Finished 'styles' after 219 ms
[22:08:56] Starting 'build'...
[22:08:56] Finished 'build' after 7.93 μs
[22:08:56] Starting 'serve'...
[22:08:56] Finished 'serve' after 250 ms
/home/joel/Desarrollo/nerd-stack/node_modules/nodemon/lib/config/exec.js:158
  extension = extension.match(/\w+/g).join(',');
                        ^

TypeError: extension.match is not a function
    at exec (/home/joel/Desarrollo/nerd-stack/node_modules/nodemon/lib/config/exec.js:158:25)
    at /home/joel/Desarrollo/nerd-stack/node_modules/nodemon/lib/config/load.js:56:29
    at callback (/home/joel/Desarrollo/nerd-stack/node_modules/nodemon/lib/config/load.js:161:5)
    at ReadFileContext.callback (/home/joel/Desarrollo/nerd-stack/node_modules/nodemon/lib/config/load.js:171:14)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:324:13)

I solved it changing:
 ext: ['js', 'jsx'],

to:
 ext: 'js, jsx',

in gulpfile.js, line 60.
Don't know if the change is for good, but at least it does not crash.

Thanks Joel,
Seems that gulp-nodemon plugin changed the way they are watching files. I updated the project with your proposed solution.

authors: JoelSanchez Xantier

repo: Xantier/nerd-stack


text:
Be more friendly to first run

This is a stopgap solution to #38 so that the users don't get the ugly error message. Not ideal, but should get the job done until we have a better looking solution.

If the user clicks "ok", a remote model list is fetched and the drop down menu is opened. Nothing happens on Cancel.
@kpu good enough?

Nice! I was just working on the popup I proposed in #38 but much prefer to initially implement your solution, and then only deploy a full fix for #38 once we also have the "downloading models yourself" path figured out (i.e. #57)
I'll pull & review in a second, see whether I can break it :)

Yeah, just fixed it...

Let me know if you have any objections before I merge.

I think it can be phrased better; see examples in #38.
Welcome to translateLocally...
Currently it reads like an error message not a welcome message.

Better?

s/service/system/

authors: XapaJIaMnu jelmervdl kpu

repo: XapaJIaMnu/translateLocally


text:
ffi.new_handle(None)

I see the following code
config = libzfs.zpool_get_config(self.hdl, ffi.new_handle(None))

here https://github.com/Xaroth/libzfs-python/blob/master/libzfs/zpool.py#L133
As far as I can see from the CFFI documentation ffi.new_handle(None) produces a cdata object representing a void* pointer and that pointer is associated with None. Not sure if that makes sense at all to associate with None. But what worries me more is that the produced void* pointer is passed as the second argument to zpool_get_config() which actually interprets it as a pointer to a pointer, nvlist_t** and assigns a value to that pointer. I am not sure if it is safe to do that via a pointer returned from ffi.new_handle(). My impression is that such a pointer is never meant to be dereferenced. I think that it can only passed between python and C code and used with ffi.from_handle().
Perhaps ffi.NULL would be better to use here?

Hm,
I'm actually not sure anymore why I did new_handle.. but I did some checks and ffi.NULL seems to work fine (and actually sounds more logical). I've also changed it in .list, where the same would apply (there the handle is passed to the iter callback).
Changed, fixed, pushed.

authors: Xaroth avg-I

repo: Xaroth/libzfs-python


text:
add EmployerIdentificationNumber to Organisation

This attribute was missing from https://github.com/XeroAPI/xero-ruby but is shown in https://developer.xero.com/documentation/api/organisation, which is where I got the description text.

@wlkrw - thanks for the PR

authors: SidneyAllen wlkrw

repo: XeroAPI/Xero-OpenAPI


text:
Failed to clone git@github.com:jamisonvalenta/Laravel-4-generators.git, git was not found

I'm getting this error. I should have no typos. Everything is copied directly from the readme.
[RuntimeException]
Failed to clone git@github.com:jamisonvalenta/Laravel-4-generators.git, git was not found, check that it is installed and in your PATH env.
'git' is not recognized as an internal or external command,
operable program or batch file.
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "2.8.|3.0.",
"symfony/dom-crawler": "2.8.|3.0.*",
"xethron/migrations-generator": "dev-l5",
"way/generators": "dev-feature/laravel-five-stable" },
"repositories": {
"repo-name": {
"type": "git",
"url": "git@github.com:jamisonvalenta/Laravel-4-generators.git"
}

same here

any solution ? same problem

The new version does not make use of jamisonvalenta/Laravel-4-generators.git. So you can remove the repository from your composer.json, as well as removing way/generators. And change xethron/migrations-generator to use version "~2.0.1"

Hello unfortunately I have the same error could you tell me how to fix it

repo: Xethron/migrations-generator


text:
非常好插件，能支持伪装成meg4或meg3模型吗

modelengine 3
modelengine 4

我会试试的，但短期内暂无打算支持modelengine，因为插件在设计时并没有考虑到这些东西，现在适配起来可能会很困难...

ModelEngine4似乎自带了伪装功能：
https://git.lumine.io/mythiccraft/model-engine-4/-/wikis/MythicMobs/mechanics/model/ModelDisguise
https://git.lumine.io/mythiccraft/model-engine-4/-/wikis/Commands-and-Permissions#disguise-command

@TATyKeFei
简单测试了一下没有遇到问题：https://github.com/XiaMoZhiShi/FeatherMorph/actions/runs/9032321784

感谢，我测试了一下可以使用😍

authors: MATRIX-feather TATyKeFei

repo: XiaMoZhiShi/FeatherMorph


text:
Model Testing on Protocol Dataset Produces Opposite Results

Hi! We tested your model on the Protocol part of the dataset that provided by the challenge. However, results outputed by the model is opposite with the label files. Therefore, we would like to confirm that weather the model is applied in the currect dataset. We also noticed that while we take the min value index in outputs instead of the max value, results seem like to be normal. The confuse matrix we get is shown below. Thanks for your time!
The confuse matrix of taking the max value:

The confuse matrix of taking the min value:

@tuin33
We are using the data set provided by the competition, Label: live=0, fake=1. The label may be opposite to your data set, but the data should be consistent. For more detailed instructions, please refer to: https://codalab.lisn.upsaclay.fr/competitions/17490#learn_the_details-evaluation.
The official results when evaluating apcer and bpcer were opposite, and we changed it to be correct.

@tuin33
Hello, I wonder if your problem has been solved? I just learned from the competition organizer that the labels provided by the dataset for the competition are reversed.
I am glad that you are interested in my work. If it is helpful to your research, you are welcome to cite my work.
If you have any other details you would like to know, please feel free to raise an issue or add me on WeChat：13381144493


text:
About pytorch version in Vitis-AI-1.4

It is mentioned that support pytorch 1.5-1.7.1 in readme. But pytorch1.4 and pytorch_nndct1.4 are still installed in conda env "vitis-ai-pytorch" in docker container.
For some special reasons, I must install pytorch1.6. It is obvious that arbitrarily updating pytorch to version 1.6 is not feasible, because it depends on cuda, cudnn and pytorch_nndct, etc. How to use pytorch1.6 and pytorch_nndct corresponding to it? Looking forward to anyone's help.

See Vitis-AI-Quantizer/vai_q_pytorch#supported-and-limitaion. You can use /opt/vitis_ai/scripts/replace_pytorch.sh to change the version of PyTorch.

Pytorch 1.7 version has been supported in Vitis-AI 1.4, and pytorch 1.8, 1.9 version have been supported in Vitis-AI 2.0.
Further more, solution to change pytorch versions among the supported version range is released, please refer to the related part about script replace_pytorch.sh in user guide.

repo: Xilinx/Vitis-AI


text:
Error while trying to quantize yolov4

Traceback (most recent call last):
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/python/framework/importer.py", line 501, in _import_graph_def_internal
graph._c_graph, serialized, options)  # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: NodeDef mentions attr 'exponential_avg_factor' not in Op<name=FusedBatchNormV3; signature=x:T, scale:U, offset:U, mean:U, variance:U -> y:T, batch_mean:U, batch_variance:U, reserve_space_1:U, reserve_space_2:U, reserve_space_3:U; attr=T:type,allowed=[DT_HALF, DT_BFLOAT16, DT_FLOAT]; attr=U:type,allowed=[DT_FLOAT]; attr=epsilon:float,default=0.0001; attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]; attr=is_training:bool,default=true>; NodeDef: {{node batch_normalization/FusedBatchNormV3}}. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/bin/vai_q_tensorflow", line 11, in
sys.exit(run_main())
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 1061, in run_main
app.run(main=my_main, argv=[sys.argv[0]] + unparsed)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 1060, in
my_main = lambda unused_args: main(unused_args, FLAGS)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 676, in main
flags.skip_check, flags.dump_as_xir)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 375, in quantize_frozen
check_float_graph(input_graph_def, input_fn, q_config, s_config)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/contrib/decent_q/python/decent_q.py", line 275, in check_float_graph
importer.import_graph_def(input_graph_def, name='')
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/python/framework/importer.py", line 405, in import_graph_def
producer_op_list=producer_op_list)
File "/opt/vitis_ai/conda/envs/vitis-ai-tensorflow/lib/python3.6/site-packages/tensorflow_core/python/framework/importer.py", line 505, in import_graph_def_internal
raise ValueError(str(e))
ValueError: NodeDef mentions attr 'exponential_avg_factor' not in Op<name=FusedBatchNormV3; signature=x:T, scale:U, offset:U, mean:U, variance:U -> y:T, batch_mean:U, batch_variance:U, reserve_space_1:U, reserve_space_2:U, reserve_space_3:U; attr=T:type,allowed=[DT_HALF, DT

Hi @krishnaadithya
It seems to be the tensorflow version mismatch issue.
Could you run the float model successfully and which tensorflow1 version do you use.
Our Tensorflow 1 quantizer is based on Tensorflow1.15.

Hi,@krishnaadithya， whether U try TF1.15 for this issue?

@krishnaadithya  Does the problem resolve, I will close this issue, U can reopen it when U need.

do you have a solution for someone who's using Tensorflow 1.15.1?

do you have a solution for someone who's using Tensorflow 1.15.1?

do you have a solution for someone who's using Tensorflow 1.15.1?
i run into the same error while using  Tensorflow 1.15.1.

Hi @krishnaadithya @moran-work
The issue you're experiencing might be because the floating-point model was generated using TensorFlow 2.x rather than TensorFlow 1.x. For consistency, both the training and quantized models should utilize TensorFlow 1.15.

authors: krishnaadithya moran-work qianglin-xlnx renjiangyong zhenzhen-AMD


text:
Where to find wristband?

Which ones are compatible? Is a 3d model of the watch available to attempt self printing?

There are currently no 3D models available

Never mind, I just noticed that 63mm diameter is not suitable for "wrist wearing"...

authors: jumpjack lewisxhe

repo: Xinyuan-LilyGO/T-RGB


text:
RSS feed for blog

It must be done

9122dfacee9ff47f35e4bea79b1e4868bd510d3c


text:
Broader type support

Typefit should understand Sequence and Mapping types

Merged

repo: Xowap/typefit

license: WTFPL


text:
每日答题一直重复答题,请大神指点一下

已修复


text:
getting an error: nvim_err_writeln must not be called in a lua loop callback

possibly been fixed. please update and try again.

Updated the plugin now am getting this error

As the error described, you have to set an environment variable OPENAI_API_KEY

- export OPENAI_KEY='your-key'
+ export OPENAI_API_KEY='your-key'

that worked, thank you very much


text:
🛑 MOMO is down

In fc0412d, MOMO (https://www.momoshop.com.tw/main/Main.jsp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MOMO is back up in 3819339 after 11 minutes.


text:
png uzerindeki animasyon calismiyor

https://github.com/YEmreAk/YLib/blob/master/yazilarim/asal-sayilar.md
burada asal sayilarla ilgili gorselde animasyon calismadigi icin anlamsiz olmus, duzeltilebilirse guzel olur sanirim.

Düzeltildi ✔

authors: SalihACan yedhrab

repo: YEmreAk/YLib


text:
Possible bug? Api and admin page refuses any Capital letters for keyword when shortening

I find this rather annoying because as with almoust any url shortener links are case sensitive. Looking at bit.ly and goo.gl we can see that i am not lying.
I did a bit of googleing and found some request https://github.com/YOURLS/YOURLS/issues/999
that literally made me laugh for a bit and then made me think (now why on earth would you make the possibilities of shortened urls so limited by removing case sensitivity
I seriously hope this hasn't become a thing
also if the keyword is in ALL CAPS
the shorturl becomes a zero since there are no lowercase letters (weird)
"DGFHGHSAGHJDSGHJ -> 0" (wtf)
if there were lowercase letters
like
"LoKE2"
only "o2" would be accepted
"LoKE2 -> o2" (again wtf)
both the api and the admin page do this
If this is a bug then i would be happy if it gets fixed
if its not a bug then can someone point me to a plugin as i found none during my search
@ozh

There are several issues about this. This has even its own topic in the readme FAQ.

Take a look at user/config.php:
/** URL shortening method: 36 or 62 */
define( 'YOURLS_URL_CONVERT', 36 );
/*
 * 36: generates all lowercase keywords (ie: 13jkm)
 * 62: generates mixed case keywords (ie: 13jKm or 13JKm)
 * Stick to one setting. It's best not to change after you've started creating links.
 */

authors: chtaube kamijoutouma ozh

repo: YOURLS/YOURLS


text:
Support CSV without header row

Sometimes, I'm dealing with CSV files that don't have headings. csvlens now always takes the first row as header row.
I'd like modify this behavior with a command line flag, something like --no-header to treat all rows as data.
(awesome tool btw!)

I'll try to work on this one.

Added --no-headers option in the main branch. Thanks for the suggestion!

authors: YS-L jobm svenvanhal

repo: YS-L/csvlens


text:
MQTTClient fails to raise appropriate exception if URI is broken

A broken URI leads to the following exception when trying to connect to an MQTT broker:
Unhandled exception: 'NoneType' object has no attribute 'write'
paxexpress-api | Connection failed: AttributeError("'NoneType' object has no attribute 'write'")
paxexpress-api | Unhandled exception: 'NoneType' object has no attribute 'write'
paxexpress-api | Reconnection attempt failed: AttributeError("'NoneType' object has no attribute 'write'")
paxexpress-api | Unhandled exception: 'NoneType' object has no attribute 'write'
paxexpress-api | Reconnection attempt failed: AttributeError("'NoneType' object has no attribute 'write'")
paxexpress-api | Unhandled exception: 'NoneType' object has no attribute 'write'
paxexpress-api | Reconnection attempt failed: AttributeError("'NoneType' object has no attribute 'write'")
paxexpress-api | Maximum number of connection attempts reached. Reconnection aborted
paxexpress-api | ERROR:    Traceback (most recent call last):
paxexpress-api |   File "/opt/pysetup/.venv/lib/python3.8/site-packages/amqtt/client.py", line 165, in connect
paxexpress-api |     return await self._do_connect()
paxexpress-api |   File "/opt/pysetup/.venv/lib/python3.8/site-packages/amqtt/client.py", line 254, in _do_connect
paxexpress-api |     return_code = await self._connect_coro()
paxexpress-api |   File "/opt/pysetup/.venv/lib/python3.8/site-packages/amqtt/client.py", line 468, in _connect_coro
paxexpress-api |     return_code = await self._handler.mqtt_connect()
paxexpress-api |   File "/opt/pysetup/.venv/lib/python3.8/site-packages/amqtt/mqtt/protocol/client_handler.py", line 79, in mqtt_connect
paxexpress-api |     await self._send_packet(connect_packet)
paxexpress-api |   File "/opt/pysetup/.venv/lib/python3.8/site-packages/amqtt/mqtt/protocol/handler.py", line 543, in _send_packet
paxexpress-api |     await packet.to_stream(self.writer)
paxexpress-api |   File "/opt/pysetup/.venv/lib/python3.8/site-packages/amqtt/mqtt/packet.py", line 218, in to_stream
paxexpress-api |     writer.write(self.to_bytes())
paxexpress-api | AttributeError: 'NoneType' object has no attribute 'write'

Broken URI: mqtt://"user":"pass"@eu1.thethings.network"
Expectation: A descriptive exception should already be raised when creating the session and mention that no writer could be instantiated due to failing to properly parse the URI.

Hey, thanks for reporting. Unfortunately, I was not able to reproduce that. I added a test in test_client.py:
@pytest.mark.asyncio
async def test_connect_broken_uri():
    config = {"auto_reconnect": False}
    client = MQTTClient(config=config)
    await client.connect("mqtt://xxx:xxxx@eu1.thethings.network")

Which raises:
        except (ProtocolHandlerException, ConnectionError, OSError) as e:
            self.logger.warning("MQTT connection failed: %r" % e)
            self.session.transitions.disconnect()
>           raise ConnectException(e)
E           amqtt.client.ConnectException: [Errno 8] nodename nor servname provided, or not known

../amqtt/client.py:502: ConnectException

I also tried with   await client.connect("mqtt://\"xxx\":xxxx@eu1.thethings.network"). Same effect. Can you provide a minimalistic example that reproduces the issue?

I played around with quotes and ended up reproducing the exception with:
@pytest.mark.asyncio
async def test_connect_broken_uri():
    config = {"auto_reconnect": False}
    client = MQTTClient(config=config)
    await client.connect('"mqtt://someplace')

repo: Yakifo/amqtt


text:
[462] status overhaul

resolves #462

Is it necessary to note the flag and the status as requested? (As in, we can't just have 'requested' as a first-class status? And move it to 'reserved' when it's approved?)

Ok, this looks really good! I left a bunch of comments throughout, mostly in the scopes but a few more elsewhere. One critical issue that needs to be resolved is the fact that most of your specs aren't actually testing anything; it looks like RSpec doesn't actually evaluate assertions unless you call .to on them.
Overall, though, this seems pretty close to me; I think we can definitely get it merged in for v5.2.0. Nice job!

I think this is done!

Ok, left a few more comments; in particular, let's test out the migration at least once manually before we commit. Nice work!

Looks good to me! This one is a big one, @squidgetx, do you want to take one last look at it before we squash / merge?

:shipit:

authors: esoterik orenyk squidgetx

repo: YaleSTC/reservations


text:
Tensorflow - AttributeError: 'AdasOptimizer' object has no attribute 'lr'

it raise 'AttributeError: 'AdasOptimizer' object has no attribute 'lr'' when i try using ReduceLROnPlateau and run normaly when i stop using it. tried with tensorflow 2.3.1:
'''reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.8,
patience=5, verbose=1, mode='auto', min_delta=0.0001, cooldown=5,
min_lr=0.00001)'''
Thank you for your amazing work.

Unfortunately there is no good way to set the LR dynamically in Adas for the following reasons:

The lr parameter in the constructor is the initial LR of all first-order LRs.
The second-order LRs will raise the first-order LRs if the first-order LRs were lowered manually.
Lowering the first second and third order LRs will just make Adas like Adam without momentum.

Thank you for your sweet words!

I gave this ticket a second thought, Adas supposed to 100% automate LRs, do you wish to use this reduce_lr because Adas isn't doing a good job automating the LR? Think that would worth a ticket on its own.

Adas still work very well without ReduceLROnPlateau so you don't have to notice this. sorry for fotgot close this issue

repo: YanaiEliyahu/AdasOptimizer


text:
唉，太多bug了吧，，NumberBox 步进器触发修改事件改变值后，居然重新赋值不行

唉，太多bug了吧，，NumberBox 步进器触发修改事件改变值后，居然重新赋值不行

不明白你这边说的问题，可以加QQ提供demo反馈问题：1042987248

1.3.3起，numberBox步进器推荐使用v-model双向绑定数值，无需在change回调中重新赋值

authors: YanxinNet bbzhengcheng wangkaixuan0013

repo: YanxinNet/uView


text:
Utility: rebounding bullet

我注意到很多2D游戏的子弹都是可以反弹的，下面有一个issue是关于rebounding wall，但是我觉得还是直接把子弹做成可以反弹的会比较自然（这应该不算很类似的issue吧）
同时为了防止界面里出现过多的子弹，可以设置子弹过一段时间自动消失
反弹之后的速度也可以有不一样的设置

在 #153 里已经加了支持反弹的子弹，可以参看里面的细节。
由于事件更新逻辑的限制，障碍物本身需要支持函数返回子弹反射所需要的信息。例子可以参照 ReboundingBlock。反弹后的速度改变以及自动消失虽然没有实现，但只需要根据 ReboundingBall 的实现方式稍作改动就可以支持这些功能。


text:
@everyone issue

Fix this xD

fixed

authors: Shawiizz duplexsystem

repo: YatopiaMC/Yatopia-Bot